arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1402.4089stat.CO
收藏

基于GPU计算的快速哈密顿蒙特卡罗方法

Fast Hamiltonian Monte Carlo Using GPU Computing

Andrew L. Beam, Sujit K. Ghosh, Jon Doyle

摘要:

近年来,在从后验分布生成样本方面,已经发现哈密顿蒙特卡罗(HMC)算法与其他流行的马尔可夫链蒙特卡罗(MCMC)方法(诸如随机游动Metropolis-Hastings)相比更有效地工作。HMC的一般框架的基础上使用的图形处理单元(GPU),大大减少了贝叶斯推断所需的计算时间。HMC中最昂贵的计算任务是后验核的评估和计算其相对于感兴趣的参数的梯度。本文的主要目标之一是通过简单的矩阵或元素运算来表达这些任务,并在GPU内存中维护持久化对象,可以大大减少计算时间。通过使用GPU对象来执行整个HMC模拟,可以避免与将数据从主存储器传输到GPU存储器相关联的大部分延迟损失。因此,所提出的计算框架在概念上非常简单,但也足够通用,可以应用于大多数使用HMC采样的问题。为了清楚的阐述,所提出的方法的有效性证明了在高维设置上的标准统计模型-多项式回归。使用GPU,数据集的分析,以前是棘手的完全贝叶斯方法,由于过高的计算成本,现在是可行的。

英文摘要:

In recent years, the Hamiltonian Monte Carlo (HMC) algorithm has been found to work more efficiently compared to other popular Markov Chain Monte Carlo (MCMC) methods (such as random walk Metropolis-Hastings) in generating samples from a posterior distribution. A general framework for HMC based on the use of graphical processing units (GPUs) is shown to greatly reduce the computing time needed for Bayesian inference. The most expensive computational tasks in HMC are the evaluation of the posterior kernel and computing its gradient with respect to the parameters of interest. One of primary goals of this article to show that by expressing each of these tasks in terms of simple matrix or element-wise operations and maintaining persistent objects in GPU memory, the computational time can be drastically reduced. By using GPU objects to perform the entire HMC simulation, most of the latency penalties associated with transferring data from main to GPU memory can be avoided. Thus, the proposed computational framework is conceptually very simple, but also is general enough to be applied to most problems that use HMC sampling. For clarity of exposition, the effectiveness of the proposed approach is demonstrated in the high-dimensional setting on a standard statistical model - multinomial regression. Using GPUs, analyses of data sets that were previously intractable for fully Bayesian approaches due to the prohibitively high computational cost are now feasible.

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

↑