Skip to main content
QUICK REVIEW

[Paper Review] Training Uncertainty-Aware Classifiers with Conformalized Deep Learning

Bat-Sheva Einbinder, Yaniv Romano|arXiv (Cornell University)|May 12, 2022
Anomaly Detection Techniques and ApplicationsComputer Science17 citations
TL;DR

This paper proposes a novel training algorithm that integrates conformal inference with deep learning to produce uncertainty-aware classifiers with more reliable probability estimates. By minimizing a conformal-inspired loss function using hold-out data, the method reduces model overconfidence, leading to smaller prediction sets with higher conditional coverage when used with standard conformal calibration—outperforming state-of-the-art baselines in both synthetic and real-world benchmarks.

ABSTRACT

Deep neural networks are powerful tools to detect hidden patterns in data and leverage them to make predictions, but they are not designed to understand uncertainty and estimate reliable probabilities. In particular, they tend to be overconfident. We begin to address this problem in the context of multi-class classification by developing a novel training algorithm producing models with more dependable uncertainty estimates, without sacrificing predictive power. The idea is to mitigate overconfidence by minimizing a loss function, inspired by advances in conformal inference, that quantifies model uncertainty by carefully leveraging hold-out data. Experiments with synthetic and real data demonstrate this method can lead to smaller conformal prediction sets with higher conditional coverage, after exact calibration with hold-out data, compared to state-of-the-art alternatives.

Motivation & Objective

  • To address the overconfidence problem in deep neural networks, especially in high-stakes applications like healthcare and finance.
  • To improve the reliability of uncertainty estimates in multi-class classification without sacrificing predictive accuracy.
  • To synergistically combine model training and conformal calibration, overcoming the limitations of the standard two-phase approach.
  • To develop a loss function that encourages better-calibrated conformity scores by mimicking an oracle's ideal uncertainty estimation.
  • To demonstrate that models trained with the proposed method yield more efficient and accurate conformal prediction sets.

Proposed method

  • Proposes a new loss function inspired by conformal inference that quantifies model uncertainty using hold-out data.
  • The loss minimizes the discrepancy between the model's conformity scores and those of an ideal oracle with perfect knowledge of the data-generating process.
  • The method trains deep neural networks end-to-end with this uncertainty-aware loss, integrating calibration into the learning phase.
  • After training, standard conformal inference is applied to the model using independent calibration data to produce valid prediction sets.
  • The conformity scores are computed on the hold-out data and used to tune the size of prediction sets to achieve desired coverage levels.
  • The approach enables better-calibrated models that produce smaller, more informative prediction sets with higher conditional coverage.

Experimental results

Research questions

  • RQ1Can we train deep neural networks to be less overconfident by explicitly incorporating uncertainty estimation during model optimization?
  • RQ2Does combining training and calibration phases via a conformal-inspired loss lead to more efficient conformal prediction sets compared to standard two-stage methods?
  • RQ3How does the proposed method perform in terms of marginal and conditional coverage across different data distributions and model architectures?
  • RQ4Can models trained with the new loss function maintain high predictive accuracy while improving uncertainty calibration?
  • RQ5To what extent does the method reduce the size of prediction sets while preserving valid coverage guarantees?

Key findings

  • Models trained with the conformal loss achieved higher conditional coverage (0.60) compared to cross-entropy (0.51) and focal loss (0.48) on CIFAR-10 with 45k training images.
  • The conformal loss reduced the average prediction set size to 1.34 (vs. 1.25 for cross-entropy), while maintaining 90% marginal coverage.
  • On credit card default data, the conformal loss achieved 83% marginal coverage and 28.52% classification error, outperforming baseline methods in both coverage and error.
  • Conformity scores from models trained with the conformal loss were closer to uniformity (distance = 5.14) than those from cross-entropy (40.09), indicating better calibration.
  • The hybrid loss method achieved 83% marginal coverage with a 24.58 distance from uniformity, showing improved calibration over standard cross-entropy.
  • Even without post-training calibration, models trained with the conformal loss produced relatively reliable prediction sets, though full validity requires calibration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.