Skip to content
Book Open access

LLM-Enhanced Stochastic Generation of Class Diagram Datasets

Oct 2026 · Proceedings of the ACM/IEEE 29th International Conference on Model Driven Engineering Languages and Systems · pp. 212-223 · 0 citations · 33 references

TL;DR

CDGen, a neuro-symbolic pipeline for synthesizing large-scale Text-Class Diagram (TXT-CD) datasets, is introduced and CDSyn10K—a large-scale TXT-CD dataset with 10,000 description-model pairs across 2,000 business domains is constructed.

Abstract

Large language models (LLMs) excel at code-centric and algorithmic tasks, but their software design and modeling capabilities remain limited. Unlike abundant code that enables strong generation performance, the scarcity of high-quality design corpora in the training data restricts their software modeling comprehension. A practical solution is to automatically build large-scale, task-specific datasets for training and evaluating software modeling neural networks. This paper introduces CDGen, a neuro-symbolic pipeline for synthesizing large-scale Text-Class Diagram (TXT-CD) datasets. The pipeline consists of five core phases plus one optional augmentation step: first, a stochastic generator produces CD skeletons with random structures and identifiers; second, an LLM grounds skeletons to business domains by replacing random identifiers with domain concepts; third, CDs are refined via a hybrid LLM and rule-based fixing approach to improve quality; fourth, an LLM generates CD-aligned textual descriptions via few-shot prompting; fifth, alignment validation filters valid description-CD pairs for dataset storage. The optional augmentation step injects controlled noise into texts to mimic real-world description-model inconsistencies. Using this pipeline, we constructed CDSyn10K—a large-scale TXT-CD dataset with 10,000 description-model pairs across 2,000 business domains. Evaluations show CDSyn10K diagrams are highly diverse and comparable to expert-made artifacts. To demonstrate the effectiveness, we fine-tuned Qwen3-0.6B and Qwen3-8B on CDSyn10K to build Qw-OOD-0.6B and Qw-OOD-8B, which surpass the same-size generic LLMs on class diagram modeling tasks.

Read PDF

Similar papers

Open access

Evaluation and Distillation of Source Code Generation Tasks by Large Language Models

Two novel contributions are introduced: CodeEval and CodeQual, an open-source execution framework that provides researchers with a ready-to-use evaluation pipeline for evaluating and improving LLMs in software engineering contexts, encompassing both functional correctness assessment and subjective code quality evaluati...

Danny Brahman · 0 citations
#small language model Review Sep 2026

Decoding the Giants: a systematic taxonomy and empirical analysis of large language model architectures, training, and applications

This comprehensive survey provides an in-depth analysis of modern LLMs, with a systematic comparison of cutting-edge proprietary and open-source architectures including DeepSeek, GPT-4, Gemini, LLaMA, and Claude.

Mohamed Nazih Omri, B. Louhichi · 0 citations

Capacity vs. architecture: an evaluation of SLMs for automated docstring generation

A reproducible, human-validated evaluation framework applied to 13 strategies—four architectural families crossed with four reasoning variants crossed with four reasoning variants—across three SLMs spanning 3B–14B parameters, plus targeted ablations.

Balaji Venktesh, Amsaprabhaa M, G. Sundaram · 0 citations
#artificial intelligence Preprint Sep 2026

Retrieval-Augmented Generation for Scientific Code Understanding

The results indicate that front-loading code understanding into a reusable, codebase-specialised vector store enables small local models to deliver grounded and repository-specific answers, making the agent well suited as a privacy-preserving development tool for in-house scientific codebases.

Aaron Nobile, Andreas Adelmann, Mohsen Sadr · 0 citations
#software testing Book Open access Oct 2026

LLM-Based Instance Model Generation via Code Synthesis

This paper proposes an approach that reformulates the generation problem as a code generation task, on which the LLMs excel, and evaluates the approach along four dimensions—scalability, consistency, diversity, and realism—across two use cases and three LLMs.

Javier Polo-Gambín, José A. Ruipérez-Valiente, José Antonio Hernández López · 0 citations
#small language model Preprint Aug 2026

SchemaGUI: A Schema-Driven Benchmark for Controllable GUI Generation Evaluation

SchemaGUI, a template-based benchmark for controllable GUI generation evaluation, synthesizing paired natural language instructions and deterministic function-call references from parameterized interface schemas can generate thousands of deterministically annotated tasks in seconds without human labeling.

Jiarui Dong, Yin Cai, Zhouhong Gu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.