Introduction
Symbolic Regression (SR) is often considered the "holy grail" of data science. Unlike standard machine learning models that produce "black box" weight matrices, SR aims to discover the simplest mathematical formula—such as $y = \sin(x) + x^2$—that explains a given dataset. This provides researchers with interpretable equations that can reveal underlying physical laws.
However, the search space for these equations is infinite and discrete, presenting a significant optimization challenge. Traditional approaches like Genetic Programming (GP) are often computationally expensive. Newer Deep Reinforcement Learning (DRL) methods, while promising, frequently suffer from training instability or produce overly complex "word salad" equations that lack physical meaning.
Methodology: Diffusion and Reinforcement Learning
The authors propose DDSR (Diffusion-Based Deep Symbolic Regression), which treats equation discovery as a denoising task. The framework introduces three primary innovations to stabilize the search for equations:
- Random Masked-Based Discrete Diffusion: Unlike image-based diffusion that adds Gaussian noise, DDSR uses a masking process. During training, tokens in a known equation are hidden one by one. The model learns to predict these missing pieces. During inference, it starts with a blank slate and iteratively "denoises" the sequence into a complete mathematical expression.
- Token-Wise GRPO: To stabilize training, the authors integrate Group Relative Policy Optimization (GRPO). By comparing a group of generated equations and using a "trust region" to limit drastic strategy shifts, GRPO prevents the training collapses common in standard RL.
- Long Short-Term Risk-Seeking Policy: DDSR maintains a "hall of fame" buffer of the best equations discovered throughout the entire training process. This long-term memory ensures the model retains high-performing candidates even if the current policy shifts.
Experimental Setup
DDSR was evaluated using SRBench, the gold standard for symbolic regression. The benchmark includes 133 ground-truth problems (e.g., Feynman and Strogatz datasets) and 120 black-box real-world datasets. These tests measure the model's ability to recover exact formulas and its efficiency in balancing accuracy against complexity.
Key Results and Insights
DDSR demonstrated significant improvements over existing baselines. On noiseless datasets, it achieved a symbolic recovery rate of 46.5%, nearly doubling the 24.8% rate of the original DSR model. In black-box testing, DDSR sits on the "Pareto frontier," offering one of the best trade-offs between model simplicity and predictive power compared to 18 other baseline methods.
Key findings include:
- Structural Integrity: Masking tokens one at a time, rather than all at once, allows the model to better learn the "grammar" of mathematics.
- Simplicity and Interpretability: DDSR consistently finds shorter, more human-readable expressions (averaging ~17 tokens) compared to large foundation models that often produce unwieldy 70-token strings.
- Efficiency: The diffusion-based approach achieved these results in approximately half the runtime of the DSR baseline.
Limitations and Future Directions
While DDSR is highly effective, it faces challenges with high data noise. Performance drops significantly when noise levels reach 10%, where some specialized variants (like DSR-W/OC) remain more robust. Additionally, while faster than many RL methods, it still requires more convergence time for complex multi-variable problems than "one-shot" models.
Future work involves moving toward supervised pre-training on massive synthetic datasets. By combining pre-training with the diffusion-RL approach, the authors aim to develop a true "foundation model" for symbolic regression.
Summary updated