cs.LGMar 3, 2026

HomeAdam: Adam and AdamW Algorithms Sometimes Go Home to Obtain Better Provable Generalization

Authors: Feihu Huang, Guanyi Zhang, Songcan Chen

Organizations: College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, China · MIIT Key Laboratory of Pattern Analysis and Machine Intelligence, Nanjing, China

Abstract

Adam and AdamW are a class of default optimizers for training deep learning models in machine learning. These adaptive algorithms converge faster but generalize worse compared to SGD. In fact, their proved generalization error O(1N)O(\frac{1}{\sqrt{N}}) also is larger than O(1N)O(\frac{1}{N}) of SGD, where NN denotes training sample size. Recently, although some variants of Adam have been proposed to improve its generalization, their improved generalizations are still unexplored in theory. To fill this gap, in the paper, we restudy generalization of Adam and AdamW via algorithmic stability, and first prove that Adam and AdamW without square-root (i.e., Adam(W)-srf) have a generalization error O(ρ^−2TN)O(\frac{\hatρ^{-2T}}{N}), where TT denotes iteration number and ρ^>0\hatρ>0 denotes the smallest element of second-order momentum plus a small positive number. To improve generalization, we propose a class of efficient clever Adam (i.e., HomeAdam(W)) algorithms via sometimes returning momentum-based SGD. Moreover, we prove that our HomeAdam(W) have a smaller generalization error O(1N)O(\frac{1}{N}) than O(ρ^−2TN)O(\frac{\hatρ^{-2T}}{N}) of Adam(W)-srf, since ρ^\hatρ is generally very small. In particular, it is also smaller than the existing O(1N)O(\frac{1}{\sqrt{N}}) of Adam(W). Meanwhile, we prove our HomeAdam(W) have a faster convergence rate of O(1T1/4)O(\frac{1}{T^{1/4}}) than O(ρ˘−1T1/4)O(\frac{\breveρ^{-1}}{T^{1/4}}) of the Adam(W)-srf, where ρ˘≤ρ^\breveρ\leq\hatρ also is very small. Extensive numerical experiments demonstrate efficiency of our HomeAdam(W) algorithms.

Figures & tables

Explore similar work

CardsList
  1. Combining Adam and its Inverse Counterpart to Enhance Generalization of Deep Learning Optimizers

    Mar 7, 2026Tao Shi, Liangming Chen, Long Jin +1Neural Network OptimizationAdaptive Gradient Methods

  2. Ada2MS: A Hybrid Optimization Algorithm Based on Exponential Mixing of Elementwise and Global Second-Moment Estimates

    May 19, 2026Meng Zhu, Quan Xiao, Weidong MinDeep Learning OptimizationMomentum Methods

  3. Why Adam Can Beat SGD: Second-Moment Normalization Yields Sharper Tails

    Mar 3, 2026Ruinan Jin, Yingbin Liang, Shaofeng ZouStochastic Optimization ConvergenceAdaptive Gradient Methods