AI engineering glossary · Deep learning core

What is weight decay?

Weight decay (also called L2 penalty): A regularisation method that shrinks every weight by a small fraction at each update, discouraging very large weights. In plain SGD it is equivalent to L2 regularisation, which adds a penalty proportional to the squared weights to the loss.

Level: intermediateTopic: Deep learning core

Weight decay: an example

With a decay of 0.01 and learning rate 0.1, each update multiplies weights by roughly 0.999 before adding the gradient step.

Related terms

More Deep learning core terms

Where you learn it

Weight decay is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.