[Paper Review] Deep symbolic regression: Recovering mathematical expressions from data via policy gradients
This paper proposes a deep reinforcement learning framework that uses a recurrent neural network to search for optimal mathematical expressions via policy gradients, significantly outperforming genetic programming in recovering symbolic expressions from noisy and noiseless data. The method treats symbolic regression as a sequential decision problem, enabling exact recovery of complex expressions while incorporating prior constraints.
Discovering the underlying mathematical expressions describing a dataset is a core challenge for artificial intelligence. This is the problem of symbolic regression. Despite recent advances in training neural networks to solve complex tasks, deep learning approaches to symbolic regression are lacking. We propose a framework that combines deep learning with symbolic regression via a simple idea: use a large model to search the space of small models. More specifically, we use a recurrent neural network to emit a distribution over tractable mathematical expressions, and employ reinforcement learning to train the network to generate better-fitting expressions. Our algorithm significantly outperforms standard genetic programming-based symbolic regression in its ability to exactly recover symbolic expressions on a series of benchmark problems, both with and without added noise. More broadly, our contributions include a framework that can be applied to optimize hierarchical, variable-length objects under a black-box performance metric, with the ability to incorporate a priori constraints in situ.
Motivation & Objective
- To address the challenge of discovering underlying mathematical expressions from data, a central problem in artificial intelligence and scientific discovery.
- To overcome limitations in existing deep learning approaches to symbolic regression, which lack effective search mechanisms for complex expressions.
- To develop a framework that enables efficient, differentiable search over hierarchical, variable-length symbolic expressions under a black-box performance metric.
- To incorporate a priori constraints directly into the search process, improving generalization and interpretability of learned expressions.
- To demonstrate superior performance in exact symbolic expression recovery compared to standard genetic programming on benchmark problems.
Proposed method
- A recurrent neural network (RNN) is trained via policy gradients to generate symbolic expressions as sequences of tokens, modeling the search space as a sequential decision process.
- The RNN outputs a probability distribution over possible next symbols in an expression, enabling stochastic exploration of the space of mathematical expressions.
- Reinforcement learning optimizes the RNN policy using rewards based on how well the generated expressions fit the observed data, with exact matches receiving high rewards.
- The method supports variable-length expressions and hierarchical structure, allowing complex mathematical constructs like nested functions and operations.
- Constraints such as variable types or functional forms can be encoded directly into the action space or reward shaping, enabling in-situ incorporation of domain knowledge.
- The framework is trained end-to-end using policy gradient methods, with gradients backpropagated through the RNN to improve expression generation over time.
Experimental results
Research questions
- RQ1Can a deep reinforcement learning approach outperform traditional genetic programming in recovering exact symbolic expressions from data?
- RQ2How well does the proposed method generalize to datasets with varying levels of noise?
- RQ3To what extent can aural constraints (e.g., functional form, variable types) be integrated into the symbolic expression search process?
- RQ4Can the framework effectively search over hierarchical, variable-length symbolic structures under a black-box performance metric?
- RQ5Does the use of policy gradients enable more efficient and accurate symbolic regression compared to gradient-free evolutionary methods?
Key findings
- The proposed method significantly outperforms standard genetic programming in recovering symbolic expressions on benchmark problems, both with and without added noise.
- The framework achieves exact recovery of complex mathematical expressions that are difficult for traditional evolutionary algorithms to discover.
- The method demonstrates robustness to noise, maintaining high accuracy even when training data contains significant perturbations.
- Incorporating a priori constraints into the search process improves the quality and interpretability of the discovered expressions.
- The use of policy gradients enables effective, differentiable search over the space of symbolic expressions, leading to faster convergence and better generalization.
- The approach is generalizable to other tasks involving optimization over structured, hierarchical, and variable-length objects under black-box evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.