Skip to main content
QUICK REVIEW

[Paper Review] Known Unknowns: Uncertainty Quality in Bayesian Neural Networks

Ramón de Oliveira, Pedro Tabacof|arXiv (Cornell University)|Dec 5, 2016
Adversarial Robustness in Machine LearningComputer Science8 references4 citations
TL;DR

This paper proposes One-Sample Bayesian Approximation (OSBA), a computationally efficient method for estimating uncertainty in Bayesian neural networks. By sampling weight matrices once per mini-batch instead of per example, OSBA achieves uncertainty quality comparable to standard variational inference but with ~10x speedup, outperforming maximum likelihood and matching Bayesian Dropout in anomaly detection AUC scores on MNIST and CIFAR10.

ABSTRACT

We evaluate the uncertainty quality in neural networks using anomaly detection. We extract uncertainty measures (e.g. entropy) from the predictions of candidate models, use those measures as features for an anomaly detector, and gauge how well the detector differentiates known from unknown classes. We assign higher uncertainty quality to candidate models that lead to better detectors. We also propose a novel method for sampling a variational approximation of a Bayesian neural network, called One-Sample Bayesian Approximation (OSBA). We experiment on two datasets, MNIST and CIFAR10. We compare the following candidate neural network models: Maximum Likelihood, Bayesian Dropout, OSBA, and --- for MNIST --- the standard variational approximation. We show that Bayesian Dropout and OSBA provide better uncertainty information than Maximum Likelihood, and are essentially equivalent to the standard variational approximation, but much faster.

Motivation & Objective

  • To evaluate the quality of uncertainty estimates in neural networks using anomaly detection as a proxy.
  • To develop a computationally efficient alternative to standard variational inference in Bayesian neural networks.
  • To compare the uncertainty quality of maximum likelihood, Bayesian Dropout, standard variational inference, and the proposed OSBA method.
  • To assess whether uncertainty quality depends on class separability, particularly in datasets with semantic overlap like CIFAR10.
  • To demonstrate that improved uncertainty quality is not due to increased predictive accuracy, but to better probabilistic calibration.

Proposed method

  • Proposes One-Sample Bayesian Approximation (OSBA), where weight matrices are sampled once per mini-batch and reused across all examples in the batch.
  • Uses the same variational inference framework as Blundell et al. (2015), but reduces computational cost by decoupling weight sampling from individual data points.
  • Employs uncertainty measures (e.g., prediction entropy) from model outputs as features for a linear anomaly detector.
  • Trains the anomaly detector to distinguish between known (In) and unknown (Out) classes, using AUC as the evaluation metric for uncertainty quality.
  • Applies two experimental protocols: Blind (no unknown class during training) and Calibrated (uses unknown classes with uniform labels during training).
  • Evaluates models on MNIST and CIFAR10 using 100 replications with random splits of In, Out, and (in Calibrated) Unknown classes.

Experimental results

Research questions

  • RQ1Can anomaly detection serve as a reliable proxy for measuring uncertainty quality in neural networks?
  • RQ2How does the uncertainty quality of Bayesian neural networks compare to maximum likelihood models in terms of anomaly detection performance?
  • RQ3Does OSBA achieve uncertainty quality comparable to standard variational inference while being significantly faster?
  • RQ4How does class overlap in datasets like CIFAR10 affect the detectability of uncertainty quality?
  • RQ5Is improved uncertainty quality due to better predictive accuracy or to enhanced probabilistic calibration?

Key findings

  • Bayesian Dropout and OSBA achieve significantly higher anomaly detection AUC than maximum likelihood on MNIST, indicating better uncertainty quality.
  • OSBA achieves uncertainty quality equivalent to standard variational inference (SV), with a 10x speedup, making it 30x faster than SV and 3x faster than Bayesian Dropout in training.
  • On CIFAR10, where class boundaries are less distinct, the performance differences between models are not statistically significant, suggesting uncertainty quality measures are sensitive to dataset semantics.
  • The Calibrated protocol improves anomaly detection AUC more than model choice, but is less realistic due to requiring artificial unknown class data.
  • All models achieve nearly identical test accuracy (e.g., 99.1% on MNIST), confirming that improved uncertainty quality stems from probabilistic calibration, not accuracy gains.
  • OSBA maintains high uncertainty quality while reducing computational cost, making it a promising alternative for real-world applications requiring fast, reliable uncertainty estimates.

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.