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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Antal, Gábor, Vozár, Richárd, Ferenc, Rudolf
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910417812455424
author Antal, Gábor
Vozár, Richárd
Ferenc, Rudolf
author_facet Antal, Gábor
Vozár, Richárd
Ferenc, Rudolf
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14370
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Assessing GPT-4-Vision's Capabilities in UML-Based Code Generation
Antal, Gábor
Vozár, Richárd
Ferenc, Rudolf
Software Engineering
Artificial Intelligence
Programming Languages
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.
title Assessing GPT-4-Vision's Capabilities in UML-Based Code Generation
topic Software Engineering
Artificial Intelligence
Programming Languages
url https://arxiv.org/abs/2404.14370