Does code generation beat image generation for slide creation?
When creating presentation slides programmatically, does generating executable code outperform directly generating images? This matters for understanding which approach produces more accurate, controllable slide designs.
AutoPresent benchmarks slide generation on SLIDESBENCH, a dataset of "7k training and 585 testing examples derived from 310 slide decks across 10 domains," with both reference-based metrics (similarity to a target slide) and reference-free metrics (design quality judged on the generated slide alone). Across this benchmark the authors report that "code generation approaches substantially outperform end-to-end image generation methods (Stable Diffusion, Dall-E)," particularly on content accuracy. Built on that programmatic approach, their own fine-tuned model, AutoPresent — an 8B LLaMA-based model trained via LoRA on 7k instruction-program pairs — "achieve[s] results comparable to the closed-source model GPT-4O."
The method generates a Python program (using libraries such as python-pptx) from the instruction, then executes it to produce the slide, rather than generating a picture of the slide directly. Because full programs average 170 lines and are hard for models to generate correctly, the authors built SLIDESLIB, a library of seven higher-level functions (add_title, add_text, add_bullet_points, add_image, generate_image, search_image, search_screenshot) that cuts the average program to 13 lines; using it "brings observable gains in LLAMA and LLAVA in all three scenarios by at most 34.0 points," and similarly lifts GPT-4o. The excerpt attributes image generation's weakness to poor controllability: such methods "often produce creative figures without aligning with the design principles of slides."
This extends Do generated interfaces outperform text-based chat for most tasks? and Do generated analysis UIs really work better than chat? with a specific case: structured, executable program output beats unstructured generative output for a design-intensive artifact, and a helper library (SLIDESLIB) mitigates the rigidity those notes associate with structured generation. It also complicates Do text-based GUI agents actually work in the real world?: AutoPresent's base generation pipeline works entirely in code/text, without visual perception, and still beats image-based methods on this task — visual perception only re-enters at the refinement stage.
The excerpt does not give a single, legible point gap for the core code-versus-image comparison: it reports "significant gaps of 49.9–55.0 points" narrowing to "22.2–34.6" across instruction-detail settings, but without reproducing the table that would show what those gaps are measured between. It also does not state AutoPresent's absolute score against GPT-4o, only that performance "approaches" or is "comparable to" it. And the paper's own conclusion flags that this work covers single-slide generation in one pass, not full decks or interactive workflows — so the comparable-to-GPT-4o result should be read as bounded to that narrower task.
Inquiring lines that read this note 6
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Can visual rendering-based rewards effectively improve code and layout quality?- What role does self-correction iteration play in generative slide creation?
- What limits SlideCoder to single-slide generation from reference images?
- Why does SlideCoder segment pixels while DocLLM relies only on bounding boxes?
- Does visual perception improve slide generation without text-based program output?
- What accuracy rates do Claude-generated spreadsheets and slides actually achieve?
- Why do image generation methods struggle with slide design controllability?
Related concepts in this collection 4
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Do generated interfaces outperform text-based chat for most tasks?
Explores whether LLMs should create interactive UIs instead of text responses, and under what conditions users prefer dynamic interfaces to traditional conversational chat.
both find structured, programmatically generated output beats unstructured generation for design-oriented tasks
-
Do generated analysis UIs really work better than chat?
TaskArtisan investigates whether putting a GUI into LLM-assisted analysis workflows improves usability and clarity, and what trade-offs emerge when analysts need to modify or reuse generated interfaces.
AutoPresent's SLIDESLIB library is a concrete case of reducing structured generation's rigidity cost
-
Do text-based GUI agents actually work in the real world?
Can language-only agents that rely on HTML or accessibility trees handle actual user interfaces without structured metadata? This matters because deployed systems face visual screenshots, not oracle data.
complicates the visual-perception claim: AutoPresent's text-only base pipeline still beats image-based methods on slide design
-
Can models improve slides by viewing their own rendered output?
Does showing GPT-4o a rendered snapshot of its first draft slide help it refine the design? This matters because it tests whether visual feedback loops can automate the iterative process humans naturally use.
Extends: the rendered-snapshot self-refinement is AutoPresent's own mechanism for approaching GPT-4o-level quality in A's benchmark
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- AutoPresent: Designing Structured Visuals from Scratch
- SlideCoder: Layout-aware RAG-enhanced Hierarchical Slide Generation from Design
- 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
- UI-Bench: A Benchmark for Evaluating Design Capabilities of AI Text-to-App Tools
- From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
Original note title
program generation for slide creation outperforms end-to-end image generation, and AutoPresent approaches GPT-4o performance