Manuscript Offprint

arXiv:2609.08155

SciFigure2Code: An AI-Reconstructed Benchmark for Scientific Figure-to-Code

Wentao Li, Yibo Wu, Yizhe Chen, Ruixuan Chen, Jiangjie Qiu, Yijun Li, Zhao Leyi, Xiaonan Wang

Abstract

Scientific figures are the interface through which research claims are inspected and reused, but final published panels rarely expose the data or plotting code that produced them. Recovering this hidden provenance from pixels is therefore underdetermined. We introduce SCIFIGURE2CODE, an AI-reconstructed benchmark that instead evaluates presentation recovery: generating editable Python programs that preserve how a scientific panel is arranged and read. Role-specialized Codex agents generate, execute, visually refine, and audit silver-standard presentation programs that capture geometry, visual hierarchy, encodings, annotations, and typography without claiming to recover original measurements or author source code. This reconstruction-and-audit protocol turns final published panels into auditable reference packages; the resulting resource contains 6,740 reviewed panels and SCIFIGUREBENCH, a balanced 337-panel test set across 31 chart subtypes, five domains, and three complexity levels. Across 14 zero-shot models in image-only and caption-assisted settings, execution, multi-component layouts, axes, legends, and scientific labels remain weak. Claude Opus 4.7 achieves the highest image-only Overall score, Claude Opus 4.6 leads caption-assisted reconstruction, and two-stage plan-then-code prompting improves Overall for all four tested models. SCIFIGURE2CODE provides an auditable testbed for agents that construct editable, visually faithful scientific figure presentations.

1. Introduction

Scientific figures are the interface through which researchers inspect, compare, and reuse quantitative evidence. A published panel is not merely a view of data: it is a designed presentation that couples axes and scales, uncertainty and significance encodings, overlays, legends, domain-specific notation, and publication-ready typography. An editable program that preserves those choices could let research agents adapt a design to new data and regenerate it without manually redrawing the panel. Yet the final raster usually un-

derdetermines both the original measurements and the authors' implementation; it is often post-processed and can contain tightly coupled elements whose placement changes how the scientific claim is read. Existing chart-to-code benchmarks, including ChartMimic [1], Plot2Code [2], and RealChart2Code [3], mainly use curated examples or assume access to raw data. They do not resolve how to benchmark the reconstruction of an auditable presentation program from a final published panel when original code is unavailable.

We introduce SCIFIGURE2CODE, an AI-reconstructed benchmark whose central object is presentation recovery, not source-code or data recovery. Its contribution is not merely a collection of scientific images: role-specialized Codex agents turn a final panel into a reviewed, editable presentation program through crop review, code generation, execution, visual refinement, and audit. These silver-standard references capture observable geometry, visual hierarchy, encodings, annotations, and typography while making no claim to recover the authors' measurements or scripts. The resulting reconstruction-and-audit protocol makes final published presentations auditable and evaluable. It yields 6,740 clean reference packages and SCIFIGUREBENCH, a balanced 337-panel test set covering 31 chart subtypes, five domains, and three complexity levels. Every package links a target panel to executable reconstruction code, refined renderings, provenance, and audit metadata.

We evaluate two complementary reconstruction settings: image-only and caption-assisted. Fourteen models are evaluated zero-shot in both settings, and four open-source models additionally use a two-stage plan-then-code prompt. The protocol treats generated code as an executable presentation program: it rejects direct image dependencies and raster tracing, gates visual scores on execution, and combines deterministic checks with blind VLM assessments of layout, components, legends, and clarity.

Contributions. We provide (i) an auditable presentation-recovery target for final published panels, designed for settings in which original data and author code are unavailable; (ii) a Codex-driven reconstruction, refinement, and provenance protocol that produces 6,740 silver-standard reference packages and the 337-panel SCIFIGUREBENCH split; and

(iii) execution-gated results for 14 models in image-only and caption-assisted settings, with a focused study of caption context and reasoning-guided prompting.

References (23)