mlsanityData to 14 Oct 2026

SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches

arXiv 2508.01237 ↗First posted 2 Aug 2025cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Hand-drawn sketches are a natural and efficient medium for capturing and conveying ideas. Despite significant advancements in controllable natural image generation, translating freehand sketches into structured, machine-readable diagrams remains a labor-intensive and predominantly manual task. The primary challenge stems from the inherent ambiguity of sketches, which lack the structural constraints and semantic precision required for automated diagram generation. To address this challenge, we introduce SketchAgent, a multi-agent system designed to automate the transformation of hand-drawn sketches into structured diagrams. SketchAgent integrates sketch recognition, symbolic reasoning, and iterative validation to produce semantically coherent and structurally accurate diagrams, significantly reducing the need for manual effort. To evaluate the effectiveness of our approach, we propose the Sketch2Diagram Benchmark, a comprehensive dataset and evaluation framework encompassing eight diverse diagram categories, such as flowcharts, directed graphs, and model architectures. The dataset comprises over 6,000 high-quality examples with token-level annotations, standardized preprocessing, and rigorous quality control. By streamlining the diagram generation process, SketchAgent holds great promise for applications in design, education, and engineering, while offering a significant step toward bridging the gap between intuitive sketching and machine-readable diagram generation. The benchmark is released at https://huggingface.co/datasets/DiagramAgent/Sketch2Diagram-Benchmark.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 35 of its 47 references that are in the map. First posted on arXiv 2 Aug 2025.

Builds on

35 of 47 references.

References · 35

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
  3. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  8. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  9. 2023Baichuan 2: Open Large-scale Language Modelscited by 670
  10. 2023MultiDiffusion: Fusing Diffusion Paths for Controlled Image Generationcited by 536
  11. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  12. 2024InternLM2 Technical Reportcited by 397
23 more
  1. 2022CodeT: Code Generation with Generated Testscited by 384
  2. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  3. 2023Diffusion Self-Guidance for Controllable Image Generationcited by 305
  4. 2023InternLM-XComposer: A Vision-Language Large Model for Advanced Text-image Comprehension and Compositioncited by 297
  5. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  6. 2024CogVLM2: Visual Language Models for Image and Video Understandingcited by 217
  7. 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 200
  8. 2019Controllable Text-to-Image Generationcited by 187
  9. 2022Natural Language to Code Translation with Executioncited by 124
  10. 2023Self-planning Code Generation with Large Language Modelscited by 124
  11. 2024Controllable Generation with Text-to-Image Diffusion Models: A Surveycited by 83
  12. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  13. 2020Deep Learning for Free-Hand Sketch: A Surveycited by 59
  14. 2023Controllable Text-to-Image Generation with GPT-4cited by 59
  15. 2024Peer Review as A Multi-Turn and Long-Context Dialogue with Role-Based Interactionscited by 46
  16. 2021In-IDE Code Generation from Natural Language: Promise and Challengescited by 42
  17. 2024PALP: Prompt Aligned Personalization of Text-to-Image Modelscited by 35
  18. 2024MoMA: Multimodal LLM Adapter for Fast Personalized Image Generationcited by 35
  19. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 34
  20. 2024From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editingcited by 31
  21. 2020Analysis of KNN Density Estimationcited by 28
  22. 2023A Huber Loss Minimization Approach to Byzantine Robust Federated Learningcited by 16
  23. 2024MM-Diff: High-Fidelity Image Personalization via Multi-Modal Condition Integrationcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025See it. Say it. Sorted: Agentic System for Compositional Diagram Generation
  2. 2024SketchAgent: Language-Driven Sequential Sketch Generation
  3. 2026GenAI-DrawIO-Creator: A Framework for Automated Diagram Generation
  4. 2026SketchJudge: A Diagnostic Benchmark for Grading Hand-drawn Diagrams with Multimodal Large Language Models
  5. 2025SketchMind: A Multi-Agent Cognitive Framework for Assessing Student-Drawn Scientific Sketches
  6. 2026EvoDiagram: Agentic Editable Diagram Creation via Design Expertise Evolution
  7. 2026Feynman: Knowledge-Infused Diagramming Agent for Scalable Visual Designs
  8. 2024KnobGen: Controlling the Sophistication of Artwork in Sketch-Based Diffusion Models