Multibody Models Generated from Natural Language
Authors:
Open Access
- 17 January 2024
- journal article
- research article
- Published by Springer Nature in Multibody System Dynamics
- Vol. 62 (2) , 249-271
Abstract
Computational models are conventionally created with input data, script files, programming interfaces, or graphical user interfaces. This paper explores the potential of expanding model generation, with a focus on multibody system dynamics. In particular, we investigate the ability of Large Language Model (LLM), to generate models from natural language. Our experimental findings indicate that LLM, some of them having been trained on our multibody code Exudyn, surpass the mere replication of existing code examples. The results demonstrate that LLM have a basic understanding of kinematics and dynamics, and that they can transfer this knowledge into a programming interface. Although our tests reveal that complex cases regularly result in programming or modeling errors, we found that LLM can successfully generate correct multibody simulation models from natural-language descriptions for simpler cases, often on the first attempt (zero-shot).After a basic introduction into the functionality of LLM, our Python code, and the test setups, we provide a summarized evaluation for a series of examples with increasing complexity. We start with a single mass oscillator, both in SciPy as well as in Exudyn, and include varied inputs and statistical analysis to highlight the robustness of our approach. Thereafter, systems with mass points, constraints, and rigid bodies are evaluated. In particular, we show that in-context learning can levitate basic knowledge of a multibody code into a zero-shot correct output.Keywords
All Related Versions
Funding Information
- University of Innsbruck and Medical University of Innsbruck
This publication has 14 references indexed in Scilit:
- Large Language Models for Software Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology, 2024
- MeLM, a generative pretrained language modeling framework that solves forward and inverse mechanics problemsJournal of the Mechanics and Physics of Solids, 2023
- Exudyn – A C++ based Python package for flexible multibody systemsResearch Square, 2023
- Visualization in the Era of Artificial IntelligenceJusletter IT, 2023
- A systematic evaluation of large language models of code2022
- MatSciBERT: A materials domain language model for text mining and information extractionnpj Computational Materials, 2022
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- SciBERT: A Pretrained Language Model for Scientific Text2019
- An Efficient Formulation for General-Purpose Multibody/Multiphysics AnalysisJournal of Computational and Nonlinear Dynamics, 2014
- Constrained Multibody Dynamics With Python: From Symbolic Equation Generation to Publication2013