[論文レビュー] 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における勾配二乗の指数移動平均を、各座標の勾配分散の推定値を最大にする重み付き平均に置き換える。
- 最悪ケースの分散推定アプローチを用いて、曲率やノイズが高くなるとステップサイズを動的に小さく調整する。
- 勾配ノルムが有界である条件下で分散を最大にする制約付き最適化問題として学習率更新を定式化する。
- 後期の学習段階でも安定性を保つ新しい適応的平均化メカニズムを導入し、極端な学習率を回避する。
- 非凸確率的最適化問題において、やや弱い仮定の下で収束を証明することで理論的収束を保証する。
- 最小限のハイパーパrameterチューニングで標準的な学習パイプラインに統合可能であり、既存のフレームワークと互換性を持つ。
実験結果
リサーチクエスチョン
- RQ1分散最大化を目的とした適応的平均化戦略は、非凸最適化におけるAdamの収束安定性を向上させることができるか?
- RQ2提案手法は、大規模ミニバッチでの大規模モデル(BERT や Transformer)の学習において、Adam や α を上回る性能を発揮するか?
- RQ3既存の適応的手法と比較して、画像分類、機械翻訳、NLU タスクにおいてより優れた一般化性能を達成できるか?
- RQ4最悪ケース分散推定アプローチは、BERT事前学習におけるAdamの収束不能問題を防止できるか?
- RQ5提案手法の理論的収束保証は、非凸確率的最適化問題においてやや弱い仮定の下で有効であるか?
主な発見
- 提案手法であるMaxVar-Avgは、大規模ミニバッチにおけるBERT事前学習において、Adamが収束不能となる状況でもαを上回るテスト性能を達成する。
- 特にノイズが多い、または悪条件の状況下でも、Transformerの学習においてAdamよりも優れた収束性を示す。
- 画像分類、機械翻訳、自然言語理解のタスクにおいて、MaxVar-AvgはAdamおよびαと比較して最先端の性能を達成する。
- この手法は、大バッチ学習におけるBERT事前学習で顕著に見られる、Adamの収束不能問題を効果的に克服する。
- 理論的分析により、非凸確率的最適化問題においてやや弱い仮定の下で収束が保証されることが確認された。
- 経験的結果から、MaxVar-Avgは安定した学習率を維持し、後期の学習段階でAdamが不安定化を引き起こす極端なステップサイズを回避することが分かった。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。