Embracing Single Stride 3D Object Detector with Sparse Transformer

Lue Fan, Ziqi Pang, Tianyuan Zhang, Yu-Xiong Wang, Hang Zhao, Feng Wang, Naiyan Wang, Zhaoxiang Zhang

Abstract

In LiDAR-based 3D object detection for autonomous driving, the ratio of the object size to input scene size is significantly smaller compared to 2D detection cases. Over-looking this difference, many 3D detectors directly follow the common practice of 2D detectors, which downsample the feature maps even after quantizing the point clouds. In this paper, we start by rethinking how such multi-stride stereotype affects the LiDAR-based 3D object detectors. Our experiments point out that the downsampling operations bring few advantages, and lead to inevitable information loss. To remedy this issue, we propose Single-stride Sparse Transformer (SST) to maintain the original resolution from the beginning to the end of the network. Armed with transformers, our method addresses the problem of insufficient receptive field in single-stride architectures. It also cooperates well with the sparsity of point clouds and naturally avoids expensive computation. Eventually, our SST achieves state-of-the-art results on the large-scale Waymo Open Dataset. It is worth mentioning that our method can achieve exciting performance (83.8 LEVEL_1 AP on validation split) on small object (pedestrian) detection due to the characteristic of single stride.

Introduction: The Multi-Stride Fallacy

Most 3D object detectors borrow a "multi-stride" (downsampling) architecture from 2D computer vision. In 2D images, objects vary greatly in size, and downsampling helps build a feature hierarchy. However, 3D LiDAR scenes present a different challenge. Objects like pedestrians are incredibly small relative to the overall scene—for instance, a 1-meter pedestrian in a 150m x 150m area.

Relative object size distribution in COCO vs Waymo datasets.

When 3D detectors follow the 2D stereotype and downsample feature maps, they lose critical spatial information. A pilot study revealed that while downsampling helps 2D networks, it actually hurts 3D vehicle and pedestrian detection. "Smaller strides are better" in 3D, provided the network can maintain a sufficient receptive field without becoming computationally prohibitive.

Methodology: Single-stride Sparse Transformer (SST)

To address the limitations of traditional architectures, we introduce the Single-stride Sparse Transformer (SST). Unlike standard convolutional networks that shrink feature maps to expand their receptive field, SST maintains full resolution from start to finish.

Comparison between the traditional multi-stride 3D detector and the proposed single-stride sparse transformer.

The core of SST is the use of Transformers, which are naturally suited for capturing long-range dependencies. Key innovations include:

  • Sparse Regional Attention (SRA): To manage the quadratic cost of global self-attention, SST partitions 3D space into non-overlapping regions. Attention is only computed between active "tokens" (non-empty voxels) within the same region.
  • Region Shift: Similar to the Swin Transformer, SST shifts regional boundaries in consecutive layers, allowing information to propagate across the entire scene.
  • Region Batching: To maximize GPU efficiency, regions with similar voxel counts are grouped together, leveraging the inherent sparsity of point clouds.
  • Hole Filling: Before the detection head, a simple 3x3 convolution is used to fill empty centers in the feature map caused by LiDAR surface-only hits.

Experimental Results

The model was evaluated on the Waymo Open Dataset (WOD), a large-scale benchmark for autonomous driving. SST achieved state-of-the-art results, particularly in small object detection.

  • Pedestrian Detection: SST achieved 83.8 LEVEL 1 AP on the validation split, significantly outperforming multi-stride methods.
  • Localization Precision: By maintaining full resolution, SST excels at precise localization, showing superior performance at high IoU thresholds.
  • Efficiency: Despite the high-resolution backbone, the sparse implementation maintains a manageable latency of approximately 97ms on a 2080Ti.

Conclusion and Future Work

SST demonstrates that the "multi-stride" stereotype is not optimal for 3D LiDAR detection. By embracing a single-stride architecture powered by sparse transformers, we can preserve fine-grained spatial information crucial for detecting small objects. Future work will focus on reducing the memory overhead associated with high-resolution feature maps, improving single-stage performance, and exploring more sophisticated methods for filling sparse feature maps.

Summary updated

BibTeX
@inproceedings{fan2022embracing,
  author = {Lue Fan and Ziqi Pang and Tianyuan Zhang and Yu-Xiong Wang and Hang Zhao and Feng Wang and Naiyan Wang and Zhaoxiang Zhang},
  title = {{Embracing Single Stride 3D Object Detector with Sparse Transformer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00827},
}
Figure