Agent2Figure: Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vectors

Guian Fang, Mengsha Liu, Mike Zheng Shou

arXiv:2612.02439 · 2026-12-02 공개 · arXiv · PDF

vision-language scientific-figures figure-generation geometry-compilation editable-vectors figure-spec layout-errors paper-banana-bench

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%.

한국어 요약

한 줄 요약

Agent2Figure는 과학적 방법도표를 편집 가능한 벡터로 생성하는 시스템으로, 구조적 정확성을 향상시키는 컴파일러 기반 접근법을 제안한다.

핵심 기여도

핵심 아이디어

기존 시스템은 시맨틱 결정과 기하 결정을 동일한 생성 메커니즘으로 처리하여 구조적 오류가 발생하기 쉬웠다. Agent2Figure는 이 두 결정을 분리하여 해결한다. 언어 모델은 **FigureSpec**이라는 중간 표현을 생성하며, 이는 시각 요소, 관계, 그룹 제약, 그리고 원문 텍스트 위치를 포함하지만 좌표는 포함하지 않는다. 이후 **Deterministic Geometry Compiler**가 정렬, 겹침 방지, 직각 연결 등의 제약을 컴파일하여 SVG로 변환한다. 이는 구조적 정확성을 보장하며, 오류는 **FigureSpec** 수준에서 패치되어 재컴파일된다. 이 접근법은 편집 가능성과 구조적 정확성을 동시에 달성한다.

기술적 접근법

주요 결과

의의 및 한계

Agent2Figure는 과학적 방법도표 생성에서 **구조적 정확성과 편집 가능성**을 동시에 달성하는 첫 시도로, 기존 시스템의 좌표 예측 방식의 한계를 극복한다. **FigureSpec**과 **컴파일러 기반 접근**은 시각적 프로그래밍의 새로운 패러다임을 제시한다. 다만, **PaperBananaBench는 단일 회의 출처**로, 다른 도메인으로의 일반화 가능성은 제한적이다. 또한, **수정 루프 내에서 어떤 단계가 가장 효과적인지 구분하지 못함**.

실용적 활용

Agent2Figure는 **AI 연구 방법도표**, **학술 저널 출판**, **교육용 시각 자료 제작** 등에서 활용 가능하다. 특히, **논문 저자들이 자동 생성된 도표를 편집하여 직접 수정**할 수 있어, 연구 효율성을 높이는 데 기여할 수 있다.