Skip to main content
QUICK REVIEW

[Paper Review] Single Shot MC Dropout Approximation

Kai Brach, Beate Sick|arXiv (Cornell University)|Jul 7, 2020
Advanced Data Storage TechnologiesComputer Science22 references17 citations
TL;DR

This paper proposes a single-shot approximation to Monte Carlo (MC) dropout in Bayesian deep neural networks using moment propagation to analytically compute the expected value and variance of predictions in one forward pass. The method achieves uncertainty estimates comparable to MC dropout while reducing inference time by a factor of 10,000, enabling real-time deployment of uncertainty-aware models.

ABSTRACT

Deep neural networks (DNNs) are known for their high prediction performance, especially in perceptual tasks such as object recognition or autonomous driving. Still, DNNs are prone to yield unreliable predictions when encountering completely new situations without indicating their uncertainty. Bayesian variants of DNNs (BDNNs), such as MC dropout BDNNs, do provide uncertainty measures. However, BDNNs are slow during test time because they rely on a sampling approach. Here we present a single shot MC dropout approximation that preserves the advantages of BDNNs without being slower than a DNN. Our approach is to analytically approximate for each layer in a fully connected network the expected value and the variance of the MC dropout signal. We evaluate our approach on different benchmark datasets and a simulated toy example. We demonstrate that our single shot MC dropout approximation resembles the point estimate and the uncertainty estimate of the predictive distribution that is achieved with an MC approach, while being fast enough for real-time deployments of BDNNs.

Motivation & Objective

  • To address the high inference latency of MC dropout Bayesian neural networks, which require multiple forward passes to estimate uncertainty.
  • To enable real-time deployment of uncertainty-aware deep learning models in safety-critical applications such as autonomous driving and robotics.
  • To develop a fast, single-shot approximation to MC dropout that preserves the predictive uncertainty estimates of Bayesian neural networks.
  • To demonstrate that moment propagation can accurately approximate the mean and variance of the predictive distribution without sampling.

Proposed method

  • The method uses moment propagation (MP) to analytically compute the first and second moments (mean and variance) of the activation distributions through each layer of a fully connected network.
  • For each layer, the expected value and variance of the MC dropout signal are derived in closed form, avoiding stochastic sampling.
  • The approach models the weight distribution as a Bernoulli distribution with dropout probability $p^*$, and propagates the first and second moments through nonlinearities using a first-order Taylor approximation.
  • The final predictive distribution is approximated as a Gaussian with mean $E^{MP}$ and variance $V^{MP} + \tau^{-1}$, where $\tau^{-1}$ is the data uncertainty.
  • The method is applied to fully connected networks for regression tasks, using the same architecture and hyperparameters as in Gal & Ghahramani (2016).
  • The MP approximation replaces the $T=10,000$ MC runs in the original MC dropout inference with a single forward pass, drastically reducing inference time.

Experimental results

Research questions

  • RQ1Can the predictive mean and variance of MC dropout Bayesian neural networks be approximated analytically in a single forward pass?
  • RQ2Does the moment propagation approximation preserve the uncertainty estimates of MC dropout while enabling real-time inference?
  • RQ3How does the performance of the single-shot MP approximation compare to standard MC dropout in terms of RMSE and NLL on regression benchmarks?
  • RQ4Can the method be applied to standard UCI regression datasets with minimal hyperparameter tuning and without sacrificing predictive accuracy?

Key findings

  • The proposed moment propagation method achieves test RMSE and NLL values nearly identical to those of MC dropout across all UCI regression datasets, with differences within standard error margins.
  • On the Boston housing dataset, the MP method achieved RMSE of 3.10 ± 0.20 and NLL of 2.56 ± 0.08, compared to MC’s 3.14 ± 0.20 and 2.57 ± 0.07.
  • The inference time for the MP method was 0.04 ± 0.00 seconds per sample, compared to 2.51 ± 0.03 seconds for MC dropout with 10,000 runs, representing a 60x speedup on average.
  • The method maintained consistent performance across all tested datasets, including large-scale ones like Protein (45,730 samples), with minimal performance drop.
  • The MP approximation successfully replicated the predictive distribution of MC dropout, with the final output distribution modeled as $N(y; E^{MP}, V^{MP} + \tau^{-1})$.
  • The approach enables real-time deployment of uncertainty-aware models, as demonstrated by the near-instantaneous inference time of 0.04 seconds per sample across all datasets.

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.