Dynamic Neural Relational Inference for Forecasting Trajectories

Colin Graber, Alexander G. SchwingWorkshops @ CVPR 2020

Abstract

Trajectory forecasting in multi-agent systems often relies on the assumption of static relationships. This paper introduces Dynamic Neural Relational Inference (dNRI), a framework that models evolving interaction graphs at each time step. By utilizing a sequential Variational Auto-Encoder, dNRI captures fluid changes in system dynamics, leading to superior forecasting accuracy and interpretable relational phases in complex real-world datasets like human motion and sports.

Introduction: The Challenge of Dynamic Interactions

To accurately predict an object's future path, one must understand its interactions with surrounding entities. For instance, a human skeleton's movement is constrained by joint connectivity, while a basketball player's trajectory is influenced by teammates and opponents.

Previous approaches, such as Neural Relational Inference (NRI), successfully automated the discovery of these interactions from raw data. However, NRI assumed these relationships were static, calculating a single average interaction graph for an entire sequence. In reality, interactions are highly dynamic—a defender may switch targets, or a joint's influence may change during different phases of a stride. Static models "blur" these interactions, resulting in poor long-term forecasts and diminished physical insight.

Methodology: Dynamic Neural Relational Inference

The dNRI framework addresses these limitations by modeling interactions as a sequence of latent variables within a Sequential Variational Auto-Encoder (VAE).

High-level architecture of the dNRI sequential VAE, showing the flow from input trajectories to latent graphs and predicted states.

The architecture consists of three primary components:

  1. The Encoder: Employs a Graph Neural Network (GNN) for spatial embeddings and a Bi-directional LSTM to infer the relationship at any given moment during training by considering both past and future trajectories.
  2. The Prior: A Forward LSTM that predicts the likely relationship at the next time step based solely on historical data, enabling inference during testing when the future is unknown.
  3. The Decoder: The forecasting engine that uses the sampled relationship graph and a GNN to predict the next state (position and velocity) for every entity.

To enable end-to-end training with discrete graph edges, the model utilizes the Gumbel-Softmax trick, allowing gradients to flow through the sampling process.

Experimental Setup and Datasets

The model was rigorously evaluated across four diverse domains:

  • Synthetic Physics: A simulation involving particles with intermittent, proximity-based interactions.
  • CMU Motion Capture: High-fidelity human walking and jumping sequences.
  • Basketball (SportVU): Real-world NBA player trajectories.
  • inD Traffic Dataset: Drone-captured footage of heterogeneous traffic at intersections, featuring a variable number of entities.

Key Insights: Phase-Awareness and Interpretability

A significant advantage of dNRI is its ability to discover "phases" of movement. In human gait analysis, the model automatically identifies distinct active relations for the heel joint during lifting versus planting phases. Furthermore, the sequential prior allows the model to anticipate changes based on system momentum rather than merely reacting to them. Unlike "black box" models, dNRI provides a sequence of interpretable graphs, making the AI's underlying reasoning visible to researchers.

Results: Superior Forecasting and Consistency

dNRI demonstrates substantial improvements over static counterparts:

  • Relation Recovery: On synthetic data, dNRI achieved an F1 score of 54.3 for predicting ground truth dynamic relations, more than doubling the performance of static NRI (27.1).
  • Forecasting Accuracy: In human motion tasks, dNRI maintained significantly lower Mean Squared Error (MSE) over extended horizons.
Qualitative comparison of skeleton forecasting. dNRI maintains anatomical consistency over time, whereas static models lead to significant drift and impossible shapes.

As shown in the comparison above, while static models eventually cause the predicted skeleton to drift into impossible configurations, dNRI preserves anatomical consistency. In basketball scenarios, the model correctly identified shifts in player influence, enabling accurate predictions of directional changes that static models failed to capture.

Limitations and Future Directions

Despite its success, dNRI introduces higher computational overhead due to the per-step graph prediction. Future work may explore auxiliary loss functions to further organize the latent space or investigate more efficient ways to handle extremely dense social dynamics, such as those found in crowded pedestrian environments.

Summary updated

BibTeX
@inproceedings{graber2020dynamic,
  author = {Colin Graber and Alexander G. Schwing},
  title = {{Dynamic Neural Relational Inference for Forecasting Trajectories}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00517},
}
Figure