L2 Regularization (Ridge)

Also known as: Ridge, Weight Decay, L2 Penalty

Category: Foundations of ML/AI

A regularization technique that adds the sum of squared weights as a penalty to the loss function, discouraging large weight values.

Full Explanation

L2 regularization, also known as Ridge regression or weight decay, adds a penalty equal to the sum of the squared values of all model weights to the loss function. This encourages the model to keep weights small and distributed rather than relying on a few large weights. Unlike L1 regularization, L2 does not drive weights to exactly zero but instead shrinks them proportionally. L2 regularization helps prevent overfitting by constraining model complexity and improving numerical stability. In neural networks, L2 regularization is often implemented as weight decay in the optimizer. It is one of the most commonly used regularization techniques across all types of machine learning models.

Related Terms

More in Foundations of ML/AI

Explore More