[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-678096-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-678096-en":130,"doc-similar-678096":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","querydiagrameval-evaluating-and-benchmarking-llm-diagram-generation-under-noisy-conditions","QUERYDIAGRAMEVAL - Evaluating and Benchmarking LLM Diagram Generation under Noisy Conditions","","Chat assistants increasingly require large language models to convert free-form user prose into structured, executable diagrams. Such requests contain noisy characteristics: informal phrasing, hedging, mixed jargon, incompleteness, and indirect descriptions expressed in workflow language rather than diagram vocabulary. Diagram evaluation is difficult because multiple correct diagram structures can match one noisy query and reference-free judges can be unstable. QUERYDIAGRAMEVAL (QDE) scores outputs against raw queries using compilation correctness gates and a semantic-fidelity audit grounded in code-parsed structural facts, showing strong alignment with human ratings.",{"@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/querydiagrameval-evaluating-and-benchmarking-llm-diagram-generation-under-noisy-conditions/678096/",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/querydiagrameval-evaluating-and-benchmarking-llm-diagram-generation-under-noisy-conditions/678096.png","ImageObject",300,407,{"name":42,"@type":43},"A glass of water","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-11-04",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does QUERYDIAGRAMEVAL (QDE) address in LLM diagram generation?","Question",{"text":63,"@type":64},"QDE targets the challenge of evaluating diagrams generated from noisy user text where many different diagrams could satisfy the same indirect request, making reference-based and reference-free evaluation difficult.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does QDE evaluate diagram generation under noisy conditions?",{"text":68,"@type":64},"QDE first applies deterministic compilation gates (syntax, rendering, and diagram-type correctness), then performs a semantic-fidelity audit using a multimodal auditor grounded in type-specific structural facts parsed from the generated code.",{"name":70,"@type":61,"acceptedAnswer":71},"What is MERMAIDBENCH and how does it support robustness evaluation?",{"text":72,"@type":64},"MERMAIDBENCH is a benchmark of query–gold pairs across multiple Mermaid diagram types and four query-difficulty tiers, with a multi-turn refinement track, keeping the gold diagram fixed to isolate robustness to input-side noise.","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},678096,1793784209,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,105,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":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"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":55,"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":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":33,"preview_urls":145},962090760832,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","QUERYDIAGRAMEVAL: Evaluating and Benchmarking LLM Diagram  \nGeneration under Noisy Conditions  \nTed Zhang1 , Souvik Das1 , Kai Ni 1 , Aditya Agrawal 1 , Xin Guo 1 , Denis Kochedykov 1  \n1J.P.Morgan Chase & Co.  \n[ce.zhang@jpmchase.com](ce.zhang@jpmchase.com)  \nAbstract  \nChat assistants increasingly ask large language models to turn free-form user prose into structured, executable diagrams. These requests are noisy user-generated text: informal, hedged, jargon-mixed, incomplete, and often describing the target only indirectly—in workflow language rather than diagram vocabulary. Evaluation is hard because many distinct diagrams satisfy the same noisy request, making referencebased metrics too rigid where no ground truth exists, while reference-free LLM judges give weak, hard-to-reproduce diagnostics. We introduce QUERYDIAGRAMEVAL (QDE), a reference-free protocol scoring diagram generation directly against raw, noisy queries via two levels: deterministic compilation gates (syntax, rendering, diagram-type correctness), then a semantic-fidelity layer where a multimodal auditor is grounded in type-specific structural facts parsed from the code. On 255 annotated predictions, QDE aligns strongly with holistic human ratings (ρ = 0 .715), outperforming an ungrounded LLM judge. We also release MERMAIDBENCH, a source-grounded benchmark of 1,150 query–gold pairs over 11 diagram types, four query-difficulty tiers, and a multi-turn track, with the gold held fixed to isolate robustness to input-side noise. Furthermore, we conduct experiments on eight frontiermodel and harnesses to show that the our agentic framework reaches near-gold quality while failures concentrate in topology preservation, label grounding, and type-specific syntax.  \n1 Introduction  \nLarge language models (LLMs) are increasingly asked to turn user-generated natural-language requests into structured, executable artifacts (Naveed et al., 2024) . Diagram generation is a particularly demanding case: in chat assistants such as GitHub Copilot, Claude Code, and ChatGPT, users routinely ask models to turn free-form prose into flowcharts, sequence diagrams, ER diagrams, Gantt  \ncharts, and other visual specifications (Zala et al., 2024) . In production these requests are noisy user text: informal, hedged, jargon-mixed, incomplete, and often describing the target only indirectly—in workflow language rather than diagram vocabulary. The gap between what the user typed and what the diagram must depict is precisely the noisy-text challenge, but the downstream artifact is now a compilable typed visual program.  \nEvaluation methods inherited from code  \ngeneration benchmarks such as HumanEval (Chenet al., 2021), MBPP (Austin et al., 2021), and SWE-bench (Jimenez et al., 2024) do not transfer: diagrams compile into visual artifacts rather than executable behaviour, and many structurally distinct diagrams may all be valid answers to a single noisy query, making exact-match and pixelsimilarity metrics against a gold reference brittle (Liang and You, 2025) . Deployment is also inherently reference-free—only the user’s noisy query is available at inference—so reference-based metrics are unusable for online evaluation, A/B testing, or guardrails on user traffic. Silent semantic failures (a rendered flowchart with a reversed arrow or a missing service) are far more costly than syntax errors, yet “does it render?” CI checks miss them and human review does not scale.  \nWe study these challenges in Mermaid 1 , a widely deployed text-to-diagram language whose typed structure (flowchart nodes/edges, sequence participants/messages, ER entities/relations, etc.) enables automatic checking while still requiring the evaluator to judge intent expressed in unconstrained, potentially noisy natural language.  \nWe introduce a reference-free evaluation protocol, QUERYDIAGRAMEVAL (QDE), and a Mermaid benchmark, MERMAIDBENCH, that jointly stress-test diagram generation under noisy user text. QDE first applies d","cbCaiokspUVtHTYq","https://ap.wps.com/l/cbCaiokspUVtHTYq","pdf",1030280,22,"English","# Abstract\n# 1 Introduction\n## Evaluation methods inherited from code generation benchmarks\n## Mermaid and reference-free evaluation protocol\n# 2 Related Work","[{\"question\":\"What problem does QUERYDIAGRAMEVAL (QDE) address in LLM diagram generation?\",\"answer\":\"QDE targets the challenge of evaluating diagrams generated from noisy user text where many different diagrams could satisfy the same indirect request, making reference-based and reference-free evaluation difficult.\"},{\"question\":\"How does QDE evaluate diagram generation under noisy conditions?\",\"answer\":\"QDE first applies deterministic compilation gates (syntax, rendering, and diagram-type correctness), then performs a semantic-fidelity audit using a multimodal auditor grounded in type-specific structural facts parsed from the generated code.\"},{\"question\":\"What is MERMAIDBENCH and how does it support robustness evaluation?\",\"answer\":\"MERMAIDBENCH is a benchmark of query–gold pairs across multiple Mermaid diagram types and four query-difficulty tiers, with a multi-turn refinement track, keeping the gold diagram fixed to isolate robustness to input-side noise.\"}]","QUERYDIAGRAMEVAL - Evaluating and Benchmarking LLM Diagram Generation under Noisy Conditions | PDF",55,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1170c21f78c914a8895377088385b3af.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8c03e6b43e2cf5dbb4f4cf0e1469ed73.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/65f3cb766f8493e317cb89c8073d3e4c.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/adcc34e3bd2ef9cc3d1a17287db39f97.webp",980,1385,{"list":163,"token":11},[164,171,178,184,190,197,203,210,216,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},273742,"Toward Auto-Research - Mining Falsifiable Research Ideas from Paper Knowledge Graphs with Categorical Structure - A Preprint","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899556345/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=q7eXEGzvaDoq%2BdwOgf2mxoFqLGs%3D","toward-auto-research-mining-falsifiable-research-ideas-from-paper-knowledge-graphs-with-categorical-structure-a-preprint",16,1789472686,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},273509,"Uncertainty-Aware Decision Making in Multimodal Large Language Models - A Survey of Sources, Signals, Calibration, and Actions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899943752/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=7AYLdwA01kbvgrdIekIpY21JWZ8%3D","uncertainty-aware-decision-making-in-multimodal-large-language-models-a-survey-of-sources-signals-calibration-and-actions",18,1789471790,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":139,"category_name":29,"create_tm":183},86220,"From GUI Tests to Conversational Interaction: A New Perspective on App-Specific Voice Assistants","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809390303/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=JT7yOcuPrKfHUNOCkgaKgADi%2F6Y%3D","from-gui-tests-to-conversational-interaction-a-new-perspective-on-app-specific-voice-assistants",1784209575,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":115,"category_name":29,"create_tm":189},655839,"Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974778811/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=9n6Ak5CP9ySMIqkJ2PJNDUuRZIY%3D","unified-modeling-language-code-generation-from-diagram-images-using-multimodal-large-language-models",1792964223,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},85519,"OpenEarthAgent: A Unified Framework for Tool-Augmented Geospatial Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809320667/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=WOT79XGO2N2T2U%2Bm%2BWM0ACwnvew%3D","openearthagent-a-unified-framework-for-tool-augmented-geospatial-agents",32,1784204146,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":111,"category_name":29,"create_tm":202},496409,"How Do Analysts Understand and Verify AI-Assisted Data Analyses","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929469689/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=r5bLclBJFer38vK2ycfRlLv1aKE%3D","how-do-analysts-understand-and-verify-ai-assisted-data-analyses",1790931799,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":29,"create_tm":209},85559,"From Paper to Program Knowledge Externalization and Bottleneck Diagnosis in AI-Assisted Quantum Many-Body Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809326986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=zPosOTlWSeGCqwN4YdazaDNOLk8%3D","from-paper-to-program-knowledge-externalization-and-bottleneck-diagnosis-in-ai-assisted-quantum-many-body-programming",29,1784204562,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":169,"category_name":29,"create_tm":215},327575,"Object-Centric Environment Modeling for Agentic Tasks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909091142/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=Vi1V8bk1qm70SGOIF69AN1p2HW8%3D","object-centric-environment-modeling-for-agentic-tasks",1789977593,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":195,"category_name":29,"create_tm":221},83493,"Know When to Stop: Segment-Level Credit Assignment for Reducing Overthinking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808983672/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=hd5LinU2wxnZBam%2B5V4rJ8Mkvt8%3D","know-when-to-stop-segment-level-credit-assignment-for-reducing-overthinking",1784188414,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":29,"create_tm":228},82680,"TAG A Lightweight Framework for Test-Driven Agentic Artifact Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808777673/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109239&Signature=OUPnANhsVG9prkgA9a%2Fc44%2FLeTQ%3D","tag-a-lightweight-framework-for-test-driven-agentic-artifact-generation",33,1784182245]