atlas

Research map / Image generation / Text-to-image diffusion

From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editing

CVPR 2025 · Image generation › Text-to-image diffusion · approach: Layout-to-image control · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces DiagramGenBenchmark (eight diagram types) and DiagramAgent, a multi-agent framework (Plan, Code, Check, Diagram-to-Code agents) for generating and editing structured diagrams from text via LaTeX/DOT code.

Problem

Text-to-image models produce visually appealing but logically incoherent outputs, and text-to-code approaches struggle with complex, editable diagrams; there is no comprehensive dataset for generating and editing diverse structured diagrams.

Approach

A multi-agent pipeline in which a planner expands queries, a fine-tuned code model writes TikZ/DOT code, a Check Agent compiles and verifies it with GPT-4o, and a Diagram-to-Code agent enables editing by recovering code from an existing diagram.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DiagramAgent instead of the strongest listed baselineDiagram generation with Qwen2.5-Coder-7B · Diagram generationPass@1: 55.56 -> 58.15Helped
Use DiagramAgent instead of the strongest listed baselineDiagram coding with Qwen2-VL-7B · Diagram codingPass@1: 64.07 -> 68.89Helped
Use DiagramAgent instead of the strongest listed baselineDiagram editing with Qwen2.5-Coder-7B · Diagram editingPass@1: 95.00 -> 98.00Helped
Add GPT-4o verification (ablation)DiagramAgent diagram generation · Diagram generationchrF: -0.68Helped
Add compiler debugging (ablation)DiagramAgent diagram generation · Diagram generationchrF: -1.75Helped
Add GPT-4o verification (ablation)DiagramAgent diagram coding · Diagram codingPass@1: -6.30Helped
Add compiler debugging (ablation)DiagramAgent diagram coding · Diagram codingPass@1: -15.56Helped
Add GPT-4o verification (ablation)DiagramAgent diagram editing · Diagram editingPass@1: -1.00Helped
Add compiler debugging (ablation)DiagramAgent diagram editing · Diagram editingPass@1: -2.50Helped

Surprising findings

Limitations

Experimental setup

Datasets: VGQA datikz datikz-v2 GitHub and Overleaf diagram code repositories

Benchmarks: DiagramGenBenchmark

Metrics: Pass@1 ROUGE-L CodeBLEU Edit Distance chrF RUBY CLIP-FID LPIPS PSNR MS-SSIM

Baselines: Qwen2.5-Coder DeepSeek-Coder-Instruct Code-Llama WizardCoder GPT-4o DeepSeek V2.5 GLM-4-plus Gemini Qwen2-VL Deepseek-vl

Builds on: Qwen2.5-Coder Qwen2-VL GPT-4o

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy