Large language models for automatic equation discovery of nonlinear dynamics

IF 4.1 2区 工程技术 Q1 MECHANICS Physics of Fluids Pub Date : 2024-09-10 DOI:10.1063/5.0224297
Mengge Du, Yuntian Chen, Zhongzheng Wang, Longfeng Nie, Dongxiao Zhang
{"title":"Large language models for automatic equation discovery of nonlinear dynamics","authors":"Mengge Du, Yuntian Chen, Zhongzheng Wang, Longfeng Nie, Dongxiao Zhang","doi":"10.1063/5.0224297","DOIUrl":null,"url":null,"abstract":"Equation discovery aims to directly extract physical laws from data and has emerged as a pivotal research domain in nonlinear systems. Previous methods based on symbolic mathematics have achieved substantial advancements, but often require handcrafted representation rules and complex optimization algorithms. In this paper, we introduce a novel framework that utilizes natural language-based prompts to guide large language models (LLMs) in automatically extracting governing equations from data. Specifically, we first utilize the generation capability of LLMs to generate diverse candidate equations in string form and then evaluate the generated equations based on observations. The best equations are preserved and further refined iteratively using the reasoning capacity of LLMs. We propose two alternately iterated strategies to collaboratively optimize the generated equations. The first strategy uses LLMs as a black-box optimizer to achieve equation self-improvement based on historical samples and their performance. The second strategy instructs LLMs to perform evolutionary operations for a global search. Experiments are conducted on various nonlinear systems described by partial differential equations, including the Burgers equation, the Chafee–Infante equation, and the Navier–Stokes equation. The results demonstrate that our framework can discover correct equations that reveal the underlying physical laws. Further comparisons with state-of-the-art models on extensive ordinary differential equations showcase that the equations discovered by our framework possess physical meaning and better generalization capability on unseen data.","PeriodicalId":20066,"journal":{"name":"Physics of Fluids","volume":null,"pages":null},"PeriodicalIF":4.1000,"publicationDate":"2024-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Physics of Fluids","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1063/5.0224297","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MECHANICS","Score":null,"Total":0}
引用次数: 0

Abstract

Equation discovery aims to directly extract physical laws from data and has emerged as a pivotal research domain in nonlinear systems. Previous methods based on symbolic mathematics have achieved substantial advancements, but often require handcrafted representation rules and complex optimization algorithms. In this paper, we introduce a novel framework that utilizes natural language-based prompts to guide large language models (LLMs) in automatically extracting governing equations from data. Specifically, we first utilize the generation capability of LLMs to generate diverse candidate equations in string form and then evaluate the generated equations based on observations. The best equations are preserved and further refined iteratively using the reasoning capacity of LLMs. We propose two alternately iterated strategies to collaboratively optimize the generated equations. The first strategy uses LLMs as a black-box optimizer to achieve equation self-improvement based on historical samples and their performance. The second strategy instructs LLMs to perform evolutionary operations for a global search. Experiments are conducted on various nonlinear systems described by partial differential equations, including the Burgers equation, the Chafee–Infante equation, and the Navier–Stokes equation. The results demonstrate that our framework can discover correct equations that reveal the underlying physical laws. Further comparisons with state-of-the-art models on extensive ordinary differential equations showcase that the equations discovered by our framework possess physical meaning and better generalization capability on unseen data.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
用于自动发现非线性动力学方程的大型语言模型
方程发现的目的是从数据中直接提取物理规律,它已成为非线性系统的一个关键研究领域。以往基于符号数学的方法取得了长足的进步,但通常需要手工制定表示规则和复杂的优化算法。在本文中,我们介绍了一种新颖的框架,它利用基于自然语言的提示来引导大型语言模型(LLM)自动从数据中提取支配方程。具体来说,我们首先利用 LLM 的生成能力以字符串形式生成各种候选方程,然后根据观测结果对生成的方程进行评估。保留最佳方程,并利用 LLM 的推理能力进一步迭代完善。我们提出了两种交替迭代的策略来协同优化生成的方程。第一种策略将 LLMs 作为黑盒优化器,根据历史样本及其性能实现方程的自我改进。第二种策略指示 LLMs 执行全局搜索的进化操作。我们对偏微分方程描述的各种非线性系统进行了实验,包括伯格斯方程、查菲-因方特方程和纳维-斯托克斯方程。结果表明,我们的框架可以发现正确的方程,揭示基本的物理规律。与最先进的广泛常微分方程模型的进一步比较表明,我们的框架发现的方程具有物理意义,并能更好地概括未见数据。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Physics of Fluids
Physics of Fluids 物理-力学
CiteScore
6.50
自引率
41.30%
发文量
2063
审稿时长
2.6 months
期刊介绍: Physics of Fluids (PoF) is a preeminent journal devoted to publishing original theoretical, computational, and experimental contributions to the understanding of the dynamics of gases, liquids, and complex or multiphase fluids. Topics published in PoF are diverse and reflect the most important subjects in fluid dynamics, including, but not limited to: -Acoustics -Aerospace and aeronautical flow -Astrophysical flow -Biofluid mechanics -Cavitation and cavitating flows -Combustion flows -Complex fluids -Compressible flow -Computational fluid dynamics -Contact lines -Continuum mechanics -Convection -Cryogenic flow -Droplets -Electrical and magnetic effects in fluid flow -Foam, bubble, and film mechanics -Flow control -Flow instability and transition -Flow orientation and anisotropy -Flows with other transport phenomena -Flows with complex boundary conditions -Flow visualization -Fluid mechanics -Fluid physical properties -Fluid–structure interactions -Free surface flows -Geophysical flow -Interfacial flow -Knudsen flow -Laminar flow -Liquid crystals -Mathematics of fluids -Micro- and nanofluid mechanics -Mixing -Molecular theory -Nanofluidics -Particulate, multiphase, and granular flow -Processing flows -Relativistic fluid mechanics -Rotating flows -Shock wave phenomena -Soft matter -Stratified flows -Supercritical fluids -Superfluidity -Thermodynamics of flow systems -Transonic flow -Turbulent flow -Viscous and non-Newtonian flow -Viscoelasticity -Vortex dynamics -Waves
期刊最新文献
Meso-scale investigation on the permeability of frozen soils with the lattice Boltzmann method Computational investigation of both geometric and fluidic compressible turbulent thrust vectoring, using a Coanda based nozzle Directional self-migration of droplets on an inclined surface driven by wettability gradient Overlapping effect of detonation driving during multi-point initiation Effect of loading rate on characteristics of cyclic structural adjustment of sandstone granules
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1