arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.14652stat.MLcs.CEcs.LGphysics.data-an
收藏

加速哈密顿蒙特卡洛方法用于神经网络和神经算子的贝叶斯推断

Accelerating Hamiltonian Monte Carlo for Bayesian Inference in Neural Networks and Neural Operators

Hopkins Extreme Materials Institute, Johns Hopkins University(霍普金斯极端材料研究所,约翰·霍普金斯大学);Department of Mechanical Engineering, Johns Hopkins University(约翰·霍普金斯大学机械工程系);Department of Civil and Systems Engineering, Johns Hopkins University(约翰·霍普金斯大学土木与系统工程系)

Ponkrshnan Thiagarajan, Tamer A. Zaki, Michael D. Shields

AI总结:

提出结合变分推断与哈密顿蒙特卡洛的混合方法,通过识别并仅对影响预测不确定性的关键参数执行HMC,显著降低维度,实现高效准确的贝叶斯推断,适用于大规模神经网络和神经算子。

摘要:

哈密顿蒙特卡洛(HMC)是一种强大且精确的方法,用于在贝叶斯推断中从后验分布中采样。然而,由于网络参数空间的高维性以及后验分布的非凸性,HMC技术对于贝叶斯神经网络而言计算需求极高。因此,通常采用变分推断(VI)或随机梯度MCMC等各种近似技术来推断网络参数的后验分布。此类近似会在推断分布中引入不准确性,导致不确定性估计不可靠。在本工作中,我们提出了一种混合方法,结合廉价的VI和精确的HMC方法,以高效且准确地量化神经网络和神经算子中的不确定性。所提出的方法利用对整个网络的初始VI训练。我们考察了单个参数对预测不确定性的影响,结果表明大部分参数对网络预测中的不确定性贡献不大。该信息随后被用于显著降低参数空间的维度,并且仅对强烈影响预测不确定性的那部分网络参数执行HMC。这为加速神经网络后验推断的全批量HMC提供了一个框架。我们在深度神经网络和算子网络上展示了所提出框架的效率和准确性,表明可以对具有数万至数十万个参数的大型网络进行推断。我们展示了该方法能够通过建模将上游条件映射到高超声速流中锥体壁压数据的算子,有效地学习复杂物理系统的代理模型。

英文摘要:

Hamiltonian Monte Carlo (HMC) is a powerful and accurate method to sample from the posterior distribution in Bayesian inference. However, HMC techniques are computationally demanding for Bayesian neural networks due to the high dimensionality of the network's parameter space and the non-convexity of their posterior distributions. Therefore, various approximation techniques, such as variational inference (VI) or stochastic gradient MCMC, are often employed to infer the posterior distribution of the network parameters. Such approximations introduce inaccuracies in the inferred distributions, resulting in unreliable uncertainty estimates. In this work, we propose a hybrid approach that combines inexpensive VI and accurate HMC methods to efficiently and accurately quantify uncertainties in neural networks and neural operators. The proposed approach leverages an initial VI training on the full network. We examine the influence of individual parameters on the prediction uncertainty, which shows that a large proportion of the parameters do not contribute substantially to uncertainty in the network predictions. This information is then used to significantly reduce the dimension of the parameter space, and HMC is performed only for the subset of network parameters that strongly influence prediction uncertainties. This yields a framework for accelerating the full batch HMC for posterior inference in neural networks. We demonstrate the efficiency and accuracy of the proposed framework on deep neural networks and operator networks, showing that inference can be performed for large networks with tens to hundreds of thousands of parameters. We show that this method can effectively learn surrogates for complex physical systems by modeling the operator that maps from upstream conditions to wall-pressure data on a cone in hypersonic flow.

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

↑