Agent2Figure: Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vectors
Guian Fang, Mengsha Liu, Mike Zheng Shou
National University of Singapore · Nanyang Technological University
Published December 1, 2026 · on the feed December 2, 2026 · ▲ 11 · arXiv 2612.02439
The abstract
Automatically generating scientific method figures requires both content faithfulness and geometric correctness. Existing approaches fall into two families: one directly produces non-editable raster images, while the other generates vector code but asks the model to predict absolute coordinates, which is where layout errors originate and where they are hardest to repair automatically. We propose Agent2Figure, which reformulates method-figure generation as a compilation process that separates semantic decisions from geometric solving. A language model first produces FigureSpec, a typed, evidence-grounded intermediate representation that describes visual elements, semantic relations, grouping constraints, and their source text in the paper, but contains no coordinates. A deterministic geometry compiler then solves all element positions, connection anchors, and orthogonal paths, so that alignment, non-overlap, and port-to-port connection hold by construction for every object it constrains and every relation FigureSpec declares. A geometry checker and a vision-language reviewer diagnose residual issues, after which the system patches FigureSpec and recompiles rather than editing the final image. On PaperBananaBench (292 samples), Agent2Figure reaches an overall score of 63.9 against 57.4 for PaperBanana under the same judge, on a scale where the author's own figure is 50 by construction, and lowers the alignment, non-orthogonality, and connector-crossing error rates to 3.4%, 7.2%, and 1.7%.
The Brief
2:28A short podcast summary of the paper. Written and voiced by AI.
Transcript
Agent2Figure. Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vectors. By Guian Fang and two others, from the National University of Singapore and Nanyang Technological University. Published on the first of December.
Generating a scientific method figure automatically means getting two things right at once. The content has to be faithful to the paper, and the geometry has to be correct. Existing approaches come in two families. One produces raster images directly, and those images cannot be edited afterwards. The other generates vector code, which can be edited, but it asks the model to predict absolute coordinates. That coordinate prediction is exactly where layout errors originate. It is also where those errors are hardest to repair automatically. The weak point and the hardest repair sit in the same place.
Agent2Figure recasts method-figure generation as a compilation process. It separates semantic decisions from geometric solving. The language model decides what the figure says and how its parts relate. It never decides where anything goes.
First, a language model produces FigureSpec, a typed intermediate representation grounded in evidence. It describes the visual elements, the semantic relations between them, the grouping constraints, and the source text in the paper that each one comes from. It contains no coordinates at all. A deterministic geometry compiler then solves every element position, every connection anchor, and every orthogonal path. Alignment, non-overlap and port-to-port connection therefore hold by construction, for every object the compiler constrains and every relation FigureSpec declares.
Some issues can remain, and two components look for them: a geometry checker and a vision-language reviewer. When they find a problem, the system patches FigureSpec and recompiles, rather than editing the final image. The fix happens at the level of the description, and the layout is solved again.
On PaperBananaBench, with two hundred and ninety-two samples, Agent2Figure reaches an overall score of sixty-three point nine, against fifty-seven point four for PaperBanana under the same judge. On that scale, the author's own figure scores fifty by construction, so both systems are rated above the original. Error rates also fall: alignment errors to three point four percent, non-orthogonality to seven point two percent, and connector crossings to one point seven percent.
The move is to take coordinates away from the model, since predicting them is where layout errors began. Once the model only declares what should relate to what, the geometric guarantees come from a solver, and every correction happens in the specification, where the result stays editable.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free