[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655890-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655890-en":130,"doc-similar-655890":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","sketchagent-generating-structured-diagrams-from-hand-drawn-sketches-655890","SketchAgent - Generating Structured Diagrams from Hand-Drawn Sketches","","Hand-drawn sketches capture and communicate ideas quickly, but converting them into structured, machine-readable diagrams remains largely manual due to sketch ambiguity and missing structural constraints. SketchAgent is a multiagent system that automates sketch-to-diagram transformation by combining sketch recognition, symbolic reasoning, and iterative validation. It produces semantically coherent and structurally accurate diagrams while reducing manual effort. Evaluation uses the Sketch2Diagram Benchmark covering eight diagram categories with 6,000+ annotated examples and rigorous quality control, supporting design, education, and engineering.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/sketchagent-generating-structured-diagrams-from-hand-drawn-sketches-655890/655890/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/sketchagent-generating-structured-diagrams-from-hand-drawn-sketches-655890/655890.png","ImageObject",300,407,{"name":42,"@type":43},"SANS","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the main problem SketchAgent addresses?","Question",{"text":63,"@type":64},"Turning ambiguous hand-drawn sketches into structured, machine-readable diagrams using automated methods.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does SketchAgent perform the sketch-to-diagram transformation?",{"text":68,"@type":64},"It uses sketch recognition to create a symbolic code representation, then applies symbolic reasoning and iterative refinement with verification to satisfy structural constraints and user intent.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the Sketch2Diagram Benchmark used for?",{"text":72,"@type":64},"It provides a dataset and evaluation framework with over 6,000 examples across eight diagram categories, supporting training and assessment of sketch-to-diagram models.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655890,1793073269,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":115,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":144,"preview_page_count":33,"preview_urls":145},962090760505,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches  \nCheng Tan 1 ,2∗, Qi Chen3 ,4∗, Jingxuan Wei3 ,4†∗, Gaowei Wu3 ,4∗, Zhangyang Gao 1 ,2 , Siyuan Li 1 ,2 ,  \nBihui Yu3 ,4 , Ruifeng Guo3 ,4 , Stan Z. Li 1†  \n1Westlake University  \n2Zhejiang University  \n3University of Chinese Academy of Sciences  \n4 Shenyang Institute of Computing Technology, Chinese Academy of Sciences  \n[tancheng@westlake.edu.cn](tancheng@westlake.edu.cn), [weijingxuan20@mails.ucas.edu.cn](weijingxuan20@mails.ucas.edu.cn)  \nAbstract  \nHand-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 multiagent 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  \n6,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 machinereadable diagram generation.  \n1 Introduction  \nHand-drawn sketches are a natural and powerful medium for rapidly conveying ideas, serving as a universal language in creative, technical, and educational workflows [Zhao and Lai, 2022; Zhao et al., 2024; Tan et al., 2024] . From rough brainstorming sessions to preliminary engineering designs, sketches offer an intuitive way to externalize concepts. How  \never, translating these informal and ambiguous drawings into †Corresponding author.  \nstructured, machine-readable diagrams remains an open challenge. Unlike natural image generation tasks [Cao et al., 2024; Huang et al., 2024; Li et al., 2019], which have seen remarkable progress in recent years through techniques such as controllable natural image generation, the sketch-to-diagram task demands more than just visual fidelity—it requires understanding and formalizing the underlying structural and semantic relationships inherent to diagrams.  \nWe introduce a new task, sketch-to-diagram generation, which involves converting a hand-drawn sketch into a structured, machine-readable diagram. As shown in Figure 1, this task differs fundamentally from controllable natural image generation, as it focuses not on generating aesthetically pleasing visuals but on synthesizing a precise, semantically meaningful diagram that adheres to specific structural rules. This transformation requires solving several core challenges: (1) handling the inherent ambiguity and variability in freehand sketches, (2) preserving the spatial and structural relationships between diagram components, and (3) producing an output that is both syntactically valid and semantically aligned with the user’s intent. These challenges make sketch-to-diagram generation a highly specialized and underexplored problem, distinct from existing works.  \nTo address the lack of standardized resources for sketch-todiagram research, we introduce the Sketch2Diagram Benchmark, a comprehensive dataset and evaluation framework designed to ","cbCainfkJnHpMZYs","https://ap.wps.com/l/cbCainfkJnHpMZYs","pdf",2670109,"English","# Introduction\n## Sketch-to-diagram task definition\n## Sketch2Diagram Benchmark\n## SketchAgent system and contributions","[{\"question\":\"What is the main problem SketchAgent addresses?\",\"answer\":\"Turning ambiguous hand-drawn sketches into structured, machine-readable diagrams using automated methods.\"},{\"question\":\"How does SketchAgent perform the sketch-to-diagram transformation?\",\"answer\":\"It uses sketch recognition to create a symbolic code representation, then applies symbolic reasoning and iterative refinement with verification to satisfy structural constraints and user intent.\"},{\"question\":\"What is the Sketch2Diagram Benchmark used for?\",\"answer\":\"It provides a dataset and evaluation framework with over 6,000 examples across eight diagram categories, supporting training and assessment of sketch-to-diagram models.\"}]","SketchAgent - Generating Structured Diagrams from Hand-Drawn Sketches | PDF",1792964615,23,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8c8cd05845e348515c51d22a0bafde9c.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ab0fc2d593f3f3c828a7f328dd0cd253.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5e2da7c4b56c041fd81930a91ec81111.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/50b0d9d84fa32083a314810fd9182f19.webp",980,1268,{"list":163,"token":11},[164,169,175,181,187,193,199,205,211,217],{"doc_id":165,"doc_title":10,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":111,"category_name":29,"create_tm":168},655815,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974778109/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=L6ZiHePi8ZTXjwtRAfTnAHYpFBc%3D","sketchagent-generating-structured-diagrams-from-hand-drawn-sketches",1792964061,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":115,"category_name":29,"create_tm":174},657829,"Arrows are the Verbs of Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975235437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=R4HqOkdFXoQNlNWNe10u7nopj0Y%3D","arrows-are-the-verbs-of-diagrams",1792991595,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":55,"category_name":29,"create_tm":180},655961,"Automating Data Flow Diagram Generation from User Stories Using Large Language Models - Paper 3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975295174/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=W%2BhCxzmN9PsycJ02OqZRiu09JX8%3D","automating-data-flow-diagram-generation-from-user-stories-using-large-language-models-paper-3",1792965144,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":55,"category_name":29,"create_tm":186},656432,"Synthesizing Synchronous Program from Timing Diagram","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975310043/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=dhDFiNCzoHtjZXEXzpelE1WfzZo%3D","synthesizing-synchronous-program-from-timing-diagram",1792968516,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":55,"category_name":29,"create_tm":192},650115,"Electronic Journal of Science Education - Vol. 12 - No. 2 - Students’ Creation and Interpretation of Circuit Diagrams - Research findings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972766665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=27yQeqEyJsVnx0UMMby4Mm2PqqA%3D","electronic-journal-of-science-education-vol-12-no-2-students-creation-and-interpretation-of-circuit-diagrams-research-findings",1792817247,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":111,"category_name":29,"create_tm":198},665443,"Query2Diagram - Answering Developer Queries with UML Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983494381/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=ipb0GOUBlCIl099yPfxKsdqTorc%3D","query2diagram-answering-developer-queries-with-uml-diagrams",1793304176,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":115,"category_name":29,"create_tm":204},654638,"Deep3DSketch+ + - High-Fidelity 3D Modeling from Single Free-hand Sketches","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974533681/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=3YJu75OML27QCoIQgaTVeGqRgRw%3D","deep3dsketch-high-fidelity-3d-modeling-from-single-free-hand-sketches",1792929144,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":30,"category_name":29,"create_tm":210},694736,"LLM-based Business Process Models Generation from Textual Descriptions - Research Findings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230006940799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=E2s1aDAStTia%2BHfV8K8TtUeUUtg%3D","llm-based-business-process-models-generation-from-textual-descriptions-research-findings",1794347557,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":55,"category_name":29,"create_tm":216},664092,"Crime Scene Investigation Laboratory Manual - Exercise J - Crime Scene Documentation: Sketching","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981978473/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=utfcQfBqdM1Ix8Uwa4AziIs7CxM%3D","crime-scene-investigation-laboratory-manual-exercise-j-crime-scene-documentation-sketching",1793239081,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":123,"category_name":29,"create_tm":222},655717,"CAS2UML - A Handwritten Sketch-to-PlantUML Dataset for Class and Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288422/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111759&Signature=lUzu017S94EiUYfkGdVyOwERLT0%3D","cas2uml-a-handwritten-sketch-to-plantuml-dataset-for-class-and-activity-diagrams",1792963461]