R-Pred: Two-Stage Motion Prediction Via Tube-Query Attention-Based Trajectory Refinement

Sehwan Choi, Jungho Kim, Junyong Yun, Jun Won Choi

Abstract

Predicting the future motion of dynamic agents is of paramount importance to ensuring safety and assessing risks in motion planning for autonomous robots. In this study, we propose a two-stage motion prediction method, called R-Pred, designed to effectively utilize both scene and interaction context using a cascade of the initial trajectory proposal and trajectory refinement networks. The initial trajectory proposal network produces M trajectory proposals corresponding to the M modes of the future trajectory distribution. The trajectory refinement network enhances each of the M proposals using 1) tube-query scene attention (TQSA) and 2) proposal-level interaction attention (PIA) mechanisms. TQSA uses tube-queries to aggregate local scene context features pooled from proximity around trajectory proposals of interest. PIA further enhances the trajectory proposals by modeling inter-agent interactions using a group of trajectory proposals selected by their distances from neighboring agents. Our experiments conducted on Argoverse and nuScenes datasets demonstrate that the proposed refinement network provides significant performance improvements compared to the single-stage baseline and that R-Pred achieves state-of-the-art performance in some categories of the benchmarks.

Introduction

For autonomous vehicles to navigate safely, they must accurately predict the future motion of surrounding dynamic agents like cars, pedestrians, and cyclists. This task is inherently difficult because human behavior is multi-modal; for instance, a car approaching an intersection might turn left, right, or proceed straight.

While recent deep learning models have utilized attention mechanisms to encode global scene context (HD maps) and past agent interactions, single-stage models often struggle with dense contextual information. They can be distracted by irrelevant map features or fail to account for how the future intentions of different agents might conflict, leading to physically implausible predictions. R-Pred addresses this by first generating likely paths and then refining each specific path by focusing only on the map and agents immediately relevant to that specific guess.

Methods

The R-Pred framework consists of two primary stages:

  1. Initial Trajectory Proposal Network (ITPNet): An off-the-shelf, single-stage predictor that generates $M$ initial trajectory proposals representing different multi-modal intentions based on past trajectories and global scene context.
  2. Trajectory Refinement Network (TRNet): This core component refines each proposal individually using two specialized attention mechanisms:
  3. Tube-Query Scene Attention (TQSA): Instead of processing the entire HD map, TQSA creates a "tube-shaped" region around a specific trajectory proposal. It pools map features only from this local tube, using the proposal as a query to refine the trajectory.
  4. Proposal-level Interaction Attention (PIA): Unlike traditional models that predict interactions based on past trajectories, PIA looks at the proposed future trajectories of neighboring agents. It groups nearby proposals and uses cross-attention to resolve potential future conflicts, such as merging or yielding.
Overview of the R-Pred framework, showing the two-stage process: initial trajectory proposal followed by refinement using TQSA and PIA.

Key Insights

  • Per-proposal refinement beats global context: Restricting scene context to a "tube" around a specific proposal prevents the model from being distracted by irrelevant map features. Ablation studies confirm that local context significantly outperforms shared global context.
  • Future-conditional interaction modeling: Interacting based on proposed futures (PIA) allows the model to anticipate and resolve conflicts much more effectively than looking at past history alone.
  • Plug-and-play capability: The TRNet refinement stage is agnostic to the first stage, meaning it can be added to existing state-of-the-art single-stage models to boost their performance.

Key Results

R-Pred achieved state-of-the-art (SOTA) results on the Argoverse and nuScenes benchmarks. On Argoverse, it achieved a minADE$_6$ of 0.76 and minFDE$_6$ of 1.12, improving the baseline by 3.8% and 7.4% respectively. On nuScenes, it achieved a minADE$_5$ of 1.19 and minFDE$_5$ of 2.28.

Qualitative examples of trajectory refinement. The blue shaded regions represent the "tube" used for local scene context aggregation, helping the model stay on drivable lanes.

Qualitative visualizations demonstrate that TRNet successfully corrects off-road baseline predictions and smoothly handles complex interactions like overtaking and intersection negotiations.

Limitations and Future Work

The refinement stage's success is bounded by the quality of the initial proposals from the ITPNet; if the first stage misses a valid mode of behavior, refinement cannot recover it. Additionally, as a two-stage model, R-Pred carries more computational overhead than single-stage alternatives. Future work may involve optimizing inference speed for real-time systems or applying the tube-query concept to other domains like drone navigation.

Summary updated

Abstract

Predicting the future motion of dynamic agents is of paramount importance to ensuring safety and assessing risks in motion planning for autonomous robots. In this study, we propose a two-stage motion prediction method, called R-Pred, designed to effectively utilize both scene and interaction context using a cascade of the initial trajectory proposal and trajectory refinement networks. The initial trajectory proposal network produces M trajectory proposals corresponding to the M modes of the future trajectory distribution. The trajectory refinement network enhances each of the M proposals using 1) tube-query scene attention (TQSA) and 2) proposal-level interaction attention (PIA) mechanisms. TQSA uses tube-queries to aggregate local scene context features pooled from proximity around trajectory proposals of interest. PIA further enhances the trajectory proposals by modeling inter-agent interactions using a group of trajectory proposals selected by their distances from neighboring agents. Our experiments conducted on Argoverse and nuScenes datasets demonstrate that the proposed refinement network provides significant performance improvements compared to the single-stage baseline and that R-Pred achieves state-of-the-art performance in some categories of the benchmarks.
BibTeX
@inproceedings{choi2023r,
  author = {Sehwan Choi and Jungho Kim and Junyong Yun and Jun Won Choi},
  title = {{R-Pred: Two-Stage Motion Prediction Via Tube-Query Attention-Based Trajectory Refinement}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00783},
}
Figure