JAM: Keypoint-Guided Joint Prediction after Classification-Aware Marginal Proposal for Multi-Agent Interaction

Fangze Lin, Ying He, Fei Yu, Hong Zhang · DOI

Abstract

Accurate multi-agent trajectory prediction is critical for autonomous driving, yet existing methods often struggle to balance individual maneuver diversity with social consistency. Marginal prediction models capture diverse behaviors but lack interaction awareness, while joint prediction models often suffer from modal omission in high-dimensional spaces. We present JAM, a two-stage framework that first generates classification-aware marginal proposals and then refines them through keypoint-guided joint prediction. By utilizing temporal keypoints as structural anchors, JAM achieves state-of-the-art performance on the Waymo Open Motion Dataset (WOMD) interactive benchmark, effectively capturing rare maneuvers while ensuring collision-free interactions.

Introduction

Predicting how multiple road users will move is a complex "chicken and egg" problem. If a model predicts each agent's path independently (marginal prediction), it may predict physically impossible scenarios where two cars occupy the same space simultaneously. Conversely, if it attempts to predict the entire scene at once (joint prediction), the exponential search space often causes the model to ignore rare but critical maneuvers—such as sudden sharp turns—in favor of the most statistically "average" path.

Comparison of Marginal Prediction, Joint Prediction, and the proposed JAM framework.

As illustrated in Figure 1, marginal models provide high multimodality but fail at interaction, while joint models ensure interaction but often lose multimodality. JAM (Keypoint-Guided Joint Prediction) addresses this "modal omission" by combining the diversity of individual agent modeling with the consistency of joint scene modeling.

Methodology

The JAM framework utilizes a two-stage pipeline designed to prioritize diversity before enforcing consistency:

  1. Classification-Aware Marginal Proposal: Instead of starting with unconstrained guesses, the model first generates a set of trajectory proposals for each agent. It employs classification-aware queries that force the model to categorize potential paths into specific maneuvers (e.g., left turn, U-turn, stationary). This ensures a comprehensive range of possible futures is considered for every agent.
  2. Keypoint-Guided Joint Prediction: The second stage refines these individual proposals into a socially consistent joint prediction. To manage the complexity of multi-agent interaction, the authors introduce Keypoint-Guided Encoding. Specific waypoints (extracted at 3s, 5s, and 8s) from the initial proposals act as a "skeleton" that guides a Transformer-based joint decoder. This allows the model to focus on the most important temporal data points for coordinating agent relationships.
The JAM architecture, highlighting the two-stage process from marginal proposal to joint refinement.

The architecture relies on a query-centric Transformer encoder, which standardizes scene context into local coordinate systems to stabilize the learning process.

Experiments and Results

JAM was evaluated on the Waymo Open Motion Dataset (WOMD) interactive prediction benchmark, which focuses on scenarios where two agents are explicitly interacting (e.g., merging or yielding).

Quantitative Performance

JAM demonstrated superior performance compared to established baselines such as GameFormer and MTR++:

  • Position Accuracy: It achieved a minADE (Minimum Average Displacement Error) of 0.8673 and a minFDE (Minimum Final Displacement Error) of 1.9073, outperforming all listed baselines.
  • Efficiency: Despite its two-stage nature, the model maintains an inference latency of approximately 17.8ms on an RTX 4090, making it viable for real-time autonomous driving applications.

Qualitative Insights

Qualitative results indicate that JAM is significantly better at predicting "low-probability modes," such as sharp turns at intersections, which standard joint prediction models often miss. By using learnable queries rather than handcrafted anchors, JAM adapts more flexibly to complex, real-world environments.

Conclusion and Future Work

JAM successfully bridges the gap between marginal and joint prediction by using classification-aware proposals and keypoint-guided refinement. While the current model uses fixed temporal keypoints (3s, 5s, 8s), future work may explore dynamic or interactive keypoint pairs to better model how one agent's specific timing directly influences another's behavior. Additionally, scaling this joint prediction framework to highly crowded scenes with more than ten interacting agents remains an ongoing computational challenge.

Summary updated

BibTeX
@misc{lin2025jam,
  author = {Fangze Lin and Ying He and Fei Yu and Hong Zhang},
  title = {{JAM: Keypoint-Guided Joint Prediction after Classification-Aware Marginal Proposal for Multi-Agent Interaction}},
  year = {2025},
  eprint = {2507.17152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.17152},
}
Figure