Evaluating and Boosting Uncertainty Quantification in Classification

Xiaoyang Huang, Jiancheng Yang, Linguo Li, Haoran Deng, Bingbing Ni, Yi XuarXiv 2019

The deployment of deep learning models in safety-critical domains, such as medical diagnostics, necessitates not only high accuracy but also reliable Uncertainty Quantification (UQ). A model must "know what it doesn't know" to prevent confident yet incorrect predictions. Researchers from Shanghai Jiao Tong University address two primary challenges in UQ: the lack of robust evaluation metrics and the limitations of deriving confidence directly from classification outputs. They propose a new metric, AUCCC, and a training framework called Uncertainty Distillation (UDist).

The AUCCC Metric: Rethinking UQ Evaluation

Traditional metrics like Cross Entropy (CE) or Brier scores are often used to evaluate uncertainty, but they suffer from high sensitivity to small perturbations in confidence values. More importantly, these metrics are frequently coupled with the model's classification accuracy, making it difficult to isolate the quality of the uncertainty estimation itself.

The authors introduce the Area Under Confidence-Classification Characteristic (AUCCC) curve. This metric treats UQ as a binary discrimination task: can the model distinguish between its own correct and incorrect predictions? By defining a "Confidence Confusion Matrix" (Correct Accept, Correct Reject, Incorrect Accept, Incorrect Reject) and varying a confidence threshold $\tau$, the AUCCC provides a threshold-free measure of UQ quality.

Figure 1: Illustration of Uncertainty Quantification evaluation. (a) shows AUCCC's robustness to confidence shifts compared to Cross Entropy (CE). (b1) and (b2) compare standard classification evaluation with the proposed confidence evaluation framework.

AUCCC is advantageous because it is insensitive to class imbalance and the underlying classifier's accuracy, focusing purely on the model's ability to rank its predictions by certainty.

Uncertainty Distillation (UDist)

Standard models typically derive confidence from the maximum softmax probability. However, classification and confidence estimation are distinct objectives. To decouple these tasks, the authors propose Uncertainty Distillation (UDist), a two-stage training pipeline.

  1. Base Training Stage: An ensemble of $M$ classification networks is trained. Their outputs are aggregated and "softened" via temperature scaling to provide a rich representation of predictive uncertainty.
  2. Uncertainty Distillation Stage: A specialized Confidence Model is introduced. This model takes the original input image concatenated with the ensemble's probability distribution. It is trained to predict the probability of the actual class as estimated by the ensemble, effectively distilling the collective uncertainty of the ensemble into a single, efficient model.
Figure 2: The UDist framework. In the first stage, an ensemble generates a consensus probability distribution. In the second stage, a dedicated Confidence Model learns to predict uncertainty by distilling the ensemble's output.

Experimental Results and Impact

The UDist framework and AUCCC metric were validated across natural (CIFAR-10) and medical (ChestX-ray14) image datasets, as well as Out-of-Distribution (OOD) scenarios.

  • Performance Gains: On CIFAR-10, UDist achieved an AUCCC of 93.56%, surpassing standard deep ensembles. On the more challenging ChestX-ray14 dataset, it improved AUCCC by 0.7% over strong baselines.
  • OOD Detection: The method proved exceptionally robust at identifying samples from entirely different distributions (e.g., SVHN for a CIFAR-trained model), reaching an AUCCC of 98.25%.
  • Metric Stability: Experiments confirmed that AUCCC remains stable even when confidence scores are shifted, providing a more reliable benchmark for UQ research than traditional probabilistic scores.

Conclusion

By treating uncertainty quantification as a discriminative task and decoupling it from the primary classification objective, the UDist framework significantly enhances a model's self-awareness. The introduction of AUCCC provides the community with a robust, accuracy-independent tool for evaluating these improvements, paving the way for safer AI deployment in high-stakes environments.

Summary updated

BibTeX
@misc{huang2019evaluating,
  author = {Xiaoyang Huang and Jiancheng Yang and Linguo Li and Haoran Deng and Bingbing Ni and Yi Xu},
  title = {{Evaluating and Boosting Uncertainty Quantification in Classification}},
  year = {2019},
  eprint = {1909.06030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06030},
}
Figure