mlsanityData to 14 Oct 2026

CAGE: Bridging the Accuracy-Aesthetics Gap in Educational Diagrams via Code-Anchored Generative Enhancement

arXiv 2604.09691 ↗First posted 6 Apr 2026cs.CV cs.AIcited by 1

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

  1. 2023TextDiffuser: Diffusion Models as Text Painters18 May
  2. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov

Other references · 9

  1. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
  2. 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,479
  3. 2020FastSpeech 2: Fast and High-Quality End-to-End Text to Speechcited by 717
  4. 2019PlotQA: Reasoning over Scientific Plotscited by 321
  5. 2017FigureQA: An Annotated Figure Dataset for Visual Reasoningcited by 319
  6. 2025PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slidescited by 86
  7. 2020NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queriescited by 74
  8. 2023SciGraphQA: A Large-Scale Synthetic Multi-Turn Question-Answering Dataset for Scientific Graphscited by 68
  9. 2021D2S: Document-to-Slide Generation Via Query-Based Text Summarizationcited by 50

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026OmniDiagram: Advancing Unified Diagram Code Generation via Visual Interrogation Reward
  2. 2025Proactive Agentic Whiteboards: Enhancing Diagrammatic Learning
  3. 2026Exploring Agentic Workflows for Generating High Quality Math Visual Aids
  4. 2026From Terminology to Diagrams: Visual-Instruction Generation for Scientific Diagram Understanding
  5. 2026Text to Automata Diagrams: Comparing TikZ Code Generation with Direct Image Synthesis
  6. 2026Knowledge Visualization: A Benchmark and Method for Knowledge-Intensive Text-to-Image Generation
  7. 2026Sketch2Feedback: Grammar-in-the-Loop Framework for Rubric-Aligned Feedback on Student STEM Diagrams
  8. 2026Faithful, Enriched, and Precise: Benchmarking Natural-Science Illustration Generation by T2I models