Abstract
Scientific discovery has historically relied on finding simple algebraic expressions that describe complex natural phenomena. While symbolic regression (SR) is the traditional tool for this task, it often fails to scale to high-dimensional datasets. Conversely, deep learning excels at high-dimensional data but produces "black-box" models that lack physical interpretability. This paper introduces a framework to bridge this gap by extracting interpretable, closed-form mathematical equations from deep learning models. By training Graph Neural Networks (GNNs) with specific inductive biases, the authors use symbolic regression to transform internal neural components into underlying physical laws, even discovering a new formula for dark matter distribution.
Introduction: Bridging Deep Learning and Symbolic Regression
The core challenge in modern scientific machine learning is balancing the predictive power of deep learning with the interpretability of symbolic models. Traditional symbolic regression uses genetic algorithms that scale exponentially with the number of variables, making them impractical for complex systems. Deep learning models, while powerful, offer little physical insight and often fail to generalize to data outside their training distribution.
The authors propose a multi-step pipeline to "digest" complex data into manageable pieces that SR can then turn into human-readable science. By using GNNs as a blueprint, the model's structure mirrors physical systems where nodes represent particles and edges represent interactions.
Methodology: GNNs and Inductive Biases
The framework relies on several key technical strategies:
- Graph Neural Networks as a Blueprint: GNNs are chosen because their architecture naturally encodes the relational structure of physical systems.
- Strong Inductive Biases: To ensure interpretability, the authors "squeeze" the information flow within the network. They employ $L_1$ regularization or bottlenecks to force the GNN to communicate via the smallest possible number of variables.
- Analogy to Newtonian Mechanics: The internal functions of the GNN—the "edge model" for interactions and the "node model" for state updates—are designed to correspond to physical concepts like forces and accelerations.
Once the GNN is trained, these internal functions are fitted using symbolic regression tools like eureqa or PySR. This factorization is the "secret sauce": instead of asking SR to solve a 100-variable problem, the GNN breaks it down into small sub-problems (e.g., functions of 2 or 3 variables) that SR can solve efficiently.
Experimental Evaluation
The framework was evaluated on two distinct types of data:
- N-body Particle Simulations: Synthetic 2D and 3D simulations involving 4 to 8 particles interacting via various laws, including gravity ($1/r$ and $1/r^2$), Coulomb's law, and damped springs.
- Cosmological Dark Matter Simulations: Real-world astrophysical data from the "Quijote" simulations. The goal was to predict the "overdensity" of dark matter halos based on the mass and position of neighboring cosmic structures.
Key Insights and Results
Messages as Forces
A striking insight from this work is that when a GNN is forced to be sparse, its internal "messages" naturally align with physical forces. The authors demonstrated that these learned messages are essentially linear transformations (rotations or scalings) of the true underlying physical vectors.
Rediscovering and Discovering Physics
The model successfully rediscovered Newton’s law of gravitation, Hooke’s law for springs, and Hamiltonians from raw trajectory data without prior knowledge of the functional forms. More significantly, when applied to dark matter simulations, the authors discovered a new analytic formula for dark matter concentration. This discovered formula outperformed standard hand-designed estimators used by astrophysicists, achieving a loss of 0.0882 compared to the baseline of 0.121.
Superior Generalization
Extracted symbolic equations generalized to "out-of-distribution" data significantly better than the GNNs from which they were derived. While the GNN's error typically spikes on unseen data ranges, the symbolic models remain accurate because they capture the fundamental physical law rather than merely interpolating training points.
Limitations and Future Work
While promising, the method's success depends on choosing a neural network architecture that matches the problem's topology. Furthermore, the final symbolic regression step still relies on genetic algorithms, which can be sensitive to search parameters. Future work may extend this logic to Convolutional Neural Networks to discover Partial Differential Equations (PDEs) in gridded data, such as fluid dynamics.
Summary updated