Neural Symbolic Regression using Control Variables

Xieting Chu, Hongjue Zhao, Enze Xu, Hairong Qi, Minghan Chen, Huajie ShaoarXiv 2023 · DOI

Abstract

Symbolic Regression (SR) aims to discover analytical mathematical expressions that describe datasets, offering a level of interpretability that standard "black box" machine learning models lack. However, SR faces a significant scalability challenge as the search space of possible equations grows exponentially with the number of variables. This paper introduces ScaleSR, a framework that tames this complexity by using deep neural networks (DNNs) as surrogate data generators. By decomposing multi-variable problems into a sequence of single-variable tasks through "control variable" experiments, ScaleSR achieves a 78% average recovery rate on standard benchmarks, drastically reducing the computational search space and outperforming current state-of-the-art methods.

The Scalability Challenge in Symbolic Regression

Finding the exact mathematical formula (e.g., $F=ma$) for a dataset is often considered the "holy grail" of data science. While interpretable, traditional SR methods like Genetic Programming (GP) or Monte Carlo Tree Search (MCTS) struggle with high-dimensional problems. As the number of variables and the complexity of the target equation increase, these methods often fail to find the correct "skeleton" of the equation due to the combinatorial explosion of the search space.

The ScaleSR Framework: A Divide-and-Conquer Approach

ScaleSR addresses the scalability bottleneck using a "divide and conquer" strategy inspired by experimental physics. The framework follows a four-step process to reconstruct complex equations:

  1. Learn a Data Generator: A standard Deep Neural Network (MLP) is trained on the observed data to act as a high-fidelity surrogate model capable of predicting outputs for arbitrary inputs.
  2. Data Generation via Control Variables: Using the DNN, the system performs "virtual experiments" by varying one independent variable ($x_i$) while keeping all others fixed. This isolates the mathematical contribution of each variable.
  3. Single-Variable SR: With the variables isolated, existing SR techniques (like MCTS) are used to find the specific sub-expression for that variable—a significantly simpler task than searching for a multi-variable equation.
  4. Bottom-Up Assembly: The process repeats, adding variables one by one and using optimization methods (like BFGS) to refine numerical coefficients until the full expression is reconstructed.
The ScaleSR pipeline: from raw data to multi-variable symbolic expressions.

Search Space Compression and Efficiency

A core insight of ScaleSR is the use of the neural proxy to bypass the sparsity of real-world data. By breaking a $D$-variable problem into $D$ single-variable problems, the search space is reduced from exponential to nearly linear.

Comparison of search space growth between ScaleSR and traditional methods.

As shown in the analysis, ScaleSR can discover equations with a complexity of 31 within the same search space where traditional MCTS can only handle a complexity of 16. This compression allows for the discovery of much more intricate mathematical relationships than previously possible.

Key Results and Scientific Discovery

The model was evaluated on rigorous benchmarks, including the Nguyen & Jin suites and complex Gene Regulatory Networks (e.g., the Repressilator). Key findings include:

  • Superior Accuracy: ScaleSR achieved an average recovery rate of 78% across benchmarks, compared to 63% for Symbolic Physics Learner (SPL) and only 13% for standard Genetic Programming.
  • Scientific Discovery: The model successfully recovered the underlying governing differential equations for the Repressilator system, a task where most baselines failed completely.
  • Robustness: By integrating BFGS optimization during the assembly phase, the model handles the discovery of precise numerical constants more effectively than pure search-based methods.

Conclusion and Future Directions

While ScaleSR significantly advances the state of the art, its success is dependent on the accuracy of the initial DNN surrogate. If the DNN fails to capture the underlying patterns due to extreme noise or data sparsity, the subsequent symbolic discovery will be compromised. Future work will focus on incorporating "physics-enhanced" neural networks to improve data generation and developing more robust single-variable SR engines to further enhance the framework's modular performance.

Summary updated

BibTeX
@misc{chu2023neural,
  author = {Xieting Chu and Hongjue Zhao and Enze Xu and Hairong Qi and Minghan Chen and Huajie Shao},
  title = {{Neural Symbolic Regression using Control Variables}},
  year = {2023},
  eprint = {2306.04718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04718},
}
Figure