用自然语言自动生成动力系统模型,提升工程设计效率
Text to model via SysML: Automated generation of dynamical system computational models from unstructured natural language text via enhanced System Modeling Language diagrams
- 基于增强版SysML图,从文本中提取组件属性与关系
- 结合NLP和大模型,实现从文档到代码的端到端建模
- 适用于多领域系统,尤其适合缺乏编程经验的工程师
本文提出一种自动化策略,通过分析与目标动力系统相关的文档集合及具体系统描述文档,快速生成其计算模型。该策略分五步执行,核心是利用系统建模语言(SysML)图精准提取组件的依赖、属性和操作信息。在图生成过程中,采用自然语言处理(NLP)和大语言模型(LLMs)优化关键名词列表、关系提取、关键短语识别、属性值填充及行为分解图(BDD)生成。随后通过代码生成与模型构建步骤,将SysML图转化为可运行的计算模型。其中,代码生成阶段使用NLP进行摘要,仅用LLM进行验证。该方法不局限于特定系统、领域或软件,通过提供方程模板整合领域知识。以单摆系统为例,展示了从文本到模型的完整流程,并证明其性能优于仅使用零样本模式的LLM。
原文摘要 · Abstract (English)
This paper contributes to speeding up the design and deployment of engineering dynamical systems by proposing a strategy for exploiting domain and expert knowledge for the automated generation of a dynamical system computational model starting from a corpus of documents relevant to the dynamical system of interest and an input document describing the specific system. This strategy is implemented in five steps and, crucially, it uses system modeling language diagrams (SysML) to extract accurate information about the dependencies, attributes, and operations of components. Natural Language Processing (NLP) strategies and Large Language Models (LLMs) are employed in specific tasks to improve intermediate outputs of the SySML diagrams automated generation, such as: list of key nouns; list of extracted relationships; list of key phrases and key relationships; block attribute values; block relationships; and BDD diagram generation. The applicability of automated SysML diagram generation is illustrated with different case studies. The computational models of complex dynamical systems from SysML diagrams are then obtained via code generation and computational model generation steps. In the code generation step, NLP strategies are used for summarization, while LLMs are used for validation only. The proposed approach is not limited to a specific system, domain, or computational software. Domain and expert knowledge is integrated by providing a set of equation implementation templates. This work represents one of the first attempts to build an automatic pipeline for this area. The applicability of the proposed approach is shown via an end-to-end example from text to model of a simple pendulum, showing improved performance compared to results yielded by LLMs only in zero-shot mode.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。