Deep Generative Symbolic Regression
Samuel Holt, Zhaozhi Qian, Mihaela van der Schaar
TL;DR
The paper addresses the scalability and efficiency limitations of symbolic regression by introducing Deep Generative Symbolic Regression (DGSR), which learns equation invariances via a pre-trained conditional generative model and refines it at inference time for efficient MAP-like equation search. DGSR uses a set-transformer encoder and transformer decoder to model $p_\\theta(f|\\mathcal{D})$, trained with an end-to-end NMSE loss that respects equation equivalences, and employs neural-guided priority queue training (NGPQT) for inference-time refinement plus discrete search to select the best equation. Across diverse benchmarks (Feynman, SRBench, Nguyen, Livermore, and synthetic $d=12$), DGSR achieves higher recovery rates with more inputs, matches or surpasses state-of-the-art baselines, and reduces inference-time computation compared to RL-based symbolic regression methods. The work demonstrates DGSR’s ability to capture invariances, generalize to unseen variables, and provide a practical, scalable framework for discovering concise scientific equations. It also outlines limitations and avenues for future work, such as handling highly complex equations and improving constant optimization for broader real-world applicability.
Abstract
Symbolic regression (SR) aims to discover concise closed-form mathematical equations from data, a task fundamental to scientific discovery. However, the problem is highly challenging because closed-form equations lie in a complex combinatorial search space. Existing methods, ranging from heuristic search to reinforcement learning, fail to scale with the number of input variables. We make the observation that closed-form equations often have structural characteristics and invariances (e.g., the commutative law) that could be further exploited to build more effective symbolic regression solutions. Motivated by this observation, our key contribution is to leverage pre-trained deep generative models to capture the intrinsic regularities of equations, thereby providing a solid foundation for subsequent optimization steps. We show that our novel formalism unifies several prominent approaches of symbolic regression and offers a new perspective to justify and improve on the previous ad hoc designs, such as the usage of cross-entropy loss during pre-training. Specifically, we propose an instantiation of our framework, Deep Generative Symbolic Regression (DGSR). In our experiments, we show that DGSR achieves a higher recovery rate of true equations in the setting of a larger number of input variables, and it is more computationally efficient at inference time than state-of-the-art RL symbolic regression solutions.
