From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editing
Jingxuan Wei, Cheng Tan, Qi Chen, Gaowei Wu, Siyuan Li, Zhangyang Gao, Linzhuang Sun, Bihui Yu, Ruifeng Guo
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 Dia-gramAgent, an innovative framework with four core modules-Plan Agent, Code Agent, Check Agent, and Diagramto-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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- GeoLoom: High-quality Geometric Diagram Generation from Textual Input cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- AutoFigure: Generating and Refining Publication-Ready Scientific Illustrations cites AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZ
- Text2Arch: A Dataset for Generating Scientific Architecture Diagrams from Natural Language Descriptions cites AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZ
- AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZ cites Zero-Shot Text-to-Image Generation
- AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZ cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- MatPlotAgent: Method and Evaluation for LLM-Based Agentic Scientific Data Visualization cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Zero-Shot Text-to-Image Generation
Cited by top-tier papers9
- AutoFigure: Generating and Refining Publication-Ready Scientific IllustrationsMinjun Zhu, Zhen Lin, Yixuan Weng, Panzhong Lu et al.ICLR 2026 · 28 citations
- Geoint-R1: Formalizing Multimodal Geometric Reasoning with Dynamic Auxiliary ConstructionsJingxuan Wei, Caijun Jia, Qi Chen, Honghao He et al.CVPR 2026 · 14 citations
- Text2Arch: A Dataset for Generating Scientific Architecture Diagrams from Natural Language DescriptionsShivank Garg, Sankalp Mittal, Manish GuptaICLR 2026 · 1 citation
- ResearchPulse: Building Method-Experiment Chains through Multi-Document Scientific InferenceQi Chen, Jingxuan Wei, Zhuoya Yao, Haiguang Wang et al.ACM MM 2025 · 1 citation
- GeoLoom: High-quality Geometric Diagram Generation from Textual InputXiaojing Wei, Ting Zhang, Wei He, Jingdong Wang et al.ICML 2026
Builds on7
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
- WizardCoder: Empowering Code Large Language Models with Evol-InstructZiyang Luo, Can Xu, Pu Zhao, Qingfeng Sun et al.ICLR 2024 · 945 citations
- AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZJonas Belouadi, Anne Lauscher, Steffen EgerICLR 2024 · 64 citations
- MatPlotAgent: Method and Evaluation for LLM-Based Agentic Scientific Data VisualizationZhiyu Yang, Zihan Zhou, Shuo Wang, Xin Cong et al.ACL Findings 2024 · 36 citations
Related papers
- Paper2SysArch: Structure‑Constrained System Architecture Generation from Scientific PapersZiyi Guo, Zhou Liu, Wentao ZhangCVPR Findings 2026
- SciFlow-Bench: Evaluating Structure-Aware Scientific Diagram Generation via Inverse ParsingTong Zhang, Honglin Lin, Zhou Liu, Chong Chen et al.ACL 2026 · 3 citations
- SciDoc2Diagrammer-MAF: Towards Generation of Scientific Diagrams from Documents guided by Multi-Aspect Feedback RefinementIshani Mondal, Zongxia Li, Yufang Hou, Anandhavelu Natarajan et al.EMNLP Findings 2024 · 4 citations
- Evaluating LLM-Generated Diagrams as GraphsChumeng Liang, Jiaxuan YouEMNLP 2025
- From Model Diagram to Code: A Benchmark Dataset and Multi-Agent FrameworkMengzhen Wang, Xunbin Huang, Jiayuan Xie, Shukai Ma et al.ACM MM 2025 · 1 citation
