arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.04553cs.LG

曲率感知的SGD:基于通用李群预条件子

Curvature-Informed SGD via General Purpose Lie-Group Preconditioners

University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Omead Pooladzandi, Xi-Lin Li

AI总结:

本文提出一种利用曲率信息并通过李群约束的预条件子来加速SGD的方法,该方法无需线搜索或阻尼,在视觉、NLP和RL任务上超越了当前最优性能。

摘要:

我们提出了一种新颖的方法来加速随机梯度下降(SGD),通过利用从Hessian-向量乘积或参数与梯度的有限差分中获得的曲率信息,类似于BFGS算法。我们的方法涉及两个预条件子:一个无矩阵预条件子和一个低秩近似预条件子。我们使用一个对随机梯度噪声鲁棒且不需要线搜索或阻尼的准则在线更新这两个预条件子。为了保持相应的对称性或不变性,我们的预条件子被约束在特定的连通李群上。李群的等变性质简化了预条件子的拟合过程,而其不变性质则消除了阻尼的需要,而阻尼在二阶优化器中通常是必需的。因此,参数更新的学习率和预条件子拟合的步长被自然归一化,其默认值在大多数场景下表现良好。我们提出的方法为提高SGD的收敛性提供了一个有前景的方向,且计算开销较低。我们证明了预条件SGD(PSGD)在视觉、自然语言处理和强化学习任务上,在多种现代深度学习架构中均优于当前最优方法(SoTA)。我们提供了用于复现本文中玩具和大型实验的代码。

英文摘要:

We present a novel approach to accelerate stochastic gradient descent (SGD) by utilizing curvature information obtained from Hessian-vector products or finite differences of parameters and gradients, similar to the BFGS algorithm. Our approach involves two preconditioners: a matrix-free preconditioner and a low-rank approximation preconditioner. We update both preconditioners online using a criterion that is robust to stochastic gradient noise and does not require line search or damping. To preserve the corresponding symmetry or invariance, our preconditioners are constrained to certain connected Lie groups. The Lie group's equivariance property simplifies the preconditioner fitting process, while its invariance property eliminates the need for damping, which is commonly required in second-order optimizers. As a result, the learning rate for parameter updating and the step size for preconditioner fitting are naturally normalized, and their default values work well in most scenarios. Our proposed approach offers a promising direction for improving the convergence of SGD with low computational overhead. We demonstrate that Preconditioned SGD (PSGD) outperforms SoTA on Vision, NLP, and RL tasks across multiple modern deep-learning architectures. We have provided code for reproducing toy and large scale experiments in this paper.

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

↑