[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655815-105":59,"doc-detail-655815-en":130,"doc-similar-655815":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","sketchagent-generating-structured-diagrams-from-hand-drawn-sketches","SketchAgent - Generating Structured Diagrams from Hand-Drawn Sketches","","Hand-drawn sketches provide an intuitive and efficient way to capture ideas, yet converting freehand sketches into structured, machine-readable diagrams remains labor-intensive due to sketch ambiguity and the lack of explicit structural and semantic constraints. SketchAgent, a multiagent system, automates sketch-to-diagram transformation by integrating sketch recognition, symbolic reasoning, and iterative validation. It produces semantically coherent and structurally accurate diagrams while reducing manual effort.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/sketchagent-generating-structured-diagrams-from-hand-drawn-sketches/655815/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/sketchagent-generating-structured-diagrams-from-hand-drawn-sketches/655815.png","ImageObject",300,407,{"name":92,"@type":93},"Angel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does SketchAgent address?","Question",{"text":112,"@type":113},"SketchAgent automates converting hand-drawn sketches into structured, machine-readable diagrams. It targets the difficulty of ambiguity and missing structural constraints in freehand sketches.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does SketchAgent generate structured diagrams?",{"text":117,"@type":113},"SketchAgent integrates sketch recognition, symbolic reasoning, and iterative refinement/validation. It first converts the sketch into a symbolic code representation, then iteratively improves it to satisfy structural constraints and the user’s intent.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the Sketch2Diagram Benchmark?",{"text":121,"@type":113},"Sketch2Diagram is a dataset and evaluation framework covering eight diagram categories. It includes 6,000+ high-quality examples with token-level annotations, standardized preprocessing, and quality control for training and evaluation.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655815,1793073267,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},687207412472,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketches  \nCheng Tan 1 ,2∗, Qi Chen3∗, Jingxuan Wei3∗†, Gaowei Wu3∗, Zhangyang Gao 1 ,2 , Siyuan Li 1 ,2 , Bihui  \nYu3 , Ruifeng Guo3 , Stan Z. Li 1†  \n1Westlake University, 2Zhejiang University, 3University of Chinese Academy of Sciences  \n[tancheng@westlake.edu.cn](tancheng@westlake.edu.cn), [weijingxuan20@mails.ucas.edu.cn](weijingxuan20@mails.ucas.edu.cn)  \narXiv :2508 .0 1237v 1 [ cs .AI] 2 Aug 2025  \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. The benchmark is released at this link.  \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 [Xu et al., 2022b; 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  \n∗Equal contribution †Corresponding author.  \nexternalize concepts. However, translating these informal and ambiguous drawings into structured, 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 eva","cbCainmFNK4CNQL3","https://ap.wps.com/l/cbCainmFNK4CNQL3","pdf",2450328,"English","# Abstract\n# Introduction","[{\"question\":\"What problem does SketchAgent address?\",\"answer\":\"SketchAgent automates converting hand-drawn sketches into structured, machine-readable diagrams. It targets the difficulty of ambiguity and missing structural constraints in freehand sketches.\"},{\"question\":\"How does SketchAgent generate structured diagrams?\",\"answer\":\"SketchAgent integrates sketch recognition, symbolic reasoning, and iterative refinement/validation. It first converts the sketch into a symbolic code representation, then iteratively improves it to satisfy structural constraints and the user’s intent.\"},{\"question\":\"What is the Sketch2Diagram Benchmark?\",\"answer\":\"Sketch2Diagram is a dataset and evaluation framework covering eight diagram categories. It includes 6,000+ high-quality examples with token-level annotations, standardized preprocessing, and quality control for training and evaluation.\"}]","SketchAgent - Generating Structured Diagrams from Hand-Drawn Sketches | PDF",1792964061,23,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/64aefe28985a71595d60f806a97663a0.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/21abb4402fa5d33c34c5d3bef2e6effd.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c3bfca7ea17c7a0f84225f4987a21c35.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/48135a022e1f64cffcd8bc7143c62bed.webp",980,1268,{"list":163,"token":66},[164,169,175,181,187,194,201,208,215,221],{"doc_id":165,"doc_title":65,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":34,"category_name":40,"create_tm":168},655890,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974779713/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=%2Bc%2FSLwWjh1C8jPb7ESoxXZcRZRw%3D","sketchagent-generating-structured-diagrams-from-hand-drawn-sketches-655890",1792964615,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":44,"category_name":40,"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=1796110259&Signature=MK6Jlgu1ye2qIxUQb%2Fz1IHNmSRY%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":44,"category_name":40,"create_tm":180},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=1796110259&Signature=7rZzXtjb%2F7KAYGkR8nBiDaPMVog%3D","deep3dsketch-high-fidelity-3d-modeling-from-single-free-hand-sketches",1792929144,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":40,"create_tm":186},694056,"Structured Annotations for 2D-to-3D Modeling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230007421164/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=IHFSZG2RBBvL8XjwO2b%2FlV24%2FYI%3D","structured-annotations-for-2d-to-3d-modeling",1794343335,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":40,"create_tm":193},85567,"Semantic Richness or Geometric Reasoning? The Fragility of VLM’s Visual Invariance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809274841/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=S6cDY%2Bi57rXeZ641N9IsQVjmGbI%3D","semantic-richness-or-geometric-reasoning-the-fragility-of-vlms-visual-invariance",29,1784204647,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":40,"create_tm":200},83198,"ColorFM An Optimization to Learning Framework for Color Transfer via Flow Matching","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808947216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=gRNC9OayNV81TZkHnKdAGS6BRhQ%3D","colorfm-an-optimization-to-learning-framework-for-color-transfer-via-flow-matching",35,1784185904,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":40,"create_tm":207},81583,"Self-Transcendence: Is External Feature Guidance Indispensable for Accelerating Diffusion Transformer Training","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808628244/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=%2FoP53Iw%2Bx4CbK22YdKfv%2F4%2FepTg%3D","self-transcendence-is-external-feature-guidance-indispensable-for-accelerating-diffusion-transformer-training",25,1784174514,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":40,"create_tm":214},83184,"ShapeTalk: Combining Natural Language and Sketch for Time-Series Pattern Querying","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808945506/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=cr2nEa8g9Rh7Rpg4JMP7WcWRu0M%3D","shapetalk-combining-natural-language-and-sketch-for-time-series-pattern-querying",22,1784185822,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":81,"category_name":40,"create_tm":220},677539,"AI-Based Extraction and Management of Text and View Information from 2D Bridge Engineering Drawings - paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229993987102/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=0h1w8RrTcBXNgZRAU0U%2B4rsf2Kc%3D","ai-based-extraction-and-management-of-text-and-view-information-from-2d-bridge-engineering-drawings-paper",1793779178,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":34,"category_name":40,"create_tm":226},656108,"Semantic Data Flow Diagrams and Their Security Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=t5KMr%2FYr84kqVEl7rEglRxTXHxc%3D","semantic-data-flow-diagrams-and-their-security-analysis",1792966447]