The two failure shapes
Overfitting: training loss is small, validation loss is much larger. The model memorized noise. Underfitting: training loss and validation loss are both poor. The model lacks capacity or the wrong representation. Diagnose by plotting both losses on the same chart.
Knobs that fight each failure
| Failure | Knob |
|---|---|
| Overfitting | more data, more regularization, simpler model, early stopping, dropout, fewer features |
| Underfitting | more capacity, better features, more interactions, less regularization |
Learning curves
Plot training and validation loss as data size grows. Both still falling means you need more data. Validation flat while training drops means more capacity will not help; you need regularization or features. The curves are a 30-second diagnosis.