Unified modeling language code generation from diagram images using multimodal large language models

dc.contributor.authorAveri Bates
dc.contributor.authorRyan Vavricka
dc.contributor.authorShane Carleton
dc.contributor.authorRuosi Shao
dc.contributor.authorChongle Pan
dc.date.accessioned2025-12-10T16:45:37Z
dc.date.available2025-12-10T16:45:37Z
dc.date.issued2025-05-07
dc.descriptionFinancial support was provided by the University of Oklahoma Libraries' Open Access Fund.
dc.description.abstractThe 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.
dc.description.peerreviewYes
dc.identifier.bibliographicCitationAveri Bates, Ryan Vavricka, Shane Carleton, Ruosi Shao, Chongle Pan, Unified modeling language code generation from diagram images using multimodal large language models, Machine Learning with Applications, Volume 20, 2025, 100660, ISSN 2666-8270, https://doi.org/10.1016/j.mlwa.2025.100660.
dc.identifier.doi10.1016/j.mlwa.2025.100660
dc.identifier.urihttps://shareok.org//handle/11244/341719
dc.languageen_US
dc.relation.isPartOfMachine Learning with Applications
dc.relation.isPartOfSeries20
dc.rightsAttribution-NonCommercial 4.0 International
dc.subjectUML
dc.subjectLarge language models
dc.subjectmachine learning
dc.subjectcode generation
dc.titleUnified modeling language code generation from diagram images using multimodal large language models
dc.typeArticle
ou.groupGallogly College of Engineering::School of Computer Science

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Bates_2025_Unified_modeling_language_code_generation_from_diagram_images_using_multimodal_large_language_models.pdf
Size:
4.13 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.01 KB
Format:
Item-specific license agreed upon to submission
Description: