TL;DR
This paper introduces Differentiable Genetic Programming (DGP), a novel approach that bridges the gap between the interpretability of Genetic Programming (GP) and the efficiency of gradient-based optimization for Symbolic Regression (SR). DGP transforms discrete GP trees into a continuous "differentiable symbolic tree" representation, enabling gradient descent to optimize their structure for high-dimensional datasets where traditional GP struggles.
What Problem Does This Paper Address?
Symbolic Regression (SR) aims to discover mathematical expressions that represent underlying relationships in data, offering interpretable insights unlike black-box models. Genetic Programming (GP) has been a dominant method for SR due to its ability to evolve complex expressions. However, traditional GP's stochastic, evolutionary nature makes it inefficient and prone to generating overly complex, uninterpretable "bloated" expressions, especially when dealing with high-dimensional data (defined here as >50 features). While neural network (NN) based SR methods offer gradient-based efficiency, they often sacrifice interpretability. This paper addresses the challenge of achieving both efficient optimization and interpretable results for high-dimensional SR problems, a gap left by existing GP and NN approaches.
Methods
The core innovation of DGP lies in its "differentiable symbolic tree" (DST) representation. This involves:
- Symbolic Tree Construction: Standard GP approach to represent expressions as trees.
- Continuous Relaxation: The discrete tree structure is relaxed into a continuous representation using a node matrix (representing primitive proportions at each node) and an adjacency matrix (representing connection strengths between nodes). This allows for gradient-based optimization.
- Gradient-Based Optimizer: A novel framework that uses gradient descent to iteratively optimize the node and adjacency matrices of the DST. This includes a custom loss function that combines Normalized Root-Mean-Square Error (NRMSE) with a term encouraging weights to be close to 0 or 1, and a unique forward propagation mechanism for DSTs.
- Diversification Mechanism: After gradient-based optimization, a diversification phase samples new symbolic trees from the optimized DST and applies genetic operators (SHRINK, REPLACE, EXPAND) and standard GP operators (crossover, mutation) to explore diverse regions of the search space and escape local optima.
Datasets
The paper evaluates DGP on two types of datasets:
- Real-world Benchmarks: Eight regression datasets commonly used in SR research, including seven from the Penn Machine Learning Benchmarks (PMLB) with dimensions ranging from tens to hundreds of features, and the DLBCL dataset with over 7,000 features to specifically test high-dimensional performance.
- Synthetic Benchmarks: Six synthetic SR benchmarks with pre-defined ground truth expressions, used to evaluate the exact recovery rate of expressions and the methods' robustness to noise.
Key Insights and Ideas
- Gradient Descent for Structure Optimization: The paper demonstrates that gradient descent, typically used for parameter tuning in NNs, can be effectively adapted to optimize the structure of symbolic expressions by first making them differentiable.
- Differentiable Symbolic Tree (DST): This novel representation is key to enabling gradient-based optimization of GP trees, transforming a discrete search problem into a continuous one.
- Balancing Optimization and Exploration: DGP combines the efficiency of gradient descent for local search with a diversification mechanism (using genetic operators) to ensure global exploration and avoid local optima, a common pitfall in both GP and NN optimization.
- Addressing Bloating: The introduction of a "pass" operation and the diversification mechanism are designed to mitigate the "bloating" problem in GP, leading to more concise and interpretable expressions.
Key Results
- Superior Performance on High-Dimensional Data: DGP significantly outperforms state-of-the-art GP and NN-based SR methods on eight real-world high-dimensional regression benchmarks, achieving higher R² scores.
- Improved Recovery Rates: On synthetic benchmarks, DGP achieves the highest mean recovery rate (73.3%), significantly outperforming most competitors, indicating its ability to find exact mathematical expressions.
- Robustness to Noise: DGP demonstrates strong robustness to noise in the data, exhibiting the lowest test RMSE across various noise levels on synthetic benchmarks compared to other methods.
- Concise Expressions: DGP generates more compact symbolic expressions (fewer nodes) than traditional GP and rivals NN-based methods, contributing to better interpretability.
Limitations and Future Work
- Potential for Local Optima: The authors acknowledge that using the final expression's loss even in the early stages of search might lead to local optima.
- Future Work: The paper suggests exploring simultaneous optimization of constants and tree structures, and investigating how to combine the search for partial expressions with the search for overall expressions. They also propose that the gradient-based optimization approach could be applicable to other GP-based machine learning problems beyond SR.
Summary updated