SYNTHESIS NOTE
Topics›Work Application Use Cases›this note

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.

Synthesis note · 2026-11-18 · sourced from Work Application Use Cases

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?

Related concepts in this collection 4

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
14 direct connections · 76 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

program generation for slide creation outperforms end-to-end image generation, and AutoPresent approaches GPT-4o performance