arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1907.07063cs.LGstat.ML
收藏

在线抛物线模型步长估计的SGD动量优化器

SGD momentum optimizer with step estimation by online parabola model

Jagiellonian University(雅盖隆大学)

Jarek Duda

摘要:

在随机梯度下降中,特别是在神经网络训练中,目前主要的一阶方法是:不将局部距离建模为最小。最佳步长所需的这些信息由二阶方法提供,然而,它们有许多困难,从具有系数维数平方的全Hessian开始。本文提出了一个从成功的一阶动量法到二阶动量法的最小步骤:单方向在线抛物线建模:动量法的归一化$\hat{v}$。通过估计$\hat{v}$方向上的梯度$\vec{g}=\nabla F(\vecθ)$的线性趋势来完成:使得$g(\vecθ_\bot+θ\hat{v})\approx λ(θ-p)$用于$θ= \vecθ\cdot \hat{v}$、$g= \vec{g}\cdot \hat{v}$、$\vecθ_\bot=\vecθ-θ\hat{v}$。使用线性回归,$λ$、$p$是通过在所考虑的方向上仅更新四个平均值($g$、$θ$、$gθ$、$θ^2$)来估计的MSE。指数移动平均线允许在这里进行廉价的在线估计,削弱了旧梯度的贡献。控制曲率的符号$λ$,我们可以从鞍排斥,而不是在标准牛顿方法中的吸引。在其余的方向:在二阶模型中不考虑,我们可以同时执行例如梯度下降。还讨论了其学习率近似为$μ=σ_θ/ σ_g$,允许例如自适应SGD -对于每个参数分别优化(二阶)学习率。

英文摘要:

In stochastic gradient descent, especially for neural network training, there are currently dominating first order methods: not modeling local distance to minimum. This information required for optimal step size is provided by second order methods, however, they have many difficulties, starting with full Hessian having square of dimension number of coefficients. This article proposes a minimal step from successful first order momentum method toward second order: online parabola modelling in just a single direction: normalized $\hat{v}$ from momentum method. It is done by estimating linear trend of gradients $\vec{g}=\nabla F(\vecθ)$ in $\hat{v}$ direction: such that $g(\vecθ_\bot+θ\hat{v})\approx λ(θ-p)$ for $θ= \vecθ\cdot \hat{v}$, $g= \vec{g}\cdot \hat{v}$, $\vecθ_\bot=\vecθ-θ\hat{v}$. Using linear regression, $λ$, $p$ are MSE estimated by just updating four averages (of $g$, $θ$, $gθ$, $θ^2$) in the considered direction. Exponential moving averages allow here for inexpensive online estimation, weakening contribution of the old gradients. Controlling sign of curvature $λ$, we can repel from saddles in contrast to attraction in standard Newton method. In the remaining directions: not considered in second order model, we can simultaneously perform e.g. gradient descent. There is also discussed its learning rate approximation as $μ=σ_θ/ σ_g$, allowing e.g. for adaptive SGD - with learning rate separately optimized (2nd order) for each parameter.

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

↑