[Paper Review] OccFormer: Dual-path Transformer for Vision-based 3D Semantic Occupancy Prediction
OccFormer introduces a dual-path transformer to efficiently encode camera-derived 3D voxel features for 3D semantic occupancy prediction and adapts Mask2Former-style decoding with preserve-pooling and class-guided sampling to handle sparsity and class imbalance, achieving state-of-the-art results on SemanticKITTI SSC and nuScenes LiDAR segmentation.
The vision-based perception for autonomous driving has undergone a transformation from the bird-eye-view (BEV) representations to the 3D semantic occupancy. Compared with the BEV planes, the 3D semantic occupancy further provides structural information along the vertical direction. This paper presents OccFormer, a dual-path transformer network to effectively process the 3D volume for semantic occupancy prediction. OccFormer achieves a long-range, dynamic, and efficient encoding of the camera-generated 3D voxel features. It is obtained by decomposing the heavy 3D processing into the local and global transformer pathways along the horizontal plane. For the occupancy decoder, we adapt the vanilla Mask2Former for 3D semantic occupancy by proposing preserve-pooling and class-guided sampling, which notably mitigate the sparsity and class imbalance. Experimental results demonstrate that OccFormer significantly outperforms existing methods for semantic scene completion on SemanticKITTI dataset and for LiDAR semantic segmentation on nuScenes dataset. Code is available at \url{https://github.com/zhangyp15/OccFormer}.
Motivation & Objective
- Advance vision-based 3D semantic occupancy prediction beyond BEV by reconstructing fine-grained 3D structure and semantics.
- Develop an efficient encoder for 3D voxel features using a dual-path transformer that captures both local details and global scene layout.
- Adapt a mask-classification decoder for 3D occupancy with techniques to mitigate sparsity and class imbalance.
- Demonstrate state-of-the-art performance on SemanticKITTI SSC and competitive results on nuScenes LiDAR segmentation using RGB inputs.
Proposed method
- Dual-path transformer encoder that processes 3D features via a local BEV-slice windowed attention path and a global BEV path using ASPP for context, with fusion through a sigmoid-weighted skip connection.
- Image-to-3D transformation lifting image features to a 3D voxel volume using an outer product with depth distribution and voxel pooling to form F3d.
- Transformer-based occupancy decoder inspired by Mask2Former, including a pixel decoder with multi-scale 3D deformable attention and a transformer decoder for mask embeddings and class logits.
- Preserve-pooling: replace trilinear downsampling with max-pooling to better preserve sparse 3D occupancy structures during attention mask downsampling.
- Class-guided sampling: compute class frequencies, derive sampling weights, and perform biased sampling of voxel positions to improve matching and supervision for rare classes.
Experimental results
Research questions
- RQ1Can a dual-path transformer jointly capture fine-grained local details and global scene structure for 3D semantic occupancy from camera inputs?
- RQ2Does adapting Mask2Former with preserve-pooling and class-guided sampling improve 3D occupancy prediction under sparsity and class imbalance?
- RQ3Is the proposed OccFormer able to outperform monocular and vision-based baselines on semantic scene completion and achieve competitive LiDAR-seg-like occupancy predictions?
- RQ4How do the local and global transformer paths contribute to overall performance and efficiency compared to traditional 3D convolutions?
Key findings
- OccFormer outperforms monocular baselines on SemanticKITTI SSC, with a reported improvement over MonoScene and strong standings on the test leaderboard.
- On SemanticKITTI validation, OccFormer achieves higher SSC mIoU than several monocular methods and demonstrates better scene completion IoU.
- On nuScenes, OccFormer achieves competitive LiDAR segmentation performance with a camera-only model, outperforming TPVFormer and approaching LiDAR-based methods.
- Ablation shows both local and global paths contribute to gains, and the dual-path encoder is more efficient than vanilla 3D convolutions; multi-scale 3D deformable attention outperforms FPN-3D for the pixel decoder.
- The preserve-pooling and class-guided sampling contribute meaningful improvements in the transformer decoder, improving mIoU by roughly 0.5 and 1+ points respectively in ablations.
- The model uses 8x RTX 3090-scale training setup, 30 epochs on SemanticKITTI and 24 on nuScenes, with carefully designed losses combining mask-classification and depth supervision.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.