Introduction
Predicting where people or objects will move is a cornerstone of autonomous driving, robotics, and sports analytics. However, multi-agent environments are notoriously difficult to model because movement is driven by two distinct, often hidden factors:
- Individual Intention: An agent's personal goal (e.g., a basketball player driving to the basket).
- Social Relations: How agents interact with one another (e.g., avoiding a defender or following a teammate).
Existing models often struggle with multi-modality—the reality that, given the exact same past, there are many plausible futures. Most previous works either model only one of these factors or entangle them into a single mathematical representation. This limits the model's ability to represent the true diversity of possible outcomes in highly interactive settings. To address this, researchers introduce the Generative Relation and Intention Network (GRIN), a conditional deep generative model designed to explicitly disentangle individual intentions from social relations.
Methodology
GRIN utilizes a Conditional Variational Autoencoder (CVAE) framework. The core innovation lies in its disentangled architecture, which separates the "why" of movement from the "who" of interaction.
- Two Latent Codes: For every agent, the model infers two separate latent variables: $z_A$ (intra-agent) to represent personal intention and $z_G$ (inter-agent) to represent social relations.
- The Encoder/Prior: During training, an encoder looks at both the past and future to learn these latent distributions. At test time, a "Prior" network predicts these latents based only on the observed past.
- The GAT-based Decoder: To turn these latents into movement, the authors use a modified Graph Attention Network (GAT). Crucially, the relation code ($z_G$) is used to calculate the attention weights between agents (defining the social graph), while the intention code ($z_A$) is combined with the resulting social features to predict the agent's next displacement ($\Delta x$).
- Continuous Relations: Unlike models that use discrete edge types (like "friend" or "foe"), GRIN models relations as continuous values, allowing it to capture subtle, varying degrees of interaction.
Experiments and Key Insights
The authors evaluated GRIN on two distinct types of data:
- Charged Dataset: A synthetic dataset of 5 particles with positive or negative charges. While the physics are deterministic, the interactions are complex and non-linear, serving as a benchmark for relationship discovery.
- NBA Dataset: Real-world tracking data from the 2012-2013 NBA season. This is a highly stochastic environment where 10 players and a ball interact based on complex strategies and rapid reactions.
Disentanglement Improves Generalization
By separating intention from relation, the model can better navigate the uncertainty space. The authors show that $z_G$ (relations) often has a more significant impact on trajectory uncertainty in interactive sports than $z_A$ (intentions). GRIN’s architecture also acknowledges that social structures are correlated—if Agent A attracts B and B attracts C, there is a physical/social logic to how A relates to C.
Interpretability through Attention
Because $z_G$ directly controls the attention mechanism, the model’s "thoughts" on relationships are visible. In the Charged dataset, the model successfully learned to assign high attention to particles with opposite charges (attraction) and ignore neutral ones.
Quantitative Results
GRIN consistently outperformed advanced baselines like NRI, dNRI, and Social-GAN across multiple metrics:
- Accuracy: It achieved lower Average Displacement Error (ADE) and Final Displacement Error (FDE) on both datasets. For example, on the NBA dataset, it reduced FDE from 3.64 (Social-GAN) to 3.59.
- Distributional Quality: Using the Maximum Mean Discrepancy (MMD) metric, which measures how well the predicted distribution matches the real one, GRIN showed a statistically significant improvement over all baselines.
- Log-Likelihood: On the NBA dataset, GRIN achieved a Negative Log-Likelihood (NLL) of 507.5, significantly better than NRI (586.9) and dNRI (662.6), indicating a much tighter fit to the ground truth data.
Limitations and Future Work
While GRIN presents a significant step forward, it has a few limitations:
- Input Modality: Currently, the model requires raw trajectory coordinates. In many real-world scenarios (like CCTV or dashcams), this data must first be extracted from video. Integrating a vision-based backbone is a suggested next step.
- Static Latents: The latent variables $z_A$ and $z_G$ are currently sampled once for an entire sequence. However, in long-term predictions, a player’s intention or their relationship with others might change. Future versions could benefit from dynamic, time-varying latents.
- Graph Sparsity: The model assumes a fully connected graph (everyone interacts with everyone). In very large-scale systems, implementing dynamic sparsity (ignoring agents too far away to matter) would improve computational efficiency.
Summary updated