Abstract
Symbolic Regression (SR) aims to discover mathematical expressions that best fit a given dataset, a task central to scientific discovery. However, traditional "horizontal" search methods face exponential complexity as the number of variables increases, often failing on complex equations. This paper introduces Vertical Symbolic Regression (VSR), a novel framework that mimics the incremental nature of human scientific inquiry. By utilizing controlled experiments to isolate variables, VSR decomposes a high-dimensional search into a sequence of manageable, polynomial-sized tasks. Our evaluation across physics-based and synthetic benchmarks demonstrates that VSR significantly outperforms state-of-the-art SR methods in accuracy and scalability, particularly for expressions with many variables.
Introduction
The search for fundamental mathematical laws—Symbolic Regression—is often described as a "holy grail" of AI-driven science. Despite its potential, SR is fundamentally NP-hard. Most contemporary approaches employ a horizontal discovery path, attempting to find an optimal equation by considering all independent variables simultaneously. As the complexity of the target expression grows, the hypothesis space explodes, leading to the "curse of dimensionality" where search performance degrades rapidly.
To address this, we propose Vertical Symbolic Regression (VSR). Inspired by historical scientific breakthroughs, such as the discovery of the Ideal Gas Law through the independent work of Boyle and Charles, VSR adopts a "vertical" strategy. It builds equations incrementally by focusing on one variable at a time while holding others constant, effectively navigating a series of reduced hypothesis spaces.
Methodology
The core of VSR lies in Control Variable Experiments. Instead of a single global search, the algorithm proceeds through several key stages:
- Incremental Building: VSR begins by holding all variables except one constant. It then searches for a simple relationship for that single active variable.
- Summary Constants: When variables are held constant, the sub-expressions containing them act as "summary constants." By running multiple trials with different constant values, VSR identifies these placeholders: if a fitted constant varies across trials, it indicates a sub-expression that must be expanded in later steps.
- Freezing and Expansion: Once a partial expression is verified (showing low error across multiple trials), its nodes are "frozen" to prevent redundant searching. VSR then "frees" an additional variable and expands the existing tree to incorporate it.
We implemented this framework using two search backends: VSR-GP (Genetic Programming) and VSR-MCTS (Monte Carlo Tree Search). A critical requirement for VSR is a Data Oracle—the ability to query specific data points or conduct controlled experiments. In scenarios where such an oracle is unavailable, pre-trained deep neural networks can serve as synthetic data generators.
Experimental Evaluation
VSR was benchmarked against leading SR tools, including Eureqa and Deep Symbolic Regression, across several challenging datasets: the Feynman Lectures on Physics (120 equations), Livermore2 (25 complex random equations), and various synthetic trigonometric datasets.
Key Results
- Superior Scalability: VSR-GP demonstrated exceptional performance on high-dimensional datasets (6+ variables) where traditional horizontal methods typically failed to find accurate expressions.
- Accuracy and Robustness: Both VSR-GP and VSR-MCTS achieved the lowest median Normalized Mean-Square Error (NMSE) across noiseless and noisy benchmarks. In exact recovery tests, VSR-MCTS successfully identified the ground-truth equation 100% of the time on benchmarks where standard MCTS failed completely.
- Efficiency: For simpler equations, VSR's incremental approach resulted in significantly faster discovery times and lower memory usage by maintaining smaller search trees at each step.
Discussion and Conclusion
The primary innovation of VSR is the theoretical reduction of search space complexity from exponential to polynomial. By performing $O(m)$ constant-sized searches for $m$ variables, VSR bypasses the combinatorial explosion inherent in global search.
While VSR requires a Data Oracle, which may be a limitation in fields like astronomy or economics, the use of neural proxies offers a promising path forward. Future work will also explore the impact of variable ordering on discovery efficiency and methods to handle extremely intertwined variable dependencies that resist simple control experiments. By formalizing the historical process of scientific discovery into an algorithmic framework, VSR provides a scalable path toward automated scientific insight.
Summary updated