Improving Neural Symbolic Regression with a Diverse Prior and Post-training Alignment
Organizations: LMU Munich · Munich Center for Machine Learning (MCML) · University of Freiburg · LAION · ELLIS Institute Tübingen · Prior Labs
Abstract
Symbolic regression is the problem of finding an expression that fits a dataset. Solving it requires searching a combinatorial space of candidate expressions. Neural symbolic regression can amortize that search by training a model once on synthetic data and then predicting expressions for a new dataset. But existing models still underperform genetic programming on real, noisy data. We argue that the deficit lies in the training rather than in the paradigm, and present RASR (Reinforced Amortized Symbolic Regression), a method with two key changes to the training recipe. First, we design a synthetic prior that narrows the gap with real-world data: inputs come from the prior of a tabular foundation model; constants are sampled bottom-up, conditioned on the data; targets carry heteroscedastic and structured noise; and everything is standardized. Second, we split training into two stages. Supervised pre-training maximizes the token-level likelihood of a reference expression. This is followed by reinforcement-learning post-training that aligns the model with its inference-time use by rewarding held-out fit and penalizing expression size. On the black-box track of SRBench 2.0, RASR achieves the best mean test rank of all evaluated methods. Three RASR variants, trained with different size penalties, make up most of the accuracy-complexity Pareto front. On Strogatz, our method recovers more ground-truth expressions than any baseline, and on Feynman it is competitive with the best-performing methods.
Figures & tables
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| Distinct variables | uniform |
| Binary ops | uniform |
| Unary ops | uniform |
| Max expression length | tokens |
| Constant mantissa | significant figures |
| Constant magnitude bound |
| Component | Setting |
|---|---|
| Function-type mixture | {mlp, lin, quad, gp, prod}, {tree, disc} |
| Removed activations | sign, Heaviside, unit-interval, argmax indicators |
| Min. random-tree depth | |
| Min. discretization centers | |
| Per-column diversity filter | added ( clusters; no cluster of rows) |
| Operator(s) | params | Shift type | |
|---|---|---|---|
| generic | |||
| generic | |||
| generic | |||
| generic | |||
| positive | |||
| positive |
| Parameter | Value |
|---|---|
| Observations | uniform integer |
| Distractor columns | half-normal, scale , capped by pool size |
| Clean-dataset fraction | |
| Noise strength | |
| Gaussian / structured form | / |
| Blend weight (Gaussian form) |
| Model | Params | Model dim. | Enc. layers | Dec. layers | Heads |
|---|---|---|---|---|---|
| M | M | ||||
| M | M |
| Model | Batch Size | Steps | Datasets | Peak LR | GPUs | Duration |
|---|---|---|---|---|---|---|
| M | k | M | L40S | h | ||
| M | k | M | H200 | h |
| Black-box | Rows | Cols | PMLB identifier |
|---|---|---|---|
| SWD | 1000 | 11 | 1028_SWD |
| USCrime | 47 | 14 | 1089_USCrime |
| lowbwt | 31104 | 10 | 1193_BNG_lowbwt |
| echoMonths | 17496 | 10 | 1199_BNG_echoMonths |
| vineyard | 52 | 3 | 192_vineyard |
| cloud | 108 | 6 | 210_cloud |
| Method | SWD | USCrime | lowbwt | echoMonths | vineyard | cloud | pm10 | apnea1 | fri_c0_250_5 | fri_c2_1000_10 | fri_c0_500_50 | environmental |
| RASR-94M-L | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| RASR-94M-M | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| RASR-94M-S | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| AFP | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| AFP_EHC | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| AFP_FE | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Expression size | Fitting time (s) | |||
|---|---|---|---|---|
| Variant | Base | Post-trained | Base | Post-trained |
| RASR-94M-L | 37.4 | 27.5 | 762 | 133 |
| RASR-94M-M | 37.4 | 18.3 | 762 | 69 |
| RASR-94M-S | 37.4 | 10.3 | 762 | 26 |
| RASR-24M-L | 39.3 | 28.5 | 646 | 131 |
| Prior | Base | Post-trained |
|---|---|---|
| Simple prior | 26.56 | 18.31 |
| Our prior | 9.36 | 9.51 |
| Variant | Improvability |
|---|---|
| RASR-24M-L | 9.51 |
| Skeleton-only | 12.09 |
| No init noise | 10.57 |
| No refinement | 28.33 |