Forecast-MAE: Self-supervised Pre-training for Motion Forecasting with Masked Autoencoders

Jie Cheng, Xiaodong Mei, Ming LiuICCV 2023 · DOI

Abstract

Motion forecasting is a critical component of autonomous driving, requiring a deep understanding of agent interactions and road geometry. While self-supervised learning (SSL) has seen success in other domains, its application to motion forecasting is hindered by data scarcity and modality complexity. We present Forecast-MAE, a self-supervised pre-training framework that utilizes Masked Autoencoders to learn robust representations from unlabeled motion data. By reconstructing masked trajectories and lane segments through a novel complementary masking strategy, Forecast-MAE captures complex cross-modal dependencies, significantly outperforming previous SSL methods on the Argoverse 2 benchmark.

Introduction

Predicting the future paths of vehicles and pedestrians is challenging due to the intricate interplay between dynamic agents and static road layouts. Traditional supervised methods often require vast amounts of human-annotated HD maps and tracking sequences. Forecast-MAE addresses these challenges by adapting the Masked Autoencoder (MAE) paradigm to the motion forecasting domain. The primary goal is to design pretext tasks that effectively capture the bidirectional relationships between an agent's past, its future, and the surrounding environment.

The Forecast-MAE Framework

The core of Forecast-MAE is a standard Transformer-based encoder-decoder architecture designed to handle heterogeneous motion data.

Architecture and Input Processing

Agent trajectories are represented as polylines and processed via a Feature Pyramid Network (FPN) to generate input tokens. Similarly, lane segments are encoded using a mini-PointNet. These tokens are then fed into a Transformer encoder.

Complementary Masking Strategy

The most significant innovation in Forecast-MAE is its "complementary random masking" strategy. Unlike typical point-wise masking, this approach masks either the entire history or the entire future of a given agent. Concurrently, approximately 50% of the lane segments are randomly masked. This forces the model to infer missing temporal segments (e.g., predicting the past from the future) while grounding these inferences in the available spatial context of the road map.

Overview of the Forecast-MAE architecture and masking strategy.

Pre-training and Fine-tuning

During pre-training, the model is tasked with reconstructing the masked history, future, and lane segments. This bidirectional learning objective prevents the model from relying on simple linear extrapolations. For downstream motion forecasting, the pre-trained encoder is combined with a lightweight multi-modal MLP head to predict multiple future trajectories for a focal agent.

Experimental Results

Forecast-MAE was primarily evaluated on the Argoverse 2 (AV2) dataset, which includes 250,000 diverse scenarios. Additional experiments on Argoverse 1 and the Waymo Open Motion Dataset (WOMD) demonstrated the model's strong generalization capabilities.

Performance Benchmarks

Forecast-MAE significantly outperformed previous self-supervised benchmarks, such as SSL-Lanes. Remarkably, despite its simple architecture and minimal inductive bias, the model achieved performance competitive with state-of-the-art supervised models like GANet and THOMAS on the Argoverse 2 leaderboard.

Visualization of the reconstruction task: (a) ground truth, (b) masked input, and (c) reconstructed output.

Efficiency and Ablation

The model is highly efficient, with only 1.9 million parameters. Ablation studies indicated that a balanced masking ratio (40-50%) for trajectories is optimal for learning high-quality features without introducing bias.

Discussion and Conclusion

Forecast-MAE demonstrates that a well-designed self-supervised task can compensate for architectural simplicity. By treating the future as a "teacher" during pre-training, the model establishes strong correlations between agent maneuvers and environmental constraints.

While the current results are promising, future work could explore scaling the model with even larger datasets and investigating transfer learning across different geographic distributions. Forecast-MAE sets a new baseline for self-supervised learning in motion forecasting, paving the way for more robust and data-efficient autonomous driving systems.

Summary updated

BibTeX
@inproceedings{cheng2023forecast,
  author = {Jie Cheng and Xiaodong Mei and Ming Liu},
  title = {{Forecast-MAE: Self-supervised Pre-training for Motion Forecasting with Masked Autoencoders}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00797},
}
Figure