[论文解读] Adaptive Learning Rates with Maximum Variation Averaging
该论文提出了一种新颖的自适应学习率方法,用一种通过优化以最大化局部梯度方差估计的加权均值,替代了Adam中的平方梯度指数移动平均。通过从曲率和噪声的最坏情况视角出发,该方法采取更小、更稳定的步长,从而改善收敛性,并在大规模批量训练Transformer和BERT时优于Adam和α。
Adaptive gradient methods such as RMSProp and Adam use exponential moving estimate of the squared gradient to compute coordinate-wise adaptive step sizes, achieving better convergence than SGD in face of ill-conditioned or noisy objectives. However, Adam can have undesirable convergence behavior due to unstable or extreme adaptive learning rates. Methods such as AMSGrad and AdaBound have been proposed to stabilize the adaptive learning rates of Adam in the later stage of training, but they do not outperform Adam in some practical tasks such as training Transformers. In this paper, we propose an adaptive learning rate principle, in which the running mean of squared gradient is replaced by a weighted mean, with weights chosen to maximize the estimated variance of each coordinate. This gives a worst-case estimate for the local gradient variance, taking smaller steps when large curvatures or noisy gradients are present, which leads to more desirable convergence behavior than Adam. We prove the proposed algorithm converges under mild assumptions for nonconvex stochastic optimization problems, and demonstrate the improved efficacy of our adaptive averaging approach on image classification, machine translation and natural language understanding tasks. Moreover, our method overcomes the non-convergence issue of Adam in BERT pretraining at large batch sizes, while achieving better test performance than \lamb~in the same setting.
研究动机与目标
- 解决Adam在深度学习中,特别是在大规模批量下的不稳定性和非收敛问题。
- 改善现代模型(如Transformer和BERT)中常见病态条件或噪声优化景观下的收敛行为。
- 为现有自适应方法(如AMSGrad和AdaBound)提供一种有原则的替代方案,更好地平衡探索与稳定性。
- 在非凸随机优化问题的温和假设下,确保理论收敛保证。
- 在图像分类、机器翻译和自然语言理解任务中实现优越的实验性能。
提出的方法
- 用一种最大化每个坐标梯度方差估计的加权均值,替代Adam中平方梯度的指数移动平均。
- 采用最坏情况方差估计方法,动态调整步长,在检测到高曲率或噪声时减少更新。
- 将学习率更新公式化为约束优化问题,以在梯度范数有界下最大化方差。
- 引入一种新的自适应平均机制,在训练后期保持稳定性,避免极端学习率。
- 通过证明在非凸随机优化问题的温和假设下收敛,确保理论收敛性。
- 将该方法集成到标准训练流程中,仅需极少超参数调优,保持与现有框架的兼容性。
实验结果
研究问题
- RQ1基于方差最大化的自适应平均策略是否能改善Adam在非凸优化中的收敛稳定性?
- RQ2在大规模批量训练下,该方法是否在训练大规模模型(如BERT和Transformer)时优于Adam和α?
- RQ3与现有自适应方法相比,该方法是否能在图像分类、机器翻译和自然语言理解任务中实现更好的泛化性能?
- RQ4最坏情况方差估计方法是否能防止Adam在BERT预训练中出现的非收敛问题?
- RQ5该方法的理论收敛保证是否在随机非凸问题的温和假设下成立?
主要发现
- 在大规模批量的BERT预训练中,所提出的MaxVar-Avg方法在测试性能上优于α,而此时Adam无法收敛。
- 在训练Transformer时,该方法在噪声或病态条件设置下表现出优于Adam的改进收敛行为。
- 在图像分类、机器翻译和自然语言理解任务中,MaxVar-Avg相较于Adam和α实现了最先进性能。
- 该方法成功克服了Adam在BERT预训练中因大规模批量训练而产生的非收敛问题,这是已知的局限性。
- 理论分析证实了在非凸随机优化问题的温和假设下,该方法具有收敛性。
- 实验结果表明,MaxVar-Avg能保持稳定的学习率,避免了在训练后期使Adam不稳定的极端步长。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。