[Paper Review] Representing inferential uncertainty in deep neural networks through sampling
This paper proposes using Bayesian deep neural networks with combined Bernoulli dropout and Gaussian dropconnect to represent inferential uncertainty more accurately than standard DNNs. By sampling weights via spike-and-slab-like variational inference, the method achieves high classification accuracy while robustly modeling uncertainty across MNIST and CIFAR-10, outperforming both standard DNNs and methods using only unit or weight sampling.
As deep neural networks (DNNs) are applied to increasingly challenging problems, they will need to be able to represent their own uncertainty. Modelling uncertainty is one of the key features of Bayesian methods. Bayesian DNNs that use dropout-based variational distributions and scale to complex tasks have recently been proposed. We evaluate Bayesian DNNs trained with Bernoulli or Gaussian multiplicative masking of either the units (dropout) or the weights (dropconnect). We compare these Bayesian DNNs ability to represent their uncertainty about their outputs through sampling during inference. We tested the calibration of these Bayesian fully connected and convolutional DNNs on two visual inference tasks (MNIST and CIFAR-10). By adding different levels of Gaussian noise to the test images, we assessed how these DNNs represented their uncertainty about regions of input space not covered by the training set. These Bayesian DNNs represented their own uncertainty more accurately than traditional DNNs with a softmax output. We find that sampling of weights, whether Gaussian or Bernoulli, led to more accurate representation of uncertainty compared to sampling of units. However, sampling units using either Gaussian or Bernoulli dropout led to increased convolutional neural network (CNN) classification accuracy. Based on these findings we use both Bernoulli dropout and Gaussian dropconnect concurrently, which approximates the use of a spike-and-slab variational distribution. We find that networks with spike-and-slab sampling combine the advantages of the other methods: they classify with high accuracy and robustly represent the uncertainty of their classifications for all tested architectures.
Motivation & Objective
- To improve uncertainty representation in deep neural networks for real-world deployment where reliable confidence estimates are critical.
- To evaluate how different sampling strategies—unit dropout vs. weight dropconnect—impact uncertainty calibration in DNNs.
- To investigate whether combining Bernoulli and Gaussian sampling mechanisms enhances both accuracy and uncertainty estimation.
- To assess the robustness of uncertainty representation under distributional shift by adding noise to test inputs.
- To develop a practical Bayesian deep learning approach that scales to complex visual tasks while maintaining uncertainty awareness.
Proposed method
- Uses variational inference with Bernoulli dropout to sample network units during inference.
- Applies Gaussian dropconnect to sample weights during inference, enabling stochastic weight updates.
- Combines Bernoulli dropout and Gaussian dropconnect to approximate a spike-and-slab variational distribution.
- Trains Bayesian fully connected and convolutional networks on MNIST and CIFAR-10 using stochastic gradient descent with sampling during forward passes.
- Evaluates uncertainty via Monte Carlo sampling of network outputs under different noise levels in test inputs.
- Calibrates uncertainty by comparing predictive variance to prediction error across corrupted test images.
Experimental results
Research questions
- RQ1How does sampling weights (dropconnect) compare to sampling units (dropout) in representing uncertainty in DNNs?
- RQ2Can combining Bernoulli and Gaussian sampling mechanisms improve both classification accuracy and uncertainty estimation?
- RQ3How well do Bayesian DNNs represent uncertainty on out-of-distribution inputs when tested with added Gaussian noise?
- RQ4Does the spike-and-slab-like sampling strategy lead to better calibration than individual sampling methods?
- RQ5How do different architectures (fully connected vs. convolutional) perform under the proposed uncertainty representation framework?
Key findings
- Sampling weights using Gaussian dropconnect led to more accurate uncertainty representation than sampling units with Bernoulli dropout.
- Sampling units with either Bernoulli or Gaussian dropout improved classification accuracy on CIFAR-10 and MNIST.
- The combined use of Bernoulli dropout and Gaussian dropconnect achieved higher classification accuracy than either method alone.
- The spike-and-slab-like sampling strategy robustly represented uncertainty across all tested architectures and datasets.
- Bayesian DNNs with combined sampling outperformed standard DNNs with softmax output in uncertainty calibration under distributional shift.
- Adding Gaussian noise to test images revealed that the proposed method maintained well-calibrated uncertainty estimates, unlike standard DNNs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.