LLM4ED: Large Language Models for Automatic Equation Discovery

Mengge Du, Yuntian Chen, Zhongzheng Wang, Longfeng Nie, Dongxiao Zhang
5/13/2024
cs.LGcs.AIcs.SC

No official code found. Best implementation: menggedu/EDL (14 stars, last commit 2025-03-06).

Abstract

Equation discovery is aimed at directly extracting physical laws from data and has emerged as a pivotal research domain. Previous methods based on symbolic mathematics have achieved substantial advancements, but often require the design of implementation of complex algorithms. In this paper, we introduce a new framework that utilizes natural language-based prompts to guide large language models (LLMs) in automatically mining governing equations from data. Specifically, we first utilize the generation capability of LLMs to generate diverse equations in string form, and then evaluate the generated equations based on observations. In the optimization phase, we propose two alternately iterated strategies to optimize generated equations collaboratively. The first strategy is to take LLMs as a black-box optimizer and achieve equation self-improvement based on historical samples and their performance. The second strategy is to instruct LLMs to perform evolutionary operators for global search. Experiments are extensively conducted on both partial differential equations and ordinary differential equations. Results demonstrate that our framework can discover effective equations to reveal the underlying physical laws under various nonlinear dynamic systems. Further comparisons are made with state-of-the-art models, demonstrating good stability and usability. Our framework substantially lowers the barriers to learning and applying equation discovery techniques, demonstrating the application potential of LLMs in the field of knowledge discovery.

View on arXivView PDF

Code Implementations(1)

menggedu/EDLCommunity100%

Code and data for paper named: Large language models for automatic equation discovery of nonlinear dynamics

142Shell, PythonAug 25, 20241 years ago

Similar Papers

Cite this paper

@article{du2024llmed,
  title  = {LLM4ED: Large Language Models for Automatic Equation Discovery},
  author = {Mengge Du and Yuntian Chen and Zhongzheng Wang and Longfeng Nie and Dongxiao Zhang},
  year   = {2024},
  eprint = {2405.07761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.07761v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.07761.svg)](https://codeofpaper.com/paper/2405.07761)

Discussion