arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.08095cs.LGcs.CVcs.NAmath.NAstat.ML

小步与巨跃:用于深度学习的最小牛顿求解器

Small steps and giant leaps: Minimal Newton solvers for Deep Learning

Visual Geometry Group, University of Oxford(视觉几何组,牛津大学)

João F. Henriques, Sebastien Ehrhardt, Samuel Albanie, Andrea Vedaldi

AI总结:

本文提出一种快速的二阶方法,可作为现有深度学习求解器的替代方案。该方法仅需每个迭代两次额外的前向模式自动微分操作,计算成本与两次标准前向传递相当,易于实现。方法解决了现有二阶求解器的长期问题,避免了计算Hessian矩阵的近似逆矩阵的高成本和噪声敏感性。

摘要:

我们提出了一种快速的二阶方法,可作为现有深度学习求解器的替代方案。与随机梯度下降(SGD)相比,该方法每个迭代仅需两次额外的前向模式自动微分操作,计算成本与两次标准前向传递相当,且易于实现。我们的方法解决了现有二阶求解器的长期问题,即每次迭代精确或通过共轭梯度法计算近似Hessian矩阵的逆矩阵,这一过程成本高且对噪声敏感。相反,我们提出保持一个梯度的估计值,该估计值通过逆Hessian矩阵投影得到,并在每次迭代中更新一次。该估计值的大小相同,类似于SGD中常用的动量变量。不维护Hessian的估计值。我们首先在具有已知闭式解的小问题上验证了我们的方法,称为CurveBall,包括噪声Rosenbrock函数和退化的两层线性网络,其中现有深度学习求解器似乎难以处理。然后我们在CIFAR和ImageNet上训练了多个大型模型,包括ResNet和VGG-f网络,展示了无需超参数调优的更快收敛速度。代码已提供。

英文摘要:

We propose a fast second-order method that can be used as a drop-in replacement for current deep learning solvers. Compared to stochastic gradient descent (SGD), it only requires two additional forward-mode automatic differentiation operations per iteration, which has a computational cost comparable to two standard forward passes and is easy to implement. Our method addresses long-standing issues with current second-order solvers, which invert an approximate Hessian matrix every iteration exactly or by conjugate-gradient methods, a procedure that is both costly and sensitive to noise. Instead, we propose to keep a single estimate of the gradient projected by the inverse Hessian matrix, and update it once per iteration. This estimate has the same size and is similar to the momentum variable that is commonly used in SGD. No estimate of the Hessian is maintained. We first validate our method, called CurveBall, on small problems with known closed-form solutions (noisy Rosenbrock function and degenerate 2-layer linear networks), where current deep learning solvers seem to struggle. We then train several large models on CIFAR and ImageNet, including ResNet and VGG-f networks, where we demonstrate faster convergence with no hyperparameter tuning. Code is available.

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

↑