arXiv:2609.04639cs.LGSep 2026

Manuscript Offprint

arXiv:2609.04639

SMILE: Bridging Continuous Optimization and Discrete Symbolic Recovery

Mansooreh Montazerin, Antonio Ortega, Ajitesh Srivastava

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 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.

1 Introduction

Uncovering the mathematical laws governing complex systems is a fundamental goal in science and engineering. Symbolic regression (SR) addresses this challenge by searching over both the structure and parameters of mathematical expressions to discover interpretable closed-form relationships from observed data [1, 2]. Unlike conventional regression, which fits parameters within predefined models, and neural networks, which yield opaque representations despite strong predictive performance [3], SR searches for both the structure and parameters of equations, offering a flexible, interpretable, and model-agnostic alternative [2]. It has become an essential tool across scientific disciplines including fluid mechanics, molecular systems, astrophysics, and materials science [4, 5, 6, 7]. However, the vast combinatorial search space of candidate equations makes discovering meaningful representations inherently challenging, as overly complex models risk overfitting while overly simplistic ones may fail to capture essential dynamics [8].

Preprint.

Existing approaches to SR can be broadly categorized based on the search space they navigate. Discrete methods, such as genetic programming (GP) [9, 10], reinforcement learning [11, 12], and neural sequence-to-sequence models [13, 14], explore the space of symbolic expressions by iteratively refining candidate solutions constructed from primitive operations. However, relying on predefined operations and sequential generation often yields overly complex models, and the symbolic discontinuity of these combinatorial landscapes prevents gradient-based guidance, leading to slow convergence. Continuous methods reformulate SR as a numerical optimization problem, enabling gradient-based training over smooth parameter spaces. Recent approaches range from sparse regression over predefined libraries [15] and neural architectures with symbolic activations [16, 17] to deep learning frameworks that treat expressions as sequences, structured graphs, or samples from learned latent spaces [18, 3, 19]. While offering better scalability, these methods often require large amounts of training data, struggle with generating syntactically valid or semantically meaningful expressions, require user-specified structural choices, and offer limited interpretability during training. Beyond these two categories, several methods incorporate elements of both paradigms — for instance, AI Feynman [20] pairs continuous neural network fitting with discrete physics-inspired decomposition, while uDSR [21] unifies neural-guided search, sparse regression, and evolutionary refinement. In these approaches, however, the discrete and continuous steps remain structurally decoupled, and the data is treated as a fitting target rather than as a source of structural cues, such as separability or compositional hierarchy, that can guide the search toward expressions consistent with physical principles.

To address these limitations, we propose SMILE, a hybrid framework that formulates SR as the structural optimization of a neural architecture, unifying continuous training with discrete symbolic recovery. SMILE begins with a structural analysis of the input data through numerical approximations to mathematical operations, such as variable marginalization and residual analysis, to identify the compositional hierarchy of the underlying formula, progressively narrowing the space of candidate expressions and determining how the problem is decomposed. At its core, SMILE is a feedforward network whose hidden layers each contain five neurons with fixed symbolic activations: Sine (S), Multiplication (M), Identity (I), Logarithm (L), and Exponential (E), primitives reflecting the fundamental operators most frequently encountered in physical and scientific laws. Because the chosen primitives jointly span a broad class of mathematical operations, SMILE can represent complex expressions with significantly fewer layers than standard neural networks, ensuring high efficiency and transparency in the search process. We demonstrate that SMILE is a universal approximator [22, 23] as the combination of identity, exponential, and logarithm neurons enables SMILE to reproduce any MLP with sigmoid activations and hence approximate any continuous mapping. Symbolic recovery then proceeds through structured pruning which progressively removes connections with the least impact on accuracy, enabling the recovery of interpretable expressions. The remaining coefficients are then refit via parametric optimization and rounded to produce expressions consistent with the coefficients typically found in physical and mathematical laws. By combining gradient-based optimization with an inherently symbolic architecture and a structured recovery pipeline, SMILE achieves fast convergence without combinatorial search, requires no user-specified structural hyperparameters, and produces clean closed-form expressions directly from the trained network.

Specifically, our main contributions are as follows: (i) We introduce SMILE, an SR framework with five fixed interpretable activations that unifies continuous optimization with discrete symbolic recovery through a three-stage pipeline: structural analysis, continuous optimization, and symbolic recovery. To the best of our knowledge, this data-driven structural analysis has not been explored in prior work. (ii) We prove the expressive power of SMILE as a universal approximator and develop a tailored loss function to promote sparsity and prevent gradient instability, combined with a gating mechanism that enables structured pruning for interpretable symbolic recovery. (iii) We conduct extensive experiments on standard SR benchmarks, demonstrating that SMILE achieves competitive exact symbolic recovery with strong robustness to noise, attaining the highest symbolic solution rate at the largest noise level, significantly lower expression complexity, and discovery time reduced from hours to minutes. Ablation studies further validate the contribution of each pipeline component.

Figure

Figure 1: End-to-end pipeline of the SMILE framework. The pipeline performs a log-linear R2R^2 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.

References (34)