Source-linked AI summary
A Variational Dirichlet Framework for Out-of-Distribution Detection
Wenhu Chen, Yilin Shen, Hongxia Jin, William Wang
TL;DR
Deep neural networks have limited control over uncertainty on unseen examples, and existing measures can conflate different sources of uncertainty. The paper estimates higher-order uncertainty with a variational Dirichlet posterior and adds an adversarial discriminative objective; it reports promising AUROC results for small-scale out-of-distribution detection.
Problem
Deep neural networks have limited ability to measure uncertainty on unseen cases, and existing measures fail to distinguish class-overlap noise from distance beyond the training manifold.
Source: §1 · pp. 1–2Method
Results
The framework is reported to yield better results and provide a promising AUROC-based solution for small-scale out-of-distribution detection.
Source: §5 · p. 7Takeaways & Limitations
The variational Dirichlet framework defines a higher-order uncertainty measure and is reported to perform significantly across different datasets and deep neural architectures.
Source: §1 · p. 2The approach relies on the hope that FGSM-generated adversarial examples generalize to broader out-of-distribution data sources.
Source: §2 · p. 3
Abstract
from arXiv · showhide
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_{\theta}(z|x)$ under variational inference framework, finally we use the entropy of learned posterior distribution $p_{\theta}(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.
1 Introduction
Deep neural networks can be overconfident on unseen examples, while existing out-of-distribution measures conflate distinct sources of uncertainty. The paper proposes a variational Dirichlet framework that estimates higher-order uncertainty and adds adversarial discrimination.
1 Introduction
- Deep neural networks have limited ability to measure uncertainty on unseen cases and tend to produce overconfident predictions.Source: §1 · p. 1
- Existing out-of-distribution methods can assign the same belief to a fabricated class mixture and an unseen dog because they conflate uncertainty sources.The paper distinguishes data noise from distance beyond the training manifold.Source: §1 · pp. 1–2
- The framework approximates a higher-order distribution with a neural-network parameterized Dirichlet posterior and uses its entropy to detect out-of-distribution examples.It interprets label-wise categorical distributions as points on a K-dimensional simplex.Source: §1 · p. 2
- The paper proposes a variational Dirichlet algorithm for classification and defines a higher-order uncertainty measure.Source: §1 · p. 2
- An auxiliary discriminative function is designed to enhance the uncertainty measure, with reported significant performance across different datasets and deep neural architectures.Source: §1 · p. 2
2 Model
The model treats each class-probability vector as a latent point governed by a higher-order distribution, then approximates that distribution from the input image. It uses a Dirichlet posterior, its entropy for uncertainty, and an auxiliary discriminative objective for robustness.
Variational Bayesian
- The model approximates the label-conditioned higher-order distribution p(z|y) with an image-conditioned posterior pθ(z|x), enabling higher-order uncertainty estimation for unseen inputs.Each point z on the simplex represents a categorical distribution over labels.Source: §2 · p. 2
Dirichlet Parameterization
- The Dirichlet family parameterizes pθ(z|x), with concentration parameters α produced by a neural network.The authors choose this family for its tractable analytical properties.Source: §2 · p. 3
Prior Distribution
- Uniform priors push all dimensions toward 1, while *-preserving priors allow one posterior concentration dimension to remain free in the KL computation.The latter do so by copying a posterior concentration value into the uniform concentration.Source: §2 · p. 3
Uncertainty Measure
- The framework uses posterior entropy as higher-order uncertainty and its negative as the confidence measure.The confidence measure is computed from α estimated by the neural network.Source: §2 · p. 3
Discriminative objective
- An auxiliary objective contrasts confidence on in-distribution inputs with confidence on FGSM-generated adversarial inputs, and is combined with the Bayesian objective using a balancing factor λ.The authors hope FGSM examples generalize to broader out-of-distribution sources.Source: §2 · pp. 3–4
OOD Detection
- At inference, inputs are classified as in-distribution when confidence exceeds a threshold and out-of-distribution otherwise; the predicted class is the index of the largest α.The marginal label probability is used as classification evidence.Source: §2 · p. 4
3 Experiments
The experiments evaluate out-of-distribution detection across datasets and architectures, reporting strong comparisons with existing methods and AUROC advantages over Mahalanobis in ResNet experiments.
3.1 Training Details
- Experiments train networks on in-distribution datasets and assess confidence scores against unrelated-dataset out-of-distribution examples using established detection metrics.CIFAR10/100 experiments use VGG13, ResNet variants, Wide-ResNet, and ResNeXt; FGSM perturbations use magnitude 0.2, and models train for 200 epochs.Source: §3 · p. 4, §3.2 · p. 4, §3.1 · p. 4
3.2 Experimental Results
- On CIFAR10/VGG13, the method significantly outperforms competitors across all metrics; on ResNet18 and CIFAR100/ResNet34, it leads Mahalanobis on AUROC but not FPR(TPR=95%) or detection error.The supplied captions identify the VGG13 and ResNet18 result tables; the CIFAR100 comparison is described in the text.Source: §3.2 · pp. 4–5, Table 3 · p. 5, Table 5 · p. 6
- The authors report generalization across datasets and architectures, attributing the framework's advantage to separating uncertainty sources and efficiently calculating closed-form uncertainty.They also report stronger separation on challenging CIFAR100 tasks when combining the measure with the discriminative objective.Source: §3.2 · p. 5
3.3 Ablation Study
- The uniform prior is too strongly regularizing and performs worse; allowing one dimension of freedom improves detection, with the groundtruth-preserving prior generally slightly better.The groundtruth-preserving prior is used in the experiments.Source: §3.3 · p. 5
- The discriminative objective improves metrics across architectures, with smaller gains on CIFAR10 than CIFAR100; a balancing factor of 0.1 works promisingly, while very large values break down the algorithm.Small balancing factors also yield worse results.Source: §3.3 · p. 6
4 Related Work
Prior work on uncertainty and anomaly detection spans methods with high-dimensionality or computation limits, while this paper uses a Dirichlet-based deep latent architecture to model predictive uncertainty.
4.1 Uncertainty Measure
- Earlier novelty-detection methods focused on low-dimensional, specific tasks and were considered unreliable in high-dimensional spaces.The passage also notes deep-learning approaches using adversarial training and robustness training against outliers.Source: §4.1 · p. 6
- Table 6 reports ResNet34 results on CIFAR100 and identifies Semantic as Shalev et al. [2018] and Mahalanobis as Lee et al. [2018].Source: Table 6 · p. 6
- Bayesian neural-network uncertainty measures such as variational ratio and mutual information require repeated Monte Carlo forward passes, considered impractical for deep networks.Source: §4.1 · p. 6
4.2 Deep Latent Models
- Figure 5 contrasts the final four detection metrics without the discriminative objective with the increase attributed to adding it.Source: Figure 5 · p. 7
- The paper proposes a deep architecture based on the Dirichlet distribution to better model uncertainty in predictions.The broader deep-latent-model discussion situates Bayesian inference in applications including computer vision and natural-language processing.Source: §4.2 · pp. 6–7
5 Conclusion
The authors conclude that the variational Dirichlet framework offers a promising AUROC-based solution for small-scale out-of-distribution detection, with larger datasets left for future work.
- The framework is reported as a promising AUROC-based solution for small-scale out-of-distribution detection, while application to larger datasets remains future work.Source: §5 · p. 7