Dynamic Neural Relational Inference

Colin Graber, Alexander G. SchwingCVPR 2020

Abstract

Most real-world systems, ranging from human joints to traffic participants, involve entities that interact in time-varying ways. While previous Neural Relational Inference (NRI) models assumed static interaction graphs, this paper introduces Dynamic Neural Relational Inference (dNRI). dNRI predicts evolving interaction graphs at every time step, enabling significantly more accurate long-term trajectory forecasting in complex, multi-agent environments.

Introduction

Predicting the future state of a dynamic system requires understanding the underlying interactions between its components. For instance, a basketball player's trajectory is influenced by the positions and movements of teammates and opponents. Neural Relational Inference (NRI) typically models these interactions as edges in a graph.

However, the original NRI framework assumes these relationships are static over time. In reality, interactions are often transient or phase-dependent—such as the changing relationship between a heel and toe joint during a walking cycle. By forcing a single static graph onto a dynamic process, older models "averaged out" these interactions, leading to blurry or inaccurate long-term predictions. dNRI addresses this by inferring a dynamic latent graph that evolves alongside the system.

Methodology

dNRI is built upon a Variational Auto-Encoder (VAE) architecture tailored for sequential data. It consists of three primary components:

  1. Encoder: A bidirectional LSTM processes the entire trajectory to estimate the posterior probability of relationships at each time step.
  2. Prior: An autoregressive prior learns to anticipate the next state of the interaction graph based on the system's history, allowing the model to forecast even when ground-truth observations are unavailable.
  3. Decoder: A Graph Neural Network (GNN) that utilizes different "edge models" corresponding to the predicted latent relation types at each time step.

To enable end-to-end training, the model employs the Gumbel-Softmax trick, allowing gradients to flow through the discrete choice of edge types.

The dNRI architecture featuring the Encoder, Prior, and Decoder components.

Experiments and Results

The model was evaluated across four distinct domains: synthetic physics, CMU Motion Capture (human walking and jumping), basketball trajectories, and real-world traffic data (inD dataset).

  • Synthetic Physics: On a dataset of particles with intermittent interactions, dNRI achieved an F1 score of 54.3 for relation prediction, nearly doubling the 27.1 achieved by static NRI.
  • Trajectory Forecasting: In CMU MoCap walking data, dNRI maintained a much lower Mean Squared Error (MSE) over 50+ frames compared to static models, which tended to "drift" or deform the skeleton over time.
  • Relations as Phases: Qualitatively, the model successfully identified different phases of movement. In walking sequences, it predicted distinct edge types for the heel joint depending on whether it was being lifted, moved forward, or placed down.
Dynamic interaction graphs inferred by dNRI for human walking at different frames.

Discussion and Future Work

dNRI provides a more interpretable and accurate framework for modeling complex systems by explicitly accounting for dynamic interactions. Unlike "black box" LSTMs, dNRI provides a human-readable graph that explains why the model predicts certain movements.

While the model incurs a higher computational cost due to per-step graph inference, the gains in forecasting accuracy are substantial. Future work may explore adding auxiliary loss functions to further stabilize training and improve the accuracy of the latent representations. Additionally, scaling the model to handle an even larger number of entities in highly dense environments remains an open challenge.

Summary updated

BibTeX
@inproceedings{graber2020dynamic,
  author = {Colin Graber and Alexander G. Schwing},
  title = {{Dynamic Neural Relational Inference}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00854},
}
Figure