Bayesian neural networks via MCMC: a Python-based tutorial
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
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2016Variational Inference: A Review for Statisticianscited by 1,466
- 2016An overview of gradient descent optimization algorithmscited by 1,021
- 2021Pruning and Quantization for Deep Neural Network Acceleration: A Surveycited by 259
- 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 187
- 2015A Theoretically Grounded Application of Dropout in Recurrent Neural Networkscited by 161
- 2017Conditional Time Series Forecasting with Convolutional Neural Networkscited by 121
- 2021Priors in Bayesian Deep Learning: A Reviewcited by 101
- 2017Medical Image Analysis using Convolutional Neural Networks: A Reviewcited by 99
- 2017Deep Learning for Physical Processes: Incorporating Prior Scientific Knowledgecited by 95
- 2019Rank-normalization, folding, and localization: An improved widehatR for assessing convergence of MCMCcited by 90
15 more
- 2019A Comprehensive guide to Bayesian Convolutional Neural Network with Variational Inferencecited by 51
- 2017Autoregressive Convolutional Neural Networks for Asynchronous Time Seriescited by 31
- 2021Evaluation of deep learning models for multi-step ahead time series predictioncited by 25
- 2018Revisiting the Gelman-Rubin Diagnosticcited by 18
- 2018Langevin-gradient parallel tempering for Bayesian neural learningcited by 14
- 2021Revisiting Bayesian Autoencoders with MCMCcited by 10
- 2021Bayesian graph convolutional neural networks via tempered MCMCcited by 9
- 2020Deep Importance Sampling based on Regression for Model Inversion and Emulationcited by 8
- 2017Metropolis Samplingcited by 5
- 2018Multi-core parallel tempering Bayeslands for basin and landscape evolutioncited by 5
- 2021Post-Processing of MCMCcited by 5
- 2017Scaling up Data Augmentation MCMC via Calibrationcited by 4
- 2018Bayeslands: A Bayesian inference approach for parameter uncertainty quantification in Badlandscited by 4
- 2018Bayesreef: A Bayesian inference framework for modelling reef growth in response to environmental change and biological dynamicscited by 3
- 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
Citing papers per year: 2023: 1; 2024: 2; 2025: 3; 2026: 2.
8 papers.
- 2023Uncertainty Quantification in Machine Learning for Biosignal Applications -- A Reviewcited by 7
- 2024Review of deep learning models for crypto price prediction: implementation and evaluationcited by 2
- 2024Bayes-CATSI: A variational Bayesian deep learning framework for medical time series data imputationcited by 2
- 2025Convolutional neural networks for mineral prospecting through alteration mapping with remote sensing datacited by 0
- 2025Position: There Is No Free Bayesian Uncertainty Quantificationcited by 0
- 2025Extreme value forecasting using relevance-based data augmentation with deep learning modelscited by 0
- 2026tBayes-MICE: A Bayesian Approach to Multiple Imputation for Time Series Datacited by 0
- 2026Beyond Backpropagation: Monte Carlo Method Can Train Deep Neural Networkscited by 0
- 2026Beyond Backpropagation: Monte Carlo Method Can Train Deep Neural Networks9 Jul 2026
- 2026tBayes-MICE: A Bayesian Approach to Multiple Imputation for Time Series Data28 Mar 2026
- 2025Extreme value forecasting using relevance-based data augmentation with deep learning models2 Oct 2025
- 2025Position: There Is No Free Bayesian Uncertainty Quantification4 Jun 2025
- 2025Convolutional neural networks for mineral prospecting through alteration mapping with remote sensing data25 Feb 2025
- 2024Bayes-CATSI: A variational Bayesian deep learning framework for medical time series data imputation1 Oct 2024
- 2024Review of deep learning models for crypto price prediction: implementation and evaluation19 May 2024
- 2023Uncertainty Quantification in Machine Learning for Biosignal Applications -- A Review15 Nov 2023