arXiv:2610.33880cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33880

DIGEST: Discovery-Guided LLM Tuning for Symbolic Regression

Kaifeng Jin, Ruizhong Qiu, Zihao Li, Xiao Lin, Dongqi Fu, Yinglong Xia, Hong Li, Hanghang Tong

ABSTRACT

Symbolic regression (SR) seeks to discover mathematical expressions directly from data, without requiring task-specific scientific descriptions. Despite tremendous progress in both conventional search-based methods and recent LLM-based methods, two critical limitations largely remain. First (Limited Generation Flexibility), conventional search-based methods rely on either fixed search rules or specialized learned generators, severely limiting adaptive candidate generation across diverse expression structures. Second (Underutilized Search Discoveries), most LLM-based methods cannot reliably recover ground-truth expressions because they fall short in effectively leveraging the LLM itself to thoroughly digest past expressions or adaptively guide future search. To address these limitations, we propose DIGEST. To render greater flexibility in generation, DIGEST repurposes a pretrained decoder block from a lightweight LLM into a symbolic policy for Genetic Programming (GP) population seeding, thereby leveraging the broader modeling capacity of the LLM. To more thoroughly utilize search discoveries, high-quality expressions discovered by GP are fed back to update the LLM-derived policy online, thereby enabling the LLM to progressively internalize past search discoveries and translate them into improved subsequent population generation. Experiments show that on two ground-truth benchmarks, DIGEST outperforms the strongest competitor by up to 2.59% in recovery. Among LLM-based baselines, it improves recovery by at least 54.91% while using at most 17.4% of the strongest competitor's mean search time. On 122 BlackBox datasets, DIGEST achieves the highest accuracy while maintaining a moderate model complexity.

1 INTRODUCTION

Symbolic regression (SR) seeks to discover mathematical expressions directly from data, without requiring task-specific scientific descriptions (La Cava et al., 2021). By searching over both expression structure and numerical parameters, SR provides a way to construct explicit models when a suitable functional form is not known in advance. Recent large language model (LLM) approaches further use scientific descriptions and domain knowledge as auxiliary information for equation discovery (Shojaee et al., 2025a). Such information can be valuable when available. However, there are also black-box discovery settings in which only numerical input-output observations are available, without reliable task-specific descriptions or variable semantics.

Figure

Figure 1: DIGEST achieves the highest R2R^{2} with moderate model size on BlackBox datasets.

In such settings, SR is particularly valuable because candidate functional forms cannot be readily specified from domain knowledge and must instead be discovered from the observations themselves. Accordingly, SR methods, particularly LLM-based ones, should remain effective even when scientific context is unavailable, rather than relying on it as a prerequisite. We focus on this class sical data-driven SR setting, using input-output observations and a predefined symbolic vocabulary without supplied variable semantics or physical units.

Despite tremendous progress in both conventional search-based and recent LLM-based SR, two critical limitations remain. First (Limited Generation Flexibility), conventional search-based methods generate candidates through predefined search mechanisms or specialized learned generators. For example, PySR evolves expression populations through genetic operations (Cranmer, 2023), DSR learns a recurrent generation policy (Petersen et al., 2019), and E2E trains a Transformer on synthetic equation-data pairs (Kamienny et al., 2022). These mechanisms can exploit numerical feedback, but their candidate-generation behavior is shaped by the chosen search rules or SR-specific learned priors. This can limit generation flexibility across targets with different operator combinations, nested functions, and variable interactions.

Second (Underutilized Search Discoveries), most LLM-based methods fail to reliably recover ground-truth expressions because they fall short in effectively leveraging the LLM itself to thoroughly digest past expressions or adaptively guide future search. Although many LLM-based methods reuse previously discovered expressions and structures together with their evaluation scores, these search discoveries are typically incorporated through prompts, memories, libraries, or search operators while the underlying LLM remains fixed (Merler et al., 2024; Shojaee et al., 2025a; Grayeli et al., 2024). As a result, past discoveries can influence subsequent search, but are not progressively internalized by the LLM itself to reshape future candidate generation.

To address these limitations, we propose DIGEST (Discovery-Guided LLM Tuning for Symbolic Regression via Genetic Programming), which turns discoveries from genetic programming (GP) into online training signals for an LLM-derived symbolic policy. To render greater flexibility in generation, DIGEST repurposes a pretrained decoder block from a lightweight LLM into a symbolic policy for GP population seeding. This LLM-derived policy maps expression-tree context to distributions over symbolic tokens. By leveraging the broader modeling capacity of the LLM, the policy supports more flexible candidate generation across diverse expression structures. The generated expressions initialize GP populations for multi-generation evolutionary refinement. To more thoroughly utilize search discoveries, high-quality expressions discovered by GP are fed back to adapt the LLM policy online. The adapted policy then seeds the next GP search. Through this online adaptation, the policy progressively internalizes past search discoveries and translates them into improved subsequent population generation.

Experiments on Nguyen and Livermore show that DIGEST outperforms the strongest competitor by up to 2.59% in recovery. Among the evaluated LLM-based baselines, it improves recovery by at least 54.91% while using at most 17.4% of the mean search time of the strongest competitor. On 122 SRBench BlackBox datasets, DIGEST achieves the highest cross-dataset median test R2R^{2} among the compared methods while maintaining moderate model complexity. Our main contributions are summarized as follows:

• LLM-derived symbolic policy. We repurpose a pretrained decoder block from a lightweight LLM into a symbolic policy that maps expression-tree context to distributions over symbolic tokens for GP population seeding. By leveraging the broader modeling capacity of the LLM, this design supports more flexible candidate generation across diverse expression structures.

• Online adaptation from search discoveries. We feed high-quality expressions discovered by GP back to update the LLM policy online. This allows the LLM to progressively internalize past search discoveries and use them to improve subsequent population generation.

• Evaluation. Experiments on two ground-truth benchmarks and 122 SRBench BlackBox datasets demonstrate strong recovery and predictive performance (Figure 1).

References (1)