NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ParFam -- (Neural Guided) Symbolic Regression Based on Continuous Global Optimization

Philipp Scholl, Katharina Bieker, Hillary Hauger, Gitta Kutyniok

TL;DR

ParFam redefines symbolic regression by mapping discrete formula searches into a continuous optimization space using parametric families of rational functions. By integrating a pre-trained transformer for "neural guidance," the authors achieve state-of-the-art accuracy while accelerating the discovery process by up to 100x.

What Problem Does This Paper Address?

Symbolic Regression (SR) is the task of finding a concise, interpretable mathematical formula that fits a given dataset—think of it as "discovering" the law of gravity directly from planetary motion data. Traditionally, this is treated as a discrete search problem solved via Genetic Programming (GP), which can be computationally expensive, sensitive to hyperparameters, and difficult to optimize using standard gradient-based tools.

While some researchers have tried continuous optimization, they often struggle with limited expressivity or "exploding gradients" in deep, nested architectures. ParFam aims to bridge this gap by creating a flexible, continuous framework that matches the performance of top-tier GP methods while remaining user-friendly and efficient.

Methods

The core of the approach is the ParFam architecture, which resembles a neural network with a single hidden layer. However, instead of standard linear weights, it uses rational functions (ratios of polynomials) to connect inputs to neurons.

The ParFam architecture: a single-hidden-layer structure where connections are rational functions and neurons apply physically relevant unary operators.

The model is defined as: $$f_\theta(x) = Q_{k+1}(x, g_1(Q_1(x)), \dots, g_k(Q_k(x)))$$ where $Q_i$ are rational functions and $g_i$ are unary operators like $\sin$, $\exp$, or $\sqrt{\cdot}$.

To find the best formula, the authors use basin-hopping, a global optimization technique that combines local gradient-based search (L-BFGS) with random perturbations to jump out of local minima. They also apply $L_1$ regularization to the polynomial coefficients to encourage sparsity, ensuring the resulting formulas remain simple and interpretable.

To further speed things up, they introduced DL-ParFam. This version uses a pre-trained Set Transformer to look at the raw data and predict the "skeleton" of the formula—specifically, the degrees of the polynomials and which basis functions to use. This "neural guidance" narrows the search space significantly before the continuous optimization even begins.

Figure 3: DL-ParFam first applies the pre-trained neural network to input data (xi, yi)i=1,...,N, which outputs the model parameters for ParFam: the degrees of the polynomials used in Q1, ..., Qk+1 and the basis functions g1, ..., gk. Afterwards, ParFam can run using these settings to find the best parameters θ∗and, therefore, identify the best fitting function fθ.

Datasets

The authors evaluated their method on several rigorous benchmarks:

  • SRBench: The primary benchmark, including the Feynman (119 physical formulas) and Strogatz (14 ODE systems) datasets.
  • Black-box datasets: 77 real-world datasets from SRBench with up to 10 variables.
  • Nguyen benchmark: A classic set of symbolic regression problems.
  • SRSD-Feynman: A newer benchmark focusing on formulas with physically realistic coefficient ranges.

Key Insights and Ideas

  • Rational Functions are "Physical": Many laws of physics are naturally expressed as ratios of polynomials. By using rational functions as building blocks, ParFam inherently aligns with the structure of scientific equations.
  • The Power of One Hidden Layer: The authors provide a theoretical proof showing that a single hidden layer of rational functions is surprisingly expressive. For formulas of typical complexity (around 10 nodes), ParFam can represent over 80% of all possible unary-binary expression trees.
  • Continuous beats Discrete (Sometimes): ParFam is the first continuous-optimization-based SR method to match the performance of elite GP methods like PySR. This suggests that the "discrete vs. continuous" debate in SR is far from settled.
  • Neural Guidance Generalizes: Even though the Set Transformer was trained on synthetic data, it generalized well to the "out-of-distribution" Feynman formulas, correctly identifying the formula structure in many cases.

Key Results

  • State-of-the-Art Accuracy: On the SRBench ground-truth problems, ParFam outperformed all competitors in terms of "accuracy solution rate" (percentage of datasets where $R^2 > 0.999$), even in the presence of noise.
  • Massive Speedup: DL-ParFam achieved a symbolic solution rate comparable to top methods but was up to 100 times faster than standard ParFam and other competitors.
  • Robustness: ParFam showed high resilience to noise, maintaining better accuracy than most other methods when data was perturbed.

Limitations and Future Work

The primary limitation is scalability. As the number of variables ($n$) and polynomial degree ($d$) increase, the number of parameters grows as $O(n^d)$, making global optimization computationally taxing for problems with more than 10 variables. Additionally, the pre-training phase for DL-ParFam is expensive, requiring millions of synthetic functions.

Future work includes exploring more sophisticated regularization techniques, alternative parameterizations to further reduce the search space, and integrating custom-tailored optimization algorithms to handle higher-dimensional data more efficiently.

Summary updated

BibTeX
@inproceedings{scholl2025parfam,
  author = {Philipp Scholl and Katharina Bieker and Hillary Hauger and Gitta Kutyniok},
  title = {{ParFam -- (Neural Guided) Symbolic Regression Based on Continuous Global Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=8y5Uf6oEiB},
}
Figure