Differentiable Symbolic Regression

34 concepts22 papers1 proposal

Discovering the underlying mathematical laws that govern data is a foundational goal of science. Whether finding the law of gravitation or optimizing a trading strategy, we desire closed-form equations because they are interpretable, concise, and generalize well. Traditionally, finding these equations from raw data has been the domain of Symbolic Regression (SR).

For decades, the standard tool for symbolic regression has been Genetic Programming (GP). GP treats mathematical equations as discrete expression trees and uses evolutionary mechanisms—like mutation and crossover—to search for the right formula. However, this approach hits a combinatorial wall. The space of all possible mathematical expressions is discrete and non-differentiable, making it a brutal "needle-in-a-haystack" search. Furthermore, as noted by Philipp Scholl et al. in ParFam - Symbolic Regression Based on Continuous Global Optimization, traditional GP struggles immensely with tuning continuous numerical constants. If an equation structure is nearly perfect but its coefficients are slightly off, a discrete search method has no gradient to guide it toward the exact values.

To solve this, a powerful paradigm shift has emerged: Differentiable Symbolic Regression. By transforming discrete formula discovery into a continuous optimization problem, researchers can leverage backpropagation and gradient descent—the very tools that power deep learning—to discover exact mathematical equations efficiently.

Smoothing the Landscape with Continuous Templates

The core intuition behind differentiable symbolic regression is to replace the discrete search over expression trees with a smooth, continuous optimization landscape. Instead of guessing random structures, we can define a highly flexible mathematical "template" that can morph into many different equations simply by changing its continuous parameters.

One way to achieve this is through rational functions—the ratio of two polynomials. As shown by the authors in ParFam -- (Neural Guided) Symbolic Regression via Continuous Global Optimization, if we fix the architecture to a flexible rational function template, the search for a mathematical formula reduces to finding the right polynomial coefficients. Because the template is fully differentiable, gradient-based global search algorithms can rapidly slide down the loss landscape to locate precise physical constants.

For an even broader mathematical reach, Ahmed Alaa et al. introduce the concept of symbolic metamodeling in Demystifying Black-box Models with Symbolic Metamodels. They utilize Meijer G-functions, a highly general class of mathematical functions that includes exponentials, logarithms, trigonometric functions, and Bessel functions as special cases. By framing the master function class as a Meijer G-function, the authors transform the structural search into a continuous parameter optimization problem solved via gradient descent. This allows a complex black-box model to be distilled into a transparent, human-readable equation, a technique further expanded by Jonathan Crabbé et al. in Learning outside the Black-Box: The pursuit of interpretable models.

Discrete Search (Genetic Programming):
[Expression Tree A] --(Random Mutation)--> [Expression Tree B]  (No directional signal)

Continuous Search (Differentiable Templates):
[Flexible Template (Parameters θ)] --(Gradient Descent ∇θ)--> [Exact Target Formula]

This connectionist view dates back to early foundations laid by Kazumi Saito et al. in Law Discovery using Neural Networks. By utilizing product-unit neural networks, the authors demonstrated that physical laws involving complex fractional powers and non-integer exponents could be discovered by optimizing continuous weight parameters, bypassing the rigid constraints of traditional recursive symbolic searches.

Formulas as Differentiable Neural Architectures

Instead of relying on a single overarching mathematical template, another prominent strategy treats equation discovery as a Differentiable Architecture Search (DARTS).

In a standard neural network, layers consist of linear transformations followed by fixed activation functions like ReLU. In a symbolic neural network, the layers consist of a bank of mathematical operators (such as $+$, $-$, $\times$, $\sin$, $\exp$). Finding the right formula means finding the right routing through these operators.

To make this selection process differentiable, Jiaming Guo et al. design a network where operator selections are continuously relaxed in Efficient Symbolic Policy Learning with Differentiable Symbolic Expression. By applying gradient-based optimization directly to these operator selections, the system can learn symbolic control policies end-to-end from scratch. This architecture search formulation allows the model to discover functional control policies in thousands of episodes rather than the millions typically required by non-gradient reinforcement learning methods. A similar graph-based relaxation is leveraged by Jiankai Sun et al. in Neuro-Symbolic Program Search for Autonomous Driving Decision Module Design to synthesize interpretable decision-making programs for autonomous vehicles.

To bridge the gap between continuous optimization and final discrete formula selection, the authors in AlphaForge: A Framework to Mine and Dynamically Combine Formulaic Alpha Factors utilize a categorical reparameterization trick (such as the Gumbel-Softmax). This allows a neural network to generate mathematical expressions as sequences while maintaining end-to-end gradient flow during training, combining the exploratory power of deep learning with the strict interpretability of formulaic expressions. Once the structure is relaxed, embedding these operators as non-linear activations allows standard backpropagation to tune internal constants effortlessly, as shown by Wenqiang Li et al. in A Neural-Guided Dynamic Symbolic Network for Exploring Mathematical Expressions from Data.

Extending to Differentiable Program Synthesis

The intuition of continuous relaxation extends beyond algebraic equations into full algorithmic structures—a domain known as Neurosymbolic Programming.

As detailed by Jennifer J. Sun et al. in Neurosymbolic Programming for Science, scientific hypotheses can be represented as programs written in a Domain-Specific Language (DSL). By converting these discrete symbolic programs into continuous, differentiable functions, researchers can use gradient descent to navigate vast hypothesis spaces that would otherwise trigger a combinatorial explosion.

This framework has proven highly effective across diverse domains:

Hybrid Optimization Strategies

Even when an architecture relies on a discrete search mechanism to find the overall equation structure, gradient descent remains indispensable as a local refinement tool.

In Symbolic Metamodels for Interpreting Black-Boxes Using Primitive Functions, Mahed Abroshan et al. propose a memetic hybrid approach. While genetic programming handles the macro-structure of the expression tree, gradient-based optimization is applied directly to the internal parameters of the symbolic operators within the tree. This bridges the gap between discrete search and continuous optimization, drastically improving functional approximation accuracy.

Hybrid Optimization Loop:
┌────────────────────────────────────────────────────────┐
│ 1. Discrete Search (e.g., GP) proposes tree structure  │
└───────────────────────────┬────────────────────────────┘
                            ▼
┌────────────────────────────────────────────────────────┐
│ 2. Continuous Optimization (Gradients) tunes constants │
└───────────────────────────┬────────────────────────────┘
                            ▼
┌────────────────────────────────────────────────────────┐
│ 3. Differentiable Loss evaluates exact formula fit     │
└────────────────────────────────────────────────────────┘

This hybrid strategy is also highly effective for classical machine learning models. Kei Sen Fong demonstrates in Symbolic Regression Enhanced Decision Trees for Classification Tasks that the rigid, axis-parallel splits of traditional decision trees can be replaced with complex symbolic mathematical expressions. By applying differentiable loss functions (such as squared hinge loss) to the constants within these expressions, continuous optimization algorithms like BFGS can fine-tune the numerical coefficients of a split rule without altering its symbolic structure, eliminating the need for bloated, complex trees.

Ultimately, by grounding symbolic discovery in differentiability, models can learn complex mathematical rules directly on target tasks. As shown by Xiaotian Song et al. in Generalizable Symbolic Optimizer Learning, optimizing symbolic rules via gradient descent directly on the target task ensures that the discovered formulas are precisely tuned to the underlying data, avoiding the performance drops typically seen when transferring discrete rules from small proxy tasks.

Key Foundational Work

Demystifying Black-box Models with Symbolic Metamodels (2019) — contributed 2 concept elements to this direction.
Law Discovery using Neural Networks (1997) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_differentiable_symbolic_regression_1b3d3289,
  title = {differentiable symbolic regression},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differentiable-symbolic-regression/rdr_1b3d3289ea9f4528818dabcbe36ec8e8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_differentiable_symbolic_regression_1b3d3289_v1,
  title = {differentiable symbolic regression},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differentiable-symbolic-regression/rdr_1b3d3289ea9f4528818dabcbe36ec8e8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake