CAGE: Bridging the Accuracy-Aesthetics Gap in Educational Diagrams via Code-Anchored Generative Enhancement
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Educational diagrams -- labeled illustrations of biological processes, chemical structures, physical systems, and mathematical concepts -- are essential cognitive tools in K-12 instruction. Yet no existing method can generate them both accurately and engagingly. Open-source diffusion models produce visually rich images but catastrophically garble text labels. Code-based generation via LLMs guarantees label correctness but yields visually flat outputs. Closed-source APIs partially bridge this gap but remain unreliable and prohibitively expensive at educational scale. We quantify this accuracy-aesthetics dilemma across all three paradigms on 400 K-12 diagram prompts, measuring both label fidelity and visual quality through complementary automated and human evaluation protocols. To resolve it, we propose CAGE (Code-Anchored Generative Enhancement): an LLM synthesizes executable code producing a structurally correct diagram, then a diffusion model conditioned on the programmatic output via ControlNet refines it into a visually polished graphic while preserving label fidelity. We also introduce EduDiagram-2K, a collection of 2,000 paired programmatic-stylized diagrams enabling this pipeline, and present proof-of-concept results and a research agenda for the multimedia community.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 11 of its 29 references that are in the map. First posted on arXiv 6 Apr 2026.
Builds on
11 of 29 references.
Closest ancestors · 2
Same direction, newest first
- 2023TextDiffuser: Diffusion Models as Text Painters18 May
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
Other references · 9
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
- 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,479
- 2020FastSpeech 2: Fast and High-Quality End-to-End Text to Speechcited by 717
- 2019PlotQA: Reasoning over Scientific Plotscited by 321
- 2017FigureQA: An Annotated Figure Dataset for Visual Reasoningcited by 319
- 2025PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slidescited by 86
- 2020NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queriescited by 74
- 2023SciGraphQA: A Large-Scale Synthetic Multi-Turn Question-Answering Dataset for Scientific Graphscited by 68
- 2021D2S: Document-to-Slide Generation Via Query-Based Text Summarizationcited by 50
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026OmniDiagram: Advancing Unified Diagram Code Generation via Visual Interrogation Reward
- 2025Proactive Agentic Whiteboards: Enhancing Diagrammatic Learning
- 2026Exploring Agentic Workflows for Generating High Quality Math Visual Aids
- 2026From Terminology to Diagrams: Visual-Instruction Generation for Scientific Diagram Understanding
- 2026Text to Automata Diagrams: Comparing TikZ Code Generation with Direct Image Synthesis
- 2026Knowledge Visualization: A Benchmark and Method for Knowledge-Intensive Text-to-Image Generation
- 2026Sketch2Feedback: Grammar-in-the-Loop Framework for Rubric-Aligned Feedback on Student STEM Diagrams
- 2026Faithful, Enriched, and Precise: Benchmarking Natural-Science Illustration Generation by T2I models