Why We Need Regularization

08 Dec 2024 - cohlem

How does it penalize the weights?

one

Now when we do the backprop and gradient descent.

The gradient of loss w.r.t some weights become one

one as we can see it penalizes the weight by reducing the weights’s value by some higher amount compared to the some minimial weight update when we only used loss function.

So overall, the model tries to balance the Loss (L) as well as keep the weights small. This balance prevents the model from relying excessively on any particular weight.