179 questions
No questions match those filters.
What is catastrophic forgetting during fine-tuning, and how do you defend against it?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansCatastrophic forgetting happens because full fine-tuning has no built-in mechanism to protect what the model already knows — every gradient step nudges weights toward minimizing loss on the new dataset, and if that dataset is narrow, those updates can overwrite the weight patterns that encoded broader pretrained knowledge with nothing counterbalancing the drift. The result is a model that improves sharply on the fine-tuning task while quietly losing competence on tasks it used to handle fine.
The most reliable structural defense is not fine-tuning all the weights in the first place: LoRA and other PEFT methods freeze the base model and learn a small additive update, so the original capacity is literally still there underneath. Beyond that, mixing a portion of general-purpose or instruction data into the fine-tuning set keeps the objective from being purely narrow, low learning rates with early stopping against a held-out general-capability benchmark catch drift before it compounds, and a KL-divergence penalty against the frozen base model’s output distribution explicitly discourages moving too far from where you started. None of these eliminate the risk entirely — they manage the trade-off between specialization and generality.