Discovering Symbolic Models from Deep Learning with Inductive Biases
Miles Cranmer, Alvaro Sanchez-Gonzalez, Peter Battaglia, Rui Xu, Kyle Cranmer, David Spergel, Shirley Ho
TL;DR
The paper tackles the challenge of interpreting deep models by distilling symbolic laws from structured neural architectures. It introduces a framework that imposes strong inductive biases via Graph Networks and then applies symbolic regression to the network’s internal components to extract explicit equations, including force laws and Hamiltonians. Across Newtonian dynamics, Hamiltonian dynamics, and cosmology, the approach recovers known physical relationships and uncovers new analytic expressions, with symbolic models often generalizing better to out-of-distribution data than the original networks. By enforcing compact latent representations and using separable internal functions, the method provides interpretable, data-driven discoveries of physical principles and new analytic insights in astrophysics. The work thus offers a principled path to interpretability and principled discovery in neural representations learned from complex, high-dimensional data.
Abstract
We develop a general approach to distill symbolic representations of a learned deep model by introducing strong inductive biases. We focus on Graph Neural Networks (GNNs). The technique works as follows: we first encourage sparse latent representations when we train a GNN in a supervised setting, then we apply symbolic regression to components of the learned model to extract explicit physical relations. We find the correct known equations, including force laws and Hamiltonians, can be extracted from the neural network. We then apply our method to a non-trivial cosmology example-a detailed dark matter simulation-and discover a new analytic formula which can predict the concentration of dark matter from the mass distribution of nearby cosmic structures. The symbolic expressions extracted from the GNN using our technique also generalized to out-of-distribution data better than the GNN itself. Our approach offers alternative directions for interpreting neural networks and discovering novel physical principles from the representations they learn.
