Skip to main content
QUICK REVIEW

[Paper Review] UQGAN: A Unified Model for Uncertainty Quantification of Deep Classifiers trained via Conditional GANs

Philipp Oberdiek, Gernot A. Fink|arXiv (Cornell University)|Jan 31, 2022
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

UQGAN proposes a unified generative adversarial network (GAN)-based framework for joint uncertainty quantification in deep image classifiers, distinguishing aleatoric and epistemic uncertainty by training class-conditional GANs to generate out-of-class examples. It improves OoD and false positive detection performance across CIFAR10, CIFAR100, and Tiny ImageNet while boosting model accuracy and maintaining low calibration error.

ABSTRACT

We present an approach to quantifying both aleatoric and epistemic uncertainty for deep neural networks in image classification, based on generative adversarial networks (GANs). While most works in the literature that use GANs to generate out-of-distribution (OoD) examples only focus on the evaluation of OoD detection, we present a GAN based approach to learn a classifier that produces proper uncertainties for OoD examples as well as for false positives (FPs). Instead of shielding the entire in-distribution data with GAN generated OoD examples which is state-of-the-art, we shield each class separately with out-of-class examples generated by a conditional GAN and complement this with a one-vs-all image classifier. In our experiments, in particular on CIFAR10, CIFAR100 and Tiny ImageNet, we improve over the OoD detection and FP detection performance of state-of-the-art GAN-training based classifiers. Furthermore, we also find that the generated GAN examples do not significantly affect the calibration error of our classifier and result in a significant gain in model accuracy.

Motivation & Objective

  • To address the lack of principled uncertainty quantification in deep neural networks, particularly distinguishing between aleatoric and epistemic uncertainty.
  • To improve out-of-distribution (OoD) and false positive (FP) detection beyond existing GAN-based approaches.
  • To develop a unified framework that integrates uncertainty quantification with classifier training without requiring pre-training of the generator.
  • To maintain low calibration error while enhancing model accuracy through GAN-based data augmentation.

Proposed method

  • The method uses a conditional GAN with a Wasserstein loss to generate out-of-class examples for each class separately, enabling class-specific shielding.
  • It trains a one-vs-all classifier in the final layer of the DNN, jointly with the conditional GAN, to model class-conditional likelihoods.
  • Bayes' rule is applied to compute posterior class probabilities, enabling principled uncertainty estimation.
  • For high-dimensional data, the GAN is trained on the latent space of a class-conditional variational autoencoder to reduce complexity and adversarial interference.
  • The framework avoids pre-training of the generator by leveraging the conditional GAN's ability to generate OoC examples directly in low-dimensional spaces.
  • The model jointly optimizes the classifier and generator using adversarial training, ensuring that uncertainty estimates are calibrated and informative.

Experimental results

Research questions

  • RQ1Can a GAN-based framework effectively distinguish between aleatoric and epistemic uncertainty in deep image classifiers?
  • RQ2How does class-specific shielding via conditional GANs compare to global shielding in OoD and FP detection?
  • RQ3Can GAN-generated out-of-class examples improve model accuracy without degrading calibration?
  • RQ4Does training the GAN on the latent space of a variational autoencoder enhance performance on high-dimensional datasets like CIFAR100 and Tiny ImageNet?
  • RQ5To what extent does the proposed method outperform state-of-the-art GAN-based and non-GAN-based uncertainty quantification methods?

Key findings

  • On CIFAR10, UQGAN achieves 95.06% AUC for OoD detection (vs. 99.89% for the oracle) when combined with dropout, significantly outperforming other GAN-based methods.
  • On Tiny ImageNet, UQGAN achieves 99.90% AUC for OoD detection against FMNIST when using dropout, surpassing all baselines.
  • The method improves model accuracy compared to other GAN-based approaches using the same architecture, particularly on challenging datasets like CIFAR100 and Tiny ImageNet.
  • UQGAN maintains low calibration error, with a test error of 1.04% on the most challenging OoD setting (Tiny ImageNet vs. FMNIST), indicating robust uncertainty estimation.
  • The approach consistently outperforms state-of-the-art methods on all OoD detection benchmarks, especially on similar but out-of-distribution datasets such as CIFAR10 5-9 and LSUN.
  • The use of latent-space GAN training reduces adversarial interference and allows for more stable training on high-dimensional image data.

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.