Skip to main content
QUICK REVIEW

[Paper Review] Normalized Direction-preserving Adam

Zijun Zhang, Lin Ma|arXiv (Cornell University)|Sep 13, 2017
Stochastic Gradient Optimization TechniquesComputer Science21 references20 citations
TL;DR

This paper proposes Normalized Direction-preserving Adam (ND-Adam), a modified Adam optimizer that preserves gradient direction per weight vector and explicitly normalizes weight vectors to control effective learning rates. By aligning update dynamics more closely with SGD and incorporating regularized softmax, ND-Adam achieves generalization performance on par with SGD in image classification, closing the generalization gap between Adam and SGD.

ABSTRACT

Adaptive optimization algorithms, such as Adam and RMSprop, have shown better optimization performance than stochastic gradient descent (SGD) in some scenarios. However, recent studies show that they often lead to worse generalization performance than SGD, especially for training deep neural networks (DNNs). In this work, we identify the reasons that Adam generalizes worse than SGD, and develop a variant of Adam to eliminate the generalization gap. The proposed method, normalized direction-preserving Adam (ND-Adam), enables more precise control of the direction and step size for updating weight vectors, leading to significantly improved generalization performance. Following a similar rationale, we further improve the generalization performance in classification tasks by regularizing the softmax logits. By bridging the gap between SGD and Adam, we also hope to shed light on why certain optimization algorithms generalize better than others.

Motivation & Objective

  • To identify why Adam generalizes worse than SGD in deep neural networks.
  • To address two key issues: (1) Adam does not preserve gradient direction per weight vector, and (2) effective learning rates decrease due to uncontrolled parameter norm growth.
  • To develop a variant of Adam that enables more precise control over update direction and effective learning rate.
  • To improve learning signals in classification by regularizing softmax logits.
  • To bridge the generalization performance gap between Adam and SGD.

Proposed method

  • ND-Adam modifies Adam by adapting the learning rate per weight vector instead of per parameter, ensuring gradient direction is preserved.
  • It explicitly normalizes each weight vector during optimization, decoupling direction and magnitude updates to stabilize effective learning rates.
  • The method uses a modified update rule that maintains the direction of the gradient while controlling step size via normalization.
  • It introduces a regularized softmax layer with batch normalization or L2-regularization to constrain logit magnitudes and improve learning signal quality.
  • The algorithm is designed to mimic the implicit regularization effect of L2 weight decay in SGD by explicitly normalizing weight vectors in Adam.
  • Empirical evaluation uses WRN architectures on CIFAR-10 and CIFAR-100 with controlled hyperparameters to compare ND-Adam, Adam, and SGD.

Experimental results

Research questions

  • RQ1Why does Adam generalize worse than SGD in deep neural networks?
  • RQ2How does the lack of gradient direction preservation in Adam affect optimization dynamics?
  • RQ3To what extent can explicit normalization of weight vectors in Adam improve generalization?
  • RQ4How does the magnitude of softmax logits influence learning signal quality and generalization?
  • RQ5Can combining normalized weight updates with regularized softmax close the generalization gap between Adam and SGD?

Key findings

  • ND-Adam achieves test error rates of 3.70% on CIFAR-10 and 19.30% on CIFAR-100 with WRN-22-7.5, matching SGD performance.
  • With BN-Softmax and L2-regularized logits, ND-Adam reduces error to 4.14% on CIFAR-10 and 19.90% on CIFAR-100, outperforming standard Adam.
  • The magnitude of softmax logits is significantly larger under standard Adam (Fig. 3), explaining why regularization helps more for Adam than for SGD.
  • In the original WRN implementation, ND-Adam and SGD show nearly identical generalization performance (3.70% error on CIFAR-10 with WRN-28-10).
  • The use of L2-regularized softmax improves generalization most for Adam, indicating that unregularized logits amplify the negative effects of Adam’s update dynamics.
  • ND-Adam eliminates the generalization gap between Adam and SGD by precisely controlling update direction and effective learning rate through vector normalization.

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.