TL;DR
Deep reinforcement learning for symbolic optimization often fails because the model "makes up its mind" too quickly on the first few symbols and gravitates toward overly complex, long-winded equations. This paper introduces hierarchical entropy and soft length priors to keep the search curious and focused on concise solutions, significantly improving the speed and accuracy of symbolic regression.
What Problem Does This Paper Address?
Symbolic Optimization (SO) is the art of finding a mathematical expression (like $f(x) = \sin(x) + x^2$) that best fits a dataset or solves a problem. Unlike standard regression, which just tunes numbers (weights), SO searches through a massive combinatorial space of symbols (operators, variables, and constants).
Recently, researchers have used Recurrent Neural Networks (RNNs) trained via policy gradients to navigate this space. However, these models face two major hurdles:
- Early Commitment: Because expressions are generated one token at a time, the RNN often becomes "certain" about the first few tokens very early in training. If it decides the equation starts with "plus" instead of "multiply," it might never explore the "multiply" branch again, even if the global optimum is there.
- Initialization Bias: Due to the math of random walks, a naive RNN is naturally biased toward generating the longest possible expressions allowed by its constraints. This leads to "bloat"—unnecessarily complex equations that are hard to interpret and prone to overfitting.
Methods
The authors propose two surgical interventions to the standard policy gradient framework:
1. Hierarchical Entropy Regularizer (HE)
Standard entropy regularization encourages the model to stay "uncertain" to promote exploration. However, in a sequence, entropy usually collapses at the beginning and stays high at the end. The authors introduce a weighting factor ($\gamma^{i-1}$) that decays exponentially. This forces the model to maintain higher entropy (more curiosity) for the first tokens in the sequence, preventing it from locking into a specific "branch" of the search tree too early.
2. Soft Length Prior (SLP)
Instead of just setting a maximum length, the authors inject a "soft" bias into the RNN's logits. They use a multiplicative Gaussian function to discourage expressions that are either too short or too long. This "nudges" the initial search toward a reasonable "sweet spot" of expression complexity without strictly forbidding any specific length.
Datasets
The researchers evaluated their methods on the Nguyen suite, a standard set of 12 symbolic regression benchmark problems. The goal in these tasks is to exactly recover a hidden mathematical function from a set of synthetic data points.
Key Insights and Ideas
- The Root is Key: In symbolic trees, the first few tokens (the root and its immediate children) define the entire structure of the equation. If you lose diversity there, you lose it everywhere. Hierarchical entropy specifically protects this diversity.
- Fighting the "Infinite Walk": Without guidance, an autoregressive model is mathematically predisposed to keep generating symbols until it hits a hard stop. The Soft Length Prior acts as a "statistical anchor," making the starting point of the search much more sensible.
- Efficiency vs. Accuracy: These techniques don't just find better answers; they find them faster. By not wasting time on overly long or repetitive branches, the search becomes much more sample-efficient.
Key Results
The authors compared their "Standard Entropy" (SE) baseline against versions using Hierarchical Entropy (HE), Soft Length Priors (SLP), and a combination of both (SLP+HE).
| Metric | SE (Baseline) | HE | SLP | SLP+HE (Ours) |
|---|---|---|---|---|
| Recovery Rate | 83.8% | 86.0% | 84.0% | 88.4% |
| Steps to Solve | 592.6 | 545.6 | 516.2 | 429.1 |
| Avg. Length | 19.86 | 19.16 | 16.17 | 14.14 |
The combination of both techniques (SLP+HE) was the clear winner, solving problems 27% faster than the baseline and producing equations that were significantly more compact (and thus more interpretable).
Limitations and Future Work
While highly effective on the Nguyen benchmarks, the paper notes a few areas for further exploration:
- Hyperparameter Sensitivity: The hierarchical decay ($\gamma$) and the length prior parameters ($\lambda, \sigma$) require tuning, which might vary depending on the complexity of the target functions.
- Scaling: The Nguyen suite consists of relatively simple functions. Future work is needed to see how these exploration strategies hold up in "wilder" combinatorial spaces, such as program synthesis or discovering new physical laws from high-dimensional experimental data.
- Integration with MCTS: The authors suggest that their RNN-based approach encodes knowledge similarly to Monte Carlo Tree Search (MCTS) but without the memory overhead; combining these ideas further could be a potent direction.
Summary updated