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

可微退火重要性抽样与梯度噪声的危害

Differentiable Annealed Importance Sampling and the Perils of Gradient Noise

University of Toronto(多伦多大学);Vector Institute(矢量研究所);Stanford University(斯坦福大学)

Guodong Zhang, Kyle Hsu, Jianing Li, Chelsea Finn, Roger Grosse

摘要:

退火重要性抽样(AIS)和相关算法是边缘似然估计的高效工具,但由于使用Metropolis-Hastings校正步骤,因此无法完全微分。可微性是一个理想的属性,因为它允许使用基于梯度的方法优化边际似然作为目标的可能性。为此,我们提出了可微分AIS(DAIS),AIS的一个变体,通过放弃Metropolis-Hastings校正来确保可微分性。作为另一个优点,DAIS允许小批量梯度。我们提供了一个详细的收敛分析贝叶斯线性回归,超越了以前的分析,明确占采样没有达到平衡。使用这种分析,我们证明了DAIS是一致的,在全批量设置,并提供了一个次线性收敛速度。此外,出于从大规模数据集学习的问题,我们研究了DAIS的一个随机变体,它使用小批量梯度。令人惊讶的是,随机DAIS可以任意坏,由于最后一次收敛到后验和消除累积的随机误差的目标之间的根本不相容。这与其他设置形成鲜明对比,例如基于梯度的优化和Langevin动态,其中梯度噪声的影响可以通过采取较小的步骤来消除。这表明基于退火的随机梯度边际似然估计可能需要新的思路。

英文摘要:

Annealed importance sampling (AIS) and related algorithms are highly effective tools for marginal likelihood estimation, but are not fully differentiable due to the use of Metropolis-Hastings correction steps. Differentiability is a desirable property as it would admit the possibility of optimizing marginal likelihood as an objective using gradient-based methods. To this end, we propose Differentiable AIS (DAIS), a variant of AIS which ensures differentiability by abandoning the Metropolis-Hastings corrections. As a further advantage, DAIS allows for mini-batch gradients. We provide a detailed convergence analysis for Bayesian linear regression which goes beyond previous analyses by explicitly accounting for the sampler not having reached equilibrium. Using this analysis, we prove that DAIS is consistent in the full-batch setting and provide a sublinear convergence rate. Furthermore, motivated by the problem of learning from large-scale datasets, we study a stochastic variant of DAIS that uses mini-batch gradients. Surprisingly, stochastic DAIS can be arbitrarily bad due to a fundamental incompatibility between the goals of last-iterate convergence to the posterior and elimination of the accumulated stochastic error. This is in stark contrast with other settings such as gradient-based optimization and Langevin dynamics, where the effect of gradient noise can be washed out by taking smaller steps. This indicates that annealing-based marginal likelihood estimation with stochastic gradients may require new ideas.

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

↑