mlsanityData to 14 Oct 2026

ModiGen: A Large Language Model-Based Workflow for Multi-Task Modelica Code Generation

arXiv 2503.18460 ↗First posted 24 Mar 2025cs.SE cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

Modelica is a widely adopted language for simulating complex physical systems, yet effective model creation and optimization require substantial domain expertise. Although large language models (LLMs) have demonstrated promising capabilities in code generation, their application to modeling remains largely unexplored. To address this gap, we have developed benchmark datasets specifically designed to evaluate the performance of LLMs in generating Modelica component models and test cases. Our evaluation reveals substantial limitations in current LLMs, as the generated code often fails to simulate successfully. To overcome these challenges, we propose a specialized workflow that integrates supervised fine-tuning, graph retrieval-augmented generation, and feedback optimization to improve the accuracy and reliability of Modelica code generation. The evaluation results demonstrate significant performance gains: the maximum improvement in pass@1 reached 0.3349 for the component generation task and 0.2457 for the test case generation task. This research underscores the potential of LLMs to advance intelligent modeling tools and offers valuable insights for future developments in system modeling and engineering applications.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 28 of its 67 references that are in the map. First posted on arXiv 24 Mar 2025.

Builds on

28 of 67 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2024GPT-4o System Cardcited by 4,588
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  10. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  12. 2023Teaching Large Language Models to Self-Debugcited by 988
16 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  2. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  3. 2024A Survey on Large Language Models for Code Generationcited by 658
  4. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
  5. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  6. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  7. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
  8. 2024GNN-RAG: Graph Neural Retrieval for Large Language Model Reasoningcited by 128
  9. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  10. 2024GRAG: Graph Retrieval-Augmented Generationcited by 78
  11. 2024A Closer Look at the Limitations of Instruction Tuningcited by 77
  12. 2023On the Effectiveness of Large Language Models in Domain-Specific Code Generationcited by 44
  13. 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
  14. 2024How LLMs Aid in UML Modeling: An Exploratory Study with Novice Analystscited by 8
  15. 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarizationcited by 6
  16. 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimizationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  2. 2026Exploring the Role of LLMs in HPC Programming: A Survey
  3. 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
  4. 2026Retrieval Augmented (Knowledge Graph), and Large Language Model-Driven Design Structure Matrix (DSM) Generation of Cyber-Physical Systems
  5. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
  6. 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
  7. 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
  8. 2025Agentic Large Language Models for Conceptual Systems Engineering and Design