Get Started
Home
Topics
Search
Library
6 min read · Code Generation · Multimodal · Added Oct 20 · Paper published Oct 16, 2026

RAP: A Dataset for Paper-to-Poster Generation via Declarative Markup from Human-Crafted Exemplars

Source: research paper via Hugging Face Daily Papers
Paper-to-poster systems fail because they invent layouts from scratch; derendering 25K real conference posters into editable HTML with typed, refillable slots lets a model retrieve a human design and swap content. Feeding the scaffold instead of the image drops FID from 77 to 24.

TL;DR

RAP turns 25,435 real conference posters into editable HTML/CSS templates with typed, refillable slots, so a paper-to-poster system can retrieve a human-crafted design and swap in new content instead of inventing a layout from scratch.

Why It Matters

If you want an LLM to turn a paper into a conference poster, you need three things at once: a summary of the paper, a visual layout, and working code that renders it. Existing resources make this hard. Paper2Poster and P2PEval pair only ~100 papers with poster images, so there’s no way to check output by rendering and comparing. Bigger collections like SciPostLayout only mark bounding boxes, not the actual HTML or CSS that would reproduce the poster. So evaluation falls back on asking a VLM to judge quality, which is noisy and expensive, and generation methods end up designing layouts from scratch because the human-crafted posters in these datasets aren’t in a form a model can reuse.
The authors argue the field is missing a corpus where each human poster is machine-editable, so it can serve both as a retrieval library at inference time and as supervision at training time.

How It Works

The core trick is derendering: converting a flat poster image back into structured HTML with slots you can refill. The pipeline runs in four stages. First, a fine-tuned LayoutLMv3 detector finds every visual block (title, text, figure, table) and labels each one text-like, image-like, or decorative. Second, PaddleOCR reads text in each text block and estimates its font size from the pixel height of the lines. Third, a multimodal LLM looks at the whole poster and emits a design caption: color palette, typography, composition tokens like grid_2col or z_pattern, and per-region style notes. Fourth, the system builds an HTML scaffold with absolutely-positioned <div>s at pixel-exact coordinates, image regions cropped and embedded as <img>, and text regions left as empty slots. The scaffold plus original image plus design caption all go back to the MLLM, which fills in CSS to reproduce the look.
Each poster becomes a paper-poster-markup triplet. The authors then build two things on top.
PosterRAG is training-free. Given a new paper, it filters templates by matching domain/task/method labels, re-ranks by narrative similarity (does the paper tell a “gap-and-fill” story or an “observation-driven” one?), scores remaining candidates on visual style, then uses a MappingAgent to fill the chosen template’s slots. Critically, filling is programmatic: text slots get new innerHTML, image slots get new src, and all CSS stays untouched. A ReviewerAgent does a screenshot-and-fix loop for visual defects.
template = retrieve(paper, library) # 3-stage cascade slots = analyze_slots(template) # id, type, size, capacity mapping = llm_map(slots, paper) # which content -> which slot html = fill_programmatically(template, mapping) # CSS untouched for _ in range(3): screenshot = render(html) patches = vlm_review(screenshot) html = apply_safe_patches(html, patches) # blocked: hide, shrink
The second application post-trains Qwen3.8-27B on the triplets with Supervised Fine-Tuning followed by reinforcement learning using Group Relative Policy Optimization (GRPO). The RL reward combines rule-based checks on the rendered DOM (text clipping, overlap, asset coverage) with a VLM-based quality score against the reference poster.

What They Found

On a held-out set of 150 papers (10 per domain, not in the template bank), the authors measure two things: diversity across generated posters (via pairwise LPIPS, DINOv2 cosine distance, and DISTS) and human-likeness (via Fréchet Inception Distance (FID) and a DINOv2-based variant called FDiD that is more sensitive to layout geometry).
PosterRAG with HTML Guidance scores best on all five metrics among retrieval-based methods, with FID 23.75 and FDiD 306.79, versus 33.24/377.25 for the strongest baseline P2P. An ablation isolates where the gain comes from: feeding the model a reconstructed HTML scaffold rather than just the reference poster image drops FID from 77.11 to 23.75 and raises DINOv2-CosDist from 0.0877 to 0.4443. The HTML’s explicit geometry constraints matter more than the image alone.
For the post-trained model, SFT improves all five metrics over the base Qwen3.8-27B, and RL further cuts FID to 23.42. The RL variant beats frontier models including Gemini 3.1 Pro on diversity metrics and comes second to Claude Opus 5 on FID. The derendering pipeline itself reconstructs posters at SSIM 0.79 and layout mIoU 0.69 with Claude-Opus-4.6 as the backbone, high enough that render-and-compare evaluation is meaningful.
One caveat the authors flag themselves: the metrics measure diversity and distributional similarity to human posters, not whether a given poster is faithful to its source paper or legible to a human reader.

What’s Useful

If you’re building a paper-to-slides or paper-to-poster pipeline, the main lesson is that structured retrieval beats layout generation. The paper’s results support feeding your model a concrete HTML scaffold rather than asking it to lay out a page from a text prompt or a reference image. The programmatic-filling pattern (LLM decides the mapping, deterministic code applies it, VLM only patches CSS) is worth copying for any document-generation task where layout stability matters.
The dataset, derendering code, and trained Qwen variant are released on Hugging Face and GitHub, so the templates themselves are usable as a design library for related tasks (slides, infographics, scientific figures) even if you don’t care about posters specifically.
If you need to adapt the derendering pipeline to a new document type, the ablation shows the order of importance: layout detection contributes the most, then OCR for font sizing, then design captioning for style. Starting with just layout detection gets you most of the way (mIoU 0.52 vs 0.69 for the full pipeline).
Worth testing but not established by this paper: whether the retrieved-template approach generalizes to document types with less structural regularity than ML conference posters, or whether narrative-matching retrieval helps when the template bank is much smaller than 25K.

Caveats

Evaluation metrics measure diversity and distributional similarity to human posters, not content faithfulness or human readability. The authors show qualitative examples where post-training produces complete layouts, but there is no systematic measure of whether the right content from the paper ends up in the right slot. The template bank is heavily ML-conference-flavored (NeurIPS, ICML, ICLR from 2022-2026 via OpenReview); retrieval quality on papers from other fields is untested. The derendering pipeline depends on a strong backbone MLLM. GPT-4o and Qwen-3.5 lag Claude-Opus-4.6 substantially on reconstruction fidelity, so reproducing the dataset creation requires access to a frontier model.
Topics
Code Generation
Multimodal
Computer Vision
Code Generation
Multimodal
Computer Vision
Up next in Code Generation
Self-Evolving Coding Agents via Harness-Policy Optimization
InfiniDream: Open-Ended Photorealistic 3D Worlds Through Procedural Generation
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Multimodal163 episodes
Code Generation72 episodes
Computer Vision210 episodes