arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.04235cs.LGcs.AIstat.ML
收藏

Adafactor:具有次线性存储开销的自适应学习率

Adafactor: Adaptive Learning Rates with Sublinear Memory Cost

Google Brain(谷歌大脑);University of California, Berkeley(加利福尼亚大学伯克利分校)

Noam Shazeer, Mitchell Stern

摘要:

在最近提出的几种随机优化方法(例如RMSProp,Adam,Adadelta)中,参数更新通过过去梯度平方的指数移动平均值的平方根倒数进行缩放。维护这些每个参数的二阶矩估计需要的内存等于参数的数量。对于神经网络权重矩阵的情况下,我们建议只保持这些移动平均值的每行和每列的总和,并估计每个参数的二阶矩的基础上,这些总和。我们的经验表明,这种方法产生类似的结果的基线。其次,我们表明,当二阶矩累加器的衰减速率太慢时,自适应方法可以产生比预期更大的更新。我们提出了更新裁剪和逐渐增加的衰减率计划作为补救措施。结合这些方法和降低动量,我们在WMT 2014英语-德语机器翻译任务上训练Transformer模型时获得了与已发布的Adam机制相当的结果,同时在优化器中使用了很少的辅助存储器。最后,我们建议根据参数本身的规模来缩放参数更新。

英文摘要:

In several recently proposed stochastic optimization methods (e.g. RMSProp, Adam, Adadelta), parameter updates are scaled by the inverse square roots of exponential moving averages of squared past gradients. Maintaining these per-parameter second-moment estimators requires memory equal to the number of parameters. For the case of neural network weight matrices, we propose maintaining only the per-row and per-column sums of these moving averages, and estimating the per-parameter second moments based on these sums. We demonstrate empirically that this method produces similar results to the baseline. Secondly, we show that adaptive methods can produce larger-than-desired updates when the decay rate of the second moment accumulator is too slow. We propose update clipping and a gradually increasing decay rate scheme as remedies. Combining these methods and dropping momentum, we achieve comparable results to the published Adam regime in training the Transformer model on the WMT 2014 English-German machine translation task, while using very little auxiliary storage in the optimizer. Finally, we propose scaling the parameter updates based on the scale of the parameters themselves.

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

↑