arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.11376cs.SE
收藏

从图像到 UML:使用 LLM 进行基于图像的 UML 图生成的初步结果

From Image to UML: First Results of Image Based UML Diagram Generation Using LLMs

Aaron Conrardy, Jordi Cabot

AI总结:

本文评估多种 LLM 将 UML 类图图像转换为形式化模型的能力,证明其可纳入模型驱动工程流水线,同时指出局限并强调人机协同。

摘要:

在软件工程过程中,系统首先使用 UML 等建模语言进行规约。这些初始设计通常是协作创建的,很多时候是在会议中由不同领域专家使用白板、纸张或其他类型的快速载体来绘制图形和蓝图,随后还需要将其形式化。这些规范的、机器可读的模型对于确保模型能够成为自动化过程(例如低代码生成流水线、基于模型的测试系统等的输入)的一部分至关重要。但是,从手绘图形转换为实际模型是一个耗时的过程,有时这些图形最终只是作为非正式图像添加到软件文档中,从而大幅降低了其价值。为避免这项繁琐任务,我们探索使用 Large Language Models(LLM,大语言模型)根据给定图形生成(UML)模型的形式化表示。更具体地说,我们评估了不同 LLM 将 UML 类图图像转换为图像所表示的实际模型的能力。虽然结果已经足够好,可以将这种方法用作模型驱动工程流水线的一部分,但我们也强调了它们当前的一些局限性,以及需要保持人类参与以克服这些局限性。

英文摘要:

In software engineering processes, systems are first specified using a modeling language such as UML. These initial designs are often collaboratively created, many times in meetings where different domain experts use whiteboards, paper or other types of quick supports to create drawings and blueprints that then will need to be formalized. These proper, machine-readable, models are key to ensure models can be part of automated processes (e.g. input of a low-code generation pipeline, a model-based testing system, ...). But going from hand-drawn diagrams to actual models is a time-consuming process that sometimes ends up with such drawings just added as informal images to the software documentation, reducing their value a lot. To avoid this tedious task, we explore the usage of Large Language Models (LLM) to generate the formal representation of (UML) models from a given drawing. More specifically, we have evaluated the capabilities of different LLMs to convert images of UML class diagrams into the actual models represented in the images. While the results are good enough to use such an approach as part of a model-driven engineering pipeline we also highlight some of their current limitations and the need to keep the human in the loop to overcome those limitations.

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

↑