From Pixels to Paths: A Multi-Agent Framework for Editable Scientific Illustration

Jianwen Sun, Fanrui Zhang, Yukang Feng, Chuanhao Li, Zizhen Li, Jiaxin Ai, Yifan Chang, Yu Dai, Kaipeng Zhang · DOI

Scientific diagrams—ranging from neural network architectures to experimental workflows—are essential for STEM communication. However, current AI image generators typically produce flat raster images (pixels) that are impossible to edit or refine. This paper introduces VisPainter, a multi-agent framework that operates vector graphics software directly, and VisBench, a dynamic benchmark designed to evaluate AI performance in structured, editable design tasks.

The VisPainter Framework

VisPainter addresses the limitations of "one-shot" image generation by employing a collaborative multi-agent system that interfaces with standard tools like Microsoft Visio via the Model Context Protocol (MCP). The framework divides the cognitive load into three specialized roles:

  • Manager: Parses user requests, maintains the global design state, and dispatches specific tool calls.
  • Designer: A Vision-Language Model (VLM) that acts as the creative engine, drafting layouts and iteratively refining the canvas based on visual feedback.
  • Toolbox: Translates high-level commands into precise GUI operations, such as inserting shapes, aligning elements, or connecting them with arrows.
The VisPainter framework and its collaborative multi-agent workflow for generating editable diagrams.

VisBench: Evaluating Diagrammatic Intelligence

To measure progress in this domain, the authors developed VisBench, a benchmark of 360 high-information-density scientific diagrams sourced from recent STEM literature (2022-2025). To prevent model overfitting, VisBench utilizes a "seasonal" update policy, adding 120 new diagrams every four months.

Models are evaluated using a Dynamic Quality Score (DQS), which balances four key dimensions:

  1. Content: Precision and recall of requested elements.
  2. Layout: Proper alignment and efficient use of blank space.
  3. Visual Perception: Readability and absence of design errors.
  4. Interaction Cost: The number of steps required to complete the diagram.

Key Insights and Results

The authors evaluated nine state-of-the-art VLMs, revealing distinct strengths and weaknesses across different architectures.

Comprehensive performance metrics for various VLMs on the VisBench benchmark.
  • Top Performers: Gemini-2.5-Pro and GPT-5 achieved the highest overall DQS scores. They demonstrated strong content recall and readability, though they tended to take more steps to ensure quality.
  • Efficiency vs. Accuracy: GPT-4o was the most efficient model, averaging only 19.5 steps per diagram. However, this speed often led to layout errors, such as placing elements off-canvas.
  • The Precision Specialist: GPT-o3 excelled at clean text rendering and precision but occasionally missed smaller, less salient components of complex diagrams.
  • The Importance of Role Separation: Ablation studies showed that merging the "Manager" and "Designer" roles into a single agent caused performance to collapse due to "cognitive congestion," leading to omitted elements and poor spatial planning.

Limitations and Future Work

While VisPainter marks a significant step toward automated, editable design, it currently faces challenges regarding speed; sequential GUI operations and multiple VLM inference rounds can take several minutes per diagram. Future work will focus on expanding the framework to open-source tools like Inkscape and developing evaluation metrics that capture higher-level aesthetic appeal and communicative effectiveness.

Summary updated

BibTeX
@misc{sun2025from,
  author = {Jianwen Sun and Fanrui Zhang and Yukang Feng and Chuanhao Li and Zizhen Li and Jiaxin Ai and Yifan Chang and Yu Dai and Kaipeng Zhang},
  title = {{From Pixels to Paths: A Multi-Agent Framework for Editable Scientific Illustration}},
  year = {2025},
  eprint = {2510.27452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.27452},
}
Figure