In the quest to understand the physical world, scientists have long sought "parsimonious" equations—simple, elegant mathematical formulas that describe complex systems. While deep learning excels at predicting outcomes, it often produces "black boxes" that offer little insight into the underlying logic. Symbolic Regression (SR) aims to change that by automatically distilling human-readable equations from raw data.
A new paper introduces the Reinforcement Symbolic Regression Machine (RSRM), a framework designed to uncover intricate mathematical relationships even when data is scarce and the equations are long.
TL;DR
RSRM is a novel symbolic regression framework that combines Monte Carlo Tree Search (MCTS) with Double Q-learning and a "divide-and-conquer" sub-tree discovery module. It excels at finding complex, parsimonious mathematical equations from sparse data, significantly outperforming existing state-of-the-art models on standard physics and math benchmarks.
What Problem Does This Paper Address?
The search space for mathematical expressions is effectively infinite. Current SR methods often hit a "complexity wall": they work well for short formulas but struggle with lengthy, intricate equations or tend to overfit when data points are limited.
Existing approaches like Genetic Programming (GP) can be unstable, while pure Reinforcement Learning (RL) methods often suffer from "overestimation bias"—where the agent thinks a certain path is better than it actually is, leading to inefficient searches. The authors identify a specific gap: models often capture parts of a complex equation correctly but fail to assemble the entire string.
Methods
The RSRM framework uses a three-pronged approach to navigate the mathematical search space:
- Exploration via MCTS: The model builds expression trees (where nodes are operators like $+$ or $\sin$ and leaves are variables) layer-by-layer. MCTS allows the agent to explore many possible "branches" of an equation.
- Exploitation via Double Q-learning: To prevent the agent from getting stuck in sub-optimal paths, the authors integrated Double Q-learning into the MCTS process. This helps the model better understand the reward distribution and focus its search on the most promising mathematical structures.
- Modulated Sub-tree Discovery (MSDB): This is the paper's most significant innovation. MSDB acts as a "divide-and-conquer" mechanism. It identifies common patterns or sub-components that perform well and treats them as new, higher-level operators (e.g., recognizing that a part of the data fits $e^x + f(x)$ and then focusing only on finding $f(x)$).
The process is iterative: the RL agent proposes trees, a Genetic Programming (GP) block fine-tunes the constants, and the MSDB block simplifies the search for the next round.
Datasets
The authors put RSRM through a gauntlet of rigorous benchmarks:
- Nguyen & Nguyen$^c$: Standard SR benchmarks for math and parametric optimization.
- Livermore: A collection of challenging equations featuring high exponentials and complex trigonometric functions.
- R & R$^0$: Rational functions (fractions of polynomials).
- AIFeynman: A suite of 100+ equations derived from fundamental physics textbooks.
- SRBench: A large-scale benchmark designed to test performance on noisy, real-world-style data.
- Free-falling Balls: Real experimental data of different balls dropped from a bridge to test the model's ability to learn physical laws of motion.
Key Insights and Ideas
- The Power of Symmetry: The model includes a pre-processing step to determine if a function is "odd" or "even." By identifying this parity early, the search space is halved. For example, if the model knows a function is even, it only needs to find $e^x$ to effectively discover $\cosh(x)$.
- Divide and Conquer: The MSDB module allows the model to "lock in" successful components of an equation. Instead of trying to find a 20-token equation all at once, it finds a 5-token component, defines it as a "form," and then searches for the remaining 15 tokens.
- Balancing the Search: By combining MCTS (global exploration) with Double Q-learning (local exploitation), the model avoids the common pitfall of "greedy" searches that settle for "good enough" but incorrect equations.
Key Results
RSRM demonstrated clear superiority over several heavyweights in the field (like SPL, DSR, and NGGP):
- Recovery Rates: On the difficult Livermore dataset, RSRM achieved a 97.95% average recovery rate, while the next best baseline (uDSR) trailed at 81.05%, and others like SPL sat at 51%.
- Rational Functions: On the R Benchmark, RSRM achieved a 68.83% recovery rate, while most baselines failed to recover any equations (0%).
- Real-World Physics: In the free-falling balls experiment, RSRM consistently found more accurate equations of motion with lower Mean Squared Error (MSE) than specialized physics-based baselines.
- Efficiency: The model proved to be highly data-efficient, often finding the correct ground-truth equation with significantly fewer evaluations than traditional neural-network-based approaches.
Limitations and Future Work
While powerful, the authors note that the current MSDB block is somewhat rigid, relying on three pre-defined sub-tree types ($A+f(x)$, $A \times f(x)$, and $A^{f(x)}$). This limits its adaptability to entirely new classes of mathematical structures.
Future directions include:
- Using neural networks to dynamically generate "slots" or templates for equations rather than relying on fixed forms.
- Incorporating more advanced RL techniques like Prioritized Experience Replay to further enhance the efficiency of the search.
- Extending the framework to reinforcement learning control tasks, where the "policy" could be represented as a simple, interpretable equation.
Summary updated