When training machine learning models, unchecked weight growth can lead to overfitting, where the model memorizes training data instead of generalizing. Weight decay is a regularization technique that penalizes large weights, keeping them small and promoting simpler, smoother functions. This helps the model focus on the underlying patterns rather than noise, improving its performance on unseen data. In this short visual explainer, the concept of weight decay is broken down for easy understanding.
Left unchecked, a model's weights grow huge, and that's exactly when it overfits. That's weight decay — simpler weights, a smoother function, and a model that generalizes instead of memorizing.