arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.21983cs.LG
收藏

在神经网络中基于序列蒙特卡洛框架的批量推断研究

Investigating Batch Inference in a Sequential Monte Carlo Framework for Neural Networks

Department of Electronics and Electrical Engineering, University of Liverpool(电子与电气工程系,利物浦大学);Department of Mechanical and Aerospace Engineering, University of Liverpool(机械与航空航天工程系,利物浦大学)

Andrew Millard, Joshua Murphy, Peter Green, Simon Maskell

AI总结:

本文研究了在序列蒙特卡洛框架中通过逐步引入小批量数据进行批量推断,以提高神经网络训练效率并保持精度。

摘要:

贝叶斯推断使我们能够对通用神经网络(NN)的权重定义后验分布。精确的后验通常不可行,因此可以采用近似方法。其中一种近似方法——变分推断——在使用小批量随机梯度下降时计算效率较高,因为数据子集被用于似然和梯度评估,但该方法依赖于选择一个足够匹配后验形式的变分分布。基于粒子的方法,如马尔可夫链蒙特卡洛和序列蒙特卡洛(SMC)方法,通常不假设后验的参数化家族,而是需要更高的计算成本。这些采样方法通常使用完整批次的数据进行似然和梯度评估,这增加了计算成本。我们探索了几种逐步引入更多小批量数据(数据退火)到SMC采样器的似然和梯度评估中的方法。我们发现,在基准图像分类问题中使用NN时,可以实现高达6倍更快的训练速度,同时在精度上几乎没有损失。

英文摘要:

Bayesian inference allows us to define a posterior distribution over the weights of a generic neural network (NN). Exact posteriors are usually intractable, in which case approximations can be employed. One such approximation - variational inference - is computationally efficient when using mini-batch stochastic gradient descent as subsets of the data are used for likelihood and gradient evaluations, though the approach relies on the selection of a variational distribution which sufficiently matches the form of the posterior. Particle-based methods such as Markov chain Monte Carlo and Sequential Monte Carlo (SMC) do not assume a parametric family for the posterior by typically require higher computational cost. These sampling methods typically use the full-batch of data for likelihood and gradient evaluations, which contributes to this computational expense. We explore several methods of gradually introducing more mini-batches of data (data annealing) into likelihood and gradient evaluations of an SMC sampler. We find that we can achieve up to $6\times$ faster training with minimal loss in accuracy on benchmark image classification problems using NNs.

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

↑