Novel Uncertainty Framework for Deep Learning Ensembles

Tal Kachman, Michal Moshkovitz, Michal Rosen-ZviarXiv 2019

TL;DR

This paper introduces a statistical mechanics-inspired framework to improve uncertainty estimation in deep learning. By treating dropout-thinned networks as a physical ensemble and weighting them by their performance (loss), the authors' LoVME algorithm provides more reliable confidence measures than standard uniform averaging, effectively allowing models to give a "don't know" answer.

What Problem Does This Paper Address?

Deep neural networks are powerful, but they are often "black boxes" that can be dangerously overconfident in their predictions. In high-stakes fields like medicine or autonomous driving, it is not enough for a model to provide an answer; it must also provide a measure of how certain it is.

Currently, a popular way to estimate this uncertainty is through MC Dropout. This technique treats the various "thinned" versions of a network (created by randomly dropping neurons) as an ensemble. However, standard MC Dropout typically treats every thinned network as equally important. The authors argue this "uniform averaging" is a crude approximation because some thinned networks perform significantly better (have lower loss) than others. The challenge is to find a mathematically grounded way to weight these networks to get a more accurate picture of model uncertainty.

Methods

The authors bridge the gap between machine learning and physics by applying the Principle of Maximum Entropy to the ensemble of thinned networks.

  • Statistical Mechanics Framework: They map the ensemble of networks to a physical system governed by a Gibbs distribution. This introduces two key physical parameters: $\beta$ (inverse temperature, representing the scale of fluctuations) and $\eta$ (chemical potential, related to the number of active neurons).
  • Performance-Based Weighting: Unlike standard methods, this framework weights each thinned network based on its cross-entropy loss and its size. This ensures that high-performing sub-networks have a greater influence on the final uncertainty estimate.
  • LoVME Algorithm: Short for "Loss Variance Monte Carlo Estimate," this algorithm uses a Metropolis-Hastings Markov Chain Monte Carlo (MCMC) approach to sample the "state space" of thinned networks. This allows the model to efficiently explore the most relevant network configurations without getting stuck in local minima.

Datasets

The researchers evaluated their framework using three standard benchmarks:

  • MNIST: Handwritten digits.
  • Fashion-MNIST: Images of clothing items.
  • CIFAR-10: Small color images of various objects (airplanes, cats, etc.).

To further test the model's ability to handle ambiguity, they created "perturbed" versions of MNIST and Fashion-MNIST by introducing random rotations and noise to 10% of the test images.

Key Insights and Ideas

  • Loss Variance as Uncertainty: The "aha moment" is the realization that the variance of the loss across the ensemble is a much more potent indicator of uncertainty than simple output probability.
  • Non-Uniformity Matters: The authors demonstrate that the loss for different thinned networks can differ by an order of magnitude. Weighting them equally (as standard dropout does) ignores valuable information about which sub-networks are actually reliable.
  • The "Triage" System: By quantifying uncertainty, the algorithm can flag ambiguous samples for human review. This "don't know" option acts like a triage system, significantly increasing the overall reliability of the classifier on the samples it does choose to predict.
  • Complex Distributions: They found that uncertainty distributions are often bimodal or non-symmetric. This suggests that simple variance might not capture the whole story, and their framework’s ability to calculate higher-order statistical moments is a significant advantage.

Key Results

  • State-of-the-Art AUC: On the CIFAR-10 dataset, the LoVME approach achieved an Area Under the Curve (AUC) of 0.973, outperforming standard MC dropout (0.972) and significantly beating the baseline with no uncertainty corrections (0.956).
  • Ground Truth Alignment: To validate their metric, the authors trained a massive ensemble of 4,000 separate models to find the "ground truth" uncertainty. The LoVME algorithm’s estimates closely tracked this ground truth, but at a fraction of the computational cost.
  • Improved Reliability: The experiments showed that as the model's uncertainty measure increases, the likelihood of an incorrect prediction also increases. By setting a threshold to eliminate high-uncertainty samples, the model's accuracy on the remaining data improved across all tested datasets.

Limitations and Future Work

  • Computational Overhead: While more efficient than training thousands of models, the MCMC sampling process (the authors used 300 steps) still adds computational time to the inference phase compared to a standard single forward pass.
  • Hyperparameter Tuning: The framework introduces new variables ($\beta$ and $\eta$) that need to be tuned. The authors suggest that future work could focus on automated ways to determine these parameters.
  • Scaling Up: The study used the LeNet architecture. Testing the LoVME framework on much larger, modern architectures like ResNets or Transformers would be necessary to prove its scalability for industry-scale tasks.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNISTno uncertainty correctionsAUC0.967No uncertainty corrections; AUC values for the reported experiment set.
Source quote
L509: MNIST AUC │ 0.967 │ 0.974 │ 0.974 │ 0.974\tabularnewline
CIFAR-10 · CIFAR10no uncertainty correctionsAUC0.956No uncertainty corrections; AUC values for the reported experiment set.
Source quote
L511: CIFAR10 AUC │ 0.956 │ 0.967 │ 0.972 │ 0.973\tabularnewline
CIFAR-10 · CIFAR10LoVME uncertainty correctionsAUC0.973With LoVME uncertainty corrections; AUC values for the reported experiment set.
Source quote
L511: CIFAR10 AUC │ 0.956 │ 0.967 │ 0.972 │ 0.973\tabularnewline
CIFAR-10 · CIFAR10MC dropout uncertainty correctionsAUC0.972With MC dropout uncertainty corrections; AUC values for the reported experiment set.
Source quote
L511: CIFAR10 AUC │ 0.956 │ 0.967 │ 0.972 │ 0.973\tabularnewline
BibTeX
@misc{kachman2019novel,
  author = {Tal Kachman and Michal Moshkovitz and Michal Rosen-Zvi},
  title = {{Novel Uncertainty Framework for Deep Learning Ensembles}},
  year = {2019},
  eprint = {1904.04917},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.04917},
}
Figure