Skip to main content
QUICK REVIEW

[Paper Review] AdaSGD: Bridging the gap between SGD and Adam

Jiaxuan Wang, Jenna Wiens|arXiv (Cornell University)|Jun 30, 2020
Stochastic Gradient Optimization TechniquesComputer Science34 references5 citations
TL;DR

AdaSGD proposes a simple modification to SGD that adaptively adjusts a single global learning rate, combining the convergence speed of Adam with the generalization performance of SGD. Empirically, it closes the performance gap between Adam and SGD across multiple datasets and architectures without requiring transitional schedules or additional hyperparameters.

ABSTRACT

In the context of stochastic gradient descent(SGD) and adaptive moment estimation (Adam),researchers have recently proposed optimization techniques that transition from Adam to SGD with the goal of improving both convergence and generalization performance. However, precisely how each approach trades off early progress and generalization is not well understood; thus, it is unclear when or even if, one should transition from one approach to the other. In this work, by first studying the convex setting, we identify potential contributors to observed differences in performance between SGD and Adam. In particular,we provide theoretical insights for when and why Adam outperforms SGD and vice versa. We ad-dress the performance gap by adapting a single global learning rate for SGD, which we refer to as AdaSGD. We justify this proposed approach with empirical analyses in non-convex settings. On several datasets that span three different domains,we demonstrate how AdaSGD combines the benefits of both SGD and Adam, eliminating the need for approaches that transition from Adam to SGD.

Motivation & Objective

  • To understand why Adam outperforms SGD in some settings and vice versa, particularly in terms of early convergence versus generalization.
  • To investigate whether transitional methods from Adam to SGD are necessary, given observed performance differences.
  • To develop a unified optimization approach that combines the strengths of both Adam and SGD without requiring complex schedule changes.
  • To demonstrate that a single adaptive global learning rate in SGD can achieve performance comparable to Adam, especially in non-convex deep learning settings.

Proposed method

  • Propose AdaSGD, a variant of SGD that adaptively rescales the global learning rate based on gradient statistics, inspired by Adam’s adaptive mechanism but applied globally rather than per-parameter.
  • Use theoretical analysis in the convex quadratic setting to identify when and why Adam outperforms SGD, and vice versa, focusing on learning rate sensitivity and implicit regularization.
  • Apply AdaSGD to deep neural networks across three domains: image classification (CIFAR-10), language modeling (WikiText-2), and medical prediction (MIMIC-3).
  • Compare AdaSGD against SGD, Adam, and transitional methods (e.g., AdaBound, Swats) using grid search and fixed learning rate schedules with decay.
  • Tune hyperparameters using validation performance and evaluate on test sets using standard metrics: accuracy, AUC, and perplexity.
  • Use PyTorch for implementation and include anonymized code in supplementary materials.

Experimental results

Research questions

  • RQ1In what settings does Adam outperform SGD, and why, particularly in terms of learning rate sensitivity and generalization?
  • RQ2Can a simple modification to SGD—specifically, adaptive global learning rate scaling—close the performance gap with Adam without requiring a transition from Adam to SGD?
  • RQ3How does AdaSGD compare to existing transitional methods like AdaBound and Swats in terms of robustness and performance across diverse deep learning tasks?
  • RQ4Does the robustness of Adam to learning rate choice stem from per-parameter adaptation, or can it be replicated with global learning rate adaptation alone?

Key findings

  • AdaSGD achieves performance comparable to Adam on CIFAR-10, WikiText-2, and MIMIC-3, closing the gap between Adam and SGD without requiring a transition schedule.
  • When hyperparameters are tuned via grid search, AdaSGD and Adam perform similarly across all three datasets, while SGD is highly sensitive to learning rate choice.
  • With a fixed learning rate and decay, SGD’s performance degrades significantly compared to its tuned version, whereas AdaSGD shows minimal improvement with tuning, indicating robustness.
  • Transitional methods like AdaBound and Swats do not consistently outperform Adam or AdaSGD; AdaBound performs poorly on WikiText-2 and is sensitive to hyperparameters.
  • The results suggest that Adam’s robustness is not due to per-parameter adaptation per se, but can be replicated with global learning rate adaptation in SGD.
  • Extensive experiments on Tiny ImageNet, CIFAR-100 with a 100-layer DenseNet, and MNIST with a variational autoencoder confirm that AdaSGD generalizes well across diverse architectures and tasks.

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.