From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editing
Authors:
- 10 June 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 13315-13325
Abstract
We introduce the task of text-to-diagram generation, which focuses on creating structured visual representations directly from textual descriptions. Existing approaches in text-to-image and text-to-code generation lack the logical organization and flexibility needed to produce accurate, editable diagrams, often resulting in outputs that are either unstructured or difficult to modify. To address this gap, we introduce DiagramGenBenchmark, a comprehensive evaluation framework encompassing eight distinct diagram categories, including flowcharts, model architecture diagrams, and mind maps. Additionally, we present DiagramAgent, an innovative framework with four core modules—Plan Agent, Code Agent, Check Agent, and Diagram-to-Code Agent—designed to facilitate both the generation and refinement of complex diagrams. Our extensive experiments, which combine objective metrics with human evaluations, demonstrate that DiagramAgent significantly outperforms existing baseline models in terms of accuracy, structural coherence, and modifiability. This work not only establishes a foundational benchmark for the text-to-diagram generation task but also introduces a powerful toolset to advance research and applications in this emerging area.Keywords
All Related Versions
Funding Information
- National Science and Technology Major Project
- National Natural Science Foundation of China
- Westlake University
This publication has 20 references indexed in Scilit:
- Boosting the Power of Small Multimodal Reasoning Models to Match Larger Models with Self-consistency Training2024
- Evaluating Text-to-Visual Generation with Image-to-Text Generation2024
- PreciseControl: Enhancing Text-to-Image Diffusion Models with Fine-Grained Attribute Control2024
- OpenBias: Open-Set Bias Detection in Text-to-Image Generative Models2024
- A survey on advancements in image–text multimodal models: From general techniques to biomedical implementationsComputers in Biology and Medicine, 2024
- A Comprehensive Review of the Latest Advancements in Large Generative AI Models2023
- Vision + Language Applications: A Survey2023
- AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks2018
- Text to diagram to symbol: representational transformations in problem-solving2002
- May the source be with youWork Study, 2000