arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.07849stat.MLcs.LG
收藏

使用高斯得分匹配的变分推断

Variational Inference with Gaussian Score Matching

Flatiron Institute(熨斗研究院);Columbia University(哥伦比亚大学)

Chirag Modi, Charles Margossian, Yuling Yao, Robert Gower, David Blei, Lawrence Saul

AI总结:

提出基于得分匹配的高斯变分推断 GSM-VI,通过闭式内部更新匹配后验得分;实验表明其相比 BBVI 梯度评估减少10–100倍且精度相当。

摘要:

变分推断(VI)是一种用于近似贝叶斯统计中出现的、计算上难以处理的后验分布的方法。通常,VI 通过最小化适当的目标函数(如证据下界(ELBO)),将一个简单的参数化分布拟合到目标后验。在本工作中,我们提出了一种基于得分匹配原理的 VI 新方法:如果两个分布相等,那么它们的得分函数(即对数密度的梯度)在其支撑集上的每一点都相等。据此,我们开发了得分匹配 VI,这是一种迭代算法,旨在使变分近似与精确后验之间的得分相匹配。在每次迭代中,得分匹配 VI 都会求解一个内部优化问题,该问题对当前变分估计进行最小程度的调整,以在新采样的潜变量值处匹配得分。我们表明,当变分族为高斯分布时,该内部优化具有闭式解,我们称之为高斯得分匹配 VI(GSM-VI)。GSM-VI 也是一种“黑盒”变分算法,因为它只需要一个可微的联合分布,因此可以应用于广泛的模型类别。我们将 GSM-VI 与黑盒变分推断(BBVI)进行了比较,后者具有相似的要求,但优化的是 ELBO。我们研究了 GSM-VI 的行为如何随问题维度、目标协方差矩阵的条件数(当目标为高斯分布时)以及近似后验与精确后验之间的不匹配程度而变化。我们还在来自 posteriorDB 数据集和模型数据库的一系列真实世界贝叶斯推断问题上研究了 GSM-VI。在我们的所有研究中,我们发现 GSM-VI 比 BBVI 更快,且不牺牲准确性。它获得相当质量的近似所需的梯度评估次数要少 10–100 倍。

英文摘要:

Variational inference (VI) is a method to approximate the computationally intractable posterior distributions that arise in Bayesian statistics. Typically, VI fits a simple parametric distribution to the target posterior by minimizing an appropriate objective such as the evidence lower bound (ELBO). In this work, we present a new approach to VI based on the principle of score matching, that if two distributions are equal then their score functions (i.e., gradients of the log density) are equal at every point on their support. With this, we develop score matching VI, an iterative algorithm that seeks to match the scores between the variational approximation and the exact posterior. At each iteration, score matching VI solves an inner optimization, one that minimally adjusts the current variational estimate to match the scores at a newly sampled value of the latent variables. We show that when the variational family is a Gaussian, this inner optimization enjoys a closed form solution, which we call Gaussian score matching VI (GSM-VI). GSM-VI is also a ``black box'' variational algorithm in that it only requires a differentiable joint distribution, and as such it can be applied to a wide class of models. We compare GSM-VI to black box variational inference (BBVI), which has similar requirements but instead optimizes the ELBO. We study how GSM-VI behaves as a function of the problem dimensionality, the condition number of the target covariance matrix (when the target is Gaussian), and the degree of mismatch between the approximating and exact posterior distribution. We also study GSM-VI on a collection of real-world Bayesian inference problems from the posteriorDB database of datasets and models. In all of our studies we find that GSM-VI is faster than BBVI, but without sacrificing accuracy. It requires 10-100x fewer gradient evaluations to obtain a comparable quality of approximation.

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

↑