[Paper Review] Adaptive Learning Rates with Maximum Variation Averaging
This paper proposes a novel adaptive learning rate method that replaces Adam's exponential moving average of squared gradients with a weighted mean optimized to maximize local gradient variance estimation. By taking a worst-case view of curvature and noise, the method takes smaller, more stable steps, improving convergence and outperforming Adam and α in training Transformers and BERT at large batch sizes.
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.
Motivation & Objective
- Address the instability and non-convergence issues of Adam in deep learning, particularly at large batch sizes.
- Improve convergence behavior in ill-conditioned or noisy optimization landscapes common in modern models like Transformers and BERT.
- Develop a principled alternative to existing adaptive methods such as AMSGrad and AdaBound that better balances exploration and stability.
- Ensure theoretical convergence guarantees under mild assumptions for nonconvex stochastic optimization problems.
- Achieve superior empirical performance on image classification, machine translation, and natural language understanding tasks.
Proposed method
- Replace the exponential moving average of squared gradients in Adam with a weighted mean that maximizes the estimated variance of each coordinate's gradient.
- Use a worst-case variance estimation approach to dynamically adjust step sizes, reducing updates when high curvature or noise is detected.
- Formulate the learning rate update as a constrained optimization problem to maximize variance under bounded gradient norms.
- Introduce a new adaptive averaging mechanism that maintains stability in later training stages, avoiding extreme learning rates.
- Ensure theoretical convergence by proving convergence under mild assumptions for nonconvex stochastic optimization.
- Integrate the method into standard training pipelines with minimal hyperparameter tuning, maintaining compatibility with existing frameworks.
Experimental results
Research questions
- RQ1Can a variance-maximizing adaptive averaging strategy improve the convergence stability of Adam in nonconvex optimization?
- RQ2Does the proposed method outperform Adam and α in training large-scale models like BERT and Transformers at large batch sizes?
- RQ3Can the method achieve better generalization performance on image classification, machine translation, and NLU tasks compared to existing adaptive methods?
- RQ4Does the worst-case variance estimation approach prevent the non-convergence issues observed in Adam during BERT pretraining?
- RQ5Is the theoretical convergence guarantee of the proposed method valid under mild assumptions for stochastic nonconvex problems?
Key findings
- The proposed MaxVar-Avg method achieves better test performance than α in BERT pretraining at large batch sizes, where Adam fails to converge.
- The method demonstrates improved convergence behavior over Adam in training Transformers, particularly in noisy or ill-conditioned settings.
- On image classification, machine translation, and natural language understanding tasks, MaxVar-Avg achieves state-of-the-art performance compared to Adam and α.
- The method successfully overcomes the non-convergence issue of Adam in BERT pretraining, which is a known limitation in large-batch training.
- Theoretical analysis confirms convergence under mild assumptions for nonconvex stochastic optimization problems.
- Empirical results show that MaxVar-Avg maintains stable learning rates and avoids the extreme step sizes that destabilize Adam in later training stages.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.