Abstract
Transformer architectures have exhibited promising performance in various autonomous driving applications in recent years. On the other hand, its dedicated hardware acceleration on portable computational platforms has become the next critical step for practical deployment in real autonomous vehicles. This survey paper provides a comprehensive overview, benchmark, and analysis of Transformer-based models specifically tailored for autonomous driving tasks such as lane detection, segmentation, tracking, planning, and decision-making. We review different architectures for organizing Transformer inputs and outputs, such as encoder-decoder and encoder-only structures, and explore their respective advantages and disadvantages. Furthermore, we discuss Transformer-related operators and their hardware acceleration schemes in depth, taking into account key factors such as quantization and runtime. We specifically illustrate the operator level comparison between layers from convolutional neural network, Swin-Transformer, and Transformer with 4D encoder. The paper also highlights the challenges, trends, and current insights in Transformer-based models, addressing their hardware deployment and acceleration issues within the context of long-term autonomous driving applications.
1. Introduction
Autonomous driving (AD) requires a vehicle to perceive complex environments, predict the behavior of other agents, and make split-second decisions. Traditionally, Convolutional Neural Networks (CNNs) have been the primary tool for AD perception. However, CNNs are inherently limited by their local receptive fields, making it difficult to capture the "long-range dependencies" necessary for understanding global scene context in high-resolution imagery.
Transformers, originally designed for natural language processing, address this limitation through attention mechanisms that provide a global view of the data. Since the introduction of the Vision Transformer (ViT), these architectures have rapidly migrated into the computer vision and autonomous driving domains. Despite their power, Transformers are computationally expensive and memory-intensive, creating a significant "deployment gap" between high-level research and real-time execution on vehicle hardware.
2. Architectural Taxonomy in Autonomous Driving
Transformer-based models in AD can be categorized into three primary functional groups based on their target tasks:
- 3D & General Perception: Models such as DETR3D and BEVFormer utilize Transformers to detect objects and segment scenes. A pivotal advancement here is the creation of a Bird’s Eye View (BEV) representation, where Transformers "lift" 2D camera data into a unified 3D space.
- 2D & Plane Tasks: These models focus on geometry-heavy tasks like lane detection and HD map generation (e.g., LSTR, MapTR).
- Prediction & Decision Making: This category includes models like VectorNet and UniAD that handle trajectory prediction and "end-to-end" driving, moving from raw sensor data directly to control commands.
3. Hardware Acceleration and Deployment Challenges
Bridging the gap to real-time deployment requires an understanding of the "operator-level" requirements of Transformers. While Matrix Multiplication (MatMul) accounts for the majority of the computational load, the primary hardware bottleneck often lies in non-linear operators such as Softmax, Layer Normalization (LN), and GELU activations. These operators involve complex divisions and square roots that are difficult to implement efficiently on fixed-point silicon.
Quantization Strategies
Quantization—moving from 32-bit floating-point (FP32) to 8-bit or 16-bit integers (INT8/INT16)—is essential for reducing memory footprint and increasing throughput. However, the survey notes that while INT8 works well for most layers, it can lead to significant accuracy degradation in the Softmax layer. A hybrid approach, utilizing 16-bit quantization for sensitive non-linear operators while maintaining 8-bit for MatMul, is often necessary to balance speed and precision.
4. Performance Benchmarks and Insights
Models are evaluated on rigorous industry benchmarks including nuScenes for 3D detection, Argoverse for trajectory prediction, and the CARLA simulator for end-to-end testing.
Data indicates a clear trade-off between speed and accuracy. For instance, BEVFormer achieves high accuracy (0.375 mAP) but operates at only 2.3 FPS on standard hardware, which is insufficient for high-speed driving. Conversely, models with shallower backbones, like CrossDTR, can reach 10.6 FPS but with lower precision. Optimized fixed-point implementations can reduce the time complexity of specific operators from $3O(n)$ to $2O(n)$, a vital gain for meeting real-time constraints.
5. Conclusion and Future Directions
The future of Transformers in autonomous driving lies in hardware-aware design. Rather than optimizing massive models post-training, architectures should be designed with hardware constraints in mind from the outset. Key challenges remain in the interpretability of these "black box" models and their performance in unpredictable real-world scenarios compared to controlled simulations. As hardware platforms evolve, the integration of specialized accelerators for non-linear Transformer operators will be critical for the next generation of autonomous vehicles.
Summary updated