Abstract
Modern deep neural networks (DNNs) are notoriously overconfident, often assigning high-probability scores to out-of-distribution (OOD) inputs or adversarial attacks. This paper introduces Generative Evidential Neural Networks (GEN), a framework that addresses this "ignorance of ignorance" by using generative models to synthesize informative "near-miss" OOD samples. By training a classifier to be explicitly uncertain about these synthetic examples, the resulting model significantly improves its ability to identify real-world anomalies and resist adversarial overconfidence.
Introduction
Deep learning models are increasingly deployed in high-stakes environments, such as autonomous driving and medical diagnosis. However, standard models typically rely on a softmax output, which provides a point estimate of class probabilities but fails to capture the model's underlying uncertainty. This leads to a critical failure mode: overconfidence in the face of the unknown.
Researchers distinguish between two primary types of uncertainty:
- Aleatoric uncertainty: Noise inherent in the data, such as blurry images or overlapping class boundaries.
- Epistemic uncertainty: Uncertainty due to a lack of knowledge, such as presenting a model trained only on vehicles with an image of an animal.
While existing "Evidential Neural Networks" (EDL) attempt to model this by predicting the parameters of a Dirichlet distribution, they often remain overconfident when faced with data far outside their training distribution. This paper proposes a method to generate effective "auxiliary" OOD data to teach models to recognize the boundaries of their own knowledge.
Generative Evidential Neural Networks (GEN)
The authors introduce the GEN framework, which combines evidential learning with a sophisticated generative component. Instead of a standard softmax, the classifier predicts the parameters ($\alpha$) of a Dirichlet distribution. The total "evidence" ($S = \sum \alpha_i$) determines the model's confidence. When evidence is low, the distribution approaches a uniform state, representing total uncertainty.
The core innovation is a three-part architecture designed to map the uncertainty landscape:
- The Classifier: Learns to treat network outputs as "evidence" or pseudocounts for each class.
- The Variational Autoencoder (VAE): Learns a compressed latent representation of the training data.
- The OOD Generator: A GAN-style component that creates informative OOD samples by perturbing points in the VAE's latent space. It utilizes dual discriminators to ensure generated samples are "hard" (close to the real distribution in latent space) yet distinguishable from the training set in the input space.
Synthesizing "Near-Miss" OOD Samples
The most effective way to teach a model about its limits is to show it examples that sit right on the edge of its knowledge. By using the VAE latent space, the generator creates "semantically plausible" but "label-less" images. These "near-miss" samples are used as a negative signal during training.
The loss function includes a KL Divergence Regularization term. This term minimizes the divergence between the predicted Dirichlet distribution of an OOD sample and a uniform distribution, effectively forcing the model to admit it is guessing when it encounters data similar to the synthetic OOD examples.
Experimental Results
The model was evaluated using standard benchmarks (MNIST, CIFAR-10) and cross-dataset OOD tests (e.g., training on MNIST digits and testing on notMNIST letters).
- OOD Detection: On the notMNIST test, the GEN model assigned significantly higher entropy (uncertainty) to unseen letters compared to Bayesian approaches like MC Dropout or Deep Ensembles.
- Adversarial Robustness: When subjected to Fast Gradient Sign Method (FGSM) attacks, the GEN model's uncertainty increased linearly with the strength of the attack ($\epsilon$). In contrast, standard models remained dangerously confident in their incorrect predictions.
- Anomaly Detection: GEN achieved state-of-the-art Area Under the ROC Curve (AUC) scores, reaching 0.965 on MNIST and 0.775 on CIFAR-10, outperforming specialized models like ADGAN.
Conclusion and Future Work
GEN provides a robust framework for quantifying epistemic uncertainty by explicitly training on the boundaries of the data manifold. While the method shows significant promise, it introduces computational overhead due to the simultaneous training of a VAE, a GAN, and a classifier. Future work will focus on scaling these generative architectures to handle higher-dimensional, high-resolution datasets like ImageNet, where finding the precise boundaries of the distribution remains a complex challenge.
Summary updated