PPTBench: Can Coding Agents Reconstruct the Visual World through Structured, Editable Slides
Organizations: Navers Lab, Einsia.AI · Tsinghua University
Abstract
Coding agents are increasingly moving beyond text-based software tasks to reconstruct visual targets through code. This capability, visual coding, requires agents to translate their understanding of visual targets into executable code. Slides provide a natural testbed for this capability, combining rich visual structure with objects that can be programmatically created and edited. To measure this capability, we introduce PPTBench, a benchmark for reconstructing scientific flow diagrams as editable PowerPoint slides. PPTBench covers 500 scientific flow-diagram tasks across 10 presentation domains, drawn from real research papers, and is evaluated with a four-stage agentic judge covering artifact validity, process and connector fidelity, rendering quality, and visual fidelity. Evaluation of ten models across 36 model--harness--effort configurations shows a substantial gap in reliable visual coding: the best configuration achieves 77.34, while the median across configurations is 24.38. Fine-grained analysis shows that agents can generally produce valid slide files, but struggle to produce high-quality reconstructions that faithfully recover the semantics and visual structure of the target. Further analysis shows that increasing reasoning effort primarily improves hard-gate passage rather than mean detail quality on each configuration's passing tasks, while configurations with more inspection tend to achieve higher overall scores. PPTBench establishes a measurable testbed for studying visual coding and advancing agents toward more reliable visual creation.
Figures & tables
| Human–human pairwise | ||
|---|---|---|
| Pair | Gate agr. | Cohen’s |
| Judge 1–Judge 2 | 90.5% | 0.781 |
| Judge 1–Judge 3 | 89.0% | 0.766 |
| Judge 2–Judge 3 | 83.5% | 0.645 |
| Single-round consistency (3 repeats) | |||
| Judge | Unanimous | Fleiss’ | Flipped |
| gate rate | cases | ||
| Luna High | 87.5% | 0.809 | 25 |
| Sol Medium | 86.5% | 0.797 | 27 |
| Terra High | 81.0% | 0.714 | 38 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Representation | Evaluation target |
|---|---|---|
| Chart reconstruction [ 71 , 66 , 59 , 78 ] | Plotting code | Reproduce chart appearance and numerical content. |
| Visual code reconstruction [ 2 , 52 , 51 ] | TikZ, SVG, or other source | Recover a rendered target in an executable representation. |
| Diagram parsing and evaluation [ 25 , 58 , 35 ] | Diagram constituents and relations | Recover or compare semantic structure. |
| Slide generation and editing [ 84 , 73 , 5 , 14 ] | Slide decks or PPTX edits | Generate an open-ended design or execute specified edits. |
| Reference-image slide reconstruction [ 60 ] | Editable PPTX | Reconstruct a slide design; assess content, layout, execution, and visual fidelity. |
| PPTBench [ 20 ] | Answers or PowerPoint API sequences | Evaluate detection, understanding, modification, and generation with task-specific metrics. |
| Issue type | Dimension | Severity | Cases | Category | Total | Single- |
|---|---|---|---|---|---|---|
| ratio | penalty | round (%) | ||||
| unexpected_wrap | Text | Medium | 1,864 | 0.577 | 5,723.9 | 6.8 |
| outside_text_box | Text | High | 658 | 0.319 | 3,441.8 | 35.7 |
| node_aspect_ratio | Graphics | Medium | 802 | 0.655 | 2,614.5 | 53.7 |
| horizontal_alignment | Text | Medium | 737 | 0.694 | 2,446.7 | 42.1 |
| text_connector_overlap | Text | High | 385 | 0.342 | 2,061.8 | 55.3 |
| Model | Higher effort | detail | 95% CI | (pp) | |
|---|---|---|---|---|---|
| Opus 5 | max | 147 | 1.76 | [0.15, 3.43] | 0.0 |
| Sonnet 5 | xhigh | 35 | 0.58 | [-2.75, 3.87] | 0.4 |
| Luna | max | 85 | 4.39 | [1.88, 7.01] | 12.6 |
| Sol | max | 109 | 4.13 | [2.43, 5.91] | 20.8 |
| Terra | max | 66 | 2.83 | [0.22, 5.47] | 18.0 |
| Astra | max | 289 | 0.98 | [0.18, 1.75] | -9.8 |
| Weighting / selection | Mean | 95% CI | Median |
|---|---|---|---|
| 36 configurations, equal weight | 28.18 | [26.72, 29.62] | 24.38 |
| 10 families, mean over available efforts | 31.91 | [30.40, 33.48] | 27.14 |
| 10 families, highest available effort | 38.26 | [36.39, 40.10] | 33.50 |
| 10 families, best observed effort | 39.36 | [37.49, 41.25] | 34.69 |
| Review turns | Revision turns | ||||
|---|---|---|---|---|---|
| Model | Configurations | Pearson | Spearman | Pearson | Spearman |
| All matched configurations | 27 | 0.881 | 0.897 | 0.255 | 0.462 |
| Claude Opus 5 | 5 | 0.947 | 0.900 | 0.927 | 0.900 |
| Claude Sonnet 5 | 4 | 0.922 | 1.000 | 0.913 | 1.000 |
| GPT-5.6 Luna | 6 | 0.946 | 1.000 | 0.920 | 0.943 |
| GPT-5.6 Sol | 5 | 0.998 | 1.000 | 0.979 | 0.900 |
| Effort | Artifacts | Median range | 95th percentile | Mean pairwise difference |
|---|---|---|---|---|
| Low | 279 | 2.50 | 8.52 | 2.03 |
| Medium | 324 | 1.87 | 7.76 | 1.84 |
| High | 366 | 1.50 | 7.50 | 1.62 |
| XHigh | 354 | 1.06 | 7.50 | 1.30 |
| Max | 322 | 0.62 | 7.50 | 1.27 |
| All five | 1,645 | 1.25 | 7.50 | 1.60 |
| Effort | At least one pass | Majority (reported) | Unanimous pass |
|---|---|---|---|
| Low | 63.15 (335) | 59.42 (315) | 52.81 (279) |
| Medium | 72.60 (382) | 68.16 (358) | 61.78 (324) |
| High | 80.56 (421) | 77.34 (404) | 70.20 (366) |
| XHigh | 75.94 (392) | 72.60 (374) | 68.85 (354) |
| Max | 72.10 (373) | 68.76 (355) | 62.59 (322) |
| Policy | Kendall | Median | Max. | Reversed pairs |
|---|---|---|---|---|
| Two-round issue support | 0.975 | 1.77 | 4.53 | 8/630 |
| Unit affected-ratio multiplier | 0.971 | 1.70 | 4.15 | 9/630 |
| Equal dimension weights | 0.997 | 0.13 | 0.55 | 1/630 |
| Maximum per issue category | 0.981 | 1.21 | 2.74 | 6/630 |
| Category | Severity base | Issue subtype |
|---|---|---|
| Layout and composition | ||
| Panel misalignment | High (3.0) | missing_panel , extra_panel , duplicate_panel , substituted_panel , panel_order , panel_overlap , panel_clipping , conspicuous_blank_region |
| Panel misalignment | Medium (1.5) | canvas_crop , canvas_aspect_ratio , canvas_orientation , panel_position , panel_size , panel_proportion , panel_spacing , panel_alignment , separator_position , other_panel_layout |
| Panel misalignment | Diagnostic (0.0) | global_scale , global_centering , outer_whitespace |
| Node layout deviation | High (3.0) | missing_node , extra_node , duplicate_node , substituted_node , reading_order , grouping , nesting , hierarchy , node_overlap , node_occlusion |
| Node layout deviation | Medium (1.5) | node_position , node_spacing , node_alignment , node_distribution , grid_arrangement , padding , z_order , local_scale , local_mirroring , local_rotation , other_node_layout |
Coding Agents
Coding agents use language models, tools, and feedback to modify software and complete engineering tasks.
See all 131 papers