TL;DR
Paper2Figure is a novel dual multi-agent system and interactive web platform designed to automatically generate publication-quality scientific figures from text descriptions. By utilizing a structured intermediate language called FigScript, it bridges the gap between rigid, visually unappealing code-based generation and visually rich but logically inaccurate text-to-image models.
What Problem Does This Paper Address?
Creating clear, accurate, and aesthetically pleasing figures—such as process diagrams, flowcharts, and system overviews—is a labor-intensive task essential for scientific communication. While generative AI has advanced rapidly, current methods fail to balance structural fidelity with visual quality.
Existing approaches fall into two flawed camps:
- Code-based methods (e.g., SVG, Mermaid): These provide good semantic clarity and editability but often suffer from rigid layouts, drab color schemes, and poor overall aesthetics.
- Text-to-image models (e.g., DALL·E 3, Nano Banana): These produce visually rich images but frequently struggle with layout accuracy, text rendering, and logical consistency (e.g., creating distorted text or incorrect arrow connections). Furthermore, their rasterized outputs are nearly impossible to edit.
Paper2Figure addresses this gap by ensuring joint semantic precision, visual quality, and flexible structural control.
Methods
The Paper2Figure framework consists of a dual multi-agent architecture integrated with an interactive web editor. The system operates in two primary stages using an intermediate representation language called FigScript, which abstracts low-level drawing operations into semantically meaningful constructs (nodes, edges, containers, and styles).
- Generation Stage:
- Plan Agent: Analyzes the input text to extract entities, processes, and logical relationships, formulating a high-level structural plan.
- Module Agent: Implements the plan by constructing visual modules in FigScript.
- Layout Agent: Refines spatial organization, adjusting alignment, edge routing, and spacing for a balanced composition.
- Refinement Stage (Self-Correction):
- The initial FigScript is rendered into an image.
- Critic Agent: Inspects the rendered image to detect visual flaws like misplaced modules, text spilling, or color imbalances.
- Refine Agent: Formulates a structured revision plan based on the detected issues.
- Edit Agent: Executes the updates directly within the FigScript code, triggering a re-rendering cycle.
Finally, the Interactive Web Editor allows human researchers to fine-tune the results either by issuing natural language editing commands (e.g., "move the preprocessing module to the left") or through direct canvas manipulation.
Datasets
The authors introduced Paper2Figure Bench, a new evaluation dataset to test text-to-figure generation under realistic academic scenarios. It comprises:
- 100 complex academic figures manually selected from recent arXiv papers based on their importance and structural clarity.
- Paired detailed textual descriptions generated via a semi-automatic process using GPT-4o and subsequently verified and standardized by human annotators to ensure high semantic fidelity.
Key Insights and Ideas
- The "Goldilocks" Abstraction Layer: FigScript successfully bridges the gap between low-level vector graphics (SVG) and high-level markup (Mermaid). It gives LLM agents the precise controllability of SVG without forcing them to handle tedious, low-level coordinate math.
- Multimodal Feedback Loops: An agent cannot easily spot a layout bug just by looking at code. By rendering the code to an image and having a Critic Agent visually inspect it, the system mimics how a human designer reviews their own drafts.
- Preserving Researcher Control: Purely automated generation often falls short of strict publication standards. Integrating a multi-agent backend with a live web editor acknowledges that human-AI collaboration is essential for highly technical domains.
Key Results
The framework was evaluated against leading LLMs (generating SVG/Mermaid) and text-to-image models using an LLM-as-a-Judge framework scored across Accuracy, Beauty, and Completeness.
- Superior Performance: Paper2Figure (full) achieved an average overall score of 79.2, outperforming the strongest baseline by 14.1%.
- Aesthetic and Logical Gains: In fully automatic generation (without human intervention), Paper2Figure improved accuracy by 12.0%, beauty by 13.5%, and completeness by 17.0% over state-of-the-art baselines.
- Baseline Failures: SVG baselines frequently produced visual clutter and overlapping text, Mermaid models produced rigid and monotonous layouts, and image-generation models introduced severe logical inaccuracies and text distortions.
Limitations and Future Work
For efficiency, the automated refinement stage is executed only once by default in the experiments. The paper does not include a dedicated limitations section detailing broader constraints or explicit future engineering directions.
Summary updated