Neural Structure Embedding for Symbolic Regression via Continuous Structure Search and Coefficient Optimization
Organizations: Department of Electrical Engineering and Computer Science, University of Kansas USA
Abstract
Symbolic regression aims to discover human-interpretable equations that explain observational data. However, existing approaches rely heavily on discrete structure search (e.g., genetic programming), which often leads to high computational cost, unstable performance, and limited scalability to large equation spaces. To address these challenges, we propose SRCO, a unified embedding-driven framework for symbolic regression that transforms symbolic structures into a continuous, optimizable representation space. The framework consists of three key components: (1) structure embedding: we first generate a large pool of exploratory equations using traditional symbolic regression algorithms and train a Transformer model to compress symbolic structures into a continuous embedding space; (2) continuous structure search: the embedding space enables efficient exploration using gradient-based or sampling-based optimization, significantly reducing the cost of navigating the combinatorial structure space; and (3) coefficient optimization: for each discovered structure, we treat symbolic coefficients as learnable parameters and apply gradient optimization to obtain accurate numerical values. Experiments on synthetic and real-world datasets show that our approach consistently outperforms state-of-the-art methods in equation accuracy, robustness, and search efficiency. This work introduces a new paradigm for symbolic regression by bridging symbolic equation discovery with continuous embedding learning and optimization.
Figures & tables
| Easy | Medium | Hard | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | ( ) | Pearson ( ) | ( ) | ( ) | Pearson ( ) | ( ) | ( ) | Pearson ( ) | ( ) |
| DSO | 0.58108 | 0.76836 | 45.0992 | -3.63397 | 0.57411 | 67.6205 | 0.55307 | 67.0060 | |
| gplearn | -0.25600 | 0.41807 | 45.0917 | 0.30200 | 0.42552 | 67.6205 | 0.39730 | 67.2514 | |
| FFX | 0.45998 | 0.57570 | 45.0911 | 0.27657 | 0.61437 | 67.9408 | 0.26691 | 0.67575 | 68.4654 |
| EFS | -6.79227 | 0.06667 | 45.0915 | -21.75270 | 0.00000 | 67.6205 | -10.32860 | -0.12000 | 70.4763 |
| SRCO | 0.99821 | 0.96556 | 30.4281 | 0.99555 | 0.99786 | 67.14446 | 0.93708 | 0.94424 | 65.8075 |
| Easy | Medium | Hard | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | ( ) | Pearson ( ) | ( ) | ( ) | Pearson ( ) | ( ) | ( ) | Pearson ( ) | ( ) |
| DSO | 0.59775 | 0.82824 | 45.0910 | -0.60127 | 0.59395 | 67.6205 | -6.17885 | 0.62223 | 66.9276 |
| gplearn | 0.13200 | 0.49617 | 45.0915 | -0.30200 | 0.44105 | 67.6205 | 0.41335 | 67.0701 | |
| FFX | 0.48157 | 0.61232 | 43.5123 | 0.25864 | 0.60612 | 67.9408 | 0.24350 | 0.64633 | 68.4654 |
| EFS | -0.64597 | 0.06667 | 45.0915 | -10.18850 | 0.00000 | 67.6205 | -38.91480 | -0.16000 | 70.4763 |
| SRCO | 0.95045 | 0.96984 | 39.7806 | 0.99936 | 0.99940 | 67.1605 | 0.94961 | 0.96152 | 65.8739 |
| Noise (%) | Pearson | ||
|---|---|---|---|
| 0 | -24.5128 | 0.9990 | 0.9990 |
| 10 | -23.6677 | 0.9973 | 0.9976 |
| 20 | -23.2118 | 0.9941 | 0.9995 |
| 30 | -22.8896 | 0.9893 | 0.9916 |
| 40 | -21.6436 | 0.9828 | 0.9868 |
| 50 | -20.4409 | 0.9745 | 0.9802 |
Explore similar work
GENSR: Symbolic Regression Based in Equation Generative Space
map construction -> coarse localization -> fine search'' paradigm. Specifically, GenSR first pretrains a dual-branch Conditional Variational Autoencoder (CVAE) to reparameterize symbolic equations into a generative latent space with symbolic continuity and local numerical smoothness. This space can be regarded as a well-structured map'' of the equation space, providing directional signals for search. At inference, the CVAE coarsely localizes the input data to promising regions in the latent space. Then, a modified CMA-ES refines the candidate region, leveraging smooth latent gradients. From a Bayesian perspective, GenSR reframes the SR task as maximizing the conditional distribution , with CVAE training achieving this objective through the Evidence Lower Bound (ELBO). This new perspective provides a theoretical guarantee for the effectiveness of GenSR. Extensive experiments show that GenSR jointly optimizes predictive accuracy, expression simplicity, and computational efficiency, while remaining robust under noise.