Skip to main content
QUICK REVIEW

[Paper Review] Improving Out-of-Distribution Detection via Epistemic Uncertainty Adversarial Training

D. Everett, André T. Nguyen|arXiv (Cornell University)|Sep 5, 2022
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

This paper proposes Uncertainty Adversarial Training (UAT), a method that improves out-of-distribution (OOD) detection by adversarially attacking the epistemic uncertainty estimates of dropout ensembles. By training models to be robust against uncertainty-targeting attacks, UAT boosts ${\rm AUC}_{\scriptscriptstyle{\rm FPR}<1\%}$ to ≥0.75 on clean OOD data and maintains high robustness under adversarial perturbations, significantly outperforming baseline methods at low false positive rates.

ABSTRACT

The quantification of uncertainty is important for the adoption of machine learning, especially to reject out-of-distribution (OOD) data back to human experts for review. Yet progress has been slow, as a balance must be struck between computational efficiency and the quality of uncertainty estimates. For this reason many use deep ensembles of neural networks or Monte Carlo dropout for reasonable uncertainty estimates at relatively minimal compute and memory. Surprisingly, when we focus on the real-world applicable constraint of $\leq 1\%$ false positive rate (FPR), prior methods fail to reliably detect OOD samples as such. Notably, even Gaussian random noise fails to trigger these popular OOD techniques. We help to alleviate this problem by devising a simple adversarial training scheme that incorporates an attack of the epistemic uncertainty predicted by the dropout ensemble. We demonstrate this method improves OOD detection performance on standard data (i.e., not adversarially crafted), and improves the standardized partial AUC from near-random guessing performance to $\geq 0.75$.

Motivation & Objective

  • To investigate the failure of existing uncertainty-based OOD detection methods at low false positive rates (≤1%), particularly in detecting simple OOD samples like Gaussian noise.
  • To identify the vulnerability of epistemic uncertainty estimates in dropout ensembles to targeted attacks that reduce uncertainty on OOD inputs.
  • To develop a novel adversarial training scheme that improves both clean OOD detection performance and robustness against uncertainty-targeting attacks.
  • To demonstrate that improved OOD detection at low FPR is achievable without sacrificing clean accuracy, countering the typical accuracy-robustness trade-off.

Proposed method

  • The method introduces a targeted adversarial attack on the epistemic uncertainty (measured as mutual information) predicted by a dropout ensemble.
  • The attack, called Uncertainty FGSM (UFGSM), generates perturbations that minimize the epistemic uncertainty on OOD samples, simulating a scenario where OOD inputs appear falsely confident.
  • The model is then adversarially trained using these uncertainty-targeting perturbations to improve robustness during inference.
  • The training process combines Monte Carlo dropout with ensemble averaging to estimate epistemic uncertainty, using the mutual information between predictions as the uncertainty score.
  • The approach is applied during standard training, with the loss function regularized to maintain low uncertainty on OOD data under adversarial perturbations.
  • The method is evaluated across multiple datasets (MNIST, FMNIST, CIFAR-10, SVHN, ImageNet) and OOD data types (real, fake, noise, adversarially attacked).

Experimental results

Research questions

  • RQ1Do existing uncertainty-based OOD detection methods reliably detect OOD samples at false positive rates ≤1%, a critical threshold for real-world deployment?
  • RQ2How vulnerable are epistemic uncertainty estimates from dropout ensembles to targeted attacks that reduce uncertainty on OOD inputs?
  • RQ3Can adversarial training using uncertainty-targeting attacks improve both clean OOD detection performance and robustness against such attacks?
  • RQ4Does the proposed method break the typical trade-off between clean accuracy and robustness in OOD detection?

Key findings

  • Baseline methods, including deep ensembles and Monte Carlo dropout, fail to detect OOD samples at ≤1% FPR, with ${\rm AUC}_{\scriptscriptstyle{\rm FPR}<1\%}$ scores near random guessing (≈0.5), even on Gaussian noise.
  • The UFGSM attack successfully reduces epistemic uncertainty on OOD samples, making them appear in-distribution and increasing false negatives.
  • UAT-trained models achieve ${\rm AUC}_{\scriptscriptstyle{\rm FPR}<1\%}$ ≥0.75 on clean OOD data across all evaluated datasets, significantly outperforming baselines.
  • The UAT method maintains high robustness under UFGSM attacks, with ${\rm AUC}_{\scriptscriptstyle{\rm FPR}<1\%}$ scores of 0.91–1.00 on attacked OOD samples, while baselines degrade to near-random performance.
  • The UAT method improves OOD detection without degrading clean accuracy, demonstrating that robustness and accuracy can coexist in uncertainty-aware models.
  • The method shows consistent improvements across diverse OOD data types, including natural image datasets, synthetic fake data, and adversarially perturbed samples.

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.