Discovering Symbolic Models from Deep Learning with Inductive Biases

Miles Cranmer, Alvaro Sanchez-Gonzalez, Peter Battaglia, Rui Xu, Kyle Cranmer +2 more
6/19/2020
cs.LGastro-ph.COastro-ph.IM

Official code: MilesCranmer/symbolic_deep_learning (786 stars, MIT, last commit 2023-11-20). 1 more implementation below.

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.

View on arXivView PDF

Code Implementations(2)

MIT

Code for "Discovering Symbolic Models from Deep Learning with Inductive Biases"

786145PythonJun 16, 20202 years agoMIT
astroautomata/PySRCommunity100%
Apache-2.0

Symbolic Learning in Python and Julia

4,064377HCL, ShellSep 14, 2020yesterdayApache-2.0
algorithmautomldata-sciencedistributed-systemsequation-discovery+10 more

Cite this paper

@article{cranmer2020discovering,
  title  = {Discovering Symbolic Models from Deep Learning with Inductive Biases},
  author = {Miles Cranmer and Alvaro Sanchez-Gonzalez and Peter Battaglia and Rui Xu and Kyle Cranmer and David Spergel and Shirley Ho},
  year   = {2020},
  eprint = {2006.11287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.11287}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.11287.svg)](https://codeofpaper.com/paper/2006.11287)

Discussion