Why does adding a penalty to the loss function improve model generalization?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks why adding a penalty term such as L1 or L2 to a training loss usually lowers test error. Tests whether you can explain the constrained hypothesis space, the bias-variance trade-off, the Bayesian prior view, and how the penalty strength is tuned.