Skip to main content
QUICK REVIEW

[Paper Review] Demon: Momentum Decay for Improved Neural Network Training

John Chen, C. Wolfe|arXiv (Cornell University)|May 4, 2021
Stochastic Gradient Optimization TechniquesComputer Science27 references6 citations
TL;DR

This paper introduces Demon, a decaying momentum rule that reduces the cumulative influence of past gradients over time, improving training stability and performance in deep neural networks. Applied to Adam and momentum SGD, Demon achieves results competitive with learning rate decay, while being significantly less sensitive to hyperparameter tuning.

ABSTRACT

Momentum is a 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 neural networks in practice. Results are demonstrated across a variety of settings and architectures, including image classification, generative models, and language models. Demon is easy to implement and tune, and incurs limited extra computational overhead, compared to the vanilla counterparts. Code is readily available.

Motivation & Objective

  • To address the lack of momentum decay in standard adaptive optimizers like Adam, which can hinder training stability and performance.
  • To reduce the dependency on learning rate decay schedules, which are sensitive and hard to tune in practice.
  • To develop a momentum decay mechanism that improves generalization and convergence across diverse architectures.
  • To create a method that is both easy to implement and computationally lightweight compared to baseline optimizers.

Proposed method

  • Demon introduces a time-varying momentum coefficient that decays over time, reducing the contribution of older gradients to future parameter updates.
  • The decay is applied to the momentum term in both Adam and momentum SGD, modifying the exponential moving average of gradients.
  • The decay schedule is designed to gradually diminish the influence of historical gradients, mimicking the effect of learning rate decay but without altering the learning rate.
  • The method requires only minor modifications to existing optimizers, with minimal computational overhead.
  • The decay is applied independently of the learning rate, allowing for more flexible and stable training.
  • Demon is compatible with both adaptive and non-adaptive optimizers, enhancing their performance without increasing complexity.

Experimental results

Research questions

  • RQ1Can a decaying momentum rule improve training performance in deep neural networks without relying on learning rate decay?
  • RQ2How does Demon compare to momentum SGD with learning rate decay in terms of accuracy and hyperparameter sensitivity?
  • RQ3Does Demon improve generalization across diverse architectures such as vision, language, and generative models?
  • RQ4Can Demon be effectively applied to adaptive optimizers like Adam, where it is typically less competitive?
  • RQ5How does Demon affect training stability and convergence speed across different tasks?

Key findings

  • Demon applied to Adam achieves performance competitive with momentum SGD using learning rate decay, even in settings where adaptive methods typically underperform.
  • Demon momentum SGD outperforms momentum SGD with learning rate decay across most evaluated architectures and tasks.
  • Demon significantly reduces sensitivity to hyperparameter tuning, particularly compared to learning rate decay schedules.
  • The method incurs negligible computational overhead, making it practical for real-world training.
  • Demon improves training stability and convergence across image classification, language modeling, and generative modeling tasks.
  • The code for Demon is publicly available, enabling easy integration and reproducibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.