Skip to main content
QUICK REVIEW

[Paper Review] A Variational Dirichlet Framework for Out-of-Distribution Detection

Wenhu Chen, Yilin Shen|arXiv (Cornell University)|Nov 18, 2018
Adversarial Robustness in Machine LearningComputer Science44 references14 citations
TL;DR

This paper proposes a variational Dirichlet framework that models label-wise uncertainty as a higher-order distribution over the K-dimensional simplex, using variational inference to approximate the true posterior over Dirichlet-distributed category probabilities. The entropy of the learned posterior distribution serves as a robust uncertainty measure, outperforming prior methods on out-of-distribution detection benchmarks, especially with added adversarial discriminative training.

ABSTRACT

With the recently rapid development in deep learning, deep neural networks have been widely adopted in many real-life applications. However, deep neural networks are also known to have very little control over its uncertainty for unseen examples, which potentially causes very harmful and annoying consequences in practical scenarios. In this paper, we are particularly interested in designing a higher-order uncertainty metric for deep neural networks and investigate its effectiveness under the out-of-distribution detection task proposed by~\cite{hendrycks2016baseline}. Our method first assumes there exists an underlying higher-order distribution $\mathbb{P}(z)$, which controls label-wise categorical distribution $\mathbb{P}(y)$ over classes on the K-dimension simplex, and then approximate such higher-order distribution via parameterized posterior function $p_θ(z|x)$ under variational inference framework, finally we use the entropy of learned posterior distribution $p_θ(z|x)$ as uncertainty measure to detect out-of-distribution examples. Further, we propose an auxiliary objective function to discriminate against synthesized adversarial examples to further increase the robustness of the proposed uncertainty measure. Through comprehensive experiments on various datasets, our proposed framework is demonstrated to consistently outperform competing algorithms.

Motivation & Objective

  • Address the limitation of existing out-of-distribution detection methods that conflate aleatoric and epistemic uncertainty.
  • Develop a higher-order uncertainty metric that distinguishes between uncertainty due to data noise and uncertainty due to distributional shift.
  • Model the underlying distribution of class probabilities as a Dirichlet distribution to capture higher-order uncertainty.
  • Improve robustness of uncertainty estimation by incorporating an auxiliary discriminative objective against adversarial examples.
  • Demonstrate generalization across diverse architectures and datasets using a unified training objective combining variational inference and adversarial loss.

Proposed method

  • Model the label-wise categorical distribution as a K-dimensional random variable z drawn from a higher-order distribution P(z) over the simplex S_K.
  • Use a neural network to parameterize a Dirichlet posterior p_θ(z|x) via variational inference to approximate the true posterior p(z|y).
  • Define uncertainty as the entropy H(p_θ(z|x)) of the variational posterior, which quantifies epistemic uncertainty in predictions.
  • Introduce an auxiliary discriminative objective to distinguish in-distribution data from FGSM-generated adversarial examples.
  • Combine the variational lower bound and the discriminative objective into a unified training objective for end-to-end optimization.
  • Compute the entropy of the Dirichlet posterior in closed form, enabling efficient and scalable uncertainty estimation.

Experimental results

Research questions

  • RQ1Can modeling the label distribution as a higher-order Dirichlet distribution improve out-of-distribution detection by separating epistemic uncertainty from aleatoric uncertainty?
  • RQ2Does using the entropy of a variational Dirichlet posterior yield a more reliable uncertainty measure than softmax confidence or other uncertainty scores?
  • RQ3How effective is the proposed auxiliary discriminative objective in improving robustness against adversarial perturbations during out-of-distribution detection?
  • RQ4Does the framework generalize across different network architectures and datasets, including challenging ones like CIFAR100?
  • RQ5What is the impact of prior specification and balancing hyperparameters on the final detection performance?

Key findings

  • The proposed variational Dirichlet framework consistently outperforms existing methods on multiple out-of-distribution detection benchmarks, including CIFAR10 and CIFAR100.
  • The use of a non-uniform, informative prior (preserving ground-truth label information) leads to better detection accuracy than a uniform prior.
  • The inclusion of the adversarial discriminative objective significantly improves detection performance across all architectures and datasets, with a more pronounced gain on CIFAR100.
  • A balancing factor of 0.1 between the variational and discriminative objectives yields optimal performance, as both too small and too large values degrade results.
  • The method achieves state-of-the-art AUROC scores, demonstrating its effectiveness in separating in-distribution and out-of-distribution data.
  • The closed-form computation of Dirichlet entropy enables efficient uncertainty estimation without Monte Carlo sampling, unlike Bayesian neural networks.

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.