Authors: Zachary Bastiani, Robert M. Kirby, Jacob Hochhalter, Shandian Zhe
Organizations: Kahlert School of Computing University of Utah · Scientific Computing and Imaging Institute University of Utah · Department of Mechanical Engineering University of Utah
Diffusion has emerged as a powerful framework for generative modeling, achieving remarkable success in applications such as image and audio synthesis. Enlightened by this progress, we propose a novel diffusion-based approach for symbolic regression. We construct a random mask-based diffusion and denoising process to generate diverse and high-quality equations. We integrate this generative processes with a token-wise Group Relative Policy Optimization (GRPO) method to conduct efficient reinforcement learning on the given measurement dataset. In addition, we introduce a long short-term risk-seeking policy to expand the pool of top-performing candidates, further enhancing performance. Extensive experiments and ablation studies have demonstrated the effectiveness of our approach.
Figures & tables
Figure 1: Visual representation of sampling methods where colored cells represent a sampled index, while white cells denote an unsampled or masked index.
Figure 2: MDSR’s performance on the SRBenchmark. Methods with * are taking from ParFam’s published results.
Dataset
MDSR
CADSR
MODSR
MMSR
SNIP
TPSR
R2
C
R2
C
R2
C
R2
C
R2
C
R2
C
Feynman
0.991
17.7
0.934
16.5
0.788
16.4
0.991
20.8
0.985
31.6
0.993
57.2
Strogatz
0.994
13.0
0.980
15.4
0.970
15.8
0.982
21.6
0.995
29.3
0.965
56.1
Table 1: Performance comparison of different SR methods on SRBench datasets. The table shows mean R2 scores (higher is better) and average number of nodes C (lower is better) for each method. All results are compiled from the method’s published benchmark results.
Figure 3: Ablations on the Strogatz dataset. Sampling-method ablations are shown in green and policy-optimization ablations in red; MDSR (blue) serves as the baseline for both. Dot size corresponds to mean expression complexity, so smaller dots indicate more interpretable expressions.
Figure 4: Comparison of the percentage of new expression found in each epoch. Shaded regions denote a 95% confidence region.
Figure 5: Results for six symbolic regression methods across two real-world applications. Eight trials were ran for each method with access to a RTX 4090 GPU and Ryzen 9-7950X processor.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: MDSR’s architecture.
Hyperparameter
MDSR
Variables
{1, c (Constant Token), xBi }
Unary Functions
{sin, cos, log, (⋅) , exp}
Binary Functions
{+, -, *, /, ^ }
Risk Seeking Percent ( α )
5%
Learning Rate
5E-4
Max Depth
32
Appendix
Table 2: Hyperparameter settings of MDSR.
Figure 7: Breadth-first search ordering of the expression c1x1+exp(x2) .
Symbolic Solution Rate (%)
Accuracy Rate (%)
Simplified Complexity
Time (m)
Algorithm
0.0
0.001
0.01
0.1
0.0
0.001
0.01
0.1
0.0
0.001
0.01
0.1
Median
AFP
22.3
19.9
16.9
12.9
43
42
40
41
29.4
28.4
29.0
30.8
58.1
AFP_FE
28.1
22.7
20.3
12.9
56
50
50
50
34.6
35.7
34.5
36.8
480.5
AIFeynman
61.8
31.9
12.6
0.9
74
74
68
10
83.3
88.7
99.3
110.5
493.2
Bingo
48.8
14.6
4.8
0.8
64
60
62
59
15.6
19.3
21.3
22.5
375.7
BSR
2.5
0.6
0.1
0.0
12
11
12
7
34.3
35.5
36.8
38.4
480.0
Appendix
Table 3: Performance on SRBench problems with known solutions.
Dataset
Method
Train R2
Test R2
Runtime (s)
Complexity
Water retention
MODSR
0.621
0.556
16.655
26.500
E2E
0.000
-0.042
8.168
55.625
SNIP
0.887
0.860
3558.539
35.250
CADSR
0.689
0.622
6481.074
17.625
MDSR
0.864
0.835
1869.911
23.875
PySR
0.967
0.948
3462.261
31.500
Appendix
Table 4: Performance comparison on the water retention and woodrat datasets. We report the mean value across eight trials. Higher R2 is better; lower runtime and complexity are better. Bolded entries denote best performance in the given column.
Figure 8: Pareto-frontier comparison of symbolic-regression methods, showing test R2 against expression complexity. Methods nearer the upper-left offer stronger predictive performance with simpler expressions.
Table 6: Best expression found by each method on the gene expression problem. Constants are rounded to three significant digits for readability.
Figure 9: Impact of the policy optimization method on expression diversity. Multi-step REINFORCE, PPO, and GRPO all reduce diversity relative to single-step REINFORCE, with PPO and GRPO reducing diversity more than multi-step REINFORCE. While multi-step REINFORCE reduced diversity compared the single-step variant, it improve symbolic recovery which could highlight multi-steps REINFORCE’s improvement to exploitation.
Shanghai Jiao Tong University, Shanghai, China · Eastern Institute of Technology, Ningbo, China · The Hong Kong Polytechnic University, Hong Kong, China +1