TL;DR
Finding the hidden mathematical laws of nature from raw data usually fails when a static dataset leaves multiple wrong equations looking equally plausible. LLM-ACES turns equation discovery from passive curve-fitting into an active scientific investigation: a language model proposes smart mathematical building blocks, fits competing equations, and actively runs new experiments right where those equations disagree the most. By letting hypotheses and data co-evolve, it recovers the true governing laws of dynamical systems with vastly higher accuracy and less data than existing tools.
What Problem Does This Paper Address?
Science loves ordinary differential equations (ODEs)—compact formulas describing how things change over time, from planetary orbits to chemical reactions. Historically derived by hand from first principles, researchers now try to discover them automatically from experimental trajectories using symbolic regression (algorithms that piece together math symbols to fit data).
Most existing approaches treat this as a static game: take a fixed dataset and find the best-fitting equation. Here is the catch: dynamical systems live in vast state spaces. If your observations only cover a small, polite corner of that space, two completely different equations can fit your data equally well—only to diverge wildly the moment you test a new starting condition or look further into the future. The authors call this the identifiability gap.
Just like a real scientist in a lab, an algorithm shouldn't just stare harder at inadequate data; it needs to run a new experiment specifically designed to break the tie between competing theories.
Methods
LLM-ACES (LLM-guided Active Closed-loop Equation Search) closes the loop between forming hypotheses and gathering data across four iterative stages:
- Architecting the Search Space (Novel): Instead of asking an LLM (like GPT-4o-mini or Qwen3-32B) to guess the final equation directly—where LLMs notoriously struggle with precise numbers—LLM-ACES asks the LLM to propose operator priors. These are curated subsets of math operations (e.g.,
+,*,sin,exp) that define plausible, constrained sandboxes for the math to live in. One prior exploits past winners, while others explore fresh territory. - Fitting Candidates (Standard Backend): Inside each LLM-designed sandbox, a standard evolutionary symbolic regression engine (PySR) crunches the numbers to fit concrete candidate equations to the current data.
- Disagreement-Driven Acquisition (Novel): How do we pick the next experiment? LLM-ACES simulates candidate equations forward from new potential initial conditions and measures their predictive divergence—how violently their predicted trajectories disagree. Using Gaussian-process search, it queries the simulator (or lab oracle) at the starting point of maximum disagreement. By the triangle inequality, if two models diverge wildly, at least one must be wrong—guaranteeing an informative test.
- Memory & Feedback: New data updates the dataset, and an experience buffer feeds the best- and worst-performing equations back into the LLM's next prompt, steering it away from dead ends.
Datasets
The authors evaluate on 122 dynamical systems spanning 1D to 4D state spaces across physics, biology, and mathematics:
- ODEBench (63 systems) and ODEBase (59 systems).
- Anonymized Benchmarks: Crucially, the authors strip away all system names and variable labels (replacing things like
preyorvoltagewith generic $x_0, x_1$), alongside testing on the Feynman physics dataset, to ensure the LLMs aren't simply reciting memorized textbook formulas.
Key Insights and Ideas
- LLMs are much better at memorizing than discovering—unless you blindfold them: On standard ODEBench, an LLM-only loop recalled 17/63 exact equations. Once variable names were anonymized, exact recoveries plummeted to 2/63. Anonymization is essential for honest AI-for-science benchmarks.
- Decoupling structure from numbers works: Asking an LLM to choose which operators belong together leverages its structural intuition while leaving precise coefficient optimization to symbolic regression. Replacing the LLM with a non-LLM bandit algorithm caused the sharpest drop in performance during ablations.
- Smart data beats big data: Passive baselines given 5–10× more observations still couldn't match LLM-ACES, because extra data from uninformative regions doesn't resolve ambiguity between competing nonlinear terms.
Key Results
Evaluated on trajectory reconstruction, generalization (new initial conditions), and extrapolation (future time $t \in (1, 10]$):
- Symbolic Accuracy: LLM-ACES recovers the exact mathematical form up to 70.8% of the time on ODEBench (GPT-4o-mini) and 69.5% on ODEBase (Qwen3-32B), beating the strongest active-learning baseline (Bayesian Optimization at 62.3% and 65.0%) and crushing passive PySR (18.7% and 5.9%).
- Prediction Error: On ODEBench, LLM-ACES hits median Normalized MSEs around $10^{-17}$ to $10^{-16}$, outperforming passive/LLM baselines by over 10 orders of magnitude on extrapolation and beating active Bayesian Optimization by ~6 orders of magnitude.
- Clean, True-to-Life Equations: Rather than bloating equations with fake polynomial terms to force a local fit, LLM-ACES yields average expression complexities (17.1 on ODEBench; 31.2 on ODEBase) remarkably close to the true underlying equations (19.3 and 35.2), cleanly capturing coupled nonlinear dynamics where baselines oversimplify or overfit.
Limitations and Future Work
- Scope: LLM-ACES currently targets autonomous ODEs where you can actively query an oracle or simulator; extending to partial differential equations (PDEs), stochastic systems, or heavy noise requires adapting its components.
- Equal-Weight Committee Flaw: The disagreement score weights all fitted candidates equally. A single numerically unstable or implausible equation can dominate the divergence metric and lure the system toward uninformative experiments.
- Sensitivity: Because it relies on LLM prompts and PySR under the hood, performance remains sensitive to model choice, prompt design, and compute budgets. Future work aims to broaden this closed-loop paradigm—combining foundation models, structured priors, and active experimentation—across wider scientific domains.
Summary updated