NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Symbolic Optimization: Reinforcement Learning for Symbolic Mathematics

Conor F. Hayes, Felipe Leno da Silva, Jiachen Yang, T. Nathan Mundhenk, Chak Shing Lee, Jacob F. Pettit, Claudio Santiago, Sookyung Kim, Joanne Taery Kim, Ignacio Aravena Solis, Ruben Glatt, Andre R. Goncalves, Alexander Ladd, Ahmet Can Solak, Thomas Desautels, Daniel M. Faissol, Brenden K. Petersen, Mikel LandajuelaarXiv 2025 · DOI

Introduction

Symbolic Regression (SR) is a fundamental task in scientific discovery, aiming to find mathematical expressions that accurately describe the relationship between variables in a dataset. Unlike standard "black-box" machine learning models, such as deep neural networks, SR produces interpretable equations that can be analyzed and understood by human researchers. However, the search space for SR is discrete and grows combinatorially with the number of operators, variables, and constants, leading to a "combinatorial explosion." Traditional methods like Genetic Programming (GP) are prone to getting stuck in local optima, while standard deep learning lacks the necessary transparency. Deep Symbolic Optimization (DSO) bridges this gap by framing equation discovery as a sequential decision-making problem, utilizing reinforcement learning (RL) to navigate the vast space of possible expressions.

Methodology

Autoregressive Generation and Expression Trees

The DSO framework utilizes an autoregressive model, typically a Recurrent Neural Network (RNN), to generate mathematical expressions. The model samples tokens—such as mathematical operators (+, sin, log), variables (x, y), and constants—one at a time. These tokens are organized according to a "pre-order traversal" of an expression tree. This structured approach ensures that every sampled sequence corresponds to a syntactically valid mathematical function, effectively mapping the discrete search space into a format that a neural network can learn to navigate.

DSO Framework: An RNN generates mathematical expressions as a pre-order traversal of an expression tree.

Risk-Seeking Policy Gradient (RSPG)

A pivotal innovation of DSO is the Risk-Seeking Policy Gradient (RSPG). Conventional RL algorithms are designed to maximize the expected reward, which corresponds to improving the average performance of the model. In symbolic optimization, however, the average performance is irrelevant; the objective is to find the single "best-case" equation that perfectly fits the data. RSPG modifies the standard policy gradient objective to focus exclusively on the top $\epsilon$ fraction of samples. This shift encourages the model to explore rare, high-performing regions of the search space, which is essential for discovering exact symbolic solutions.

Risk-Seeking Policy Gradient: The objective surface focuses on maximizing the performance of the best-case samples.

Constraints and Unified Frameworks

To further refine the search, DSO incorporates "in-situ constraints." These are domain-specific priors that prune the categorical distribution of tokens before they are sampled, preventing the generation of physically implausible or overly complex expressions (e.g., nested logarithms or excessively long equations). The framework has evolved into "Unified DSO" (uDSO), which integrates RL with Genetic Programming for local fine-tuning, large-scale pre-training on mathematical corpora like Wikipedia, and the AI Feynman algorithm for recursive problem simplification. Additionally, extensions like DisCo-DSO allow for the joint optimization of discrete symbolic tokens and continuous floating-point constants, improving efficiency over traditional gradient-free optimization methods.

Experimental Evaluation

The authors evaluated DSO across several rigorous benchmarks to demonstrate its robustness and versatility:

  • Nguyen Suite: A classic collection of 12 symbolic regression problems.
  • SRBench: A massive benchmark featuring 130 "ground-truth" analytic problems and 122 real-world "black-box" datasets.
  • Livermore Benchmark: A new, more challenging set of problems introduced to test the limits of algorithms where older benchmarks had become saturated.
  • Wikipedia Math: A dataset of ~800,000 expressions used for large-scale pre-training of priors, enabling the model to leverage existing mathematical knowledge.

Results and Discussion

The experimental results highlight DSO's state-of-the-art capabilities. On the comprehensive SRBench, uDSO outperformed 14 contemporary symbolic regression methods in both symbolic recovery (finding the exact ground-truth equation) and predictive accuracy. The inclusion of pre-trained priors was shown to significantly reduce the computational cost, with DSO finding solutions in up to 20% fewer steps on benchmarks like Nguyen-5.

A key finding is DSO's position on the "Pareto frontier." In symbolic regression, there is an inherent trade-off between an equation's simplicity (parsimony) and its accuracy. uDSO consistently provides the best trade-offs compared to established tools like Operon and SINDy, producing models that are both accurate and succinct. This success is largely attributed to the "Expectation Problem" insight: by moving away from average-case optimization, DSO maintains a high degree of exploration, allowing it to continue discovering superior solutions long after standard RL methods would have plateaued.

Conclusion

Deep Symbolic Optimization represents a significant advancement in the field of neuro-symbolic AI. By treating mathematical discovery as a reinforcement learning problem and focusing on best-case performance, DSO provides a powerful and interpretable alternative to black-box modeling. While challenges such as the computational cost of constant optimization and scaling to high-dimensional data remain, the framework's modularity allows for future integration with Large Language Models and multi-objective optimization, promising even greater capabilities in automated scientific discovery.

Summary updated

BibTeX
@misc{hayes2025deep,
  author = {Conor F. Hayes and Felipe Leno da Silva and Jiachen Yang and T. Nathan Mundhenk and Chak Shing Lee and Jacob F. Pettit and Claudio Santiago and Sookyung Kim and Joanne Taery Kim and Ignacio Aravena Solis and Ruben Glatt and Andre R. Goncalves and Alexander Ladd and Ahmet Can Solak and Thomas Desautels and Daniel M. Faissol and Brenden K. Petersen and Mikel Landajuela},
  title = {{Deep Symbolic Optimization: Reinforcement Learning for Symbolic Mathematics}},
  year = {2025},
  eprint = {2505.10762},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.10762},
}
Figure