English

Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models

Software Engineering 2025-05-16 v2 Machine Learning

Abstract

The Unified Modeling Language is a standardized visual language widely used for modeling and documenting the design of software systems. Although many tools 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 standard fine-tuning with LoRA techniques to optimize base models. The experiments measured 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 scores of 0.779 and 0.942 on sequence diagrams. This will enable the modernization of legacy systems and decrease the manual effort in software development workflows.

Keywords

Cite

@article{arxiv.2503.12293,
  title  = {Unified Modeling Language Code Generation from Diagram Images Using Multimodal Large Language Models},
  author = {Averi Bates and Ryan Vavricka and Shane Carleton and Ruosi Shao and Chongle Pan},
  journal= {arXiv preprint arXiv:2503.12293},
  year   = {2025}
}

Comments

Published in the Journal of Machine Learning with Applications, Author Contributions: Averi Bates: Methodology, Development, Analysis, Data Curation, Drafting, Review. Ryan Vavricka: Data Curation, Development, Review. Shane Carleton: Supervision, Funding. Ruosi Shao: Review. Chongle Pan: Supervision, Review

R2 v1 2026-06-28T22:22:16.408Z