Skill 2.2.5

Prevent model overfitting, underfitting, and catastrophic forgetting

Key Concepts

Overfitting (training error low, validation error high) is reduced by more data, augmentation, regularisation (L1, L2, dropout), simpler models, early stopping and cross-validation. Underfitting (both errors high) is reduced by more features, a more complex model, longer training or less regularisation.

Catastrophic forgetting is when fine-tuning on new data destroys earlier abilities. Reduce it with parameter-efficient fine-tuning (LoRA), lower learning rates, fewer epochs, mixing general or earlier data into the training set and evaluating on general benchmarks.