Confidence Estimation via Auxiliary Models

Charles Corbière, Nicolas Thome, Antoine Saporta, Tuan-Hung Vu, Matthieu Cord, Patrick Pérez · DOI

Abstract

Deep neural networks are often overconfident, making their standard confidence metric—Maximum Class Probability (MCP)—unreliable for safety-critical tasks. This paper proposes predicting the True Class Probability (TCP) using an auxiliary model, ConfidNet. By learning to estimate the probability assigned to the actual correct class, ConfidNet provides a more robust measure of model certainty. This approach improves failure prediction in image classification and enhances pseudo-label selection in unsupervised domain adaptation (UDA) through a framework called ConDA.

Introduction

Most deep learning classifiers rely on the Maximum Class Probability (MCP) as a proxy for confidence. However, modern networks are notoriously overconfident, often assigning high probabilities to incorrect predictions. This lack of reliable confidence estimation is a major hurdle for safety-critical applications like autonomous driving or medical diagnosis. If a model cannot accurately flag when it is likely to be wrong, its real-world utility is limited.

The Proposed Metric: True Class Probability (TCP)

The authors propose a shift in perspective: instead of looking at what the model thinks is the best class, we should estimate the probability the model assigns to the actual correct class. Mathematically, TCP offers better theoretical guarantees for separating correct and incorrect predictions. As shown in the figure below, while MCP distributions for correct and incorrect samples overlap significantly, TCP distributions are much more distinct, providing a clearer signal for failure detection.

Comparison of MCP and TCP distributions. TCP (right) provides much clearer separation between correct predictions and misclassifications compared to MCP (left).

Architecture: ConfidNet

Since the true class is unknown at test time, the authors design an auxiliary network called ConfidNet to predict the TCP. ConfidNet is attached to the penultimate layer of a pre-trained and frozen classifier, essentially learning to recognize the error patterns of the main model.

ConfidNet architecture: An auxiliary network $C$ is trained to regress the True Class Probability (TCP) of a fixed classification network $F$.

Training occurs in two phases. First, ConfidNet is trained using a Mean Square Error (MSE) loss to regress the actual TCP values of the training set. Second, the encoder can be fine-tuned to further boost performance.

For semantic segmentation, the authors extend this into a framework called ConDA (Confidence for Domain Adaptation). It uses a multi-scale architecture and an adversarial learning scheme to ensure that confidence maps produced on "target" data (e.g., real-world streets) look similar to those from "source" data (e.g., synthetic images). This helps bridge the domain gap by providing cleaner, more reliable pseudo-labels for self-training.

Experimental Results

The approach was validated across several benchmarks, including MNIST, CIFAR-10/100, and GTA5 $\to$ Cityscapes.

  • Failure Prediction: ConfidNet consistently outperformed baselines like MC Dropout and Trust Score. On CIFAR-100 with a VGG16 backbone, ConfidNet achieved an AUPR of 73.55%, compared to MCP's 71.30%.
  • Domain Adaptation: In the GTA5 to Cityscapes segmentation task, ConDA reached 49.9% mIoU, outperforming existing state-of-the-art self-training methods by filtering out noisy pseudo-labels during the retraining phase.

Conclusion

By leveraging a dedicated observer (ConfidNet) to estimate True Class Probability, this work provides a more reliable framework for confidence estimation. While the scarcity of training errors in high-performance models remains a challenge, the proposed method significantly improves failure prediction and domain adaptation performance, paving the way for safer AI deployment.

Summary updated

BibTeX
@article{corbiere2022confidence,
  author = {Charles Corbière and Nicolas Thome and Antoine Saporta and Tuan-Hung Vu and Matthieu Cord and Patrick Pérez},
  title = {{Confidence Estimation via Auxiliary Models}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2021.3085983},
}
Figure