SMILE: Bridging Continuous Optimization and Discrete Symbolic Recovery

Mansooreh Montazerin, Antonio Ortega, Ajitesh SrivastavaNeurIPS 2026

TL;DR

Scientists don’t just want black-box neural networks that make good predictions; they want the actual underlying equation, like $E = mc^2$. This paper introduces SMILE, a symbolic regression framework that bridges smooth neural network training with crisp mathematical equation discovery. By analyzing data structure first, training a tiny network built of fundamental math operators, and aggressively pruning away the noise, SMILE discovers clean, exact laws of nature in minutes rather than hours—and keeps working even when the data gets messy.

What Problem Does This Paper Address?

Imagine watching an apple fall, logging its position over time, and asking an algorithm to hand you back Newton’s laws. That is Symbolic Regression (SR): searching simultaneously for both the structure and the parameters of a closed-form mathematical equation from raw data.

Historically, SR researchers have been stuck between a rock and a hard place:

  1. Discrete Search (like genetic programming or reinforcement learning) snaps mathematical symbols together like Lego bricks. Because changing a + to a sin isn’t smooth, you can’t use gradients to guide you. The search space explodes combinatorially, taking hours and often spitting out bloated, overfitted Franken-equations.
  2. Continuous Search turns SR into a smooth neural network optimization problem. You get fast gradient descent, but you usually end up with a dense tangle of floating-point weights (like 0.9994 * x + 0.0002 * sin(y)) rather than a clean, human-readable law, and you have to guess structural hyperparameters ahead of time.

SMILE asks: Can we get the speed of gradient descent while still recovering exact, compact, textbook-ready equations?

Methods

SMILE stands for Sine, Multiplication, Identity, Logarithm, and Exponential. Instead of standard ReLU or Sigmoid neurons, each hidden layer in a SMILE network has just five neurons—one for each of those core mathematical primitives. Cleverly, the Multiplication neuron computes $\exp(w \cdot \log(z))$, allowing a single differentiable node to learn $x^2$, $\sqrt{x}$, $x_1 x_2$, or division $x_1 / x_2$ via standard backpropagation.

Figure 1: End-to-end pipeline of the SMILE framework. The pipeline performs a log-linear R2 scan to classify the problem into one of three cases: (C1) direct training, (C2) training on the inverted target, or (C3) decomposition into simpler subproblems. In all cases, the trained network is passed through a recovery pipeline consisting of greedy pruning, symbolic extraction, parametric optimization, and gradient-based coefficient rounding. HL denotes the number of hidden layers.

What makes SMILE distinct is its three-stage pipeline:

  • 1. Data-Driven Structural Analysis (Novel): Before training anything, SMILE plays detective on the raw data. It runs quick log-linear regressions ($\log|y|$ vs. $\log|x_k|$) to check for power-law behavior. Depending on the result, it either trains directly, inverts the target ($1/y$) to turn numerically unstable denominators into well-behaved numerators, or—if one variable breaks the pattern—temporarily holds that variable roughly constant in a narrow window to "divide and conquer" the equation into two simpler subproblems.
  • 2. Continuous Optimization with Gates: The compact SMILE network is trained using MSE alongside two custom penalties: a domain-clamping loss (keeping log and exp away from exploding gradients or undefined regions) and a differentiable gate penalty on edges and neurons that nudges gates toward binary open/closed states.
  • 3. Discrete Symbolic Recovery: Once trained, SMILE greedily prunes away gates whose removal barely dents the $R^2$ score. It then refits the surviving constants using least-squares optimization and applies gradient-based rounding—checking via first-order Taylor approximation if 1.499 can safely snap to 1.5 or 3.1416 to $\pi$ without ruining accuracy.

Datasets

No new datasets are introduced, as the authors test SMILE on established gold standards:

  • SRBench (built on PMLB): Includes 119 Feynman physics equations, 14 Strogatz nonlinear ODE systems, and 57 real-world "black-box" regression datasets (restricted to continuous features with dimension $d \le 10$) where no ground-truth formula exists.
  • SRSD-Feynman (Easy and Medium subsets): A tougher, modernized version of the Feynman benchmark that replaces convenient, artificial toy number ranges with realistic physical scales spanning $10^{-30}$ to $10^8$.

Key Insights and Ideas

  • Five neurons are enough for everything: Despite having only five fixed activations per layer, the authors prove SMILE is a universal approximator because combining Identity, Exponential, and Logarithm neurons can exactly emulate a Sigmoid MLP.
Figure 2: (a) Approximation of the Sigmoid function using a SMILE-based configuration. (b) Emulation of an L-layer MLP into an equivalent SMILE network using stacked SMILE layers and Sigmoid blocks.
  • Pruning and rounding act as natural noise filters: Usually, adding noise to data tricks SR algorithms into inventing extra terms to fit the static. In SMILE, noisy perturbations create weak, unstable weights that get ruthlessly chopped off during greedy pruning and snapped away during rounding.
  • Look at the data before you fit it: Treating data as a source of structural clues (like testing if $1/y$ is easier to fit than $y$, or isolating an additive variable) keeps the neural network shallow, avoiding the combinatorial nightmare of pruning deep networks.

Key Results

  • Best-in-Class Noise Robustness: On noise-free Feynman data, SMILE ranks 3rd in Symbolic Solution Rate (exact equation recovery) behind heavyweights PySR and ParFam. However, as target noise cranks up to the highest level ($\sigma = 0.1$), PySR and ParFam drop by over 30%, whereas SMILE drops by at most 8%, claiming the #1 spot under heavy noise. It also takes 2nd place overall on the Strogatz ODE benchmark.
  • 50–100$\times$ Speedup: While top evolutionary and global-optimization baselines take hours per equation, SMILE wraps up in minutes. On SRSD-Feynman (Easy), SMILE ties PySR at a 90.0% symbolic solution rate, taking 92 seconds on average compared to PySR's 5,796 seconds (~1.6 hours) and ParFam's 7,620 seconds (~2.1 hours).
  • Simpler Equations: Across both ground-truth physics and the 57 black-box datasets, SMILE consistently sits on the accuracy-versus-complexity Pareto front, recovering dramatically shorter, cleaner formulas than competing methods.

Limitations and Future Work

SMILE intentionally restricts itself to shallow networks (1–2 hidden layers) so that greedy pruning stays fast and tractable. While that helps exact formula recovery, it lowers pure regression accuracy ($R^2 > 0.999$) on messy, arbitrary black-box datasets that don't obey neat physical laws. Performance also dips on deeply nested formulas or equations with five or more variables, and the upfront structural analysis assumes power-law or simple additive/multiplicative separability. Future work aims to introduce adaptive depth selection, smarter pruning for deeper networks, and broader structural decomposition rules.

Summary updated

Abstract

Symbolic regression (SR) discovers closed-form mathematical expressions from data, offering interpretability beyond black-box models. Existing methods suffer from slow convergence in combinatorial search spaces and lack mechanisms to exploit compositional structure in the data. We introduce SMILE (Sine, Multiplication, Identity, Logarithm, Exponential), a hybrid framework that unifies continuous gradient-based optimization with discrete symbolic recovery through three stages: structural analysis of the data to identify the compositional hierarchy of the target expression, continuous optimization to learn parameters of a network that encodes the target expression using interpretable activations, and symbolic recovery through structured pruning, coefficient optimization, and rounding. This final stage distills the learned network into a compact expression with exact symbolic constants. We evaluate SMILE on SRBench and SRSD-Feynman across ground-truth and black-box datasets, with ablation studies validating each component. SMILE achieves the highest symbolic solution rate at the largest noise levels, demonstrating strong robustness where competing methods degrade substantially. It consistently lies on the Pareto front of accuracy versus complexity, recovering significantly simpler expressions in a fraction of the time required by the competing methods.
BibTeX
@inproceedings{montazerin2026smile,
  author = {Mansooreh Montazerin and Antonio Ortega and Ajitesh Srivastava},
  title = {{SMILE: Bridging Continuous Optimization and Discrete Symbolic Recovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RCI7AIVyKg},
}
Figure