Text2Model: Generating dynamic chemical reactor models using large language models (LLMs)
Not on the map. Why?
Abstract (arXiv)
As large language models have shown remarkable capabilities in conversing via natural language, the question arises as to how LLMs could potentially assist chemical engineers in research and industry with domain-specific tasks. We generate dynamic chemical reactor models in Modelica code format from textual descriptions as user input. We fine-tune Llama 3.1 8B Instruct on synthetically generated Modelica code for different reactor scenarios. We compare the performance of our fine-tuned model to the baseline Llama 3.1 8B Instruct model and GPT4o. We manually assess the models' predictions regarding the syntactic and semantic accuracy of the generated dynamic models. We find that considerable improvements are achieved by the fine-tuned model with respect to both the semantic and the syntactic accuracy of the Modelica models. However, the fine-tuned model lacks a satisfactory ability to generalize to unseen scenarios compared to GPT4o.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 6 of its 8 references that are in the map. First posted on arXiv 21 Mar 2025.
Builds on
6 of 8 references.
References · 6
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Multi-agent systems for chemical engineering: A review and perspectivecited by 9
- 2026Context is all you need: Towards autonomous model-based process design using agentic AI in flowsheet simulationscited by 2
- 2025Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Languagecited by 1
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategiescited by 1
- 2026Beyond Executable Models: The Pufibara Agent Harness and the Modelica Agent Workflow Benchmark for Physical System Modelingcited by 0
- 2026Beyond Executable Models: The Pufibara Agent Harness and the Modelica Agent Workflow Benchmark for Physical System Modeling24 Aug 2026
- 2026Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategies31 Jul 2026
- 2026Context is all you need: Towards autonomous model-based process design using agentic AI in flowsheet simulations13 Mar 2026
- 2025Automating Modelica Module Generation Using Large Language Models: A Case Study on Building Control Description Language18 Sep 2025
- 2025Multi-agent systems for chemical engineering: A review and perspective11 Aug 2025