随机梯度朗之万动力学的承诺和陷阱
The promises and pitfalls of Stochastic Gradient Langevin Dynamics
摘要:
随机梯度朗之万动力学(SGLD)已经成为一个关键的MCMC算法贝叶斯学习从大规模数据集。虽然具有减小的步长的SGLD较弱地收敛到后验分布,但该算法在实践中通常以恒定的步长使用,并且在机器学习任务中已经证明了成功。目前的做法是将步长设置为与$N$成反比,其中$N$是训练样本的数量。随着$N$变大,我们表明,SGLD算法具有不变的概率测度显着偏离目标后验和行为像随机梯度下降(SGD)。这种差异本质上是由于随机梯度的高方差。已经提出了几种策略来减少这种影响;其中,SGLD固定点(SGLDFP)使用精心设计的控制变量来减少随机梯度的方差。我们发现,SGLDFP提供近似样本的后验分布,与精度相当的朗之万蒙特卡罗(LMC)算法的计算成本次线性的数据点的数量。我们提供了一个详细的分析LMC,SGLD,SGLDFP和SGD之间的瓦瑟斯坦距离和显式表达式的平均值和协方差阵矩阵的不变分布。我们的研究结果得到了有限的数值实验的支持。
英文摘要:
Stochastic Gradient Langevin Dynamics (SGLD) has emerged as a key MCMC algorithm for Bayesian learning from large scale datasets. While SGLD with decreasing step sizes converges weakly to the posterior distribution, the algorithm is often used with a constant step size in practice and has demonstrated successes in machine learning tasks. The current practice is to set the step size inversely proportional to $N$ where $N$ is the number of training samples. As $N$ becomes large, we show that the SGLD algorithm has an invariant probability measure which significantly departs from the target posterior and behaves like Stochastic Gradient Descent (SGD). This difference is inherently due to the high variance of the stochastic gradients. Several strategies have been suggested to reduce this effect; among them, SGLD Fixed Point (SGLDFP) uses carefully designed control variates to reduce the variance of the stochastic gradients. We show that SGLDFP gives approximate samples from the posterior distribution, with an accuracy comparable to the Langevin Monte Carlo (LMC) algorithm for a computational cost sublinear in the number of data points. We provide a detailed analysis of the Wasserstein distances between LMC, SGLD, SGLDFP and SGD and explicit expressions of the means and covariance matrices of their invariant distributions. Our findings are supported by limited numerical experiments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。