Abstract
In autonomous driving, 3D object detection from LiDAR point clouds is a critical task traditionally dominated by 3D sparse convolutions. However, convolutions suffer from limited receptive fields, making it difficult to capture long-range environmental context. We present Voxel Transformer (VoTr), a novel backbone that replaces traditional convolutions with a Transformer-based architecture. By utilizing specialized sparse voxel modules and a "Fast Voxel Query" hashing mechanism, VoTr efficiently captures global context, leading to significant performance improvements on the KITTI and Waymo Open datasets while maintaining competitive inference speeds.
Introduction
Detecting 3D objects like cars and pedestrians requires understanding both fine-grained local geometry and the broader environmental context. Current high-performing detectors rely on 3D sparse convolutions, which are efficient but have a fundamentally limited "receptive field." To capture a large enough context to recognize sparse points as a car (e.g., by looking at the road geometry around it), convolutional models must stack many layers or use large kernels, both of which are computationally expensive and can blur fine details.
While Transformers excel at capturing long-range relationships in NLP and 2D vision, applying them to 3D point clouds is challenging. Point clouds are incredibly sparse and contain tens of thousands of voxels (3D pixels), making standard dense self-attention computationally prohibitive. VoTr addresses these challenges by adapting the Transformer architecture specifically for sparse 3D data.
Methodology
Architecture Overview
VoTr integrates into standard voxel-based 3D detection pipelines by replacing the 3D convolutional backbone. The architecture consists of several VoTr Building Blocks, which utilize two specialized modules: the Submanifold Voxel Module and the Sparse Voxel Module. The Submanifold module maintains the 3D structure by processing only existing non-empty voxels, while the Sparse module allows for downsampling or "filling in" data, analogous to strided convolutions.
Local and Dilated Attention
To maintain computational efficiency, VoTr avoids global self-attention. Instead, it employs a dual-attention strategy:
- Local Attention: Focuses on the immediate neighborhood of a voxel to preserve fine-grained structural details.
- Dilated Attention: Acts as a "zoom lens," skipping voxels at increasing intervals to look up to 15 meters away. This allows the model to attend to a small, fixed number of voxels (typically fewer than 50) while covering a massive spatial area.
Fast Voxel Query
A major bottleneck in 3D attention is identifying which non-empty voxels reside at specific 3D coordinates. VoTr introduces a Fast Voxel Query mechanism using a GPU-based hash table. This allows the model to look up neighboring voxels in constant time, significantly accelerating both training and inference.
Experimental Results
VoTr was evaluated on the Waymo Open Dataset and the KITTI Dataset, integrated into both single-stage (VoTr-SSD) and two-stage (VoTr-TSD) detection frameworks.
- Performance Gains: On the Waymo dataset, VoTr improved the PV-RCNN baseline by 3.26% mAP. On KITTI, VoTr-TSD achieved 82.09% mAP for the "moderate" car class, outperforming established point-based and voxel-based methods.
- Long-Range Detection: The most significant improvements were observed for objects at distances greater than 50 meters. At these ranges, where LiDAR points are sparse, VoTr’s ability to pull in distant context helps the model accurately infer object shapes.
- Efficiency: Despite the complexity of Transformers, replacing the convolutional backbone actually reduced the number of model parameters by approximately 0.5 million. VoTr-SSD achieves an inference speed of 14.65 Hz, making it viable for many real-time applications.
Conclusion
Voxel Transformer demonstrates that attention mechanisms can be more effective "global observers" than traditional convolutions in 3D space. By combining local and dilated attention with efficient hashing, VoTr captures the necessary context for high-precision detection without the computational overhead of dense Transformers. Future work may explore multi-modal fusion, such as incorporating camera images into the voxel attention mechanism to further enhance environmental understanding.
Summary updated