Two AI systems both read page layouts, but one studies the picture and one only tracks text-box coordinates — why?
Why does SlideCoder segment pixels while DocLLM relies only on bounding boxes?
This explores why two AI systems that both work with page layouts take opposite approaches to the visual page: SlideCoder breaks a slide image into regions by analyzing its pixels, while DocLLM ignores the image and uses only the coordinates of text boxes. The corpus suggests the difference comes from what each system has to produce.
This explores why one layout-aware system works from pixels and another skips the image entirely. The short answer is that they are doing opposite jobs. DocLLM *reads* documents. It answers questions about forms, invoices or reports where text has already been pulled out (usually by OCR) along with each word's position on the page. SlideCoder *rebuilds* documents. It starts with nothing but a picture of a slide and has to write code that recreates it. No paper in the collection compares the two directly, so this answer comes from putting their notes side by side.
For DocLLM, the bounding boxes already carry most of what understanding needs. Knowing that one piece of text sits to the left of another, or under a header, is enough to tell which label goes with which field. The system gives these positions their own attention pathway, kept separate from the words themselves, and skips the expensive image encoder that most multimodal models use. The authors report much lower compute cost as a result Can bounding boxes replace image encoders for document understanding?. What it gives up is visual style: colors, background shapes, images and fonts. For extracting meaning, that loss rarely matters.
For SlideCoder, those discarded details are the whole point. A slide is mostly made of styled shapes, color blocks, images and decorative elements, and none of that comes with ready-made boxes. SlideCoder splits the image into regions based on color gradients, which recovers where each element is and what it looks like. A three-agent pipeline then turns those regions into editable python-pptx code Can AI convert slide images into editable code automatically?. In effect, the pixel segmentation is how SlideCoder creates the layout information that DocLLM is simply handed. ScreenCoder takes a similar modular, agent-based route for turning webpage screenshots into code Can filtered agent-generated data improve UI code generation models?.
The wider collection shows a pattern: whenever the output has to *look* right, systems keep going back to pixels. PPTAgent's self-correction only checks whether its code runs, so it misses overlapping elements that show up only once the slide is rendered Can slide-editing agents fix visual flaws they cannot see?. Several training methods fix this by rendering the output and scoring the image. RRVF rewards models when rendered code matches the source image Can visual matching alone train image-to-code models without text?. RLRF does the same for SVG graphics using pixel-level comparison Can rendering feedback train better SVG generators than supervised learning alone?. AeSlides scores the rendered HTML itself rather than the markup, and raised layout compliance from 36% to 85% Can rule-based rewards fix LLM slide layout quality?.
So the takeaway goes beyond these two papers. Pixels or bounding boxes is less a design preference than a sign of which way the system faces. If you go from page to meaning, coordinates are usually enough and much cheaper. If you go from intent to page, you eventually have to check what was actually drawn, because a layout can be correct in code and still look broken. That is also part of why code-based slide generation beats drawing slides as raw images Does code generation beat image generation for slide creation?: code gives you editable structure, and rendering gives you a way to check it.
Sources 8 notes
DocLLM shows that bounding-box spatial information combined with decomposed transformer attention can capture text-spatial alignment in documents without pixel-based visual encoding. Pretraining on text-infilling objectives suited to irregular layouts achieves this at substantially lower computational cost than multimodal LLMs using image encoders.
SlideCoder uses color-gradient segmentation and a three-agent pipeline to generate Python-pptx code from reference slide images, reportedly outperforming baselines by up to 40.5 points on layout fidelity and execution accuracy. The authors also released SlideMaster, a 7B fine-tuned model approaching GPT-4o performance.
ScreenCoder's three-agent pipeline filtered 50,000 webpages into 10,000 high-quality image-code pairs (Screen-10K), then post-trained an open-source MLLM via supervised fine-tuning and reinforcement learning, demonstrating substantial gains in UI generation.
PPTAgent outperforms text-to-slides baselines on layout but corrects only code-level execution, not rendered appearance. Its self-correction loop checks HTML representation success, not whether overlapping elements or other visual breaks occur after rendering.
RRVF rewards MLLMs for how closely rendered code output matches the source image, not for matching ground-truth text or code. This leverages asymmetry-of-verification: checking if rendered output matches is easier than generating code, making visual similarity a tractable RL reward signal.
Show all 8 sources
RLRF post-training, which samples SVG outputs, renders them, and rewards pixel-level similarity to target images, significantly beats supervised fine-tuning and generalizes to unseen SVG styles. The approach works because rendering provides an evaluative signal where gradients cannot flow through discrete token sampling.
AeSlides uses GRPO with render-time metrics to train slide generation, raising aspect-ratio compliance from 36% to 85% and outperforming reflection methods and Claude-Sonnet-4.5. The key: scoring rendered HTML directly rather than judging markup.
AutoPresent's benchmarking across 585 test cases shows program-based approaches beat image generation methods like Stable Diffusion and DALL-E, especially on content accuracy. An 8B LLaMA model fine-tuned on 7k examples achieved results comparable to GPT-4o.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- AutoPresent: Designing Structured Visuals from Scratch
- SlideCoder: Layout-aware RAG-enhanced Hierarchical Slide Generation from Design
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
- PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slides
- AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation