Neural Relational Inference for Interacting Systems

Thomas N. Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, Richard S. Zemel

Introduction: The Challenge of Latent Interactions

In many complex systems—from a cluster of stars to a group of basketball players—the behavior of the whole is driven by interactions between individual parts. While we can often observe the resulting motion (trajectories), the underlying "rules" or "connections" (the interaction graph) are usually invisible.

Conceptual overview of NRI: inferring an interaction graph from observed trajectories.

Traditional approaches to modeling these systems typically fall into two camps: they either assume a fixed, known interaction structure (like a physical mesh) or they try to model the dynamics implicitly using "black-box" neural networks. The former is often unrealistic, while the latter lacks interpretability and struggles with long-term predictions because it doesn't explicitly account for the system's relational structure. The Neural Relational Inference (NRI) model aims to bridge this gap by learning the structure and the dynamics simultaneously without any ground-truth labels for the interactions.

Methods: The NRI Framework

The authors introduce the NRI model, which uses a Variational Auto-Encoder (VAE) framework to learn an explicit latent graph structure from observed dynamics.

The NRI model architecture, showing the GNN-based encoder and decoder with a discrete latent graph.

The model consists of three primary components:

  1. The Encoder: A Graph Neural Network (GNN) that operates on a fully connected graph of the observed objects. It takes their trajectories as input and outputs a probability distribution over discrete edge types (e.g., "no interaction," "attraction," "repulsion").
  2. The Latent Variable: The "bottleneck" of the VAE is a discrete latent graph. To make this differentiable for training, the authors use the Gumbel-Softmax (Concrete) distribution relaxation, allowing gradients to flow through the discrete edge selections.
  3. The Decoder: Another GNN that predicts the future state of the objects conditioned on the latent graph sampled by the encoder.

A key technical contribution is the strategy to avoid "degenerate decoders." Because interactions often have small effects over a single time step, a simple decoder might learn to ignore the latent graph entirely. To force the model to use the inferred structure, the authors train the decoder to predict multiple time steps into the future, where the cumulative effect of interactions becomes undeniable.

Datasets and Evaluation

The model was evaluated on both synthetic and real-world data to test its ability to recover physical laws and predict complex motion:

  • Physics Simulations: 2D particles connected by springs, charged particles (attracting/repelling), and 1D phase-coupled oscillators (Kuramoto model).
  • CMU Motion Capture: 3D trajectories of 31 joints from a human subject walking.
  • NBA SportVU Data: Tracking data of 5 players and the ball during "Pick and Roll" plays, focusing on the complex social and tactical interactions in sports.

Key Insights and Results

By forcing the model to commit to an explicit (though latent) graph structure, NRI gains a powerful inductive bias. This allows it to generalize better than "joint" LSTMs that try to process all object states at once.

  • Unsupervised Discovery: The model can recover ground-truth physical connections (like which particles are actually linked by springs) with near-perfect accuracy without ever being told which particles are connected. On the "Springs" dataset, NRI achieved 99.9% accuracy in identifying ground-truth connections.
  • Trajectory Prediction: NRI significantly outperformed LSTMs and full-graph GNNs in long-term mean squared error (MSE). For example, in the "Springs" task at 20 steps ahead, NRI's error was orders of magnitude lower than a standard "single" LSTM.
  • Interpretable Dynamics: In real-world data like motion capture, the model identifies semantically meaningful structures. For example, it naturally identifies "hand-to-hand" correlations in walking patterns that are more predictive than the actual physical skeleton.

Limitations and Future Work

The core model assumes the interaction graph is static over the observed period. While the authors demonstrate a "dynamic re-evaluation" trick for motion capture, the underlying framework isn't natively designed for rapidly evolving topologies. Additionally, the initial step involves a GNN on a fully connected graph, which scales at $O(N^2)$ where $N$ is the number of objects. This makes it difficult to apply to systems with thousands of interacting agents without further optimization. Future work may explore extending the model to handle dynamic latent graphs more elegantly and applying it to causal reasoning.

Summary updated

BibTeX
@inproceedings{kipf2018neural,
  author = {Thomas N. Kipf and Ethan Fetaya and Kuan-Chieh Wang and Max Welling and Richard S. Zemel},
  title = {{Neural Relational Inference for Interacting Systems}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure