[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655839-105":3,"doc-detail-655839-en":81,"detail-sidebar-cat-0-en-105":116,"doc-similar-655839":163},{"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","unified-modeling-language-code-generation-from-diagram-images-using-multimodal-large-language-models","Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models","","A standardized visual language, UML is widely used to model and document software design, yet converting image- or PDF-based UML diagrams into executable UML code remains difficult. This paper introduces an automated method that generates UML code from diagram images using a large multimodal language model. Synthetic activity and sequence diagram datasets train and evaluate the system, comparing standard fine-tuning with LoRA variants to improve base models. Results assess accuracy across model sizes and strategies, showing strong performance for domain-adapted MM-LLMs and enabling modernization of legacy systems while reducing manual effort.",{"@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/unified-modeling-language-code-generation-from-diagram-images-using-multimodal-large-language-models/655839/",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/unified-modeling-language-code-generation-from-diagram-images-using-multimodal-large-language-models/655839.png","ImageObject",300,407,{"name":42,"@type":43},"Dipper","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",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is generating executable UML code from UML diagrams difficult?","Question",{"text":63,"@type":64},"UML diagrams are commonly stored as static PDFs or images, which limits their use in automated workflows and makes reliable diagram-to-code conversion challenging.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What approach does the paper propose for UML code generation?",{"text":68,"@type":64},"The paper proposes generating UML code from diagram images automatically using a large multimodal language model trained on synthetic UML activity and sequence diagram datasets.",{"name":70,"@type":61,"acceptedAnswer":71},"How did the authors evaluate model performance?",{"text":72,"@type":64},"Experiments measured code generation accuracy across different model sizes and training strategies, comparing standard fine-tuning with LoRA techniques and reporting metrics such as BLEU and SSIM.","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},655839,1793073065,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":97,"read_time":98,"preview_page_count":33,"preview_urls":99},1374404997633,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",8,"arXiv :2503 . 12293v2 [ cs . SE] 15 May 2025  \nUnified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models  \nAveri Batesa , Ryan Vavrickaa , Shane Carletonb , Ruosi Shaoc , Chongle Pana,∗  \na School of Computer Science, University of Oklahoma, 110 W. Boyd St., Norman, OK, US  \nb Enterprise Architecture, MapLarge, 1201 Peachtree Street NE, Building 400, Suite 1750, Atlanta, GA, USc School of Communication, Florida State University, 4100 University Center, Building C, Tallahassee, FL, US  \nAbstract  \nThe Unified Modeling Language is a standardized visual language widely used for modeling and documenting the design of software systems. Although many tools are available that generate UML diagrams from UML code, generating executable UML code from image-based UML diagrams remains challenging. This paper proposes a new approach to generate UML code using a large multimodal language model automatically. Synthetic UML activity and sequence diagram datasets were created to train and test the model. We compared the standard fine-tuning with LoRA techniques to optimize base models. The experiments measured the code generation accuracy across different model sizes and training strategies. These results demonstrated that domain-adapted MM-LLMs perform for UML code generation automation, whereby, at the best model, it achieved BLEU and SSIM of 0.779 and 0.942 on sequence diagrams. This will enable the modernization of legacy systems and decrease the manual effort put into software development workflows.  \nKeywords: UML, Large Language Models, Machine Learning, Code Generation  \n1. Introduction  \nIn software engineering, the Unified Modeling Language (UML) is widely used to represent and analyze complex systems visually (Booch et al., 1998) . UML provides a standardized framework for documenting, designing, and refining software solutions (Lu and Alexandru, 2023 ; Metzner, 2024) . It supports various stages of the development lifecycle by structuring software design and clarifying relationships among components, encouraging collaboration among stakeholders (Koc¸ et al., 2021) . Metzner compares UML proficiency to an architect’s use of blueprints, highlighting its importance in creating systematic, organized design frameworks (Metzner, 2024) .  \nDespite its utility, UML diagrams are often stored in fixed formats such as PDFs or images, limiting their usability in automated workflows. Static formats complicate iterative design tasks,  \n∗Corresponding author.  \nEmail addresses: [averi.j.bates-1@ou.edu](averi.j.bates-1@ou.edu) (Averi Bates), [ryan_vavricka@ou.edu](ryan_vavricka@ou.edu) (Ryan Vavricka),  \n[shane.carleton@maplarge.com](shane.carleton@maplarge.com) (Shane Carleton), [rs24bl@fsu.edu](rs24bl@fsu.edu) (Ruosi Shao), [cpan@ou.edu](cpan@ou.edu) (Chongle Pan)  \nThis is the accepted manuscript version of the article published in Machine Learning with Applications, Volume 20, 2025, Article 100660 . The final version is available at https://doi.org/10.1016/j .mlwa .2025 .100660. Preprint submitted to Machine Learning with Applications May 16, 2025  \nsuch as design verification or consistency checks, particularly in agile development. Moreover, in legacy systems, UML diagrams and corresponding code may become inaccessible, leading to outdated documentation and increasing manual reconstruction efforts. For instance, a bank modernizing its legacy transaction processing system may only have outdated PDFs and scattered notes of its original UML diagrams. Without tools to automate conversion into editable, machinereadable formats, developers must painstakingly reconstruct designs, risking overlooked dependencies, security vulnerabilities, and higher maintenance costs. Similar challenges arise in collaborative environments where static UML diagrams lose relevance over time as project teams evolve. The need for automated UML-to-code generation is becoming increasingly urgent as systems grow in complexity. Man","cbCaicPS0eeW8s2K","https://ap.wps.com/l/cbCaicPS0eeW8s2K","pdf",3173269,38,"English","# Introduction\n## Addressing the Problem","[{\"question\":\"Why is generating executable UML code from UML diagrams difficult?\",\"answer\":\"UML diagrams are commonly stored as static PDFs or images, which limits their use in automated workflows and makes reliable diagram-to-code conversion challenging.\"},{\"question\":\"What approach does the paper propose for UML code generation?\",\"answer\":\"The paper proposes generating UML code from diagram images automatically using a large multimodal language model trained on synthetic UML activity and sequence diagram datasets.\"},{\"question\":\"How did the authors evaluate model performance?\",\"answer\":\"Experiments measured code generation accuracy across different model sizes and training strategies, comparing standard fine-tuning with LoRA techniques and reporting metrics such as BLEU and SSIM.\"}]","Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models | PDF",1792964223,96,[100,104,108,112],{"page_no":22,"url":101,"width":102,"height":103},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/da78245c12d71d1e8a0401511ec97831.webp",983,1390,{"page_no":26,"url":105,"width":106,"height":107},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c89d53fc5041dda7938f990469eac1fb.webp",982,1388,{"page_no":30,"url":109,"width":110,"height":111},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/324d8328f9c516eb0175f8dbe67c9f81.webp",981,1387,{"page_no":33,"url":113,"width":114,"height":115},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/727738b20d7341a53a6b33fb93390190.webp",980,1385,{"code":4,"msg":82,"data":117},[118,122,126,130,135,140,145,148,152,155,159],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":124,"slug":125},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":128,"slug":129},"Exam",70,"exam",{"id":131,"doc_module":4,"doc_module_name":25,"category_name":132,"show_sort_weight":133,"slug":134},5,"Comic",60,"comic",{"id":136,"doc_module":4,"doc_module_name":25,"category_name":137,"show_sort_weight":138,"slug":139},6,"Technology",50,"technology",{"id":141,"doc_module":4,"doc_module_name":25,"category_name":142,"show_sort_weight":143,"slug":144},7,"Healthcare",40,"healthcare",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":146,"slug":147},30,"research-report",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":149,"show_sort_weight":150,"slug":151},"Religion & Spirituality",20,"religion-spirituality",{"id":150,"doc_module":4,"doc_module_name":25,"category_name":153,"show_sort_weight":150,"slug":154},"World Cup","world-cup",{"id":156,"doc_module":4,"doc_module_name":25,"category_name":157,"show_sort_weight":156,"slug":158},10,"Lifestyle","lifestyle",{"id":160,"doc_module":4,"doc_module_name":25,"category_name":161,"show_sort_weight":131,"slug":162},19,"General","general",{"list":164,"token":11},[165,172,179,185,191,197,203,210,217,223],{"doc_id":166,"doc_title":167,"file_type":90,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},510272,"Drag-and-Drop LLMs - Zero-Shot Prompt-to-Weights","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935338392/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=h3IsoLROv1AJwvNFWhrTkrJPetI%3D","drag-and-drop-llms-zero-shot-prompt-to-weights",15,1791240164,{"doc_id":173,"doc_title":174,"file_type":90,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},125985,"Retrieval-Augmented Mixture of LoRA Experts for Uploadable Machine Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838691838/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=qVZwKncvGBiM%2Blk6pqRHRJuVKEw%3D","retrieval-augmented-mixture-of-lora-experts-for-uploadable-machine-learning",27,1785902394,{"doc_id":180,"doc_title":181,"file_type":90,"home_preview_img_url":182,"slug":183,"view_count":156,"category_name":29,"create_tm":184},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=1796110019&Signature=PrajpHDBQqwARvqiY5NyyRffYh8%3D","cas2uml-a-handwritten-sketch-to-plantuml-dataset-for-class-and-activity-diagrams",1792963461,{"doc_id":186,"doc_title":187,"file_type":90,"home_preview_img_url":188,"slug":189,"view_count":86,"category_name":29,"create_tm":190},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=1796110019&Signature=1BrmGX1TeW3AvH5Nx9SnXhEVytk%3D","query2diagram-answering-developer-queries-with-uml-diagrams",1793304176,{"doc_id":192,"doc_title":193,"file_type":90,"home_preview_img_url":194,"slug":195,"view_count":141,"category_name":29,"create_tm":196},661240,"Vision-Language Dataset Distillation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229980244735/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=aSdho0aCW2qxA%2BCDh7Zny8L9xwc%3D","vision-language-dataset-distillation",1793161224,{"doc_id":198,"doc_title":199,"file_type":90,"home_preview_img_url":200,"slug":201,"view_count":55,"category_name":29,"create_tm":202},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=1796110019&Signature=pQL7sKnzpH86yYvuIr20gktKa9E%3D","uml-class-diagram-evaluation-and-repair-strategies-based-on-llms-preprint",1792962909,{"doc_id":204,"doc_title":205,"file_type":90,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":29,"create_tm":209},477994,"Compositional Chain-of-Thought Prompting for Large Multimodal Models - CVPR 2024 paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926725244/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=OYIL961PTvCBjMVE8hPUGl8UO3E%3D","compositional-chain-of-thought-prompting-for-large-multimodal-models-cvpr-2024-paper",14,1790790745,{"doc_id":211,"doc_title":212,"file_type":90,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},83898,"Localized LoRA-MoE Block-wise Low-Rank Experts With Adaptive Routing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809006062/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=dbUEkknvPsAKZfZLj9SilCM4VLw%3D","localized-lora-moe-block-wise-low-rank-experts-with-adaptive-routing",31,1784191305,{"doc_id":218,"doc_title":219,"file_type":90,"home_preview_img_url":220,"slug":221,"view_count":55,"category_name":29,"create_tm":222},655546,"UNIFIED MODELING LANGUAGE (UML) OVERVIEW - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284951/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=J6tirSk%2BOPC7kxVXlNzr%2BUnGmm0%3D","unified-modeling-language-uml-overview-document",1792962562,{"doc_id":224,"doc_title":225,"file_type":90,"home_preview_img_url":226,"slug":227,"view_count":136,"category_name":29,"create_tm":228},655549,"An Overview of Structural UML Diagrams - Structural UML Diagrams Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284991/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=0mRcvWkhwlIkCSf9%2Fg%2BfQ5glFgk%3D","an-overview-of-structural-uml-diagrams-structural-uml-diagrams-overview",1792962572]