[论文解读] Metric Gaussian Variational Inference
度量高斯变分推断(MGVI)是一种可扩展的贝叶斯推断方法,通过使用自然梯度下降和隐式采样,迭代优化均值与协方差,实现全协方差高斯近似,且内存和计算成本均为线性。在准确度上优于均值场和拉普拉斯近似,预测性能与HMC相当或更优,且在高达百万参数的高维问题中显著更快。
Solving Bayesian inference problems approximately with variational approaches can provide fast and accurate results. Capturing correlation within the approximation requires an explicit parametrization. This intrinsically limits this approach to either moderately dimensional problems, or requiring the strongly simplifying mean-field approach. We propose Metric Gaussian Variational Inference (MGVI) as a method that goes beyond mean-field. Here correlations between all model parameters are taken into account, while still scaling linearly in computational time and memory. With this method we achieve higher accuracy and in many cases a significant speedup compared to traditional methods. MGVI is an iterative method that performs a series of Gaussian approximations to the posterior. We alternate between approximating the covariance with the inverse Fisher information metric evaluated at an intermediate mean estimate and optimizing the KL-divergence for the given covariance with respect to the mean. This procedure is iterated until the uncertainty estimate is self-consistent with the mean parameter. We achieve linear scaling by avoiding to store the covariance explicitly at any time. Instead we draw samples from the approximating distribution relying on an implicit representation and numerical schemes to approximately solve linear equations. Those samples are used to approximate the KL-divergence and its gradient. The usage of natural gradient descent allows for rapid convergence. Formulating the Bayesian model in standardized coordinates makes MGVI applicable to any inference problem with continuous parameters. We demonstrate the high accuracy of MGVI by comparing it to HMC and its fast convergence relative to other established methods in several examples. We investigate real-data applications, as well as synthetic examples of varying size and complexity and up to a million model parameters.
研究动机与目标
- 开发一种可扩展的贝叶斯推断方法,能够在内存和计算成本不出现二次方增长的情况下,捕捉后验分布的完整相关性。
- 通过实现高维模型中自洽的不确定性量化,克服均值场和拉普拉斯近似方法的局限性。
- 通过坐标标准化框架,将变分推断扩展至复杂且高维的后验分布,包括弱先验与强似然的情况。
- 通过隐式采样和费雪信息度量近似,避免显式存储协方差矩阵,实现时间和内存的线性缩放。
- 提供一种通用方法,适用于多种推断问题,包括大规模图像重建和含数百万参数的逻辑回归。
提出的方法
- MGVI通过交替更新协方差(基于当前均值估计的费雪信息度量的逆)和针对该协方差的KL散度最小化,实现对后验分布的迭代高斯近似。
- 该方法通过数值线性求解器实现隐式采样,从近似后验中抽样而不存储完整的协方差矩阵,从而实现线性内存缩放。
- 使用对称采样(antithetic sampling)计算KL散度及其梯度的随机估计以降低方差,优化过程采用自然梯度下降。
- 算法使用标准化坐标以确保重参数化不变性,并实现对连续参数模型的广泛适用性。
- 当均值估计与基于费雪度量的不确定性估计自洽时,即认为收敛。
- 该方法通过迭代更新均值和基于度量的协方差,隐式表示所有参数之间的相关性,避免显式参数化全协方差。
实验结果
研究问题
- RQ1是否存在一种变分推断方法,能够在高维模型中实现全协方差后验近似,且计算和内存成本为线性?
- RQ2在复杂高维推断问题中,MGVI与HMC、均值场ADVI和拉普拉斯近似相比,在准确度和收敛速度方面表现如何?
- RQ3与均值场或拉普拉斯方法相比,使用费雪信息度量作为协方差近似在后验不确定性估计方面能提升多少?
- RQ4在弱先验与强似然的场景中,MGVI的表现如何,此类场景下标准方法往往难以收敛?
- RQ5MGVI能否在真实世界问题中有效应用,例如含数百万参数的大规模逻辑回归和图像重建?
主要发现
- 在合成数据和真实数据示例中,MGVI在预测似然上的准确度高于HMC、拉普拉斯近似、均值场ADVI,甚至全协方差ADVI,其平均预测对数似然为-0.808,优于HMC的-0.802。
- 在大规模逻辑回归问题中,MGVI收敛速度优于mf-ADVI和fc-ADVI,预测对数似然为-0.808,优于HMC的-0.802和拉普拉斯近似的-0.60。
- MGVI在内存和计算上表现出线性缩放,使其可应用于高达百万参数的问题,而全协方差方法在此类问题中不可行。
- 通过迭代地利用KL最小化更新均值和利用逆费雪度量更新协方差,该方法实现了自洽的均值与不确定性估计,从而提升了后验近似质量。
- 尽管HMC在渐近意义上是精确的,MGVI在完整逻辑回归模型上的预测性能仍优于HMC,表明其近似质量更优。
- MGVI通过使用对称采样和自然梯度下降,即使在平坦或退化后验景观中也能实现稳健收敛,而均值场方法可能在此类情况下失效。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。