Introduction
Symbolic Regression (SR) aims to discover concise mathematical expressions that describe observed data. Traditionally, SR algorithms rely on minimizing Mean Squared Error (MSE) through heuristic searches like Genetic Programming. However, the authors identify a critical limitation: the MSE landscape is often "bumpy" and non-monotonic. A formula that is symbolically close to the target may exhibit high MSE, while a symbolically distant one might overfit and show low MSE. This lack of "optimal substructure" makes the search for the true formula difficult.
Methodology
The proposed approach shifts the search objective from prediction error to Minimum Description Length (MDL).
MDLformer Architecture
The core of this method is MDLformer, a Transformer-based model trained to estimate the MDL of a dataset. The architecture consists of an encoder that processes numeric $(x, y)$ pairs, followed by attention pooling and an MLP to predict the complexity of the underlying formula.
The model was pre-trained on 131 million synthetic symbolic-numeric pairs using a cross-modal strategy. It aligns the latent spaces of numeric data and symbolic prefix notation via contrastive loss before regressing the formula length.
SR4MDL Framework
MDLformer is integrated into a Monte Carlo Tree Search (MCTS) framework called SR4MDL. Instead of searching for candidates with low MSE, SR4MDL uses MDLformer’s output as a "compass" to guide the search toward simpler, more structurally correct subformulas. To bridge the gap between a discovered subformula and the target, a linear transformation layer maps candidate outputs to the target $y$.
Key Insights: The Monotonicity of MDL
A central finding is that while MSE fluctuates wildly during the search process, the estimated MDL decreases monotonically as correct mathematical operators are added. This provides a reliable gradient for discovering the target formula.
By viewing SR as a sequence of transformations, the task gains an optimal substructure, meaning the best solution for the whole problem is built from the best solutions to its sub-parts.
Experimental Results
The method was evaluated on several benchmarks, including the Strogatz and Feynman datasets.
- Recovery Rate: SR4MDL outperformed the state-of-the-art AIFeynman2 by nearly 44%, successfully recovering ~50 formulas across 133 problems. On the Strogatz dataset, it improved the recovery rate from 15.27% to 66.78%.
- Robustness: The method demonstrated significant resilience to noise. Even with 10% added noise, it maintained recovery rates comparable to other methods on clean data.
- Generalization: On the Penn Machine Learning Benchmark (PMLB), SR4MDL consistently achieved Pareto dominance, finding the optimal trade-off between accuracy and complexity.
Conclusion
By replacing prediction error with description length as the primary search objective, MDLformer provides a more stable and monotonic landscape for symbolic regression. This approach effectively addresses the "bumpy" search problem and significantly improves the discovery of ground-truth mathematical laws from data. Future work will focus on improving robustness to non-linear transformations and optimizing search efficiency.
Summary updated