Manuscript Offprint

arXiv:2610.17740

Coupled Harness--Model Evolution for Scientific Equation Discovery

Pengze Li, Jiaquan Zhang, Encheng Su, Yunbo Long, Zihang Zeng, Xinping Liu, Han Zhang, Junchi Yu, Shixiang Tang, Aoran Wang, Xi Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large language models (LLMs) are increasingly used to discover scientific equations from experimental data. Such a discovery system has two parts that must work together: a library of executable computational tools and the model's tool-use policy. The tools supply the solving capability, from diagnosing structure in the data to fitting candidate equations; the policy plans and orchestrates their use. Yet existing systems adapt only one part, keeping either the toolset or the model fixed, which leaves the corresponding failures uncorrectable. We develop a coupled evolution framework that improves both parts from the same verifiable fit-error signal. In the tool-evolution phase, an agent grows an executable tool library from a small set of generic numerical operations by diagnosing its own failures: it authors a new tool when a capability is missing and revises its selection rules when the right tool went unused. In the policy-evolution phase, a small open model (roughly 3B active parameters) is fine-tuned on successful tool-use trajectories collected with the frozen library, on training formulas screened to be disjoint from all evaluation benchmarks. Ablations show the two phases are complementary: with no tool library at all the same model solves almost nothing, the tools account for most of the gain, and trajectory training adds a further gain that is largest on the most difficult problems. The full system solves 79.1/71.3% of LSR-Synth problems at fit tolerances 10−2/10−310^{-2}/10^{-3}, reaches 63.8% pooled accuracy on the distributionally different SRSD-Feynman panel, and obtains a normalized CP3-28 aggregate of -7.27. These results suggest a broader recipe for scientific agents: let the model and its instruments improve each other under verifiable feedback.

1 INTRODUCTION

Many scientific laws are written as equations relating measured quantities. Given experimental observations, scientific equation discovery, classically studied as symbolic regression (SR), asks for a compact equation that fits the observed data and remains accurate on new observations; it has long been a central goal of automated science (Brunton et al., 2016; Cranmer, 2023). Classical methods search the space of candidate expressions directly, by genetic programming or neural-guided search (Cranmer, 2023; Petersen et al., 2021; Landajuela et al., 2022). Recent systems instead place a large language model (LLM) at the center of the search: the model proposes candidate equations, calls computational tools, and reads the returned numbers to decide what to try next (Shojaee et al., 2025a; Grayeli et al., 2024; Merler et al., 2024; Xia et al., 2026). These tools are executable numerical routines that, for example, detect periodicity in the data, fit the unknown constants of a proposed equation, or score how well a candidate matches the observations.

Two parts of such a system jointly determine what it can discover. The first is the tool library, the set of executable operations the model can call. The library bounds the reachable hypothesis space: an equation family that no available tool can fit or test can never be confirmed, no matter what the model proposes. The second is the model's tool-use policy, its learned behavior of choosing which tool to call, with what arguments, and how to act on the result. Even when the right tool exists, a policy that skips it, calls it with unsuitable arguments, or misreads its output still fails. A failed discovery attempt therefore has two distinct causes, a missing capability or a misused one, and correcting them requires changing different parts of the system: the first requires new tools, the second a better policy.

Existing approaches, however, typically adapt only one of the two parts. One line holds the model fixed and grows the tools or skills around it, in general agent settings (Wang et al., 2024a; Qian et al., 2023; Yuan et al., 2024; Wang et al., 2024b) as well as in equation discovery, where systems such as SR-Scientist keep the model frozen while it writes analysis code and refines candidate equations (Xia et al., 2026; Shojaee et al., 2025a; Yang et al., 2026a). A complementary line trains the model while holding its toolset fixed, from general tool-use training (Schick et al., 2023; Patil et al., 2024; Qin et al., 2024) to SR systems that fine-tune the model on discovery trajectories with an unchanged toolset (Zhao et al., 2026; Behzadifar et al., 2026). Either choice leaves one class of failures uncorrectable, and to our knowledge no equation-discovery system evolves its tool library and trains its tool-use policy together (Section 2). Equation discovery is also a setting where this coupling matters and can be studied cleanly: the equation families a new problem requires are hard to anticipate, so a library fixed at design time risks lacking a needed capability; whether a tool helps depends on the policy that invokes it, so added capability pays off only when the model learns to use it; and every attempt ends with a verifiable outcome, the fit error of the proposed equation on observations the system has not seen, which separates success from failure unambiguously and can drive the improvement of both parts.

We therefore evolve both parts under the same verifiable fit-error signal. Throughout the paper we call everything outside the model the harness: the executable tool library, together with the rules that present the tools to the model and the rule that selects the final candidate equation. Our framework proceeds in two phases, each updating one part while the other is held fixed. Phase A evolves the harness: after each failed attempt, the system diagnoses whether the failure came from a missing capability or from a wrong choice by the model, and accordingly writes a new tool or revises the presentation and selection rules. Phase B improves the model's tool-use policy: with the evolved harness frozen, a small open model is fine-tuned on successful tool-use trajectories. In this way, failures expand what the system can test, and successes deepen the model's command of its tools, teaching it when to invoke which tool, how to set its arguments, and how to act on the returned evidence in the search.

This paper makes three contributions.

• We identify a coupled bottleneck in LLM-based equation discovery: a failed attempt can stem from a missing tool capability or from a misused one, and adapting only the toolset or only the model leaves one of the two failure classes uncorrectable.

• We propose, to our knowledge, the first framework that resolves both bottlenecks in scientific equation discovery, coupling failure-driven tool evolution with trajectory-based policy training under one verifiable fit-error signal.

• We provide evidence that the evolved capability transfers across benchmarks: the tool library and the trained policy, both produced on one benchmark family, are applied unchanged to benchmarks with different equation distributions and surpass the best published results there, while matched ablations attribute most of the gain to the evolved library and a further gain in tool-use reliability to policy training.

References (36)