NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Uncertainty Quantification for Object Detection: Output- and Gradient-Based Approaches

Tobias Riedlinger, Marius Schubert, Karsten Kahl, Matthias RottmannOpenalex Unknown 2022 · OpenAlex

Abstract

Safety-critical applications of deep neural networks require reliable confidence estimation methods with high predictive power. However, evaluating and comparing different methods for uncertainty quantification is oftentimes highly context-dependent. In this chapter, we introduce flexible evaluation protocols which are applicable to a wide range of tasks with an emphasis on object detection. In this light, we investigate uncertainty metrics based on the network output, as well as metrics based on a learning gradient, both of which significantly outperform the confidence score of the network. While output-based uncertainty is produced by post-processing steps and is computationally efficient, gradient-based uncertainty, in principle, allows for localization of uncertainty within the network architecture. We show that both sources of uncertainty are mutually non-redundant and can be combined beneficially. Furthermore, we show direct applications of uncertainty quantification by improving detection accuracy.

The Problem: Miscalibration in Safety-Critical AI

Modern deep object detectors provide a "confidence score" for every bounding box they generate. Ideally, a score of 0.9 should indicate a 90% probability that the object is present. In practice, however, these models are often miscalibrated: they may exhibit extreme overconfidence in false positives (hallucinated objects) or fail to detect critical objects due to slight under-confidence. In safety-critical fields like autonomous driving, this lack of reliability is a major liability. The authors aim to move beyond standard confidence scores to create a more reliable, flexible protocol for evaluating uncertainty.

Methodology: Output and Gradient Metrics

The paper proposes a two-pronged approach to "Meta-Classification" (predicting if a detection is correct) and "Meta-Regression" (predicting the quality of a detection, specifically its Intersection-over-Union or IoU).

  1. Output-Based Uncertainty (MetaDetect): This method analyzes the "exhaust" of the detection pipeline. It examines the predicted class probability distributions and counts discarded "candidate boxes" during Non-Maximum Suppression (NMS). High agreement among candidate boxes typically signals higher certainty.
  2. Gradient-Based Uncertainty: This novel contribution involves treating the network's own prediction as "ground truth" during inference to calculate the loss function's gradient. A large gradient indicates "learning stress," suggesting the network's internal weights are "surprised" by the prediction, which correlates with high uncertainty. This method uniquely allows for the localization of uncertainty within specific layers of the architecture.

Meta-Fusion Pipeline

To leverage these metrics, the authors use a secondary "meta-model" (such as a gradient boosting classifier) to filter the primary detector's results. This "fused" pipeline can recover true objects with low initial scores or discard high-scoring false alarms.

Overview of the Meta-Fusion pipeline for filtering object detection predictions.

Key Insights

  • The Score is Not Enough: Raw confidence scores are poor predictors of detection accuracy. Both output-based and gradient-based metrics significantly outperform them.
  • Non-Redundancy: Output-based and gradient-based metrics capture different types of uncertainty. Combining them (MD+G) provides a much stronger signal than using either in isolation.
  • Uncertainty Localization: Because gradient metrics are calculated per-layer, they offer a window into where in the network uncertainty arises—whether in early feature extraction or final regression heads.

Experimental Results

The study evaluated these methods across Pascal VOC, MS COCO, and KITTI benchmarks.

  • Improved Discrimination: On Pascal VOC, meta-classifiers improved the AuROC (Area under the Receiver Operating Characteristic) by upwards of 6 percentage points compared to the raw network score.
  • Accuracy Boost: Through Meta-Fusion, the authors improved the Mean Average Precision (mAP) of a YOLOv3 model significantly over the baseline.
  • Calibration Improvements: The Average Calibration Error (ACE) for meta-classification models was consistently around 0.05, whereas raw network scores often showed double or triple that error rate.
Reliability diagrams comparing the calibration of the baseline network against meta-classification approaches.

Limitations and Future Work

The primary limitation of the gradient-based approach is its computational cost, as it requires a "backward pass" through the network during inference. Future work will focus on optimizing these methods for real-time systems and applying them to Active Learning to prioritize uncertain images for human labeling, potentially reducing data annotation costs and identifying labeling errors in existing datasets.

Summary updated

BibTeX
@inproceedings{riedlinger2022uncertainty,
  author = {Tobias Riedlinger and Marius Schubert and Karsten Kahl and Matthias Rottmann},
  title = {{Uncertainty Quantification for Object Detection: Output- and Gradient-Based Approaches}},
  booktitle = {Openalex Unknown},
  year = {2022},
  doi = {10.1007/978-3-031-01233-4\_9},
}
Figure