LSH采样打破自适应随机梯度估计中鸡和蛋的计算循环
Lsh-sampling Breaks the Computation Chicken-and-egg Loop in Adaptive Stochastic Gradient Estimation
摘要:
随机梯度下降(SGD)算法是求解大规模优化问题的一种常用算法。SGD通过样本大小为1的均匀采样来估计梯度。有几个其他的工作,建议更快的逐时收敛,通过使用加权非均匀采样更好的梯度估计。不幸的是,为梯度估计维护这种自适应分布的每次迭代成本超过了计算完整梯度本身,我们称之为鸡和蛋循环。结果,迭代中收敛更快的假象,实际上导致了时间上的收敛更慢。在本文中,我们打破了这一障碍,提供了第一个演示方案,局部敏感哈希(LSH)采样随机梯度下降(LGD),这导致优越的梯度估计,同时保持每次迭代的采样成本类似于均匀采样。这样的算法是可能的,由于LSH的采样视图,这是最近曝光。由于优越和快速的估计,我们减少了所有现有的梯度下降算法的运行时间,依赖于梯度估计,包括亚当,Ada-grad等,我们证明了我们的建议的有效性与线性模型以及非线性BERT,这是最近流行的深度学习为基础的语言表示模型的实验。
英文摘要:
Stochastic Gradient Descent or SGD is the most popular optimization algorithm for large-scale problems. SGD estimates the gradient by uniform sampling with sample size one. There have been several other works that suggest faster epoch-wise convergence by using weighted non-uniform sampling for better gradient estimates. Unfortunately, the per-iteration cost of maintaining this adaptive distribution for gradient estimation is more than calculating the full gradient itself, which we call the chicken-and-the-egg loop. As a result, the false impression of faster convergence in iterations, in reality, leads to slower convergence in time. In this paper, we break this barrier by providing the first demonstration of a scheme, Locality sensitive hashing (LSH) sampled Stochastic Gradient Descent (LGD), which leads to superior gradient estimation while keeping the sampling cost per iteration similar to that of the uniform sampling. Such an algorithm is possible due to the sampling view of LSH, which came to light recently. As a consequence of superior and fast estimation, we reduce the running time of all existing gradient descent algorithms, that relies on gradient estimates including Adam, Ada-grad, etc. We demonstrate the effectiveness of our proposal with experiments on linear models as well as the non-linear BERT, which is a recent popular deep learning based language representation model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。