Why Do We Need Weight Decay in Modern Deep Learning?

Maksym Andriushchenko, Francesco D'Angelo, A. Varre, Nicolas Flammarion
2/12/2026

No official code found. Best implementation: tml-epfl/why-weight-decay (73 stars, last commit 2024-09-25).

Abstract

Weight decay is a broadly used technique for training state-of-the-art deep networks from image classification to large language models. Despite its widespread usage and being extensively studied in the classical literature, its role remains poorly understood for deep learning. In this work, we highlight that the role of weight decay in modern deep learning is different from its regularization effect studied in classical learning theory. For deep networks on vision tasks trained with multipass SGD, we show how weight decay modifies the optimization dynamics enhancing the ever-present implicit regularization of SGD via the loss stabilization mechanism. In contrast, for large language models trained with nearly one-epoch training, we describe how weight decay balances the bias-variance tradeoff in stochastic optimization leading to lower training loss and improved training stability. Overall, we present a unifying perspective from ResNets on vision tasks to LLMs: weight decay is never useful as an explicit regularizer but instead changes the training dynamics in a desirable way. The code is available at https://github.com/tml-epfl/why-weight-decay

View on arXivView PDF

Code Implementations(1)

Why Do We Need Weight Decay in Modern Deep Learning? [NeurIPS 2024]

732PythonOct 6, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{andriushchenko2026need,
  title  = {Why Do We Need Weight Decay in Modern Deep Learning?},
  author = {Maksym Andriushchenko and Francesco D'Angelo and A. Varre and Nicolas Flammarion},
  year   = {2026},
  eprint = {2310.04415},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.04415},
  journal = {NEURIPS 2023 2023}
}

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/2310.04415.svg)](https://codeofpaper.com/paper/2310.04415)

Discussion