← ALB News · curated headline

LLM-based Generation of Diverse and Realistic Domain Model Instances

arXiv Software Engineering · WORLD · Compilers · 11/30/2026, 12:00:00 AM

arXiv:2604.10350v2 Announce Type: replace Abstract: Large Language Models (LLMs) have recently been proposed to support domain modeling tasks, mostly for the completion of partial models. However, another important task is the instantiation of domain models into concrete objects, which has received little attention. Existing generators focus on structural validity, but leave aside whether instances are realistic and diverse, although only such instances are understandable for humans and useful, e.g., for teaching modeling, for model-based testing, or as training data for machine learning. To address this gap, this paper presents LIMoGen (LLM-based Instance Model Generation), an approach that generates UML object diagrams from UML class diagrams with LLMs that use feedback from the USE model validation tool to repair malformed or non-conforming instances. We compare two prompting strategies, a single instruction-based prompt and a Chain-of-Thought strategy that steers the generation toward specific unusual scenarios, such as boundary, edge, and over-constraint cases. We applied LIMoGen to ten domain models and evaluated the generated instances for validity, coverage, diversity, and realism, the latter with domain-specific checks and an LLM-as-a-judge audited by human experts. The results show that all instances are well-formed, conforming, and diverse in values and structure. Most realism problems are inconsistencies between values, which the judge largely detects, as confirmed by the experts. Furthermore, we show that these findings help improve the domain models, as uninstantiated classes suggest abstract classes, over-constraint scenarios reveal multiplicities that are too strict, and realism problems uncover implicit domain knowledge that can be encoded as additional invariants.

Continue to arXiv Software Engineering →

Finished reading? Continue to the original source above — or join the discussion below.