Uncertainty Estimation by Density Aware Evidential Deep Learning

Taeseong Yoon, Heeyoung Kim

TL;DR

Density Aware Evidential Deep Learning (DAEDL) fixes two major flaws in conventional Evidential Deep Learning: poor out-of-distribution (OOD) detection and degraded classification accuracy. By integrating feature-space density estimation and introducing a novel exponential parameterization, DAEDL achieves state-of-the-art uncertainty estimation and classification performance in a single forward pass.

What Problem Does This Paper Address?

Deep neural networks are notoriously overconfident, often making incorrect predictions with high certainty when faced with out-of-distribution (OOD) data. Dirichlet-based uncertainty (DBU) models, such as Evidential Deep Learning (EDL), attempt to solve this by predicting a distribution over class probabilities rather than just flat probabilities. This allows them to quantify both aleatoric (inherent data noise) and epistemic (model ignorance) uncertainty in a single forward pass.

However, conventional EDL suffers from two key limitations:

  1. Lack of Distance Awareness: EDL often fails to recognize how far a test sample is from the training data manifold. If an OOD sample is far away from the training data but happens to lie far from the decision boundary, EDL will confidently misclassify it with low uncertainty.
  2. Suboptimal Parameterization: The standard parameterization of EDL adds a constant of 1 to the evidence vector ($\alpha_c = 1 + e_c$). This constant can dominate the predicted pseudo-counts, distorting expected class probabilities and degrading standard classification accuracy on in-distribution data.

Methods

The authors introduce Density Aware Evidential Deep Learning (DAEDL) to resolve these issues through two main modifications during the prediction stage:

  • Feature Space Density Integration: DAEDL applies Spectral Normalization to the feature extractor to ensure the feature space preserves input distances (Lipschitz continuity). It then uses Gaussian Discriminant Analysis (GDA) on the training set features to compute a normalized density score, $s(x^*) \in [0, 1]$, for any new test sample $x^*$.
  • Alternative Parameterization: DAEDL drops the conventional "+1" constant and adopts an exponential activation function. The concentration parameters are computed by scaling the network's logits directly by the normalized density score before exponentiation: $$\alpha_{\theta,\phi}(x^*) = \exp(g_\phi(f_\theta(x^*)) \times s(x^*))$$
Figure 2. Graphical representation of the prediction stage of DAEDL. The process begins with the computation of the logits (blue), followed by the estimation of the normalized feature space density of the testing example (orange). These two components are integrated to derive the concentration parameters (black).

This formulation effectively acts as an adaptive, sample-dependent temperature scaling mechanism. For highly certain in-distribution data ($s(x^*) \to 1$), it behaves like a standard softmax. For extreme OOD data ($s(x^*) \to 0$), the concentration parameters collapse to 1, yielding a perfectly uniform Dirichlet distribution (maximum uncertainty).

Datasets

The model was evaluated using standard image classification and OOD benchmarks:

  • In-Distribution (ID): MNIST and CIFAR-10.
  • Out-of-Distribution (OOD): Fashion-MNIST (FMNIST) and Kuzushiji-MNIST (KMNIST) for MNIST; SVHN and CIFAR-100 for CIFAR-10.
  • Distribution Shift: MNIST-C and CIFAR-10-C (datasets corrupted with various noise types and severities to test robustness).

Key Insights and Ideas

  • The "Two Moons" Failure Mode: As shown in the toy experiment, standard Softmax and EDL only show high uncertainty near the decision boundary. DAEDL successfully flags the isolated OOD cluster (red) with high uncertainty because it explicitly tracks data density.
Figure 1. Uncertainty representations on the two moons dataset. (a) Softmax, (b) EDL, and (c) DAEDL (ours).
  • Improper Bayesian Priors: Mathematically, standard DBU models implicitly assume a uniform Dirichlet prior ($\pi \sim \text{Dir}(1)$). DAEDL can be interpreted as using an improper prior ($\pi \sim \text{Dir}(0)$). This subtle shift eliminates the awkward balancing act between the prior and the neural network's predicted pseudo-counts, allowing the model to learn purely from data.
  • Adaptive Temperature Scaling: By multiplying logits by the density score, DAEDL naturally inherits the calibration benefits of temperature scaling without needing a separate validation step.

Key Results

DAEDL consistently achieved state-of-the-art results across classification, OOD detection, and calibration tasks:

  • Image Classification (CIFAR-10): DAEDL achieved 91.11% accuracy, outperforming standard EDL (83.55%) and the previous best variant, $\mathcal{I}$-EDL (89.20%).
  • OOD Detection (AUPR): For the challenging CIFAR-10 to SVHN task, DAEDL scored 85.54 (Epistemic), outperforming $\mathcal{I}$-EDL (82.96) and PostNet (77.71).
  • Confidence Calibration: On CIFAR-10, DAEDL drastically reduced the Brier Score to 14.27, compared to 33.38 for EDL and 35.20 for $\mathcal{I}$-EDL, indicating much better-calibrated probabilities.
  • Distribution Shift Robustness: DAEDL significantly outperformed all baselines on corrupted datasets (MNIST-C and CIFAR-10-C), maintaining reliable uncertainty metrics even under minor distribution shifts where standard EDL failed.

Limitations and Future Work

While DAEDL shows impressive gains, the authors note that in highly complex, high-dimensional scenarios, simple feature-space density estimators like GDA might still fail to perfectly capture the underlying data manifold.

As for next steps, the current framework is strictly tailored for classification problems; the authors suggest that extending DAEDL to regression tasks is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{yoon2024uncertainty,
  author = {Taeseong Yoon and Heeyoung Kim},
  title = {{Uncertainty Estimation by Density Aware Evidential Deep Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=JtkruFHcRK},
}
Figure