Abstract
Generative AI (GenAI) has demonstrated remarkable capabilities in code generation, and its integration into complex product modeling and simulation can significantly enhance the efficiency of the system design phase in Model-Based Systems Engineering (MBSE). This paper introduces a generative system design methodology framework for the intelligent generation of simulation models for system physical properties. The approach utilizes inference techniques, generative models, and integrated modeling languages to construct simulation models from product design documents. By fine-tuning language models on specialized simulation libraries and employing a novel "scalable template" method, the framework enables modular code completion. Experimental results show that this method significantly improves simulation model quality compared to direct generation from state-of-the-art models like GPT-4o and Claude 3.5.
Introduction
Model-Based Systems Engineering (MBSE) is the standard for designing complex systems such as aircraft and spacecraft. However, a significant bottleneck remains: the manual translation of extensive natural language design documentation into formalized, executable simulation models. This process is time-consuming, prone to human error, and often results in "model inconsistency," where disparate system components fail to align correctly.
While General AI (GenAI) excels at generic programming tasks, it often struggles with specialized multi-domain modeling languages and the long-context requirements of engineering specifications. This research addresses these challenges by bridging the gap between unstructured human-written specifications and rigid, executable simulation code through a structured, template-driven generation pipeline.
Methodology
The X Language and DEVS Mapping
The framework targets the X language, a formal multi-domain modeling language based on the Discrete Event System Specification (DEVS). The X language is designed to handle both discrete and continuous physical properties, making it suitable for complex cyber-physical systems.
As shown in the hierarchy, the X language distinguishes between "Couple" classes (defining architecture and connections) and "Atomic" classes (defining specific behavioral logic). This structure maps directly to DEVS elements like External Input Coupling (EIC) and Internal Coupling (IC), ensuring the generated code remains mathematically sound.
The Generation Pipeline
The proposed methodology follows a multi-stage pipeline to transform text into simulation:
- Information Extraction (NER-BERT): A BERT model, fine-tuned for Named Entity Recognition (NER) and sentence classification, filters noise from design documents. It identifies key system components and their hierarchical relationships (e.g., identifying a "Battery" as a subsystem of a "Power Supply").
- Scalable Templates: To prevent the "hallucinations" or truncation common in zero-shot LLM generation, the framework uses structured templates. These templates define the mandatory sections (Header, Attribute, Connection), and the LLM performs modular code completion within these slots.
- Fine-Tuning with LoRA: Open-source models (such as CodeQwen1.5-7B) are fine-tuned using Low-Rank Adaptation (LoRA) on a specialized corpus of X language models and augmented synthetic data generated by GPT-3.5.
- Top-Down Generation: The system first architects the system via "Couple" classes before generating the specific behavioral logic for individual "Atomic" components.
Key Insights and Evaluation
A critical finding of this research is that modular completion outperforms zero-shot generation. LLMs maintain higher "Model Consistency" when filling specific slots in a structured template rather than attempting to architect an entire system from scratch.
Furthermore, the researchers identified a "Radar Paradox": LLMs sometimes performed worse on common components because their general-purpose training data conflicted with specific engineering requirements. This highlights the necessity of domain-specific scaffolding and fine-tuning.
To objectively measure performance, the paper introduces a new evaluation framework using the Entropy Weighting Method (EWM). This framework scores models based on two key metrics: "Degree of Error" (syntax and logic) and "Model Consistency" (how well the generated components fit together).
Results
The proposed method (Meth.a) was compared against direct generation (Meth.b) and leading proprietary models using an aircraft electrical system dataset:
- Proposed Framework: Achieved a high score of 0.870 using DeepSeek-Coder and 0.825 using CodeQwen.
- Direct Generation: The same models scored only ~0.16 without the framework's templates and extraction steps.
- Proprietary Benchmarks: GPT-4o (0.242) and Claude-3.5-Sonnet (0.241) significantly underperformed compared to the specialized framework, demonstrating that even the most advanced general-purpose models require domain-specific scaffolding for MBSE tasks.
Conclusion
This study demonstrates that integrating GenAI with scalable templates and specialized fine-tuning can automate the creation of high-fidelity simulation models in MBSE. While the system effectively handles syntax and structure, future work will focus on expanding the training corpus and addressing complex simulation logic errors that still require manual engineering oversight. The ultimate goal is to extend this GenAI framework across the entire MBSE lifecycle, from design to maintenance and fault diagnosis.
Summary updated