Abstract
The Unified Modeling Language is a standardized visual language widely usedfor modeling and documenting the design of software systems. Although manytools generate UML diagrams from UML code, generating executable UML code fromimage-based UML diagrams remains challenging. This paper proposes a newapproach to generate UML code using a large multimodal language modelautomatically. Synthetic UML activity and sequence diagram datasets werecreated to train and test the model. We compared standard fine-tuning with LoRAtechniques to optimize base models. The experiments measured code generationaccuracy across different model sizes and training strategies. These resultsdemonstrated that domain-adapted MM-LLMs perform for UML code generationautomation, whereby, at the best model, it achieved BLEU and SSIM scores of0.779 and 0.942 on sequence diagrams. This will enable the modernization oflegacy systems and decrease the manual effort in software developmentworkflows.