Preventing Catastrophic Forgetting During Fine-Tuning
This lesson explains catastrophic forgetting, which the exam guide names alongside overfitting and underfitting, where training on new data overwrites what a model learned before.
Learning outcomes
After completing this lesson, you will be able to:
- Recognize the symptoms of catastrophic forgetting.
- Mitigate forgetting with PEFT, lower learning rates and data mixing.
- Detect forgetting by evaluating on the target task and general capabilities.
What forgetting looks like
Catastrophic forgetting occurs when training on new data overwrites what a model learned before. After fine-tuning on a narrow task, a model may perform that task well but lose general abilities: it answers unrelated questions poorly, forgets other languages, ignores instructions it used to follow or becomes less safe, because its safety behaviour was also learned during earlier training.
The same effect appears in traditional machine learning when a model is retrained only on recent data: it loses performance on older patterns that still occur, such as seasonal behaviour that is absent from the latest months.
Spot the forgetting
Causes and mitigations
Forgetting is driven by large updates to many weights on a narrow dataset. Mitigations reduce the size or scope of updates or keep old knowledge in the training signal. Parameter-efficient fine-tuning such as LoRA leaves base weights frozen. A lower learning rate and fewer epochs limit how far weights move. Data mixing or replay adds a share of general or earlier task examples to the fine-tuning set. Regularization methods such as elastic weight consolidation penalise changes to important weights. Separate adapters per task avoid one task overwriting another.
The following table summarises the mitigations.
| Mitigation | How it helps |
|---|---|
| LoRA / PEFT | Base weights stay frozen; adapters hold the new skill |
| Lower learning rate, fewer epochs | Smaller weight changes |
| Mix in general or earlier data (replay) | Keeps old skills in the training signal |
| Regularization (for example, EWC) | Penalizes changes to important weights |
| Separate adapters per task | Tasks do not overwrite each other |
| Evaluate on general benchmarks after tuning | Detects forgetting before release |
The following diagram compares four fine-tuning runs for a billing assistant on a billing evaluation set and a general-ability evaluation set.

Keep what the model knew
Detecting forgetting
Forgetting is detected by evaluating fine-tuned models on two sets of data, not one. The first is the target task, which shows whether fine-tuning achieved its goal. The second is a regression set of general tasks, safety prompts and capabilities the model had before, which shows what fine-tuning may have broken.
Amazon Bedrock evaluation jobs and MLflow experiment tracking make before-and-after comparisons repeatable. A drop on the regression set signals forgetting even when the target task improves, and it is addressed by mixing general examples into the fine-tuning data, lowering the learning rate or using parameter-efficient methods such as LoRA.
A forgetful support model
A model fully fine-tuned for 6 epochs on 50,000 billing conversations answers billing questions well, but now replies to German customers in English and refuses simple general questions.
Run Method Billing accuracy General regression set
Base Prompting only 78% 91%
A Full FT, 6 epochs, lr 2e-5 93% 64% <- forgetting
B LoRA, 2 epochs, lr 1e-4 91% 89%
C LoRA + 15% general data 92% 90%Run C keeps nearly all general ability while gaining most of the billing improvement. Adding more billing data to run A would have increased forgetting, not reduced it.
How is catastrophic forgetting detected?
Show answer
By evaluating the fine-tuned model on a general regression set as well as the target task.
Exam Tips
Remember for the exam
- Fine-tuned model loses general skills: catastrophic forgetting.
- Mitigate with LoRA, lower learning rates, fewer epochs and mixed general data.
- Evaluate on a general regression set as well as the target task.
- Separate adapters per task prevent tasks overwriting each other.
- Retraining only on recent data can cause forgetting in traditional models too.