arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.17004cs.PLcs.CL
收藏

Text2Model:使用大语言模型(LLM)生成动态化学反应器模型

Text2Model: Generating dynamic chemical reactor models using large language models (LLMs)

Delft University of Technology(代尔夫特理工大学)

Sophia Rupprecht, Yassine Hounat, Monisha Kumar, Giacomo Lastrucci, Artur M. Schweidtmann

AI总结:

本研究提出Text2Model方法,通过微调Llama 3.1 8B Instruct模型,从文本描述生成Modelica格式的动态化学反应器模型,提升了模型语法和语义准确性,但泛化能力弱于GPT-4o。

摘要:

随着大语言模型在自然语言对话方面展现出卓越能力,人们开始关注LLM如何在研究和工业领域协助化学工程师完成特定领域任务。本研究以用户输入的文本描述为基础,生成Modelica代码格式的动态化学反应器模型。我们针对不同反应器场景的合成Modelica代码,对Llama 3.1 8B Instruct模型进行微调。实验将微调后模型的性能与基线Llama 3.1 8B Instruct模型及GPT-4o进行对比,人工评估模型生成的动态模型在语法和语义上的准确性。结果显示,微调后的模型在Modelica模型的语义和语法准确性上均有显著提升,但与GPT-4o相比,其对未见过的场景的泛化能力仍有待提高。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑