Regularization
Regularization reduces overfitting by constraining capacity or injecting noise so the model prefers simpler or more robust solutions.
Common tools
- L2 / weight decay — shrink weights; AdamW decouples this from the adaptive step
- Dropout — random zeroing of activations in training
- Early stopping — halt when validation worsens
- Data augmentation, label smoothing, and smaller models / adapters
LLM practice
For PEFT, limiting LoRA rank and trainable modules is itself regularization. Too much decay or dropout on a small SFT set underfits; too little memorizes. Tune against held-out metrics, not train loss alone.