Investigating the Role of Weight Decay in Enhancing Nonconvex SGD

Tao Sun, Yuhao Huang, Li Shen, Kele Xu, Bao Wang
2/10/2026

No official code found. Best implementation: YOUHO-H/Weight_Decay_Enhance_SGD (1 star, last commit 2025-06-09).

Abstract

Weight decay is a widely used technique in training machine learning models, known to empirically enhance the generalization of Stochastic Gradient Descent (SGD). While intuitively weight decay allows SGD to train a regularized model rather than the original one, there is limited theoretical understanding of why SGD with weight decay (SGDW) yields results consistent with the unregularized model, or how weight decay improves generalization. This paper establishes a convergence theory for SGDW in the context of the unregularized model, under weaker assumptions than previous analyses of weight decay. Our theory demonstrates that weight decay does not accelerate the convergence of SGD. For generalization, we provide the first theoretical proof of weight decay’s benefit in nonconvex optimization. Additionally, we extend our results to sign-based stochastic gradient algorithms, such as SignSGD. Numerical experiments on classical benchmarks validate our theoretical findings.

DOISemantic Scholar

Code Implementations(1)

Investigating the Role of Weight Decay in Enhancing Nonconvex SGD, CVPR 2025

10PythonFeb 2, 20241 years ago
cvpr2025nonconvex-optimizationweight-decay

Similar Papers

Cite this paper

@article{sun2026investigating,
  title  = {Investigating the Role of Weight Decay in Enhancing Nonconvex SGD},
  author = {Tao Sun and Yuhao Huang and Li Shen and Kele Xu and Bao Wang},
  year   = {2026},
  doi    = {10.1109/CVPR52734.2025.01424},
  url    = {https://doi.org/10.1109/CVPR52734.2025.01424},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/17414daadc3598715a6231dd7f166d6225ae07d3.svg)](https://codeofpaper.com/paper/17414daadc3598715a6231dd7f166d6225ae07d3)

Discussion