mlsanityData to 7 Oct 2026

Bayesian neural networks via MCMC: a Python-based tutorial

arXiv 2304.02595 ↗First posted 2 Apr 2023stat.ML cs.AI cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

Bayesian inference provides a methodology for parameter estimation and uncertainty quantification in machine learning and deep learning methods. Variational inference and Markov Chain Monte-Carlo (MCMC) sampling methods are used to implement Bayesian inference. In the past three decades, MCMC sampling methods have faced some challenges in being adapted to larger models (such as in deep learning) and big data problems. Advanced proposal distributions that incorporate gradients, such as a Langevin proposal distribution, provide a means to address some of the limitations of MCMC sampling for Bayesian neural networks. Furthermore, MCMC methods have typically been constrained to statisticians and currently not well-known among deep learning researchers. We present a tutorial for MCMC methods that covers simple Bayesian linear and logistic models, and Bayesian neural networks. The aim of this tutorial is to bridge the gap between theory and implementation via coding, given a general sparsity of libraries and tutorials to this end. This tutorial provides code in Python with data and instructions that enable their use and extension. We provide results for some benchmark problems showing the strengths and weaknesses of implementing the respective Bayesian models via MCMC. We highlight the challenges in sampling multi-modal posterior distributions for the case of Bayesian neural networks and the need for further improvement of convergence diagnosis methods.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 27 of its 158 references that are in the map. First posted on arXiv 2 Apr 2023.

Builds on

27 of 158 references.

References · 27

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
  3. 2016Variational Inference: A Review for Statisticianscited by 1,466
  4. 2016An overview of gradient descent optimization algorithmscited by 1,021
  5. 2021Pruning and Quantization for Deep Neural Network Acceleration: A Surveycited by 259
  6. 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 187
  7. 2015A Theoretically Grounded Application of Dropout in Recurrent Neural Networkscited by 161
  8. 2017Conditional Time Series Forecasting with Convolutional Neural Networkscited by 121
  9. 2021Priors in Bayesian Deep Learning: A Reviewcited by 101
  10. 2017Medical Image Analysis using Convolutional Neural Networks: A Reviewcited by 99
  11. 2017Deep Learning for Physical Processes: Incorporating Prior Scientific Knowledgecited by 95
  12. 2019Rank-normalization, folding, and localization: An improved widehatR for assessing convergence of MCMCcited by 90
15 more
  1. 2019A Comprehensive guide to Bayesian Convolutional Neural Network with Variational Inferencecited by 51
  2. 2017Autoregressive Convolutional Neural Networks for Asynchronous Time Seriescited by 31
  3. 2021Evaluation of deep learning models for multi-step ahead time series predictioncited by 25
  4. 2018Revisiting the Gelman-Rubin Diagnosticcited by 18
  5. 2018Langevin-gradient parallel tempering for Bayesian neural learningcited by 14
  6. 2021Revisiting Bayesian Autoencoders with MCMCcited by 10
  7. 2021Bayesian graph convolutional neural networks via tempered MCMCcited by 9
  8. 2020Deep Importance Sampling based on Regression for Model Inversion and Emulationcited by 8
  9. 2017Metropolis Samplingcited by 5
  10. 2018Multi-core parallel tempering Bayeslands for basin and landscape evolutioncited by 5
  11. 2021Post-Processing of MCMCcited by 5
  12. 2017Scaling up Data Augmentation MCMC via Calibrationcited by 4
  13. 2018Bayeslands: A Bayesian inference approach for parameter uncertainty quantification in Badlandscited by 4
  14. 2018Bayesreef: A Bayesian inference framework for modelling reef growth in response to environmental change and biological dynamicscited by 3
  15. 2018Efficiency and robustness in Monte Carlo sampling of 3-D geophysical inversions with Obsidian v0.1.2: Setting up for successcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 2; 2025: 3; 2026: 2.

8 papers.