Lune

ICLR2023Top-tier venue

Understanding the Generalization of Adam in Learning Neural Networks with Proper Regularization

Difan Zou, Yuan Cao, Yuanzhi Li, Quanquan Gu

Abstract

Adaptive gradient methods such as Adam have gained increasing popularity in deep learning optimization. However, it has been observed that compared with (stochastic) gradient descent, Adam can converge to a different solution with a significantly worse test error in many deep learning applications such as image classification, even with a fine-tuned regularization. In this paper, we provide a theoretical explanation for this phenomenon: we show that in the nonconvex setting of learning over-parameterized two-layer convolutional neural networks starting from the same random initialization, for a class of data distributions (inspired from image data), Adam and gradient descent (GD) can converge to different global solutions of the training objective with provably different generalization errors, even with weight decay regularization. In contrast, we show that if the training objective is convex, and the weight decay regularization is employed, any optimization algorithms including Adam and GD will converge to the same solution if the training is successful. This suggests that the inferior generalization performance of Adam is fundamentally tied to the nonconvex landscape of deep learning optimization.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

33 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Benign Overfitting in Two-layer Convolutional Neural Networks cites Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning
  • Benign Overfitting in Two-layer Convolutional Neural Networks cites Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
  • Benign Overfitting in Two-layer Convolutional Neural Networks cites Feature Purification: How Adversarial Training Performs Robust Deep Learning
  • Vision Transformers provably learn spatial structure cites Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning
  • Robust Learning with Progressive Data Expansion Against Spurious Correlation cites Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning
  • Robust Learning with Progressive Data Expansion Against Spurious Correlation cites Benign Overfitting in Two-layer Convolutional Neural Networks
  • Robust Learning with Progressive Data Expansion Against Spurious Correlation cites Towards Understanding the Mixture-of-Experts Layer in Deep Learning
  • Towards Understanding the Mixture-of-Experts Layer in Deep Learning cites Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learning
  • Towards Understanding the Mixture-of-Experts Layer in Deep Learning cites Benign Overfitting in Two-layer Convolutional Neural Networks
  • Towards Understanding the Mixture-of-Experts Layer in Deep Learning cites Feature Purification: How Adversarial Training Performs Robust Deep Learning
  • Towards Understanding the Mixture-of-Experts Layer in Deep Learning cites Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers33

  1. Towards Understanding the Mixture-of-Experts Layer in Deep LearningZixiang Chen, Yihe Deng, Yue Wu, Quanquan Gu et al.NeurIPS 2022 · 199 citations
  2. Benign Overfitting in Two-layer Convolutional Neural NetworksYuan Cao, Zixiang Chen, Misha Belkin, Quanquan GuNeurIPS 2022 · 121 citations
  3. Vision Transformers provably learn spatial structureSamy Jelassi, Michael E. Sander, Yuanzhi LiNeurIPS 2022 · 115 citations
  4. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang et al.NeurIPS 2022 · 111 citations
  5. Robust Learning with Progressive Data Expansion Against Spurious CorrelationYihe Deng, Yu Yang, Baharan Mirzasoleiman, Quanquan GuNeurIPS 2023 · 53 citations

Builds on6

  1. Towards Theoretically Understanding Why Sgd Generalizes Better Than Adam in Deep LearningPan Zhou, Jiashi Feng, Chao Ma, Caiming Xiong et al.NeurIPS 2020 · 309 citations
  2. Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networksZiwei Ji, Matus TelgarskyICLR 2020 · 193 citations
  3. Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep LearningZeyuan Allen-Zhu, Yuanzhi LiICLR 2023 · 151 citations
  4. Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural NetworksYu Bai, Jason D. LeeICLR 2020 · 128 citations
  5. Feature Purification: How Adversarial Training Performs Robust Deep LearningZeyuan Allen-Zhu, Yuanzhi LiFOCS 2021 · 83 citations

Related papers

  1. Understanding the Generalization of Stochastic Gradient Adam in Learning Neural NetworksXuan Tang, Han Zhang, Yuan Cao, Difan ZouNeurIPS 2025 · 1 citation
  2. Towards Better Generalization of Adaptive Gradient MethodsYingxue Zhou, Belhal Karimi, Jinxing Yu, Zhiqiang Xu et al.NeurIPS 2020 · 27 citations
  3. Adaptive Inertia: Disentangling the Effects of Adaptive Learning Rate and MomentumZeke Xie, Xinrui Wang, Huishuai Zhang, Issei Sato et al.ICML 2022 · 65 citations
  4. The Rich and the Simple: On the Implicit Bias of Adam and SGDBhavya Vasudeva, Jung Hoon Lee, Vatsal Sharan, Mahdi SoltanolkotabiNeurIPS 2025 · 14 citations
  5. On the Overlooked Pitfalls of Weight Decay and How to Mitigate Them: A Gradient-Norm PerspectiveZeke Xie, Zhiqiang Xu, Jingzhao Zhang, Issei Sato et al.NeurIPS 2023 · 38 citations
Dusk over the sea between two cliffs drawn in fine vertical lines