Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Inference for Large Scale Image Classification

Jonathan Heek, Nal Kalchbrenner|arXiv (Cornell University)|Aug 9, 2019
Adversarial Robustness in Machine LearningComputer Science26 references16 citations
TL;DR

This paper introduces ATMC, an adaptive noise Markov Chain Monte Carlo (MCMC) sampler that enables Bayesian inference in large-scale image classification by dynamically adjusting momentum and noise during training. ATMC outperforms optimization baselines on ImageNet and CIFAR-10 without batch normalization, achieving higher accuracy and better uncertainty calibration via posterior predictive sampling.

ABSTRACT

Bayesian inference promises to ground and improve the performance of deep neural networks. It promises to be robust to overfitting, to simplify the training procedure and the space of hyperparameters, and to provide a calibrated measure of uncertainty that can enhance decision making, agent exploration and prediction fairness. Markov Chain Monte Carlo (MCMC) methods enable Bayesian inference by generating samples from the posterior distribution over model parameters. Despite the theoretical advantages of Bayesian inference and the similarity between MCMC and optimization methods, the performance of sampling methods has so far lagged behind optimization methods for large scale deep learning tasks. We aim to fill this gap and introduce ATMC, an adaptive noise MCMC algorithm that estimates and is able to sample from the posterior of a neural network. ATMC dynamically adjusts the amount of momentum and noise applied to each parameter update in order to compensate for the use of stochastic gradients. We use a ResNet architecture without batch normalization to test ATMC on the Cifar10 benchmark and the large scale ImageNet benchmark and show that, despite the absence of batch normalization, ATMC outperforms a strong optimization baseline in terms of both classification accuracy and test log-likelihood. We show that ATMC is intrinsically robust to overfitting on the training data and that ATMC provides a better calibrated measure of uncertainty compared to the optimization baseline.

Motivation & Objective

  • Address the scalability gap in Bayesian deep learning by enabling MCMC sampling on large-scale image classification tasks like ImageNet.
  • Overcome the incompatibility of MCMC methods with stochastic regularization techniques such as batch normalization and dropout.
  • Develop a robust sampling algorithm that reduces hyperparameter sensitivity and is intrinsically less prone to overfitting.
  • Demonstrate that posterior predictive estimates from ATMC can surpass optimization baselines in both accuracy and log-likelihood.

Proposed method

  • Propose ATMC, an adaptive thermostat Monte Carlo sampler that dynamically adjusts momentum and noise per parameter using a feedback mechanism based on parameter variance.
  • Introduce a modified second-order numerical integration scheme to improve stability and convergence of the SDE-based sampling process.
  • Design ResNet++ by replacing batch normalization with SELUs, Fixup initialization, and weight normalization to stabilize training without stochastic batch statistics.
  • Use stochastic gradients with adaptive noise injection to approximate the posterior distribution over model weights via a continuous-time SDE.
  • Apply the posterior predictive distribution by averaging predictions across multiple MCMC samples to improve uncertainty estimation.
  • Employ a step size annealing schedule and cycle-based training to enhance convergence and stability in large-scale settings.

Experimental results

Research questions

  • RQ1Can MCMC sampling be effectively scaled to large-scale image classification benchmarks such as ImageNet without relying on batch normalization?
  • RQ2Does adaptive noise and momentum control in ATMC lead to better convergence and robustness compared to standard SG-MCMC methods?
  • RQ3Can posterior predictive estimates from ATMC outperform standard optimization baselines in terms of both accuracy and test log-likelihood?
  • RQ4How does the uncertainty calibration of ATMC compare to that of optimization-based models, especially in low-confidence prediction regimes?

Key findings

  • ATMC outperforms a strong optimization baseline on CIFAR-10, achieving 95.5% test accuracy and 0.505 test log-likelihood with ResNet++.
  • On ImageNet, a single posterior sample from ATMC achieves 74.2% top-1 accuracy and 1.08 test log-likelihood, surpassing the optimization baseline without BatchNorm.
  • The posterior predictive estimate from ATMC achieves 77.5% top-1 accuracy and 0.883 test log-likelihood on ImageNet, exceeding the optimization baseline with BatchNorm (76.2% accuracy, 0.947 log-likelihood).
  • ATMC is intrinsically robust to overfitting and does not require early stopping, learning rate decay, or stochastic regularization.
  • Uncertainty estimates from ATMC are significantly better calibrated than those from the optimization baseline, especially for low-confidence predictions.
  • The posterior predictive of ATMC matches the accuracy of the BatchNorm-optimized baseline (76.2%) after 240 epochs, despite training for 10× longer.

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.