Abstract
Occupancy prediction plays a pivotal role in autonomous driving. Previous methods typically construct dense 3D volumes, neglecting the inherent sparsity of the scene and suffering from high computational costs. To bridge the gap, we introduce a novel fully sparse occupancy network, termed SparseOcc. SparseOcc initially reconstructs a sparse 3D representation from camera-only inputs and subsequently predicts semantic/instance occupancy from the 3D sparse representation by sparse queries. A mask-guided sparse sampling is designed to enable sparse queries to interact with 2D features in a fully sparse manner, thereby circumventing costly dense features or global attention. Additionally, we design a thoughtful ray-based evaluation metric, namely RayIoU, to solve the inconsistency penalty along the depth axis raised in traditional voxel-level mIoU criteria. SparseOcc demonstrates its effectiveness by achieving a RayIoU of 34.0, while maintaining a real-time inference speed of 17.3 FPS, with 7 history frames inputs. By incorporating more preceding frames to 15, SparseOcc continuously improves its performance to 35.1 RayIoU without bells and whistles.
Introduction
In autonomous driving, 3D occupancy prediction involves partitioning the environment into a grid of voxels and determining their occupancy status and semantic class. Most contemporary methods rely on dense 3D feature volumes, which are computationally expensive. This approach is inherently inefficient as typical driving scenes are over 90% empty space. Furthermore, existing "sparse" methods often revert to dense representations for final predictions, limiting their real-time applicability. Additionally, the standard mean Intersection-over-Union (mIoU) metric is flawed, as it inconsistently penalizes depth errors and encourages models to predict unnaturally thick surfaces to maximize overlap with ground truth.
Methodology
SparseOcc addresses these challenges through a "pure sparse" pipeline. The architecture consists of three primary components:
- Sparse Voxel Decoder: This module reconstructs scene geometry in a coarse-to-fine manner. It begins with a small set of voxel queries and prunes those likely to be empty at each stage, focusing computation exclusively on non-free regions.
- Mask Transformer: Inspired by 2D segmentation architectures, this component utilizes sparse queries to predict specific semantic or instance segments directly from the sparse 3D space.
- Mask-guided Sparse Sampling: To avoid the high cost of global attention, the model uses its predicted masks to guide the sampling of relevant features from 2D camera images into the 3D space.
The RayIoU Metric
To address the limitations of voxel-level mIoU, the authors propose RayIoU. This metric casts rays from the sensor; a prediction is considered a true positive only if the ray intersects the correct class at the correct distance. This prevents models from "hacking" the metric by predicting thick, noisy surfaces.
Experimental Results
The model was evaluated on the Occ3D-nuScenes dataset, a large-scale benchmark for multi-view video sequences.
Efficiency and Accuracy
SparseOcc achieves a significant leap in efficiency, reaching an inference speed of 17.3 FPS on a Tesla A100 GPU. This is approximately 4x to 6x faster than previous dense state-of-the-art methods. In terms of accuracy, SparseOcc achieved a 34.0 RayIoU with 7 history frames and improved to 35.1 RayIoU with 15 frames, outperforming competitive models like FB-Occ.
Key Insights
- Optimal Sparsity: Research indicates that a sparsity level of approximately 5% is optimal. Increasing voxel density beyond this point tends to introduce noise without improving accuracy.
- Temporal Scaling: Performance scales positively with the number of history frames, highlighting the importance of temporal consistency for resolving occlusions.
Conclusion and Future Work
SparseOcc demonstrates that fully sparse modeling is a viable and efficient path for 3D occupancy prediction. However, the model is susceptible to accumulative errors; if a voxel is incorrectly pruned in early stages, it cannot be recovered. Future research will focus on more robust pruning strategies and potentially sparsifying the 2D image backbones to create a truly end-to-end sparse pipeline.
Summary updated