Towards Generalizable Trajectory Prediction using Dual-Level Representation Learning and Adaptive Prompting

Kaouther Messaoud, Matthieu Cord, Alexandre Alahi

Introduction

Predicting the future trajectories of surrounding traffic agents is a cornerstone of safe autonomous driving. However, the task is fraught with challenges: the future is inherently multi-modal, and models must account for complex social interactions and road geometries. Current state-of-the-art models often struggle with three primary issues: poor generalization across different geographic domains, inefficient multi-modal handling (often relying on computationally expensive post-processing like Non-Maximum Suppression), and architectural rigidity that leads to catastrophic forgetting during fine-tuning.

To address these, we present PerReg+ (Perceiver with Register queries), a framework that leverages dual-level self-supervised pre-training and an efficient register-based architecture to achieve superior generalization and performance.

Conceptual comparison between prior Masked Autoencoder (MAE) approaches and the proposed dual-level learning (MR & SD).

Methodology

PerReg+ is built upon the Perceiver IO architecture and introduces three core innovations designed to enhance both representation quality and adaptation efficiency.

Dual-Level Representation Learning

The framework employs a teacher-student paradigm for self-supervised pre-training. While the "Teacher" encoder processes the complete scene, the "Student" encoder receives a heavily masked input (90% history and 75% map points). The student is trained via two objectives: Self-Distillation (SD), where it aligns its high-level scene understanding with the teacher, and Masked Reconstruction (MR), where it physically reconstructs missing trajectory and lane segments. This fine-grained masking forces the model to learn the underlying "grammar" of road physics and geometry.

Register Queries and Adaptive Prompting

Unlike standard models that generate a surplus of trajectories for later filtering, PerReg+ utilizes "registers"—structured memory slots within the decoder. This allows the model to manage multiple potential futures internally, eliminating the need for external clustering or NMS. For domain adaptation, we introduce Adaptive Prompt Tuning. By freezing the backbone and only optimizing a small pool of scenario-specific prompts (e.g., for intersections vs. highways), the model adapts to new datasets without losing its general driving knowledge.

Detailed architecture of PerReg+ showing the teacher-student pre-training setup, the prompt pool for adaptation, and the decoder with register queries.

Experimental Setup and Results

We evaluated PerReg+ using the UniTraj framework across three major datasets: nuScenes, Argoverse 2 (AV2), and the Waymo Open Motion Dataset (WOMD).

Key Findings

  • State-of-the-Art Performance: PerReg+ established new benchmarks across all three datasets. Notably, the use of Register Queries alone yielded an 11% improvement in Brier-min Final Displacement Error (B-FDE) by optimizing internal memory management.
  • Cross-Domain Generalization: In zero-shot transfer tests (training on WOMD and testing on nuScenes), PerReg+ achieved an 11.8% reduction in B-FDE compared to non-pre-trained baselines.
  • Efficiency in Small Data Regimes: The benefits of pre-training were most pronounced on smaller datasets like nuScenes and AV2, where accuracy improved by 11-13%.

Conclusion

PerReg+ demonstrates that combining high-ratio masking with dual-level distillation and register-based decoding significantly enhances the generalizability and efficiency of trajectory prediction. By moving multi-modal complexity inside the network and using adaptive prompting for domain transfer, we provide a robust path toward universal motion forecasting models. Future work will focus on expanding the model to include diverse agent types such as pedestrians and cyclists.

Summary updated

BibTeX
@inproceedings{messaoud2025towards,
  author = {Kaouther Messaoud and Matthieu Cord and Alexandre Alahi},
  title = {{Towards Generalizable Trajectory Prediction using Dual-Level Representation Learning and Adaptive Prompting}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02567},
}
Figure