arXiv:2610.24535cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24535

From Score to Diagnosis: Search-Independent Post-Diagnosis for Symbolic Regression

Qian Li, Yuxiao Hu, Juncheng Liu, Yanhao Jia, Yuntian Chen

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

ABSTRACT

Symbolic regression (SR) solvers employ diverse search mechanisms, yet most rely on the same low-information scalar fitness. Such scores provide little guidance on why a skeleton fails or how it should be revised. Recent methods develop new methods to address this bottleneck. Their enhanced feedback mechanisms are tightly coupled to their search processes and are difficult to reuse across diverse SR solvers. Instead, we ask whether a shared feedback mechanism can further improve diverse solvers facing the same bottleneck. To this end, we propose Post-Diag, a search-independent feedback mechanism, which can be shared to different SR solvers. PostDiag introduces Patch-wise Feature Profiling (PFP) to capture local behavior through patch-wise features of level, trend, and roughness. Based on PFP, PostDiag quantifies Skeleton Expressiveness Risk by comparing the fitted candidate with the observations, and Skeleton Stability Risk by measuring variability of behavior after bootstrap refitting. The Diagnostic Risk Plane (DRP) combines two risks to determine whether a skeleton should be preserved, repaired, simplified, or rewritten, while the patch-wise discrepancies provide evidence for the intervention. An LLM editor then performs the diagnosis-guided intervention, and the validated revision is returned to the original solver through a lightweight adapter. Experiments across multiple LLM-based and GP-based SR solvers show that PostDiag consistently improves accuracy and accelerates convergence.

1 INTRODUCTION

Symbolic regression (SR) discovers compact, interpretable mathematical expressions from observed data, enabling data-driven scientific discovery across physics, biology, chemistry, and engineering (Wang et al., 2023; Zhang et al., 2025b; Karniadakis et al., 2021; Krenn et al., 2022; Udrescu & Tegmark, 2020; Udrescu et al., 2020). Given observations {(xi,yi)}i=1N\{(x_i, y_i)\}_{i=1}^N, SR searches for an expression f:x↦yf : x \mapsto y that explains the underlying relationship. Modern SR solvers employ diverse search strategies to enable efficient and accurate SR: PySR uses multi-population evolutionary search (Cranmer, 2023); LLM-SR iteratively refines equations using the code-generation and reasoning capabilities of LLMs (Shojaee et al., 2025a); LaSR co-evolves equations with a reusable concept library (Grayeli et al., 2024); and SR-Scientist autonomously integrates data analysis, tool use, and equation refinement (Xia et al., 2025). This diversity is valuable because different solvers offer complementary strengths.

Despite their diverse search strategies, most SR solvers rely on the same impoverished search feedback: a scalar fitness score, such as MSE or NMSE. By collapsing the residual landscape into a single value, these scores obscure error geometry and reveal little about where, why, or how a candidate fails. Indeed, similar scores may correspond to fundamentally distinct failure modes (Li et al.; Xiang et al.). This limited feedback leaves even sophisticated search mechanisms poorly informed, resulting in inefficient and misdirected exploration.

∗^{*}Corresponding author

Figure

Figure 1: Overview of POSTDIAG, a search-independent post-diagnosis pipeline for symbolic regression. Given a candidate skeleton s produced by LLM-based or GP-based SR solver, POSTDIAG first examines its local behavior via patchwise feature profiling, then reports the diagnostic report (evidence map), and diagnoses the failure type on the diagnostic risk plane, and finally calls a conditional LLM intervention, yielding a diagnosis-driven modification s~\tilde{s} that is returned to the solver.

Recent methods RESTART and Deliberate Evolution (DE) design new SR solvers that embed structured diagnostics into their search loops, providing clearer directions for candidate refinement than scalar errors alone (Li & Pan, 2026; Pang et al., 2026). However, their feedback mechanism depends on solver-specific search information, such as search trajectories memory, parent-selection strategy, and operator policy. Thus, feedback mechanisms are tightly coupled to the method's search process and remain an internal solver capability rather than reusable feedback. This coupling creates an undesirable trade-off: obtaining such enhanced feedback mechanism generally requires adopting the accompanying search framework, rather than retaining the distinctive mechanisms of existing solvers, such as LaSR's concept-equation co-evolution, SR-Scientist's autonomous tool-use loop, and PySR's efficient genetic-programming engine.

This motivates a different question: can richer diagnostic feedback be made reusable across diverse solvers, so that their shared feedback bottleneck can be addressed without sacrificing their distinctive search mechanisms? Rather than introducing another new solver, we pursue a route orthogonal to solver design: constructing a diagnostic feedback mechanism that can be integrated with different SR solvers. Such a mechanism should be search-independent, neither depending on nor altering the solver's underlying search mechanism; informative, revealing where and how a candidate fails; and solver-compatible, allowing diagnosis-guided revisions to be readily returned to the solver.

To instantiate this view, we propose PostDiag, a search-independent post-diagnostic module for SR. Unlike feedback mechanisms embedded in the search loop, PostDiag takes only candidate skeletons and observed data as input, without relying on solver-specific search mechanisms. It can therefore be integrated with solvers that employ different search mechanisms. For each candidate, PostDiag produces two complementary outputs: an evidence map that reveals where and how the candidate fails, and a risk localization that determines the appropriate intervention. PostDiag first introduces Patchwise Feature Profiling (PFP), which represents local candidate behavior using structured fingerprints of level, trend, and roughness. Rather than compressing diagnostic information into a single global error, discrepancies between these local fingerprints form an interpretable evidence map and support the estimation of Skeleton Expressiveness Risk and Skeleton Stability Risk. The former captures the structural mismatch remaining after coefficient fitting, while stability measures the candidate's sensitivity to data resampling. The Diagnostic Risk Plane (DRP) uses these two quantities to assign the candidate to one of four intervention regions: preserve, repair, simplify, or rewrite. A conditional LLM then performs the corresponding skeleton intervention, and the revised candidate is returned to the original solver through a lightweight adapter. We integrate the PostDiag with different SR solvers spanning LLM-based and GP-based methods, and evaluate them on the LSR-Synth dataset of LLM-SRBench. The results show that PostDiag improves candidate refinement and accelerates convergence without replacing the solvers’ original search mechanisms. Ablation studies further validate the contribution of each diagnostic component.

Our contributions come in fourfold: (1) We introduce a solver-independent post-diagnostic perspective for SR that separates feedback design from search design, addressing a shared feedback bottleneck without replacing existing solvers. (2) We propose PostDiag, a reusable diagnostic module that takes only a candidate skeleton and observed data as input and returns evidence-supported diagnoses and candidate revisions through lightweight solver adapters. (3) We develop PFP to extract patch-wise diagnostic evidence and DRP to map skeleton adequacy and stability to targeted interventions. (4) We integrate the PostDiag with seven different LLM-based and GP-based SR solvers, demonstrating broad compatibility and consistent convergence improvements.

References (85)