arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.09519stat.MLcs.LGstat.COstat.ME
收藏

PyVBMC:Python中的高效贝叶斯推断

PyVBMC: Efficient Bayesian inference in Python

University of Helsinki(赫尔辛基大学)

Bobby Huggins, Chengkun Li, Marlon Tobaben, Mikko J. Aarnos, Luigi Acerbi

AI总结:

PyVBMC 是 VBMC 算法的 Python 实现,专为计算代价高或含噪的黑盒模型提供高效贝叶斯推断,通过计算非高斯近似后验和模型证据,在多领域真实模型上优于传统方法并大幅提升速度。

摘要:

PyVBMC 是变分贝叶斯蒙特卡洛(Variational Bayesian Monte Carlo,VBMC)算法的 Python 实现,用于黑盒计算模型的后验推断与模型推断(Acerbi,2018,2020)。VBMC 是一种近似推断方法,专为在模型评估代价中等到非常高(例如,一秒或更长)和/或存在噪声时的参数估计与模型评估而设计。具体而言,VBMC 计算:模型参数的灵活(非高斯)近似后验分布,可从中轻松提取统计量和后验样本;模型证据或边际似然的近似值,该指标用于贝叶斯模型选择。PyVBMC 可应用于任何具有至多约 10-15 个连续参数的计算或统计模型,唯一要求是用户能提供计算模型目标对数似然的 Python 函数,或其近似值(例如,通过模拟或蒙特卡洛方法获得的似然估计)。当模型每次评估耗时超过约一秒时,PyVBMC 尤为有效,与传统近似推断方法相比,速度可提升 1-2 个数量级。在人工测试问题及大量来自计算科学(特别是计算与认知神经科学)的真实模型上的广泛基准测试表明,VBMC 通常——且往往是极大地——优于其他用于样本高效贝叶斯推断的替代方法,并适用于精确模型和基于模拟器的模型(Acerbi,2018,2019,2020)。PyVBMC 将这一最先进的推断算法引入 Python,并提供了易用的 Pythonic 接口,用于运行算法以及操作和可视化其结果。

英文摘要:

PyVBMC is a Python implementation of the Variational Bayesian Monte Carlo (VBMC) algorithm for posterior and model inference for black-box computational models (Acerbi, 2018, 2020). VBMC is an approximate inference method designed for efficient parameter estimation and model assessment when model evaluations are mildly-to-very expensive (e.g., a second or more) and/or noisy. Specifically, VBMC computes: - a flexible (non-Gaussian) approximate posterior distribution of the model parameters, from which statistics and posterior samples can be easily extracted; - an approximation of the model evidence or marginal likelihood, a metric used for Bayesian model selection. PyVBMC can be applied to any computational or statistical model with up to roughly 10-15 continuous parameters, with the only requirement that the user can provide a Python function that computes the target log likelihood of the model, or an approximation thereof (e.g., an estimate of the likelihood obtained via simulation or Monte Carlo methods). PyVBMC is particularly effective when the model takes more than about a second per evaluation, with dramatic speed-ups of 1-2 orders of magnitude when compared to traditional approximate inference methods. Extensive benchmarks on both artificial test problems and a large number of real models from the computational sciences, particularly computational and cognitive neuroscience, show that VBMC generally - and often vastly - outperforms alternative methods for sample-efficient Bayesian inference, and is applicable to both exact and simulator-based models (Acerbi, 2018, 2019, 2020). PyVBMC brings this state-of-the-art inference algorithm to Python, along with an easy-to-use Pythonic interface for running the algorithm and manipulating and visualizing its results.

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

↑