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:
- Discrete Search (like genetic programming or reinforcement learning) snaps mathematical symbols together like Lego bricks. Because changing a
+to asinisn’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. - 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.
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
logandexpaway 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.499can safely snap to1.5or3.1416to $\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.
- 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