Class Model Generation from Requirements using Large Language Models
Jackson Nguyen, Rui En Koe, Fanyu Wang, Chetan Arora, Alessio Ferrari

TL;DR
This paper explores using advanced Large Language Models to automatically generate UML class diagrams from natural language requirements, proposing a dual-validation framework to assess their quality and reliability.
Contribution
It introduces a novel approach combining multiple LLMs and a dual-validation framework for automated UML class diagram generation from natural language requirements.
Findings
LLMs can generate coherent UML diagrams from natural language.
The dual-validation framework effectively assesses diagram quality.
LLMs show strong alignment with human evaluations.
Abstract
The emergence of Large Language Models (LLMs) has opened new opportunities to automate software engineering activities that traditionally require substantial manual effort. Among these, class diagram generation represents a critical yet resource-intensive phase in software design. This paper investigates the capabilities of state-of-the-art LLMs, including GPT-5, Claude Sonnet 4.0, Gemini 2.5 Flash Thinking, and Llama-3.1-8B-Instruct, to generate UML class diagrams from natural language requirements automatically. To evaluate the effectiveness and reliability of LLM-based model generation, we propose a comprehensive dual-validation framework that integrates an LLM-as-a-Judge methodology with human-in-the-loop assessment. Using eight heterogeneous datasets, we apply chain-of-thought prompting to extract domain entities, attributes, and associations, generating corresponding PlantUML…
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
TopicsSoftware Engineering Research · Model-Driven Software Engineering Techniques · Software Engineering Techniques and Practices
