CenterFormer: Center-Based Transformer for 3D Object Detection

Zixiang Zhou, Xiangchen Zhao, Yu Wang, Panqu Wang, Hassan ForooshECCV 2022

Introduction

Detecting objects in 3D LiDAR data is a cornerstone of autonomous driving, yet it remains challenging due to the massive, sparse, and irregular nature of point clouds. While Transformers have set new benchmarks in 2D computer vision by capturing long-range dependencies, their application to 3D detection has been hindered by two primary obstacles: extreme computational complexity and slow convergence. Standard Transformer attention scales quadratically with input size, making high-resolution Bird's Eye View (BEV) maps computationally prohibitive. Furthermore, "query-based" Transformers like DETR often struggle to locate small objects in vast 3D environments using abstract, learned query embeddings.

CenterFormer addresses these challenges by proposing a center-based approach that leverages predicted object centers as query embeddings, providing a "warm start" for the Transformer decoder and significantly improving efficiency.

Methodology

CenterFormer introduces a streamlined pipeline that integrates a standard voxel-based backbone with a novel Transformer-based refinement stage. The architecture consists of several key components:

  1. Multi-scale Center Proposal Network (CPN): Instead of processing the entire point cloud through a heavy Transformer encoder, CenterFormer uses a standard 3D backbone to generate a BEV feature map. A center heatmap is then predicted to identify potential object locations.
  2. Center-based Queries: The features at the top $N$ predicted center locations are extracted and used as initial query embeddings. This ensures that the Transformer begins its refinement process with features that already contain object-level information.
  3. Efficient Cross-Attention: To maintain computational feasibility, the authors introduce Multi-scale Cross-Attention (MSCA) and Multi-scale Deformable Cross-Attention (MSDCA). Rather than attending to every pixel, the query only samples from a small local window or learned offsets across different feature scales.
  4. Multi-frame Feature Fusion: The model extends naturally to temporal data. By using cross-attention to aggregate features from previous frames, CenterFormer can effectively "search" for an object's previous position, which is critical for tracking fast-moving or occluded objects.
The CenterFormer architecture, highlighting the flow from voxelization to the Multi-scale CPN and the Transformer refinement module.

Key Insights

  • The Power of Spatial Priors: Initializing queries with actual feature data from predicted centers is significantly more effective than using learned parametric "slots." This approach improves the mean Average Precision at Heading (mAPH) by 1.5% and accelerates training convergence.
  • Local Attention for Global Context: By attending to multi-scale local windows, the model captures sufficient context to refine object properties without the $O(N^2)$ cost of global attention. This makes high-resolution BEV processing viable.
  • Temporal Alignment: Cross-attention serves as a robust mechanism for temporal fusion. Unlike simple concatenation, it inherently aligns features across time, providing substantial gains for small, dynamic classes like pedestrians and cyclists.

Experimental Results

CenterFormer was evaluated on the Waymo Open Dataset (WOD) and nuScenes, achieving state-of-the-art results. On the Waymo test set, it reached 75.6% mAPH, outperforming both traditional CNN-based and previous Transformer-based detectors.

A comparison of detection strategies: Ground Truth (left), traditional RCNN-style grid proposals (center), and CenterFormer's center-based query approach (right).

As shown in the comparison above, while RCNN-style methods rely on rigid grid-based pooling, CenterFormer's attention mechanism (represented by stars and sampled points) allows for more flexible and context-aware feature aggregation. This flexibility is particularly beneficial for the "Pedestrian" class, where the multi-frame approach helps mitigate the effects of sensor noise and occlusion.

Limitations and Future Work

Despite its performance, CenterFormer faces memory constraints when training with a high number of frames (e.g., 8 frames), requiring mini-batch splitting. Additionally, the model is not yet a "pure" end-to-end set predictor, as it still relies on a center heatmap and Non-Maximum Suppression (NMS) during post-processing. Future research may focus on removing these heuristic dependencies to create a fully end-to-end 3D Transformer detector.

Summary updated

BibTeX
@inproceedings{zhou2022centerformer,
  author = {Zixiang Zhou and Xiangchen Zhao and Yu Wang and Panqu Wang and Hassan Foroosh},
  title = {{CenterFormer: Center-Based Transformer for 3D Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19839-7\_29},
}
Figure