哈密顿蒙特卡洛中嵌入数值求根的动态猜测
Dynamic guessing for Hamiltonian Monte Carlo with embedded numerical root-finding
AI总结:
本文针对嵌入数值求根的HMC计算成本高的问题,提出动态猜测方法,利用先前积分器状态选择起始猜测,并给出两种启发式,显著提升性能,同时发布JAX包grapevine。
摘要:
现代哈密顿蒙特卡洛及相关MCMC算法的实现支持对嵌入数值求根算法的概率函数进行采样,从而能够拟合涉及解析上难以处理的代数约束的统计模型。然而,这些模型在实际中的应用受到计算大量数值解所需计算成本的限制。我们识别出先前嵌入求根的HMC方法的一个关键局限性,即要求在同一模拟哈密顿轨迹上的所有点使用相同的起始猜测。我们证明这一要求可以放宽,使得起始猜测依赖于先前的积分器状态。为了利用这一信息选择好的猜测,我们提出了两种启发式方法:使用先前的解,以及利用隐式微分外推先前的解。与静态猜测相比,两种启发式方法在一系列代表性模型上均产生了显著的性能提升。我们还介绍了grapevine,一个基于JAX的Python包,提供对带有动态猜测的No-U-Turn采样器实现的便捷访问。
英文摘要:
Modern implementations of Hamiltonian Monte Carlo and related MCMC algorithms support sampling of probability functions that embed numerical root-finding algorithms, thereby allowing fitting of statistical models involving analytically intractable algebraic constraints. However the application of these models in practice is limited by the computational cost of computing large numbers of numerical solutions. We identify a key limitation of previous approaches to HMC with embedded root-finding, which require the starting guess to be the same at all points on the same simulated Hamiltonian trajectory. We demonstrate that this requirement can be relaxed, so that the starting guess depends on the previous integrator state. To choose a good guess using this information we propose two heuristics: use the previous solution and extrapolate the previous solution using implicit differentiation. Both heuristics yield substantial performance improvements on a range of representative models compared with static guessing. We also present grapevine, a JAX-based Python package providing easy access to an implementation of the No-U-Turn sampler augmented with dynamic guessing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。