What signs indicate that a model is under-regularized even with a penalty enabled?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
What signs indicate that a model is under-regularized even with a penalty enabled?
Suppose an L1 or L2 penalty, or weight decay, is switched on. Describe the evidence in the metrics and in the fitted parameters that would tell you the model is still overfitting, and what can make an enabled penalty ineffective.
```hint Find your setting on the curve
Plot validation score against penalty strength on a log scale and ask which side of the peak your current value sits on.
```
```hint Look at the weights too
The fitted parameters carry evidence of their own: their size, their signs on correlated features, and how much they move across resamples. Also think about the scale of the inputs.
```
### What a Strong Answer Covers
- Performance signals: the train-validation gap, the shape of the learning curves, the effect of raising the penalty strength, and the spread of cross-validation scores
- Parameter signals: coefficient magnitude, cancelling signs on correlated features, instability across resamples, sparsity under L1, and calibration
- Reasons a penalty can be on yet too weak or misdirected, including how the strength is parameterized, feature scaling, excess capacity and optimizer interaction
- Concrete fixes and a sound way to choose the penalty strength
### Follow-up Questions
- Why does an L2 term added to the loss behave differently from decoupled weight decay when training with Adam?
- If validation keeps improving as you raise λ to the end of your grid, what do you do next?
- How would you choose between L1, L2 and elastic net when many features are highly correlated?
- How does early stopping act as a regularizer, and how does it relate to an L2 penalty?
Overview: Asks how to tell that a model is still overfitting even though an L1, L2 or weight decay penalty is enabled. Tests reading of validation curves and fitted coefficients, plus knowledge of why a penalty can be too weak, such as feature scaling, parameterization and optimizer effects.