PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 8, 20250 citationsOpen Access

Behavioral Augmentation of UML Class Diagrams: An Empirical Study of Large Language Models for Method Generation

View Full Paper
DRDjaber RouabhiaIHIsmail Hadjadj

Key Points

  • Large language models can successfully generate methods for UML class diagrams, indicating their potential utility in software design.
  • Out of 90 diagrams generated, significant variations in method coverage and annotation accuracy were observed across models.
  • The evaluation criteria included method quantity, visibility, naming parameters, and linking annotations to use cases in structural fidelity assessments.
  • Enhanced prompt engineering and model selection may be necessary to address inconsistencies in signatures and annotations during method generation.

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 methods with consistent naming, advancing automated behavioral modeling. However, inconsistencies in annotations and signatures highlight the need for improved prompt engineering and model selection. The rapid generation of these methods supports Agile practices by enabling faster design iterations. Despite their capabilities, human oversight is essential to ensure accuracy, appropriateness, and semantic alignment. This positions LLMs as collaborative partners in software design. All experimental artifacts (. puml,. png,. csv) are publicly available for reproducibility.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Rouabhia et al. (2025) studied this question.

synapsesocial.com/papers/68e6f342f8145af55aeacc30https://doi.org/10.48550/arxiv.2506.00788
Ask AI
Helpful
Bookmark
Share
View Full Paper