[Paper Review] Decaying momentum helps neural network training
This paper proposes Decaying Momentum (Demon), a simple yet effective rule that gradually reduces the influence of past gradients in adaptive optimizers like Adam and momentum SGD. By decaying momentum over time, Demon improves training stability and performance, achieving results competitive with learning rate decay schedules while being significantly less sensitive to hyperparameter tuning.
Momentum is a simple and popular technique in deep learning for gradient-based optimizers. We propose a decaying momentum (Demon) rule, motivated by decaying the total contribution of a gradient to all future updates. Applying Demon to Adam leads to significantly improved training, notably competitive to momentum SGD with learning rate decay, even in settings in which adaptive methods are typically non-competitive. Similarly, applying Demon to momentum SGD improves over momentum SGD with learning rate decay in most cases. Notably, Demon momentum SGD is observed to be significantly less sensitive to parameter tuning than momentum SGD with learning rate decay schedule, critical to training deep neural networks in practice.Results are demonstrated across a variety of settings and architectures, including image classification, generative models, and language models. Demon is trivial to implement, easy to tune, and incurs limited extra computational overhead, compared to the vanilla counterparts. Code is readily available.
Motivation & Objective
- To address the poor generalization and sensitivity to hyperparameters often seen in adaptive optimizers like Adam.
- To improve training stability and convergence in deep neural networks without relying on learning rate decay schedules.
- To develop a simple, effective momentum decay mechanism that enhances both Adam and momentum SGD.
- To reduce the need for extensive hyperparameter tuning in deep learning optimization.
Proposed method
- Introduce a decaying momentum rule that reduces the contribution of past gradients over time, inspired by the diminishing impact of historical gradients.
- Modify the momentum update rule in Adam and momentum SGD by introducing a time-varying momentum coefficient that decays monotonically.
- Apply the decaying momentum to both the first and second moments in Adam, ensuring that older gradients contribute less to future updates.
- Use a simple decay schedule (e.g., exponential or polynomial decay) for the momentum coefficient, making it easy to implement and tune.
- Integrate the decaying momentum into existing optimizers with minimal computational overhead.
- Evaluate the method across diverse architectures and tasks, including image classification, generative models, and language models.
Experimental results
Research questions
- RQ1Can decaying momentum improve the generalization performance of adaptive optimizers like Adam?
- RQ2Does decaying momentum reduce sensitivity to hyperparameter tuning compared to learning rate decay?
- RQ3Can Demon improve training stability and convergence in deep neural networks without additional computational cost?
- RQ4How does Demon perform across diverse architectures and tasks, including vision and language models?
Key findings
- Demon improves training performance in Adam, achieving results competitive with momentum SGD using learning rate decay.
- Demon momentum SGD outperforms standard momentum SGD with learning rate decay in most tested settings.
- Demon momentum SGD is significantly less sensitive to hyperparameter tuning than momentum SGD with learning rate decay.
- The method incurs minimal computational overhead and is trivial to implement compared to baseline optimizers.
- Demon demonstrates consistent improvements across image classification, generative models, and language models.
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.