Skip to main content
QUICK REVIEW

[Paper Review] Learning Symbolic Physics with Graph Networks

Miles Cranmer, Rui Xu|arXiv (Cornell University)|Sep 12, 2019
Topic ModelingComputer Science15 references32 citations
TL;DR

This paper proposes a graph network (GN) with physics-inspired inductive biases that learn interpretable force representations in n-body simulations, enabling symbolic regression to recover Newton's law of gravitation from scratch. The model achieves superior zero-shot generalization to larger systems than seen during training, demonstrating that constrained message space (L^{e′} = D) improves generalization over unconstrained high-dimensional alternatives.

ABSTRACT

We introduce an approach for imposing physically motivated inductive biases on graph networks to learn interpretable representations and improved zero-shot generalization. Our experiments show that our graph network models, which implement this inductive bias, can learn message representations equivalent to the true force vector when trained on n-body gravitational and spring-like simulations. We use symbolic regression to fit explicit algebraic equations to our trained model's message function and recover the symbolic form of Newton's law of gravitation without prior knowledge. We also show that our model generalizes better at inference time to systems with more bodies than had been experienced during training. Our approach is extensible, in principle, to any unknown interaction law learned by a graph network, and offers a valuable technique for interpreting and inferring explicit causal theories about the world from implicit knowledge captured by deep learning.

Motivation & Objective

  • To develop a machine learning approach that learns interpretable, physically meaningful representations from raw dynamics data.
  • To improve zero-shot generalization of graph networks to larger physical systems than seen during training.
  • To extract explicit symbolic physical laws from trained neural networks using symbolic regression.
  • To investigate whether constraining the message space dimension (L^{e′}) to match physical dimensionality (D) enhances generalization.
  • To provide a method for interpreting deep learning models as causal, general-purpose physical theories.

Proposed method

  • Imposes inductive biases on graph networks by constraining the message space dimension (L^{e′}) to match the physical dimension D (e.g., 3 for 3D forces).
  • Uses a modified graph network architecture with message function φᵉ, edge-to-node pooling ρᵉ→ᵛ, and node update φᵛ, where message representations correspond to physical forces.
  • Trains the GN with supervised learning on n-body gravitational and spring-like simulations in 2D and 3D to predict system dynamics.
  • Applies symbolic regression (via eureqa) to the trained GN’s message function φᵉ to recover algebraic expressions approximating the underlying force law.
  • Employs Occam’s razor via complexity-regularized model selection to identify the most concise symbolic expression from candidate fits.
  • Evaluates generalization by testing trained GNs on systems with more bodies than in the training set, comparing performance across different L^{e′} values.

Experimental results

Research questions

  • RQ1Can graph networks with physics-inspired inductive biases learn message representations equivalent to true physical forces in n-body systems?
  • RQ2Can symbolic regression recover known physical laws (e.g., Newton’s law of gravitation) from the learned message function without prior knowledge?
  • RQ3Does constraining the message space dimension (L^{e′}) to the physical dimension (D) improve zero-shot generalization to larger systems?
  • RQ4How does the performance of GNs with high-dimensional message spaces (L^{e′} > D) compare to those with minimal, physically constrained dimensions (L^{e′} = D) in out-of-distribution generalization?
  • RQ5Can the internal representations of a trained GN be interpreted as causal, general-purpose physical theories rather than black-box mappings?

Key findings

  • The GN with L^{e′} = D learned message representations that are equivalent to the true force vector in 2D and 3D n-body simulations.
  • Symbolic regression successfully recovered an algebraic expression approximating Newton’s law of gravitation: (0.46m₂Δy − 1.55m₂Δx)/r², matching the physical force components.
  • GNs with L^{e′} = D generalized significantly better to systems with more bodies than seen during training, outperforming models with L^{e′} > D.
  • GNs with L^{e′} > D exhibited a sharp increase in loss when tested on larger systems, indicating 'cheating' via complex encoding in message space rather than learning the true force law.
  • The optimal model was found by minimizing L^{e′} to the known minimum dimension (D), or until loss began to drop, suggesting this is a viable design principle for generalization.
  • The approach enables the extraction of interpretable, symbolic physical laws from implicit neural representations, bridging deep learning and scientific discovery.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.