Skip to main content
QUICK REVIEW

[Paper Review] Cautious Deep Learning

Yotam Hechtlinger, Barnabás Póczos|arXiv (Cornell University)|May 24, 2018
Adversarial Robustness in Machine LearningComputer Science18 references28 citations
TL;DR

This paper proposes a cautious deep learning framework using conformal prediction based on $p(x|y)$ instead of $p(y|x)$, enabling set-valued predictions with guaranteed coverage. It outputs the null set when inputs are out-of-distribution, reducing overconfidence and improving robustness to distribution shift and adversarial attacks, as validated on ImageNet, CelebA, and IMDB-Wiki datasets using deep features.

ABSTRACT

Most classifiers operate by selecting the maximum of an estimate of the conditional distribution $p(y|x)$ where $x$ stands for the features of the instance to be classified and $y$ denotes its label. This often results in a {\em hubristic bias}: overconfidence in the assignment of a definite label. Usually, the observations are concentrated on a small volume but the classifier provides definite predictions for the entire space. We propose constructing conformal prediction sets which contain a set of labels rather than a single label. These conformal prediction sets contain the true label with probability $1-α$. Our construction is based on $p(x|y)$ rather than $p(y|x)$ which results in a classifier that is very cautious: it outputs the null set --- meaning "I don't know" --- when the object does not resemble the training examples. An important property of our approach is that adversarial attacks are likely to be predicted as the null set or would also include the true label. We demonstrate the performance on the ImageNet ILSVRC dataset and the CelebA and IMDB-Wiki facial datasets using high dimensional features obtained from state of the art convolutional neural networks.

Motivation & Objective

  • To address the overconfidence of standard deep learning classifiers that assign definite labels even to ambiguous or out-of-distribution inputs.
  • To develop a method that distinguishes between ambiguity (multiple plausible labels) and outlyingness (no consistent label) via set-valued predictions.
  • To provide a distribution-free confidence guarantee $P(Y \in C(X)) \geq 1 - \alpha$ while maintaining flexibility in class addition/removal.
  • To improve robustness against distribution shift and adversarial attacks by detecting such inputs via the null set.
  • To enable practical deployment on large-scale, high-dimensional data using features from state-of-the-art CNNs.

Proposed method

  • Constructs prediction sets $C(x) = \{ y : \widehat{p}(x|y) > \widehat{t}_y \}$ using estimated likelihoods $\widehat{p}(x|y)$ per class.
  • Determines thresholds $\widehat{t}_y$ via conformal prediction to ensure $P(Y \in C(X)) \geq 1 - \alpha$ for any distribution.
  • Estimates $\widehat{p}(x|y)$ independently for each class, enabling modular addition/removal of classes without retraining.
  • Uses high-dimensional features from pre-trained convolutional neural networks as input to the likelihood estimation.
  • Applies kernel density estimation or similar nonparametric methods to model $\widehat{p}(x|y)$ for each class.
  • Employs a user-defined confidence level $\alpha$ to tune the trade-off between prediction accuracy and the proportion of null predictions.

Experimental results

Research questions

  • RQ1Can a deep learning classifier based on $p(x|y)$ provide better uncertainty quantification than standard $p(y|x)$-based methods?
  • RQ2How does the proposed method perform under distribution shift, such as from CelebA to IMDB-Wiki facial datasets?
  • RQ3To what extent does the method detect adversarial examples or out-of-distribution inputs by assigning them the null set?
  • RQ4Can the method maintain valid coverage guarantees while being scalable to large-scale datasets like ImageNet?
  • RQ5How does the trade-off between accuracy and the rate of null predictions behave under varying confidence levels $\alpha$?

Key findings

  • On the CelebA dataset, the method achieves accuracy close to $1 - \alpha$, with the proportion of null predictions approximately equal to $\alpha$, indicating valid coverage.
  • On the IMDB-Wiki dataset, where standard classifiers fail (accuracy 0.577), the conformal method achieves significantly higher accuracy than random guessing, especially at low $\alpha$.
  • The method successfully detects distribution shift: when tested on IMDB-Wiki after training on CelebA, it produces a high rate of null predictions, signaling out-of-distribution inputs.
  • The proportion of false positives is minimized when $1 - \alpha$ is set low, allowing users to control error types based on application needs.
  • The method remains robust even when training and test data distributions differ significantly, such as in facial posture and image quality between CelebA and IMDB-Wiki.
  • The approach enables flexible class management—classes can be added or removed without retraining the full model, preserving coverage guarantees.

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.