Relational State-Space Model for Stochastic Multi-Object Systems

Fan Yang, Ling Chen, Fan Zhou, Yusong Gao, Wei Cao

Predicting the future is hard, especially when the "future" involves dozens of interacting parts—like players on a basketball court, cars in a traffic jam, or particles in a fluid. While we have great tools for modeling single sequences, things get messy when those sequences collide and influence one another.

A team of researchers recently presented a solution: the Relational State-Space Model (R-SSM). By marrying Graph Neural Networks (GNNs) with hierarchical latent variable models, they’ve built a framework that can simulate the "organized chaos" of stochastic multi-object systems.

TL;DR

R-SSM is a new deep learning framework that models systems of interacting, noisy objects by combining Graph Neural Networks with hierarchical State-Space Models. It introduces Graph Normalizing Flows to capture complex correlations between objects and uses contrastive learning to ensure the model actually learns how objects influence each other.

What Problem Does This Paper Address?

Most real-world dynamical systems are multi-object and stochastic. Think of a traffic network: a crash at one intersection causes ripples miles away, but individual driver behavior is also inherently unpredictable (stochastic).

Current approaches usually fall into two camps:

  1. State-Space Models (SSMs): Great at handling noise and uncertainty in single sequences but struggle to scale to complex interactions between many objects.
  2. GNN-based Autoregressive Models: Excellent at modeling interactions (like "relational inductive bias") but often treat the future as deterministic. This makes them brittle when faced with the inherent randomness of real-world data.

The gap lies in creating a model that is both relational (understands how A affects B) and stochastic (understands that the future is a distribution, not a single point).

Methods

The R-SSM architecture is built on three pillars:

Graphical representations of the R-SSM generative and inference models.
  1. Hierarchical Latent Variables: The model uses a "Global-to-Local" approach. A global latent variable captures the "macro" state of the entire system (e.g., the overall flow of a basketball play), while local latent variables track individual objects.
  2. Graph Normalizing Flows (GNF): This is the "secret sauce." Standard models often assume that given the past, objects move independently in the next time step. R-SSM uses GNFs—an adaptation of the "Glow" architecture for graphs—to model joint distributions. This allows the model to capture instantaneous correlations (e.g., if Player A moves left, Player B must move right to stay open).
  3. Auxiliary Contrastive Tasks: Deep sequential models often suffer from "posterior collapse," where they ignore the latent variables and just focus on short-term patterns. The authors introduce two Contrastive Predictive Coding (CPC) objectives. One forces the model to predict a node's future based only on its neighbors' states, effectively "forcing" the GNN to learn meaningful interaction rules.

For training, the authors move beyond the standard VAE approach and use Variational Sequential Monte Carlo (VSMC), which provides a tighter bound on the likelihood for long sequences.

Datasets

The authors evaluated R-SSM on three distinct types of data:

  • Synthetic Toy Dataset: A system of 36 nodes generated via a Stochastic Block Model to test if the model can recover hidden interaction structures.
  • Basketball Gameplay: Real NBA player trajectories (offensive team only). This is a classic "multi-agent" problem where movements are highly coordinated and strategic.
  • Road Traffic (METR-LA): Speed data from 207 sensors on Los Angeles highways, representing a large-scale spatiotemporal forecasting challenge.

Key Insights and Ideas

  • Stochasticity is a Feature, Not a Bug: The paper demonstrates that deterministic models (GNN-AR) fail significantly when the underlying system is noisy. R-SSM’s ability to model the distribution of possible futures leads to much better long-term "rollouts."
  • The Power of Equivariance: By using GNFs, the model remains "equivariant"—meaning the order in which you list the objects doesn't change the outcome. This is crucial for scaling to systems with many identical parts.
  • Interaction-Focused Learning: The "aha moment" in their training strategy is the second contrastive loss. By trying to predict a node's future without looking at that node's own history, the model is forced to extract every bit of information possible from the surrounding graph.

Key Results

Quantitative results on the basketball dataset, highlighting the impact of auxiliary losses and Graph Normalizing Flows (GNF).
  • Synthetic Data: R-SSM achieved a significantly higher log-likelihood and lower Mean Squared Error (MSE) compared to standard Variational RNNs and GNN-based autoregressive models.
  • Basketball: R-SSM outperformed state-of-the-art hierarchical models (like MI-VRNN). Qualitatively, the "rollouts" (simulated futures) from R-SSM were much more realistic, matching ground truth statistics for player speed and "out-of-bounds" (OOB) frequency far better than baselines. The addition of GNFs and auxiliary losses demonstrably improved these metrics.
  • Traffic: On the METR-LA dataset, R-SSM was competitive with specialized traffic models for short-term forecasts and provided superior uncertainty estimates (90% prediction intervals).

Limitations and Future Work

The authors identify a few areas for growth:

  • Computational Complexity: Graph Normalizing Flows are memory-intensive. On the large traffic dataset, they couldn't use GNFs due to GPU memory limits, falling back to simpler distributions.
  • Homogeneity: The current model assumes all objects are the same type. Future versions could benefit from handling heterogeneous nodes (e.g., modeling players, the ball, and the referee differently).
  • High-Dimensional Input: Moving from simple 2D coordinates to raw video data is a logical next step for this hierarchical approach.

Summary updated

BibTeX
@inproceedings{yang2020relational,
  author = {Fan Yang and Ling Chen and Fan Zhou and Yusong Gao and Wei Cao},
  title = {{Relational State-Space Model for Stochastic Multi-Object Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure