Manuscript Offprint

arXiv:2609.35501

SRHarness: A Harness for Agentic Symbolic Regression

Zihan Yu, Shixuan Zhou, Hao Huang, Jingtao Ding, Yong Li

ABSTRACT

Recent agentic symbolic regression approaches increasingly rely on large language models to analyze data, select scientific operations, and refine hypotheses over long search trajectories. In such systems, performance depends not only on the underlying model and search strategy, but also on the runtime infrastructure that supports scientific search. We introduce SRHarness, a domain-specific harness for agentic symbolic regression built around three mechanisms: composable scientific actions that provide a common interface over raw, transformed, and candidate-derived quantities; persistent scientific state that retains evaluated hypotheses and exposes compact model-facing views; and trajectory lifecycle management that coordinates continuation, branching, restart, and termination. On LLM-SRBench, SRHarness consistently improves both numerical generalization and symbolic recovery under matched LLM backbones. With DeepSeek-v4-flash-0731, it achieves 93.69% symbolic accuracy on LSR-Transform, compared with 62.16% for SR-Scientist, and retains 72.97% accuracy on an anonymized variant that removes scientific descriptions and variable semantics, versus 39.64% for SR-Scientist. Under the same DeepSeek-v4-flash-0731 backbone, SRHarness also substantially outperforms Codex (72.97% vs. 20.72%) and reaches performance comparable to Codex with GPT-5.5, while simply providing Codex with the same scientific tools does not reproduce this advantage. These results show that effective agentic symbolic regression depends not only on models or tools, but also on structured runtime support for organizing scientific actions, accumulated hypotheses, and long-horizon search.

1 Introduction

Symbolic regression (SR) aims to discover interpretable mathematical expressions that explain observed data. Traditional SR methods design algorithms, such as genetic programming, to search the combinatorial space of mathematical expressions Koza (1994), while recent LLM-based approaches leverage scientific knowledge, reasoning, and code generation to guide the discovery of mathematical expressions from data Ma et al. (2024); Grayeli et al. (2024); Shojaee et al. (2025a); Guo et al. (2025). Recent agentic SR methods take this idea further, elevating the LLM from a component that proposes or modifies equations within a predefined search procedure to a controller that autonomously selects scientific operations based on intermediate evidence Xia et al. (2026); Yang et al. (2026); Wang et al. (2026). As LLMs play a more active role in long-horizon equation discovery, system behavior increasingly depends not only on the underlying model and search strategy, but also on the surrounding execution infrastructure.

This infrastructure is commonly described as an agent harness, which has recently received increasing attention as the layer that supports and governs agent execution over extended interactions Meng et al. (2026). For symbolic regression, such a harness must support the agent in analyzing observed data through different scientific operations while maintaining an evolving space of competing scientific hypotheses. In this process, candidate equations obtained through heterogeneous operations should share consistent representations and evaluation semantics so that they can be compared directly, while remaining available to be revisited, revised, and reused as new evidence emerges. Supporting such hypothesis-centric scientific search places domain-specific requirements on the harness, including composable

∗^{*}Corresponding authors.

scientific operations, persistent hypothesis and evidence management, and lifecycle management across long-running search trajectories. Although existing agentic SR systems already implement parts of this support, these mechanisms are typically designed around their respective search strategies rather than treated as an independent layer, so comparisons across systems may conflate differences in search strategy with differences in the supporting harness Zhang et al. (2026c).

To address these requirements, we introduce SRHarness, a domain-specific harness for agentic symbolic regression that provides reusable runtime support without prescribing a particular search strategy. First, composable scientific actions separate agent-specified scientific arguments from harness-managed execution context and support expression-based views over raw, transformed, and candidate-derived quantities, allowing heterogeneous analysis, fitting, and search procedures to operate through a common interface and evaluation semantics. Second, persistent scientific state retains evaluated hypotheses and their supporting evidence outside the transient conversation while exposing compact model-facing views of the accumulated search state. Third, trajectory lifecycle management coordinates continuation, branching, restart, and termination while preserving useful scientific information across long-horizon search. Together, these mechanisms make runtime support explicit, separating recurring execution, state-management, and trajectory-management concerns from the scientific search logic.

We evaluate SRHarness on LLM-SRBench and find consistent improvements over representative LLM-based and agentic SR methods under matched LLM backbones. On LSR-Synth, with DeepSeek-v4-flash-0731, SRHarness reaches 78.00%, 78.87%, 87.09%, and 96.00% OOD accuracy on physics, chemistry, biology, and materials science, respectively. On the complementary LSR-Transform track, which places greater emphasis on exact symbolic recovery, SRHarness achieves 93.69% symbolic accuracy, compared with 62.16% for SR-Scientist under the same backbone. We further construct LSR-Transform-Anon, which removes scientific descriptions and variable semantics while preserving the numerical observations; SRHarness still achieves 72.97% symbolic accuracy, compared with 39.64% for SR-Scientist. To further isolate the role of the harness, we compare against Codex under the same DeepSeek-v4-flash-0731 backbone, where SRHarness achieves 72.97% symbolic accuracy versus 20.72% for Codex, and reaches performance comparable to Codex with GPT-5.5 (68.47%). Providing the same scientific tools to Codex does not reproduce this advantage. Together, these results show that effective agentic symbolic regression depends not only on the underlying model or available tools, but also on structured runtime support that organizes scientific actions, accumulated hypotheses, and long-horizon search.

References (71)