[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655626-105":59,"doc-detail-655626-en":130,"doc-similar-655626":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","uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint","UML Class Diagram Evaluation and Repair Strategies based on LLMs - Preprint","","UML class diagrams define the structure of software systems, yet producing accurate and complete diagrams remains difficult and depends heavily on practitioner expertise. Large language models (LLMs) create new possibilities for software modeling, but systematic evaluation and effective repair for UML class diagram generation are still limited. This study experimentally assesses mainstream LLMs on typical cases using SDMetrics and expert review across size, completeness, relationship correctness, inheritance hierarchy, and rule compliance. Findings identify common LLM defects and propose targeted repair strategies.",{"@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/uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint/655626/",{"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/uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint/655626.png","ImageObject",300,407,{"name":92,"@type":93},"Riley West","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-01","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the paper evaluate about LLM-generated UML class diagrams?","Question",{"text":112,"@type":113},"It evaluates practical performance across size and completeness, relationship correctness, inheritance hierarchy, and compliance with design rules using SDMetrics and expert manual review.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which defects are observed in UML class diagrams generated by LLMs?",{"text":117,"@type":113},"The study reports incomplete identification of key classes, confusion or omissions in relationships, insufficient or absent inheritance relationships, unused classes, circular dependencies, and other structural issues compared with expert-crafted diagrams.",{"name":119,"@type":110,"acceptedAnswer":120},"How do the proposed repair strategies improve the diagrams?",{"text":121,"@type":113},"Three targeted strategies—memory reinforcement, external knowledge injection, and detection-guided automated targeted repair—lead to measurable improvements, including higher repair rates for key class identification, inheritance, and full correction of unused classes and circular dependencies.","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},655626,1793073071,{"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":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":41,"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},1099523885074,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","arXiv : 2608 .28800v 1 [cs .SE] 28 Aug 2026  \nUML Class Diagram Evaluation and Repair Strategies based on LLMs  \nJie Lianga , Peng Liangb,∗, Chong Wangb,∗  \na School of Information Science and Engineering, Wuchang Shouyi University, Wuhan, China b School of Computer Science, Wuhan University, Wuhan, China  \nAbstract  \nUML class diagrams are a crucial tool for defining the structure of software systems, but designing accurate and comprehensive class diagrams is a challenging task. Traditionally, creating UML models relies on the expertise and experience of professionals. However, with the development of AI technologies, particularly large language models (LLMs), new opportunities for software modeling have emerged. Despite this, there has been limited research on the application of LLMs in software modeling, especially in UML class diagram modeling. This study adopts an exploratory research paradigm and conducts empirical experiments on several typical software system cases. Combining the SDMetrics measurement tool with expert manual review, this paper comprehensively evaluates the practical performance of mainstream LLMs in UML class diagram modeling from multiple dimensions, including size and completeness, relationship correctness, inheritance hierarchy, and design rule compliance. Focusing on typical defects in LLM-generated UML class diagrams, this study reveals that LLMs exhibit uncertainties analogous to human memory. Accordingly, three targeted repair strategies are proposed, including memory reinforcement, external knowledge injection, and detection-guided automated targeted repair. Experimental results obtained from the case studies indicate that (1) compared to expert-crafted class diagrams, LLMgenerated UML class diagrams exhibit several issues, such as incomplete identification of key classes, confusion or omissions in relationships, insufficient or absent inheritance relationships, unused classes, and circular dependencies, and (2) after applying the repair methods, all the LLMs show varying degrees of improvement in addressing these issues. The average repair rate for key class identification reaches 85%, the coupling relationship repair rate is 46%, the inheritance relationship repair rate is 69%, while repair rates for unused classes and circular dependencies both reach 100% . This study highlights both the practical limitations and optimization potential of LLM-based UML modeling, offering empirical insights and actionable strategies for advancing intelligent software modeling research.  \nKeywords: UML Class Diagram, Software Modeling, Large Language Model, Memory Reinforcement, Class Diagram Repair  \n1. Introduction  \nSoftware modeling is a critical component of software engineering and directly affects the performance and reliability of the final software product [1] . UML class diagrams, as an important tool for defining software system architecture, visually represent classes, their attributes, methods, and relationships [1] . They serve as a crucial bridge for transforming domain knowledge into executable designs. However, constructing high-quality class diagrams poses two major challenges. On the one hand, requirements analysis requires abstracting ambiguous business descriptions into structured models that comply with UML semantics, demanding both domain insight and modeling expertise from practitioners [2] . On the other hand, traditional approaches that rely on expert manual design suffer from efficiency bottlenecks and struggle to accommodate the rapid iterations required by agile development [2] .  \nRecent breakthroughs in large language models (LLMs) offer new opportunities to transform software modeling paradigms [3] . LLMs, such as ChatGPT and DeepSeek, demonstrate exceptional capabilities  \n∗ Corresponding author at: School of Computer Science, Wuhan University, China. Tel.: +86 27 68776137; fax: +86 27 68776027.  \nEmail addresses: [liangjie@wsyu.edu.cn](liangjie@wsyu.edu.cn) (Jie Liang), [liang","cbCaif6hF8g7IbOd","https://ap.wps.com/l/cbCaif6hF8g7IbOd","pdf",9864659,"English","# Introduction\n## Motivation and Challenges\n## LLMs for UML Class Diagram Generation\n## Objective and Approach","[{\"question\":\"What does the paper evaluate about LLM-generated UML class diagrams?\",\"answer\":\"It evaluates practical performance across size and completeness, relationship correctness, inheritance hierarchy, and compliance with design rules using SDMetrics and expert manual review.\"},{\"question\":\"Which defects are observed in UML class diagrams generated by LLMs?\",\"answer\":\"The study reports incomplete identification of key classes, confusion or omissions in relationships, insufficient or absent inheritance relationships, unused classes, circular dependencies, and other structural issues compared with expert-crafted diagrams.\"},{\"question\":\"How do the proposed repair strategies improve the diagrams?\",\"answer\":\"Three targeted strategies—memory reinforcement, external knowledge injection, and detection-guided automated targeted repair—lead to measurable improvements, including higher repair rates for key class identification, inheritance, and full correction of unused classes and circular dependencies.\"}]","UML Class Diagram Evaluation and Repair Strategies based on LLMs - Preprint | PDF",1792962909,76,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0472b4ee5999b654adacf7da46198dd7.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/227ab11f855732fa99d88b1433bd7352.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/839d2524e1d14797d9c2163c6497d4f7.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c0c2bb5aa4611d1c866fcef32e22639e.webp",980,1385,{"list":163,"token":66},[164,170,176,182,188,195,201,207,213,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":29,"category_name":40,"create_tm":169},655835,"On the Veriﬁcation of UML/OCL Class Diagrams using Constraint Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974778541/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=HtBj8jaNRwe0Oo6HMyMdP2R5uI8%3D","on-the-verification-of-umlocl-class-diagrams-using-constraint-programming",1792964169,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":34,"category_name":40,"create_tm":175},655650,"A UML profile for feature diagrams - Initiating a model driven engineering approach for software product lines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286660/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=e5aQzA%2FxkSyuZgNIv8w7DK%2Fk6iE%3D","a-uml-profile-for-feature-diagrams-initiating-a-model-driven-engineering-approach-for-software-product-lines",1792963021,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":29,"category_name":40,"create_tm":181},655935,"Class Diagrams - Part 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974780575/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=z0tthq1uFIMiRlCEAg%2Fw2EKm%2FYo%3D","class-diagrams-part-1",1792964996,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":39,"category_name":40,"create_tm":187},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=1796214959&Signature=bkpbOL3UrmK6%2FBKltn67txhzUek%3D","query2diagram-answering-developer-queries-with-uml-diagrams",1793304176,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":40,"create_tm":194},655655,"Assessing the Comprehension of UML Class Diagrams via Eye Tracking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286691/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=3HChZlF5VJRK7eUhxdJy5STbqjg%3D","assessing-the-comprehension-of-uml-class-diagrams-via-eye-tracking",13,1792963031,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":19,"category_name":40,"create_tm":200},694773,"MermaidSeqBench - An Evaluation Benchmark for NL-to-Mermaid Sequence Diagram Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230007445386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=UV9lR7WdGXa41U%2FERf0LGlowsw4%3D","mermaidseqbench-an-evaluation-benchmark-for-nl-to-mermaid-sequence-diagram-generation",1794347728,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":52,"category_name":40,"create_tm":206},655642,"Enhanced Classification of UML Class Diagram Components Using Deep Learning for IT and Engineering Solutions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286523/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=%2B9H%2FdAuOis%2BpmDCTuVqEdXVUfJ8%3D","enhanced-classification-of-uml-class-diagram-components-using-deep-learning-for-it-and-engineering-solutions",1792962987,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":52,"category_name":40,"create_tm":212},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=1796214959&Signature=dYzv156rkNz%2BZnzZMwP8rluUxnY%3D","unified-modeling-language-code-generation-from-diagram-images-using-multimodal-large-language-models",1792964223,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},655679,"Assessing UML Diagrams by GPT: Implications for Education","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287231/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=1nThie6KCa1ZT1GLeZbzlMy4ErA%3D","assessing-uml-diagrams-by-gpt-implications-for-education",12,1792963178,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":193,"category_name":40,"create_tm":225},655550,"Introduction to Unified Modeling Language (UML) - Software Engineering Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284998/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214959&Signature=nWXSDFrKWTJykK11EkKU7ea8ktY%3D","introduction-to-unified-modeling-language-uml-software-engineering-basics",1792962574]