Assessing GPT-4-Vision's Capabilities in UML-Based Code Generation
G\'abor Antal, Rich\'ard Voz\'ar, Rudolf Ferenc

TL;DR
This study evaluates GPT-4-Vision's ability to convert UML class diagrams into Java code, showing high accuracy for single-class diagrams but weaker performance with multi-class diagrams, indicating potential and areas for improvement.
Contribution
First assessment of GPT-4-Vision's effectiveness in UML diagram to code translation, highlighting its strengths and limitations in automated software generation.
Findings
88% element accuracy in UML diagram code generation
High proficiency with single-class UML diagrams
Reduced performance with multi-class UML diagrams
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques · Scientific Computing and Data Management · Software Reliability and Analysis Research
