Skip to main content
QUICK REVIEW

[Paper Review] Understanding AdamW through Proximal Methods and Scale-Freeness

Zhenxun Zhuang, Mingrui Liu|arXiv (Cornell University)|Jan 31, 2022
Neural Networks and ApplicationsComputer Science36 citations
TL;DR

The paper shows AdamW is an approximation of a proximal update and is scale-free, offering optimization advantages over AdamL2, especially without Batch Normalization in very deep nets; it also connects scale-freeness to reduced conditioning.

ABSTRACT

Adam has been widely adopted for training deep neural networks due to less hyperparameter tuning and remarkable performance. To improve generalization, Adam is typically used in tandem with a squared $\ell_2$ regularizer (referred to as Adam-$\ell_2$). However, even better performance can be obtained with AdamW, which decouples the gradient of the regularizer from the update rule of Adam-$\ell_2$. Yet, we are still lacking a complete explanation of the advantages of AdamW. In this paper, we tackle this question from both an optimization and an empirical point of view. First, we show how to re-interpret AdamW as an approximation of a proximal gradient method, which takes advantage of the closed-form proximal mapping of the regularizer instead of only utilizing its gradient information as in Adam-$\ell_2$. Next, we consider the property of "scale-freeness" enjoyed by AdamW and by its proximal counterpart: their updates are invariant to component-wise rescaling of the gradients. We provide empirical evidence across a wide range of deep learning experiments showing a correlation between the problems in which AdamW exhibits an advantage over Adam-$\ell_2$ and the degree to which we expect the gradients of the network to exhibit multiple scales, thus motivating the hypothesis that the advantage of AdamW could be due to the scale-free updates.

Motivation & Objective

  • Motivate and understand why decoupled weight decay (AdamW) improves generalization and optimization over Adam with L2 regularization (Adam-L2).
  • Provide a proximal-optimization perspective connecting AdamW to proximal updates and leverage scale-freeness to explain empirical benefits.
  • Empirically identify training scenarios, especially very deep networks without Batch Normalization, where AdamW substantially outperforms Adam-L2.
  • Examine the robustness of AdamW’s scale-free property under practical nonzero epsilon and relate it to update behavior in deep networks.

Proposed method

  • Derive and present that AdamW approximates a proximal update for a regularized objective F(x) = (λ/2)||x||^2 + f(x).
  • Show that AdamW corresponds to a first-order Taylor approximation of a proximal update with M_t = η_t I_d and p_t = α m̂_t/(√v̂_t+ε).
  • Prove that both AdamW and the proximal update are scale-free when ε=0, unlike Adam-L2 which loses scale-freeness when λ>0.
  • Provide theoretical argument that scale-freeness yields automatic preconditioning and improved condition-number dependence for a class of functions.
  • Empirically verify scale-freeness by scaling the loss and observing update stability with BN-absent networks.
  • Compare AdamW, AdamProx, and Adam-L2 across CIFAR-10/100 with and without Batch Normalization, using ResNet and DenseNet architectures.

Experimental results

Research questions

  • RQ1Does AdamW act as a proximal update to a regularized objective, and if so, under what approximations?
  • RQ2How does scale-freeness influence the optimization behavior and convergence of AdamW compared to Adam-L2?
  • RQ3In which training settings (e.g., very deep networks without Batch Normalization) does AdamW outperform Adam-L2, and why?
  • RQ4Is AdamW approximately scale-free in practice when ε is nonzero, and how robust is this property?
  • RQ5Do AdamW and AdamProx produce similar optimization dynamics across common learning-rate schedules?

Key findings

  • AdamW is an approximation of a proximal update that uses the full regularizer rather than only its gradient.
  • AdamW and the proximal update are scale-free (with ε≈0), while Adam-L2 loses scale-freeness when λ>0.
  • Scale-freeness provides automatic preconditioning, reducing sensitivity to the condition number for certain functions.
  • Without Batch Normalization, AdamW substantially outperforms Adam-L2 on very deep networks in both training and testing.
  • As network depth increases, update scales become more diverse for Adam-L2 than for AdamW, correlating with larger accuracy gains for AdamW.
  • AdamW is approximately equivalent to AdamProx across typical learning-rate schedules, supporting the proximal interpretation.

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.