arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.12293cs.SEcs.LG
收藏

使用多模态大语言模型从图表图像生成统一建模语言代码

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

University of Oklahoma(俄克拉荷马大学);MapLarge(MapLarge公司);Florida State University(佛罗里达州立大学)

Averi Bates, Ryan Vavricka, Shane Carleton, Ruosi Shao, Chongle Pan

AI总结:

针对 UML 图表图像难以逆向生成可执行代码的问题,本文构建合成活动图与序列图数据集,采用标准微调和 LoRA 优化多模态大模型,最佳模型在序列图上取得 BLEU 0.779、SSIM 0.942。

摘要:

统一建模语言(Unified Modeling Language,UML)是一种标准化的可视化语言,广泛用于对软件系统设计进行建模和文档化。尽管许多工具能够从 UML 代码生成 UML 图表,但从基于图像的 UML 图表生成可执行的 UML 代码仍然具有挑战性。本文提出一种利用大型多模态语言模型自动生成 UML 代码的新方法。研究创建了合成的 UML 活动图和序列图数据集,用于训练和测试模型。我们比较了标准微调与 LoRA 技术,以优化基础模型。实验测量了不同模型规模和训练策略下的代码生成准确率。结果表明,经过领域适配的 MM-LLM 可实现 UML 代码生成自动化;其中,最佳模型在序列图上取得了 0.779 的 BLEU 分数和 0.942 的 SSIM 分数。这将推动遗留系统现代化,并减少软件开发工作流程中的人工工作量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑