Automatic Method Illustration Generation for AI Scientific Papers via Drawing Middleware Creation, Evolution, and Orchestration

Zhuoling Li, Jiarui Zhang, Ping Hu, Jason Kuen, Jiuxiang Gu, Hossein Rahmani, Jun LiuarXiv 2026

TL;DR

FigAgent is a novel multi-agent framework that automatically generates high-quality, fully editable SVG method illustrations for AI scientific papers directly from text. By distilling common visual components into reusable "drawing middlewares" and employing a tree-search-based "Explore-and-Select" strategy, it successfully mimics human trial-and-error drawing to outperform existing generative models.

What Problem Does This Paper Address?

Creating method illustrations (MIs)—the block diagrams and workflows that anchor modern AI papers—is an incredibly labor-intensive process, often taking researchers hours or days of manual tweaking.

While text-to-image models (like diffusion models) excel at creating beautiful natural imagery, they fail miserably at scientific diagrams. MIs have two strict requirements that traditional generative AI cannot satisfy:

  1. High Fidelity: Diagrams must precisely convey complex, rapidly evolving technical concepts (e.g., specific neural network layers, attention maps) without hallucinating random visual details or scrambling text labels.
  2. SVG Format: Researchers need scalable, easily editable vector graphics (Scalable Vector Graphics), whereas standard image generators output resolution-limited, uneditable raster pixels.

Existing code-generation approaches (like generating LaTeX TikZ code) try to solve the SVG problem but struggle to arrange complex, multi-module layouts cleanly. FigAgent bridges this gap.

Methods

FigAgent introduces a middleware-driven paradigm powered by five specialized, Large Language Model (LLM)-driven agents that collaborate to build diagrams:

  • Constructor Agent (CA): Scrapes existing papers to build an "experience dataset" and abstracts common visual components into drawing middlewares—parameterized, executable Python functions that output DrawIO-compatible XML code. It continuously refines this repository using genetic programming principles (selection, mutation, and crossover).
  • Parser Agent (PA): Reads the paper's text (Introduction and Methods) and extracts core concepts and their relationships into a structured concept graph.
  • Drawer Agent (DA): Interacts with drawing software to select, parameterize, and place the appropriate middlewares onto the canvas.
  • Evaluator Agent (EA): Acts as a critic, providing visual feedback and a numeric quality score for the intermediate drawings.
  • Refiner Agent (RA): Performs final aesthetic adjustments, such as tuning spacing, drawing inter-concept connection arrows, and harmonizing styles.

To handle the intricate layout of complex diagrams, the framework utilizes a novel Explore-and-Select strategy inspired by Monte Carlo Tree Search (MCTS). Instead of trying to draw the entire figure in a single pass, the DA explores multiple candidate drawing paths for each concept. It simulates future steps using a UCT (Upper Confidence Bound for Trees) criterion to balance exploitation (building on good layouts) and exploration (trying alternative arrangements), backpropagates the quality scores, and selects the most promising path forward.

Overview of the FigAgent framework showing middleware evolution and tree-search drawing orchestration.

Datasets

The authors curated a dataset of 4,964 paper-MI pairs collected from top-tier AI venues (such as CVPR and ECCV) published up to December 2025.

  • 80% of the pairs were used as the Experience Dataset ($D_{exp}$) to initialize and evolve the drawing middleware repository.
  • The remaining 20% was set aside as a new evaluation benchmark named FigAgentBench.
  • The authors also cross-evaluated their framework on the existing PaperBananaBench.

Key Insights and Ideas

  • The Dual Nature of SVGs: The authors capitalized on the fact that SVG-format diagrams are simultaneously visual graphics and structured XML code. This allows vision-LLMs to seamlessly apply their dual strengths in visual understanding and code generation.
  • Drawing as a Path-Dependent Search: Human drawing is naturally iterative and trial-and-error. By modeling diagram generation as a search tree, FigAgent prevents itself from getting trapped by poor early layout choices that would otherwise ruin the final downstream illustration.
  • Bio-Inspired Code Evolution: Instead of retraining heavy neural networks to keep up with newly emerging AI concepts (like a new type of attention block), FigAgent uses simulated biological evolution to mutate and cross-combine Python functions. This allows the system to efficiently update its vocabulary without touching model parameters.

Key Results

The framework was evaluated using DiagramEval metrics—which measure Node Alignment (NA) and Path Alignment (PA)—alongside a Vision-LLM (VLM) overall quality score.

  • State-of-the-Art Performance: On FigAgentBench, FigAgent achieved an F1 Node Alignment score of 51.4 and a Path Alignment score of 32.6, substantially outperforming image-based baselines like PaperBanana (NA: 46.3, PA: 26.9) and direct SVG code-gen baselines like TikZero (NA: 14.9, PA: 2.3).
  • Ablation Verification: Removing the Explore-and-Select tree-search strategy caused the overall VLM quality score to plummet from 61.4 down to 48.2, proving that iterative trial-and-error is vital for clean layout generation.
  • Scalability: When tested on newer 2025 papers using a middleware repository evolved from 2023 data, the evolution mechanism successfully adapted to new concepts, achieving performance nearly identical to a repository built from scratch in 2025.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{li2026automatic,
  author = {Zhuoling Li and Jiarui Zhang and Ping Hu and Jason Kuen and Jiuxiang Gu and Hossein Rahmani and Jun Liu},
  title = {{Automatic Method Illustration Generation for AI Scientific Papers via Drawing Middleware Creation, Evolution, and Orchestration}},
  year = {2026},
  eprint = {2603.29590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.29590},
}
Figure