CASPFormer: Trajectory Prediction from BEV Images with Deformable Attention
Harsh Yadav, Maximilian Schaefer, Kun Zhao, Tobias Meisen
TL;DR
CASPFormer addresses the scalability challenge of HD-map dependent motion prediction by enabling multi-modal trajectory prediction from rasterized BEV images. It introduces a deformable-attention-based recurrent decoder that uses two learnable embeddings—temporal and mode queries—to capture temporal structure and prevent mode collapse, producing diverse, scene-consistent vectorized trajectories. Evaluated on nuScenes, CASPFormer achieves state-of-the-art performance on key metrics and demonstrates robust multi-modal behavior, with qualitative trajectories reflecting different ego speeds. The work offers a scalable, perception-module-compatible approach for autonomous driving that reduces reliance on costly HD maps and has practical implications for real-time trajectory forecasting and planning.
Abstract
Motion prediction is an important aspect for Autonomous Driving (AD) and Advance Driver Assistance Systems (ADAS). Current state-of-the-art motion prediction methods rely on High Definition (HD) maps for capturing the surrounding context of the ego vehicle. Such systems lack scalability in real-world deployment as HD maps are expensive to produce and update in real-time. To overcome this issue, we propose Context Aware Scene Prediction Transformer (CASPFormer), which can perform multi-modal motion prediction from rasterized Bird-Eye-View (BEV) images. Our system can be integrated with any upstream perception module that is capable of generating BEV images. Moreover, CASPFormer directly decodes vectorized trajectories without any postprocessing. Trajectories are decoded recurrently using deformable attention, as it is computationally efficient and provides the network with the ability to focus its attention on the important spatial locations of the BEV images. In addition, we also address the issue of mode collapse for generating multiple scene-consistent trajectories by incorporating learnable mode queries. We evaluate our model on the nuScenes dataset and show that it reaches state-of-the-art across multiple metrics
