LLM-SR: Scientific Equation Discovery via Programming with Large Language Models
Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, Chandan K. Reddy
Abstract
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 1 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
41 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Symbolic Regression with a Learned Concept Library cites Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients
- Symbolic Regression with a Learned Concept Library cites Language Models are Few-Shot Learners
- NewtonBench: Benchmarking Generalizable Scientific Law Discovery in LLM Agents cites Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients
- NewtonBench: Benchmarking Generalizable Scientific Law Discovery in LLM Agents cites SR-Scientist: Scientific Equation Discovery With Agentic AI
- NewtonBench: Benchmarking Generalizable Scientific Law Discovery in LLM Agents cites End-to-end Symbolic Regression with Transformers
- Large Language Models as Optimizers cites Self-Refine: Iterative Refinement with Self-Feedback
- SR-Scientist: Scientific Equation Discovery With Agentic AI cites Symbolic Regression with a Learned Concept Library
- SR-Scientist: Scientific Equation Discovery With Agentic AI cites Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients
- SR-Scientist: Scientific Equation Discovery With Agentic AI cites End-to-end Symbolic Regression with Transformers
- End-to-end Symbolic Regression with Transformers cites Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradients
- Evolutionary Large Language Model for Automated Feature Transformation cites Self-Refine: Iterative Refinement with Self-Feedback
Cited by top-tier papers41
- Symbolic Regression with a Learned Concept LibraryArya Grayeli, Atharva Sehgal, Omar Costilla-Reyes, Miles D. Cranmer et al.NeurIPS 2024 · 105 citations
- Evolutionary Large Language Model for Automated Feature TransformationNanxu Gong, Chandan K. Reddy, Wangyang Ying, Haifeng Chen et al.AAAI 2025 · 39 citations
- SR-Scientist: Scientific Equation Discovery With Agentic AIShijie Xia, Yuhan Sun, Pengfei LiuICLR 2026 · 28 citations
- NewtonBench: Benchmarking Generalizable Scientific Law Discovery in LLM AgentsTianshi Zheng, Kelvin Kiu Wai Tam, Newt Nguyen Kim Hue Nam, Baixuan Xu et al.ICLR 2026 · 25 citations
- MOOSE-Chem2: Exploring LLM Limits in Fine-Grained Scientific Hypothesis Discovery via Hierarchical SearchZonglin Yang, Wanhao Liu, Ben Gao, Yujie Liu et al.NeurIPS 2025 · 19 citations
Builds on19
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan et al.NeurIPS 2023 · 4,972 citations
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu et al.ICLR 2024 · 817 citations
- Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradientsBrenden K. Petersen, Mikel Landajuela, T. Nathan Mundhenk, Cláudio Prata Santiago et al.ICLR 2021 · 444 citations
- End-to-end Symbolic Regression with TransformersPierre-Alexandre Kamienny, Stéphane d'Ascoli, Guillaume Lample, François ChartonNeurIPS 2022 · 320 citations
Related papers
- DecAEvolve: Decompose, Adapt, and Evolve for Effective LLM-based Scientific Equation DiscoveryPouya Behzadifar, Parshin Shojaee, Sanchit Kabra, Kazem Meidani et al.ICML 2026
- Neural Symbolic Regression that scalesLuca Biggio, Tommaso Bendinelli, Alexander Neitz, Aurélien Lucchi et al.ICML 2021 · 251 citations
- Discovering Ordinary Differential Equations with LLM-Based Qualitative and Quantitative EvaluationSum Kyun Song, Bong Gyun Shin, JaeYong LeeICML 2026
- EGG-SR: Embedding Symbolic Equivalence into Symbolic Regression via Equality GraphNan Jiang, Ziyi Wang, Yexiang XueICLR 2026 · 3 citations
- Transformer-based Planning for Symbolic RegressionParshin Shojaee, Kazem Meidani, Amir Barati Farimani, Chandan K. ReddyNeurIPS 2023 · 116 citations
