SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 1918-1926.
https://doi.org/10.24963/ijcai.2025/214
Keywords
- Computer Vision: CV: Image and video synthesis and generation
Abstract
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.
@inproceedings{ijcai2025p214,
title = {SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches},
author = {Tan, Cheng and Chen, Qi and Wei, Jingxuan and Wu, Gaowei and Gao, Zhangyang and Li, Siyuan and Yu, Bihui and Guo, Ruifeng and Li, Stan Z.},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {1918--1926},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/214},
url = {https://doi.org/10.24963/ijcai.2025/214},
}
TY - CPAPER TI - SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches AU - Tan, Cheng AU - Chen, Qi AU - Wei, Jingxuan AU - Wu, Gaowei AU - Gao, Zhangyang AU - Li, Siyuan AU - Yu, Bihui AU - Guo, Ruifeng AU - Li, Stan Z. T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 1918 EP - 1926 DO - 10.24963/ijcai.2025/214 UR - https://doi.org/10.24963/ijcai.2025/214 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: