Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Weight decay

What is weight decay?

A penalty on large weights that shrinks every weight slightly towards zero on each step.

Where it is taught

Regularisation. Ways of stopping a network from memorising its training data. Each one makes training a little harder so that what is learned is more general.

What the lesson leaves you with

  • Regularisation trades a little training accuracy for better results on new data.
  • Weight decay shrinks weights, dropout switches off random neurons, early stopping ends training in time.
  • More and more varied data beats all of them.
Open the lesson

Questions

What is weight decay?
A penalty on large weights that shrinks every weight slightly towards zero on each step.
Where is weight decay used in AI?
Ways of stopping a network from memorising its training data. Each one makes training a little harder so that what is learned is more general.
What is the key idea to remember about weight decay?
Regularisation trades a little training accuracy for better results on new data.
Where can I learn weight decay step by step?
In the lesson “Regularisation” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What is a learning rate? Why step size matters4 min
  • What is linear regression? Fitting a plane in 3D4 min
  • What is noise in data? Why models miss points3 min

Related terms

  • Augmentation
  • Classifier
  • Dropout
  • Hyperparameter
  • Neuron
  • Overfitting