Neural Relational Inference for Interacting Systems

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

TL;DR

This paper introduces the Neural Relational Inference (NRI) model, an unsupervised approach that simultaneously learns the underlying interaction structure between components of a system and their dynamics, purely from observational data. This allows for a more interpretable and accurate understanding of complex systems, outperforming existing methods in recovering interaction graphs and predicting future states across various physical and real-world scenarios.

What Problem Does This Paper Address?

Many natural and societal phenomena involve systems of interacting components, where the collective behavior emerges from the interplay between individual parts. Examples range from physical systems like planetary motion to biological systems and even social dynamics. A significant challenge in modeling these systems is that we often only have access to the observable trajectories of individual components, without explicit knowledge of the underlying interaction rules or the dynamical model governing their behavior. Manually annotating these interactions is tedious and often infeasible. Existing methods often rely on implicit interaction models or assume a known graph structure, limiting their ability to discover and understand these crucial relationships in an unsupervised manner.

Methods

The core of the proposed solution is the Neural Relational Inference (NRI) model, framed as a variational auto-encoder (VAE). The NRI model has two main components:

  • Encoder: This part takes observed trajectories as input and learns to infer a discrete latent graph representing the interaction structure. It uses a Graph Neural Network (GNN) operating on a fully-connected graph to predict pairwise interaction types (edge types) between components. To handle discrete latent variables, the authors employ a concrete distribution for sampling, enabling backpropagation.
  • Decoder: This component learns the dynamical model of the system. It takes the inferred latent graph from the encoder and predicts future states. The decoder is also a GNN, but crucially, it runs multiple GNNs in parallel, one for each inferred edge type. This design choice makes the dependence on the edge type explicit and harder for the model to ignore, preventing degenerate solutions. The decoder can be configured as either a Markovian decoder (predicting one step ahead) or a recurrent decoder (using GRUs for longer-term dependencies).

A key innovation is the joint training of the encoder and decoder, allowing the model to learn both the interaction structure and the dynamics simultaneously in an unsupervised fashion.

Datasets

The paper evaluates the NRI model on several simulated and real-world datasets:

  • Simulated Physics Systems:
    • Particles connected by springs (2D)
    • Charged particles (2D)
    • Phase-coupled oscillators (Kuramoto model, 1D)
  • Real-world Datasets:
    • Human motion capture data (CMU Motion Capture Database)
    • Basketball sports tracking data (SportVU)

The authors generated synthetic data for the physics simulations, with specific details on parameters and sampling provided in the supplementary material. For motion capture and sports tracking, they utilized publicly available datasets.

Key Insights and Ideas

  • Unsupervised Discovery of Interactions: The most significant insight is the ability of NRI to learn meaningful interaction graphs without any supervision on the graph structure itself. This opens doors to understanding complex systems where interactions are unknown.
  • Interpretable Edge Types: The model learns discrete "edge types" that correspond to different kinds of interactions. These types are shown to be interpretable, capturing semantic relationships (e.g., "defending" or "screening" in basketball).
  • Dynamic Graph Re-evaluation: For certain applications, the learned graph can be dynamically re-evaluated at each time step during testing, allowing the model to adapt to changing interaction patterns.
  • Preventing Degenerate Decoders: By predicting multiple steps into the future and using separate decoders for each edge type, the model is incentivized to utilize the learned graph structure, avoiding solutions that simply ignore interactions.
  • Sparsity Prior for Interpretability: The use of a sparsity prior on the latent graph encourages simpler, more interpretable interaction structures, which can be crucial for understanding complex systems.

Key Results

  • Interaction Recovery: NRI achieves high accuracy in recovering ground-truth interaction graphs across various simulated physics systems, often comparable to or exceeding supervised methods. For instance, in the springs model, NRI (learned) achieved 99.9% accuracy, on par with the supervised benchmark.
  • Future State Prediction: The model demonstrates superior performance in predicting future states compared to baseline methods like LSTMs and full-graph GNNs, especially for longer time horizons. For example, in motion capture data, NRI outperforms fully-connected graph settings and LSTM baselines.
  • Interpretable Edge Types: In the NBA dataset, the learned edge types successfully captured semantic roles like "ball handler," "screener," and "defender," demonstrating the model's ability to learn meaningful relational structures.
  • Motion Capture: NRI shows strong performance on motion capture data, capturing the overall movement with high precision and outperforming baselines in long-term predictions.

Limitations and Future Work

  • Static Graphs During Training: The current NRI model is trained to infer static interaction graphs. The authors acknowledge that many real-world systems have dynamic interactions and suggest future work to extend the model to explicitly account for dynamic latent interactions even during training.
  • Computational Cost: While the model is efficient, training and inference can still be computationally intensive, especially for very large systems.
  • Hyperparameter Sensitivity: The performance can be sensitive to hyperparameter choices, such as the softmax temperature for the concrete distribution and learning rates.
  • Curriculum Learning: For long prediction sequences in motion capture, the accumulation of small errors can lead to inaccuracies. The authors suggest that curriculum learning schemes (gradually adding noise to training sequences) could potentially alleviate this.

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