cs.LGOct 12, 2026

Learning to Design SR Solvers: Harness Optimization for Symbolic Regression

Authors: Qian Li, Yuxiao Hu, Qihao Duan, Jinyue Yan, Yuntian Chen

Organizations: Shanghai Jiao Tong University, Shanghai, China · Eastern Institute of Technology, Ningbo, China · The Hong Kong Polytechnic University, Hong Kong, China · Epigenetics Laboratory, Max Planck Institute for Heart and Lung Research

Abstract

Symbolic regression (SR) seeks explicit equations that explain observed data, and recent methods increasingly employ large language models (LLMs) and agents for equation discovery. However, these systems typically rely on manually designed workflows and prompts. We argue that the SR agent harness should itself be an optimization target: its design shapes search priors and how numerical feedback guides subsequent equation refinement. We therefore propose HarnessSR, a framework for jointly optimizing prompts and workflows to construct reusable SR agents. During both harness optimization and agent execution, HarnessSR supports either PySR or an LLM-based equation generator through tool-specific interfaces, allowing the framework to optimize search guidance for different equation-discovery mechanisms. HarnessSR first optimizes role prompts through equation-discovery feedback in basic workflows, then jointly searches prompt assignments and workflows with brief adaptation to align the two. Finally, it refines role instructions through reflection on residual patterns, candidate equation structures, and search outcomes, improving how these signals guide subsequent equation search. On LSR-Synth in LLM-SRBench, HarnessSR achieves a mean ID Acc0.01\mathrm{Acc}_{0.01} of 61.33% across three backbones, a 45.0% relative improvement over the next-best baseline.

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A-SR: Self-Evolving Agentic LLMs for Symbolic Regression via Hierarchical Coordination

    Aug 5, 2026Wenxiao Zhao, Dong Liu, Kaiyi Xu +9Multi-Agent LLM SystemsLLM Agent Training

  2. SRHarness: A Harness for Agentic Symbolic Regression

    Sep 28, 2026Zihan Yu, Shixuan Zhou, Hao Huang +2Long-Horizon LLM AgentsLarge Language Model-Guided Scientific Discovery