CertainNet: Sampling-free Uncertainty Estimation for Object Detection

Stefano Gasperini, Jan Haug, Mohammad-Ali Nikouei Mahani, Alvaro Marcos-Ramiro, Nassir Navab, Benjamin Busam, Federico Tombari

Introduction

Deep learning models are frequently deployed in safety-critical environments, such as autonomous driving, where making "confidently wrong" predictions can have catastrophic consequences. While standard object detectors provide bounding boxes and class labels, they often lack a reliable measure of how certain they are about those predictions. Existing uncertainty estimation methods typically rely on sampling-based approaches like Monte-Carlo Dropout or Ensembles. However, these methods require multiple forward passes, making them computationally prohibitive for real-time applications.

CertainNet addresses this gap by providing a comprehensive, real-time, and sampling-free uncertainty profile. It decomposes uncertainty into four distinct signals: objectness, class, location, and size, allowing downstream systems to make more informed, cautious decisions based on specific types of model hesitation.

Methodology: Sampling-Free Uncertainty

CertainNet is built upon the anchor-less CenterNet architecture, which identifies objects as peaks in a heatmap. The core innovation lies in adapting Deterministic Uncertainty Quantification (DUQ) to this dense regression task.

Overview of the CertainNet architecture, illustrating the extraction of image features and their mapping into a hyperspace for uncertainty estimation across objectness, location, class, and size.

Instead of a standard classification head, CertainNet utilizes Radial Basis Functions (RBF) and learned class centroids. The model learns to map image features into a hyperspace where the distance to a specific class centroid represents the model's certainty. To handle the high-dimensional and unbalanced nature of detection datasets, the authors introduced "Centroid Momentum Scheduling" and "Hyperspace Regularization."

Furthermore, CertainNet exploits the spatial distribution of the detector's dense output. By analyzing the neighborhood of a detected object's center in the heatmap, the model estimates location and size uncertainty. A sharp peak indicates high certainty, while a flatter distribution suggests the model is unsure of the object's exact boundaries.

Evaluation and Metrics

To evaluate the quality of these spatial uncertainty estimates, the authors proposed a new metric: Uncertainty Boundary Quality (UBQ). This metric measures how effectively the estimated "inner" and "outer" boxes encompass the ground truth.

Testing was conducted on the KITTI dataset for standard validation, while BDD100K and nuImages served as out-of-domain (OOD) test sets. These OOD tests are crucial for evaluating how well the model's uncertainty estimates handle unseen environments, such as varying weather conditions or different camera setups, without additional fine-tuning.

Results and Discussion

CertainNet demonstrates that sampling-free methods can achieve superior calibration and generalization compared to traditional ensembles. On the KITTI dataset, CertainNet achieved an Expected Calibration Error (ECE) of 4.60%, significantly better than the 5-Ensemble's 16.93%.

Visualizing uncertainty in real-world scenarios. CertainNet generates inner and outer bounding boxes to represent spatial uncertainty, allowing for more nuanced interpretation of detection results.

In OOD scenarios, CertainNet maintained an Average Precision (AP) of 40.93 on BDD100K, whereas the Ensemble dropped to 26.75 AP. This suggests that the uncertainty-aware training helps the model learn more robust features that generalize better than rule-based clustering methods often used in ensembles. Crucially, CertainNet maintains real-time performance at 16.46 FPS, which is over three times faster than a 5-Ensemble (5.10 FPS) and nearly as fast as the baseline CenterNet.

Conclusion

CertainNet provides a scalable solution for real-time uncertainty estimation in object detection. By fragmenting uncertainty into explainable signals and avoiding the overhead of multiple forward passes, it offers a practical framework for enhancing the safety of autonomous systems. Future work may extend this logic to 3D detection tasks, including distance and orientation uncertainty.

Summary updated

BibTeX
@article{gasperini2021certainnet,
  author = {Stefano Gasperini and Jan Haug and Mohammad-Ali Nikouei Mahani and Alvaro Marcos-Ramiro and Nassir Navab and Benjamin Busam and Federico Tombari},
  title = {{CertainNet: Sampling-free Uncertainty Estimation for Object Detection}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  doi = {10.1109/lra.2021.3130976},
}
Figure