[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-694773-105":59,"doc-detail-694773-en":130,"doc-similar-694773":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","mermaidseqbench-an-evaluation-benchmark-for-nl-to-mermaid-sequence-diagram-generation","MermaidSeqBench - An Evaluation Benchmark for NL-to-Mermaid Sequence Diagram Generation","","Large language models (LLMs) can generate structured diagrams from natural language, especially Mermaid sequence diagrams in software engineering. Existing benchmarks are insufficient to measure correctness, compare models rigorously, and support principled evaluation. MermaidSeqBench addresses this gap with 132 human-verified and synthetically extended samples. An LLM-as-a-judge evaluates syntax correctness, activation and error handling, and practical usability. Initial tests on multiple state-of-the-art models reveal substantial capability gaps across models and judging modes.",{"@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/mermaidseqbench-an-evaluation-benchmark-for-nl-to-mermaid-sequence-diagram-generation/694773/",{"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/mermaidseqbench-an-evaluation-benchmark-for-nl-to-mermaid-sequence-diagram-generation/694773.png","ImageObject",300,407,{"name":92,"@type":93},"Stanford","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-10",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does MermaidSeqBench address?","Question",{"text":112,"@type":113},"MermaidSeqBench addresses the lack of benchmarks that assess LLM correctness when generating Mermaid sequence diagrams from natural-language prompts in a rigorous, systematic, and comparable way.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is the MermaidSeqBench dataset built?",{"text":117,"@type":113},"The benchmark contains 132 samples created from a small manually crafted set and expanded through human annotation, in-context LLM prompting, and rule-based variation generation.",{"name":119,"@type":110,"acceptedAnswer":120},"How are model outputs evaluated in this benchmark?",{"text":121,"@type":113},"Evaluation uses an LLM-as-a-judge to score generations with fine-grained metrics including syntax correctness, activation handling, error handling, and practical usability.","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},694773,1794347728,{"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":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},2336477552062,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","MermaidSeqBench: An Evaluation Benchmark for NL-to-Mermaid Sequence Diagram Generation  \nBasel Shbita  \nIBM Research San Jose, CA [basel@ibm.com](basel@ibm.com)  \nFarhan Ahmed  \nIBM Research San Jose, CA [farhan.ahmed@ibm.com](farhan.ahmed@ibm.com)  \nChad DeLuca  \nIBM Research San Jose, CA[delucac@us.ibm.com](delucac@us.ibm.com)  \narXiv :2511 . 14967v 3 [ cs . SE] 5 Aug 2026  \nAbstract  \nLarge language models (LLMs) have shown great promise in generating structured diagrams from natural language descriptions, particularly Mermaid sequence diagrams for software engineering. However, the lack of existing benchmarks to assess the LLM’s correctness on this task hinders rigorous, systematic evaluation and principled comparison of model capabilities on this task. To address this shortcoming, we introduce MermaidSeqBench, a human-verified and synthetically extended benchmark for assessing LLM capabilities in generating Mermaid sequence diagrams from natural language prompts. The benchmark consists of 132 samples developed via a hybrid methodology of human-verified flows, LLM-based augmentation, and rule-based expansion. The evaluation uses an LLM-as-a-judge model to assess generation across various fine-grained metrics such as syntax correctness, activation handling, error handling, and practical usability. To demonstrate the effectiveness and flexibility of our benchmark, we perform initial evaluations on numerous state-of-the-art LLMs with multiple LLM judges which reveal significant capability gaps across models and evaluation modes. MermaidSeqBench provides a foundation for evaluating structured diagram generation and advances the scientific understanding of LLM capabilities and limitations in structured generation tasks.  \n1 Introduction  \nLarge language models (LLMs) have demonstrated remarkable capabilities in programming tasks such as code generation [Jiang et al., 2024, Huynh and Lin, 2025], code documentation [Chakrabarty and Pal, 2024, Dvivedi et al., 2024], and coding assistants [Li et al., 2025] . Furthermore, they show great promise in generating structured diagrams from natural language descriptions [Guernsey, 2025] . One type of structured diagram is a sequence diagram: a visual model used in software engineering that shows how objects, components, and processes interact with each other over time. Sequence diagrams are most commonly visualized in Unified Modeling Language (UML) [Object Management Group, 2017], but can also be represented in a text-based syntax such as PlantUML [Roques, 2009] or Mermaid [Sveidqvist et al., 2014] . A sample sequence diagram visually represented in UML and textually in Mermaid is shown in Figure 1 .  \nLLMs have proven to be proficient in generating such text-based sequence diagrams [Jahan et al., 2021, Wang et al., 2024] . However, systematic evaluations for assessing an LLM’s correctness in producing sequence diagrams remains largely underdeveloped. This has significant implications for software engineering since sequence diagrams are critical for modeling how components interact overtime. Without a systematic benchmark, it is impossible to rigorously characterize an LLM’s strengthsand weaknesses on this task, or to make principled comparisons across models and evaluation criteria. This has motivated research on developing evaluations for sequence diagram generation such as statistical method [Ferrari et al., 2024] or an LLM-as-a-Judge [Ahmed et al., 2025] .  \nPreprint.  \nsequence Diagram participant Alice  \nparticipant Bob  \nAlice- > > Bob : Hi Bob Bob- > > Alice : Hi Alice  \nFigure 1: A sample sequence diagram visually represented in UML (a UML sequence diagram) and the corresponding Mermaid code to textually represent it (a Mermaid sequence diagram) .  \nMermaid [Sveidqvist et al., 2014], formally known as MermaidJS, is a diagramming tool that uses a Markdown-inspired syntax and is one such text-based method of representing sequence diagrams. Sequence diagrams textually represented in","cbCaijV6c7ZueJle","https://ap.wps.com/l/cbCaijV6c7ZueJle","pdf",577420,27,"English","# 1 Introduction\n## Sequence diagrams and motivation\n## Mermaid sequence diagrams\n# Abstract\n# 1 Introduction","[{\"question\":\"What problem does MermaidSeqBench address?\",\"answer\":\"MermaidSeqBench addresses the lack of benchmarks that assess LLM correctness when generating Mermaid sequence diagrams from natural-language prompts in a rigorous, systematic, and comparable way.\"},{\"question\":\"How is the MermaidSeqBench dataset built?\",\"answer\":\"The benchmark contains 132 samples created from a small manually crafted set and expanded through human annotation, in-context LLM prompting, and rule-based variation generation.\"},{\"question\":\"How are model outputs evaluated in this benchmark?\",\"answer\":\"Evaluation uses an LLM-as-a-judge to score generations with fine-grained metrics including syntax correctness, activation handling, error handling, and practical usability.\"}]","MermaidSeqBench - An Evaluation Benchmark for NL-to-Mermaid Sequence Diagram Generation | PDF",68,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/dfcf78fe31951b2a87f5d2f65385f963.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6b5d70cb68fcda792ba9730eb83f4da4.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ef35bf7febf47f952cd903da52792f29.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b1c4ebcf3050ad77037cf8184f0140ce.webp",980,1268,{"list":163,"token":66},[164,170,176,183,190,196,202,208,215,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":44,"category_name":40,"create_tm":169},657538,"Evaluating Ill-Defined Tasks in Large Language Models - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975551287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=X0SPk2YgKjvr0Nwm%2FKkpe01yIuA%3D","evaluating-ill-defined-tasks-in-large-language-models-paper",1792982552,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":44,"category_name":40,"create_tm":175},655626,"UML Class Diagram Evaluation and Repair Strategies based on LLMs - Preprint","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775571/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=sXrXJF%2Bs77h2nsRaOQbP1ROJPZA%3D","uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint",1792962909,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},156011,"Assessing SPARQL Capabilities of Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869992632/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=1dEBwH%2FdxnpKV8hA19mE1KzWGe8%3D","assessing-sparql-capabilities-of-large-language-models",18,1787942672,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},182931,"2510.05944v1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229877215887/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=HAXR4J3K%2FiFwp1ul9WZgS%2BKbDmQ%3D","251005944v1",16,1788350491,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":44,"category_name":40,"create_tm":195},509857,"SK2Decompile - LLM-based two-phase binary decompilation from skeleton to skin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934854372/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=fbeEomVPRrDQ8UW%2BcOp2weqv56s%3D","sk2decompile-llm-based-two-phase-binary-decompilation-from-skeleton-to-skin",1791237573,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":41,"category_name":40,"create_tm":201},119970,"RRAML - Reinforced Retrieval Augmented Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835295392/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=j9Xv4QroKaxf%2BDBEflLeo2S8ehY%3D","rraml-reinforced-retrieval-augmented-machine-learning",1785727317,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":19,"category_name":40,"create_tm":207},698669,"Exploring the use of large language models indomain-specific language development: an experience report","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010393712/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=IinsHjIc7eldSEwX1v88Za5QMOc%3D","exploring-the-use-of-large-language-models-in-domain-specific-language-development-an-experience-report",1794454390,{"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},289683,"We’re Different, We’re the Same - Creative Homogeneity Across LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903424843/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=sCl3%2FQagru2M0ph8qokKVLp0AG8%3D","were-different-were-the-same-creative-homogeneity-across-llms",24,1789636312,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":40,"create_tm":221},120527,"Large Language Models Synergize with Automated Machine Learning - Text-to-ML program synthesis for ML workflows","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835341069/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=wSQ85p4JK34R1nX%2FP9PfzSYJUjo%3D","large-language-models-synergize-with-automated-machine-learning-text-to-ml-program-synthesis-for-ml-workflows",15,1785730505,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":40,"create_tm":228},81585,"Hair-Trigger Alignment: Black-Box Evaluation Cannot Guarantee Post-Update Alignment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808459259/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=1AtIMJRqJFXJRzBPQozrm6G%2B19c%3D","hair-trigger-alignment-black-box-evaluation-cannot-guarantee-post-update-alignment",25,1784174515]