Skip to main content
QUICK REVIEW

[Paper Review] The Relevance of Bayesian Layer Positioning to Model Uncertainty in Deep Bayesian Active Learning

Jiaming Zeng, Adam Lesnikowski|arXiv (Cornell University)|Nov 29, 2018
Machine Learning and AlgorithmsComputer Science9 references24 citations
TL;DR

This paper investigates whether fully Bayesian neural networks are necessary for capturing model uncertainty in deep active learning. By varying the number and position of Bayesian layers in a CNN on MNIST, the authors find that placing just one or two Bayesian layers near the output—particularly in the final dense layer—achieves uncertainty estimation comparable to fully Bayesian networks, while preserving the speed and accuracy of deterministic networks.

ABSTRACT

One of the main challenges of deep learning tools is their inability to capture model uncertainty. While Bayesian deep learning can be used to tackle the problem, Bayesian neural networks often require more time and computational power to train than deterministic networks. Our work explores whether fully Bayesian networks are needed to successfully capture model uncertainty. We vary the number and position of Bayesian layers in a network and compare their performance on active learning with the MNIST dataset. We found that we can fully capture the model uncertainty by using only a few Bayesian layers near the output of the network, combining the advantages of deterministic and Bayesian networks.

Motivation & Objective

  • To determine whether fully Bayesian neural networks are essential for effective model uncertainty estimation in deep active learning.
  • To evaluate the impact of Bayesian layer placement and quantity on uncertainty capture in convolutional neural networks.
  • To identify a computationally efficient alternative to fully Bayesian networks that maintains high uncertainty estimation quality.
  • To compare Bayesian architectures with different layer configurations against deterministic and fully Bayesian baselines in active learning.
  • To optimize Bayesian layer initialization variance for improved uncertainty quantification and model performance.

Proposed method

  • Used Bayesian convolutional neural networks with Gaussian approximate variational inference to model weight uncertainty.
  • Applied Monte Carlo sampling (100 samples) over the approximate posterior to estimate predictive uncertainty via marginalization.
  • Employed the Flipout gradient estimator for efficient, low-variance stochastic backpropagation in Bayesian layers.
  • Trained models using the ADAM optimizer with a fixed learning rate of 0.001 and batch size of 64.
  • Systematically varied the number and position of Bayesian layers across eight architectures, including fully Bayesian (BNN), partially Bayesian (BNN-1, BNN-2, etc.), and deterministic (CNN) configurations.
  • Optimized the initial variance of the variational posterior for Bayesian layers to improve uncertainty calibration and performance.

Experimental results

Research questions

  • RQ1Does the position of Bayesian layers in a deep network significantly affect uncertainty estimation in active learning?
  • RQ2Can a small number of Bayesian layers, particularly near the output, achieve uncertainty estimation performance comparable to fully Bayesian networks?
  • RQ3How does the initialization variance of Bayesian layers influence uncertainty quantification and model accuracy?
  • RQ4Is it possible to maintain the speed and accuracy of deterministic networks while capturing uncertainty like fully Bayesian networks?
  • RQ5How do different acquisition functions (entropy, variation ratio) perform across architectures with varying Bayesian layer configurations?

Key findings

  • Using only one or two Bayesian layers—specifically in the final dense layer (Dense2)—achieved uncertainty estimation performance comparable to fully Bayesian networks (BNN).
  • The BNN-1 architecture (Bayesian in Dense2 only) outperformed the fully Bayesian BNN in both entropy and variation ratio acquisition functions, with test errors of 2.63% and 2.38%, respectively.
  • The BNN-1 configuration achieved a 2.87% test error with max-entropy acquisition, outperforming the fully Bayesian baseline (3.28%) and the deterministic CNN (10.03%).
  • Initialization variance significantly affected performance: higher initial variance (mean = -3) led to better uncertainty capture than lower variance, especially in variation ratio acquisition.
  • The Dense2 layer was found to be the most critical for uncertainty estimation, as its Bayesian nature had the greatest impact on acquisition function performance.
  • Partially Bayesian networks with Bayesian layers only in the final layers matched or exceeded the uncertainty estimation quality of fully Bayesian networks while reducing training cost and complexity.

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.