Abstract
LiDAR-based 3D object detection is essential for autonomous driving but is hindered by the massive scale and sparsity of point clouds. While Transformers offer superior long-range dependency modeling, their quadratic complexity ($O(N^2)$) makes them computationally expensive for large scenes. This paper introduces OcTr (Octree-based Transformer), which utilizes a dynamic octree structure to enable global self-attention with linear complexity. By recursively pruning irrelevant regions in a hierarchical feature pyramid, OcTr maintains a global receptive field while remaining efficient.
Introduction: The Challenge of Scale in 3D Detection
Detecting objects in LiDAR point clouds requires balancing fine-grained geometric detail with broad contextual understanding. Existing Transformer-based methods often compromise on one of these aspects. Local window-based attention limits the receptive field, losing global context necessary for distant or occluded objects. Conversely, global proxy methods use summary tokens that can obscure critical geometric features.
OcTr aims to resolve this "accuracy vs. efficiency" deadlock. By employing an octree-based attention mechanism, the model can focus its computational budget on high-importance regions, achieving a global view with linear complexity relative to the number of input tokens.
Methodology
The core of the OcTr framework is OctAttn (Octree Attention), which operates through a top-down hierarchical approach.
Octree Attention (OctAttn)
The model constructs a hierarchical feature pyramid of the input point cloud. It begins by performing self-attention at the coarsest level. Based on these attention scores, the model identifies "important" octants and recursively subdivides only those regions for finer-grained attention at subsequent levels. This pruning process ensures that the number of active tokens remains manageable, effectively linearizing the complexity of global attention.
Hybrid Positional Embedding
To further enhance performance, OcTr incorporates a hybrid embedding strategy:
- Semantic-aware Positional Embedding (SAPE): Integrates 3D coordinates with foreground segmentation scores, allowing the model to prioritize "object-like" points.
- Semantic Attention Mask (SAM): Filters out background-to-background correlations to focus attention on foreground objects.
- Locally Enhanced Positional Embedding (LePE): Uses sparse convolutions to preserve local spatial relationships alongside global context.
Experiments and Results
OcTr was evaluated on the Waymo Open Dataset (WOD) and the KITTI benchmark.
Performance on Waymo and KITTI
On the Waymo validation set (using 20% training data), OcTr achieved 78.12 mAP (L1) for vehicles, surpassing established baselines like PV-RCNN++ and VoxSeT. The model's strength is particularly evident in long-range detection; for objects beyond 50 meters, OcTr outperformed previous state-of-the-art methods by 3.61% mAP.
Efficiency
Despite its global receptive field, OcTr is remarkably lightweight. It utilizes only 2.9 million parameters and maintains a low memory footprint of approximately 2.5GB, making it more efficient than many standard voxel-based detectors.
Conclusion
OcTr demonstrates that global context in 3D object detection does not necessitate quadratic computational costs. By using attention-driven pruning within an octree structure, the model achieves state-of-the-art accuracy with high efficiency. Future work may involve integrating OcTr with more advanced detection heads or extending the framework to multi-modal sensor fusion.
Summary updated