arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.14370cs.SEcs.AIcs.PL
收藏

评估 GPT-4-Vision 在基于 UML 的代码生成中的能力

Assessing GPT-4-Vision's Capabilities in UML-Based Code Generation

University of Szeged(塞格德大学)

Gábor Antal, Richárd Vozár, Rudolf Ferenc

AI总结:

本文评估了 GPT-4-Vision 将 UML 类图转换为 Java 代码的能力,发现其在单类图上表现优异,但在多类图上性能较弱,需进一步研究。

摘要:

高级神经网络的出现为从概念模型自动生成代码开辟了新途径,有望增强软件开发过程。本文对最先进的深度学习模型 GPT-4-Vision 及其将统一建模语言(UML)类图转换为完全可操作的 Java 类文件的能力进行了初步评估。在我们的研究中,我们使用了包含 10 个单类图和 8 个多类图的 18 个类图的导出图像。我们对每个输入使用了 3 个不同的提示,并手动评估了结果。我们创建了一个评分系统,对图中元素在源代码中出现的情况进行评分。平均而言,该模型能够为图中显示的 88% 的元素生成源代码。我们的结果表明,GPT-4-Vision 在处理单类 UML 图方面表现出熟练度,成功将其转换为语法正确的类文件。然而,对于多类 UML 图,与单类图相比,该模型的性能较弱。总之,需要进一步的研究来完全利用该模型的潜力。

英文摘要:

The emergence of advanced neural networks has opened up new ways in automated code generation from conceptual models, promising to enhance software development processes. This paper presents a preliminary evaluation of GPT-4-Vision, a state-of-the-art deep learning model, and its capabilities in transforming Unified Modeling Language (UML) class diagrams into fully operating Java class files. In our study, we used exported images of 18 class diagrams comprising 10 single-class and 8 multi-class diagrams. We used 3 different prompts for each input, and we manually evaluated the results. We created a scoring system in which we scored the occurrence of elements found in the diagram within the source code. On average, the model was able to generate source code for 88% of the elements shown in the diagrams. Our results indicate that GPT-4-Vision exhibits proficiency in handling single-class UML diagrams, successfully transforming them into syntactically correct class files. However, for multi-class UML diagrams, the model's performance is weaker compared to single-class diagrams. In summary, further investigations are necessary to exploit the model's potential completely.

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

↑