arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.02595stat.MLcs.AIcs.LGstat.CO
收藏

基于MCMC的贝叶斯神经网络:一份基于Python的教程

Bayesian neural networks via MCMC: a Python-based tutorial

School of Mathematics and Statistics, UNSW Sydney(新南威尔士大学悉尼分校数学与统计学院);Pingala Institute of Artificial Intelligence(平加拉人工智能研究院);University of Sydney(悉尼大学)

Rohitash Chandra, Joshua Simmons

AI总结:

本文提供了一份基于Python的MCMC方法教程,涵盖贝叶斯线性、逻辑回归及贝叶斯神经网络,旨在通过代码实现弥合理论与应用鸿沟,并展示了MCMC在基准问题上的优劣及多模态后验采样的挑战。

摘要:

贝叶斯推断为机器学习和深度学习方法提供了一种用于参数估计和不确定性量化的方法论。变分推断和马尔可夫链蒙特卡洛(MCMC)采样方法被用于实现贝叶斯推断。在过去三十年中,MCMC采样方法在适应更大模型(如深度学习中)和大数据问题时面临一些挑战。结合梯度的先进提议分布(如Langevin提议分布)为解决贝叶斯神经网络中MCMC采样的某些局限性提供了手段。此外,MCMC方法通常局限于统计学家群体,目前在深度学习研究者中并不广为人知。我们提出了一份涵盖简单贝叶斯线性与逻辑回归模型以及贝叶斯神经网络的MCMC方法教程。鉴于目前为此目的的库和教程普遍匮乏,本教程旨在通过编写代码弥合理论与实现之间的鸿沟。本教程提供了Python代码、数据及说明,使其能够被使用和扩展。我们提供了一些基准问题的结果,展示了通过MCMC实现相应贝叶斯模型的优势与劣势。我们强调了贝叶斯神经网络情况下采样多模态后验分布的挑战,以及进一步改进收敛诊断方法的需求。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑