arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.18400cs.LGcs.AIcs.CLcs.NE
收藏

LLM-SR:通过大语言模型编程实现科学方程发现

LLM-SR: Scientific Equation Discovery via Programming with Large Language Models

Virginia Tech(弗吉尼亚理工大学);Carnegie Mellon University(卡内基梅隆大学);Allen Institute for AI(艾伦人工智能研究所)

Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, Chandan K Reddy

AI总结:

针对现有符号回归方法忽略领域先验、方程表示受限的问题,提出融合大语言模型科学先验与进化搜索的LLM-SR方法,在多领域基准上性能优于现有基线且探索效率更高。

摘要:

数学方程在描述各科学学科的复杂自然现象方面一直有着超乎预期的效用。然而,从数据中发现这类具有洞察力的方程面临着巨大挑战,因为需要在极其庞大的组合假设空间中进行搜索。当前的方程发现方法(通常被称为符号回归技术)大多仅专注于从数据中提取方程,往往忽略了科学家通常依赖的特定领域先验知识。这些方法还采用了表达式树等有限的表示形式,限制了搜索空间和方程的表达能力。为弥补这一差距,我们提出了LLM-SR,这是一种利用大语言模型(LLMs)丰富的科学知识和强大的代码生成能力从数据中发现科学方程的新方法。具体而言,LLM-SR将方程视为带有数学运算符的程序,并将LLMs的科学先验与针对方程程序的进化搜索相结合。LLM会利用其领域知识迭代地提出新的方程骨架假设,随后针对数据对这些假设进行优化以估计参数。我们在跨越不同科学领域(如物理学、生物学)的四个基准问题上对LLM-SR进行了评估,这些基准是我们精心设计的,用于模拟发现过程并防止LLM直接背诵已知结果。我们的结果表明,LLM-SR能够发现物理上准确的方程,其性能显著优于最先进的符号回归基线方法,尤其是在域外测试场景下。我们还证明,LLM-SR对科学先验的整合使其能够比基线方法更高效地探索方程空间。代码和数据可在以下链接获取:https://github.com/deep-symbolic-mathematics/LLM-SR

英文摘要:

Mathematical equations have been unreasonably effective in describing complex natural phenomena across various scientific disciplines. However, discovering such insightful equations from data presents significant challenges due to the necessity of navigating extremely large combinatorial hypothesis spaces. Current methods of equation discovery, commonly known as symbolic regression techniques, largely focus on extracting equations from data alone, often neglecting the domain-specific prior knowledge that scientists typically depend on. They also employ limited representations such as expression trees, constraining the search space and expressiveness of equations. To bridge this gap, we introduce LLM-SR, a novel approach that leverages the extensive scientific knowledge and robust code generation capabilities of Large Language Models (LLMs) to discover scientific equations from data. Specifically, LLM-SR treats equations as programs with mathematical operators and combines LLMs' scientific priors with evolutionary search over equation programs. The LLM iteratively proposes new equation skeleton hypotheses, drawing from its domain knowledge, which are then optimized against data to estimate parameters. We evaluate LLM-SR on four benchmark problems across diverse scientific domains (e.g., physics, biology), which we carefully designed to simulate the discovery process and prevent LLM recitation. Our results demonstrate that LLM-SR discovers physically accurate equations that significantly outperform state-of-the-art symbolic regression baselines, particularly in out-of-domain test settings. We also show that LLM-SR's incorporation of scientific priors enables more efficient equation space exploration than the baselines. Code and data are available: https://github.com/deep-symbolic-mathematics/LLM-SR

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

↑