Behavioral Augmentation of UML Class Diagrams: An Empirical Study of Large Language Models for Method Generation
Djaber Rouabhia, Ismail Hadjadj

TL;DR
This study evaluates nine large language models for automatically generating behavioral methods in UML class diagrams from natural language use cases, demonstrating their potential to enhance automated behavioral modeling while highlighting areas for improvement.
Contribution
It provides an empirical assessment of LLMs in augmenting UML diagrams with behavioral methods, showcasing their strengths and limitations in a structured experimental setting.
Findings
All LLMs produced valid UML diagrams.
Some models excelled in method coverage and annotation accuracy.
Inconsistencies in annotations and signatures indicate need for better prompt engineering.
Abstract
Automating the enrichment of UML class diagrams with behavioral methods from natural language use cases is a significant challenge. This study evaluates nine large language models (LLMs) in augmenting a methodless UML diagram (21 classes, 17 relationships) using 21 structured waste-management use cases. A total of 90 diagrams (3,373 methods) were assessed across six metrics: method quantity, signature richness (visibility, names, parameters, return types), annotation completeness (linking to use cases/actions), structural fidelity, syntactic correctness (PlantUML compilation), and naming convergence (across models). All LLMs produced valid PlantUML diagrams adhering to UML conventions. Some models excelled in method coverage and annotation accuracy, while others showed richer parameterization but weaker traceability. These results demonstrate that LLMs can generate well-structured…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques · Software Engineering Research · Business Process Modeling and Analysis
