Skip to main content
QUICK REVIEW

[Paper Review] EAdam Optimizer: How $\epsilon$ Impact Adam

Wei Yuan, Kaixin Gao|arXiv (Cornell University)|Nov 4, 2020
Advanced Neural Network ApplicationsComputer Science34 references5 citations
TL;DR

This paper proposes EAdam, a simple yet effective Adam variant that improves performance by relocating the epsilon ($\epsilon$) term from the denominator of the adaptive learning rate to the variance update, avoiding numerical instability without extra hyperparameters. Experiments show EAdam outperforms Adam and matches or exceeds RAdam and Adabelief across image classification, NLP, and object detection tasks.

ABSTRACT

Many adaptive optimization methods have been proposed and used in deep learning, in which Adam is regarded as the default algorithm and widely used in many deep learning frameworks. Recently, many variants of Adam, such as Adabound, RAdam and Adabelief, have been proposed and show better performance than Adam. However, these variants mainly focus on changing the stepsize by making differences on the gradient or the square of it. Motivated by the fact that suitable damping is important for the success of powerful second-order optimizers, we discuss the impact of the constant $\\epsilon$ for Adam in this paper. Surprisingly, we can obtain better performance than Adam simply changing the position of $\\epsilon$. Based on this finding, we propose a new variant of Adam called EAdam, which doesn't need extra hyper-parameters or computational costs. We also discuss the relationships and differences between our method and Adam. Finally, we conduct extensive experiments on various popular tasks and models. Experimental results show that our method can bring significant improvement compared with Adam. Our code is available at https://github.com/yuanwei2019/EAdam-optimizer.

Motivation & Objective

  • To investigate the impact of the hyperparameter $\epsilon$ in the Adam optimizer, which is typically treated as a fixed numerical stabilizer.
  • To address the known generalization and convergence issues in Adam, especially in comparison to non-adaptive methods like SGD.
  • To explore whether repositioning $\epsilon$ in the optimization update could yield better performance than standard Adam.
  • To develop a variant of Adam that improves training stability and generalization with minimal modification and no additional computational cost.
  • To validate the effectiveness of the proposed method across diverse deep learning tasks including image classification, NLP, and object detection.

Proposed method

  • EAdam modifies the Adam algorithm by adding $\epsilon$ to the running variance $v_t$ before bias correction, rather than to the denominator of the learning rate.
  • The update rule for $v_t$ becomes $v_t \leftarrow \beta_2 v_{t-1} + (1 - \beta_2)(g_t^2 + \epsilon)$, where $\epsilon$ is accumulated through the optimization process.
  • This change ensures that the denominator $\sqrt{\hat{v}_t} + \epsilon$ remains numerically stable while preserving the adaptive scaling of gradients.
  • The method maintains the same computational complexity as Adam, requiring no additional hyperparameters or operations.
  • The authors compare EAdam with Adam, RAdam, and Adabelief across multiple models and datasets to evaluate generalization and convergence.
  • The algorithm is implemented and released on GitHub for reproducibility and community use.

Experimental results

Research questions

  • RQ1How does the placement of $\epsilon$ in the Adam optimizer affect its training dynamics and generalization performance?
  • RQ2Can repositioning $\epsilon$ from the denominator to the variance update improve generalization without increasing computational cost?
  • RQ3Does EAdam outperform Adam and other Adam variants like RAdam and Adabelief across diverse deep learning tasks?
  • RQ4Can the performance gain from repositioning $\epsilon$ be replicated by tuning $\epsilon$ directly in standard Adam?
  • RQ5Is the improvement from EAdam robust across different architectures and datasets, including ImageNet, Penn Treebank, and PASCAL VOC?

Key findings

  • EAdam achieves significantly better test accuracy than Adam on CIFAR-100 with a 4% improvement over Adam, especially in deeper models.
  • On the CIFAR-10 dataset, EAdam matches the performance of Adabelief, which is known for strong generalization.
  • In language modeling with 2- and 3-layer LSTMs on Penn Treebank, EAdam achieves the lowest perplexity among all methods on the 2-layer model and is close to Adabelief on 3-layer models.
  • On object detection using Faster R-CNN with FPN on PASCAL VOC, EAdam achieves a mean average precision (mAP) of 80.62, outperforming Adam (71.47) and RAdam (76.58), and closely matching Adabelief (81.02).
  • The improvement from EAdam cannot be replicated by tuning $\epsilon$ directly in standard Adam, indicating that the position of $\epsilon$ is critical, not just its value.
  • EAdam demonstrates fast convergence and strong generalization across image classification, NLP, and object detection tasks, confirming the importance of $\epsilon$ placement in adaptive optimization.

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.