LLM-ACES: Closed-Loop Discovery of Dynamic Systems with LLM-Guided Adaptive Search

Nikhil Abhyankar, Sha Li, Sanchit Kabra, Naren Ramakrishnan, Yulia Gel, Chandan K. ReddyNeurIPS 2026

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:

Figure 1: Overview of LLM-ACES. LLM-ACES couples LLM-guided hypothesis-space construction with active trajectory acquisition. (A) The LLM induces constrained symbolic search spaces from task information and prior feedback. (B) Candidate equations are generated and optimized within these spaces. (C) New initial conditions are selected by maximizing predictive disagreement among candidate rollouts. (D) Acquired trajectories update the candidate equations and refine the next hypothesis space.
  1. 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.
  2. 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.
  3. 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.
  4. 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 prey or voltage with 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.
Figure 2: Ablation on 30 ODEBench systems. Normalized MSE distributions across (i) Reconstruction, (ii) Generalization, and (iii) Extrapolation evaluation settings.

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

Abstract

Recovering governing ordinary differential equations (ODEs) from data is a central challenge in modeling dynamical systems across scientific domains. Existing approaches cast discovery as a static inference problem over fixed datasets, assuming that the observed trajectories are sufficiently informative. However, dynamical systems evolve over large state spaces, and limited data can make multiple equations observationally indistinguishable, leading to identifiability gaps and the recovery of incorrect governing equations. To address this, we introduce LLM-ACES, or LLM-guided Active Closed-loop Equation Search, a closed-loop framework that jointly optimizes symbolic hypothesis construction and adaptive data acquisition. In LLM-ACES, a large language model (LLM) proposes operator priors that define constrained subspaces of the symbolic search space, within which candidate equations are fit to the observed data. The disagreement among these candidates guides the acquisition of informative trajectories, creating a feedback loop that iteratively refines both the hypothesis space and the discovered dynamics. On 122 ODE systems spanning ODEBench and ODEBase, LLM-ACES achieves the lowest median NMSE, outperforming state-of-the-art baselines while reaching the highest symbolic accuracy up to 70.8% on ODEBench and 69.5% on ODEBase across different LLM backbones. Our analysis further shows that LLM-ACES is sample-efficient, achieving better performance with less data. Under observation noise and sparse sampling, LLM-ACES keeps the lowest reconstruction error without inflating expression complexity, whereas baselines tend to add spurious terms that fit the data locally but obscure the governing relationships.
BibTeX
@inproceedings{abhyankar2026llm,
  author = {Nikhil Abhyankar and Sha Li and Sanchit Kabra and Naren Ramakrishnan and Yulia Gel and Chandan K. Reddy},
  title = {{LLM-ACES: Closed-Loop Discovery of Dynamic Systems with LLM-Guided Adaptive Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6JC2w2LT7i},
}
Figure