AI Feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity

Silviu-Marian Udrescu, Andrew K. Tan, Jiahai Feng, Orisvaldo Neto, Tailin Wu, Max Tegmark

Introduction

Symbolic regression—the task of discovering a human-readable mathematical formula that perfectly describes a dataset—is a classic "needle in a haystack" problem. As the number of input variables and mathematical operations increases, the space of possible expressions explodes exponentially, leading to the curse of dimensionality.

Furthermore, traditional symbolic regression algorithms are notoriously brittle. When faced with even moderate amounts of noise or outliers, they tend to overfit, producing overly complex, physically meaningless formulas. AI Feynman 2.0 tackles these challenges head-on, introducing a framework that combines recursive graph modularity discovery with Pareto-optimal pruning. The result is a system that achieves 1 to 3 orders of magnitude better noise robustness than previous methods and can even uncover symbolic probability distributions from raw samples.

The AI Feynman 2.0 Approach

Rather than attempting a brute-force search through an infinite space of equations, AI Feynman 2.0 treats mathematical formulas as computational graphs and employs a divide-and-conquer strategy to break them down.

1. Neural Networks as an Oracle

The system first trains a neural network (NN) to fit the provided data. Instead of searching for the formula directly from the noisy data, the algorithm performs "numerical experiments" on this trained NN to uncover the structural properties of the underlying function.

2. Generalized Modularity Discovery

Using the neural network's gradients, the algorithm identifies symmetries and separabilities. For instance, if the normalized gradient of the function is independent of certain variables, it indicates those variables only interact within a specific sub-module.

Graph Modularity Types

This insight allows the system to recognize patterns like additive separability, multiplicative separability, or compositionality. By identifying these structures, AI Feynman 2.0 recursively simplifies a massive, multi-variable problem into several smaller, manageable sub-problems.

3. Pareto-Optimal Pruning

To prevent the search from getting bogged down by overly complex "junk" formulas that only offer marginal accuracy improvements, the algorithm maintains a Pareto frontier.

Pareto Frontier of Formulas

This frontier balances a formula's accuracy against its complexity (measured in bits). By tracking the best formulas along this trade-off curve, the system naturally isolates the most elegant and physically meaningful equations.

4. Statistical Hypothesis Testing & Density Estimation

To accelerate the search for simple modules, AI Feynman 2.0 uses a $z$-test to reject poor candidate formulas early, discarding them if they fail on the first few data points. Additionally, to perform symbolic regression on probability distributions (where only samples are available, not explicit $y$-values), the authors utilize Rational-Quadratic Neural Spline Flows (RQ-NSF) to estimate the density function before feeding it into the regression pipeline.

Key Innovations

  • Gradients as "Smoking Guns": The most elegant insight of the paper is using normalized gradients ($\hat{\nabla} f$) to detect generalized symmetry. This provides a mathematical roadmap for decomposing complex graphs.
  • Information Theory over MSE: By optimizing for Mean Error Description Length (MEDL) instead of Mean Squared Error (MSE), the algorithm becomes highly robust to outliers. MEDL effectively asks, "How many bits do I need to describe the remaining error?" This naturally downweights rare, high-error outliers that would otherwise skew an MSE-based fit.

Results and Performance

The authors evaluated AI Feynman 2.0 across several rigorous benchmarks, including the Feynman Symbolic Regression Database (100 baseline physics equations) and a new Modularity Benchmark designed to test complex symmetries.

  • Unprecedented Robustness: The new framework is 10 to 1,000 times more robust to noise than its predecessor, successfully recovering formulas even when noise levels reached 10% of the signal.
  • Solving the "Unsolvable": It successfully solved all 100 Feynman database problems, as well as 17 complex "mystery" equations that completely stumped version 1.0.
  • Probability Distributions: The method recovered the symbolic forms of 8 out of 10 test probability distributions directly from random samples, including complex 3D quantum mechanical hydrogen wavefunctions.

Limitations and Future Work

While highly effective for multi-variable problems, the divide-and-conquer approach struggles if a formula has only one variable but extreme complexity (e.g., deeply nested trigonometric functions), as modularity discovery cannot reduce the variable count further. Additionally, the brute-force component remains sensitive to the user-provided basis set of functions; missing a crucial operation (like tanh) can force the system into complex, failing approximations.

Future work may focus on mapping high-dimensional raw data (such as video or complex sensor arrays) into low-dimensional latent spaces before applying this powerful symbolic regression engine.

Summary updated

BibTeX
@inproceedings{udrescu2020ai,
  author = {Silviu-Marian Udrescu and Andrew K. Tan and Jiahai Feng and Orisvaldo Neto and Tailin Wu and Max Tegmark},
  title = {{AI Feynman 2.0: Pareto-optimal symbolic regression exploiting graph modularity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=i7PFsVnRj3N},
}
Figure