Abstract
Predicting the future trajectories of surrounding agents is a critical challenge for autonomous vehicles due to the multi-modal nature of human driving and the complexity of environmental constraints. This paper introduces the Context-Aware Transformer (CATF), a multi-modal framework that integrates Bird’s Eye View (BEV) semantic maps with historical agent states. By employing a novel off-road loss function and a linear-complexity attention mechanism ($CATF_l$), the model achieves state-of-the-art accuracy on the Lyft L5Kit dataset while significantly improving computational efficiency for real-time deployment.
Introduction
Predicting the movement of cars, cyclists, and pedestrians is a fundamental requirement for safe autonomous navigation. This task is complicated by three primary factors: multi-modality (multiple plausible paths at intersections), environmental constraints (the need to respect road geometry), and long-term dependencies in historical data. Traditional sequence models like LSTMs often struggle with long-range memory and parallelization. The CATF framework addresses these issues by leveraging the attention mechanisms of Transformers to process spatial and temporal context simultaneously.
Methodology
Hybrid Architecture
The CATF model utilizes a hybrid input architecture to process diverse data types. A Convolutional Neural Network (CNN) with a MobileNet-V3 backbone extracts features from BEV semantic maps, providing the necessary environmental context. These features are fused with the historical trajectories of agents and passed into a Transformer Encoder-Decoder structure.
Linear Attention Mechanism ($CATF_l$)
Standard Transformer models suffer from quadratic scaling ($O(n^2)$) relative to sequence length, which can be prohibitive for real-time vehicle hardware. To mitigate this, the authors implemented a linear projection technique in the attention layer. This $CATF_l$ variant reduces complexity to $O(np)$, resulting in a model that is 1.6x faster and uses 1.8x less memory without sacrificing significant accuracy.
Physics-Informed Off-Road Loss
A key innovation of this work is the Off-Road Loss ($L_o$). By dividing the map into a grid of drivable and non-drivable cells, the model penalizes any predicted waypoints that fall outside the road boundaries. This forces the network to implicitly learn the "rules of the road," ensuring that multi-modal predictions remain physically feasible.
Experimental Setup and Datasets
The model was evaluated using the Lyft L5Kit dataset, the largest public dataset for autonomous driving, containing over 1,118 hours of driving logs. The training process utilized a learnable weighting scheme to balance the standard classification loss with the novel off-road loss, allowing the model to optimize for both path accuracy and environmental feasibility.
Key Results
The CATF model demonstrated superior performance against established baselines like Trajectron and the Lyft ResNet-50 baseline:
- Accuracy: CATF achieved a minADE₁ of 3.66m and a minFDE₆ of 2.25m.
- Feasibility: The introduction of the off-road loss reduced the "off-road rate" from 0.13 to 0.07, significantly improving the reliability of predictions in complex turning scenarios.
- Efficiency: The linear attention variant proved highly effective for deployment, maintaining high accuracy while drastically reducing computational overhead.
Conclusion and Future Work
The Context-Aware Transformer successfully integrates semantic map data with agent history to produce accurate, road-legal trajectory predictions. While the current model relies on rasterized RGB images, future iterations may explore vector-based map processing (e.g., VectorNet) to further reduce overhead. Additionally, future research will focus on dynamic hypothesis counts and more sophisticated multi-agent interaction modeling to better capture the social nuances of urban driving.
Summary updated