Subscribe
AI
7 min read

What Is Catastrophic Forgetting? Why Models Lose Old Skills When They Learn New Ones

Catastrophic forgetting occurs when a model's shared weights are overwritten during fine-tuning, causing it to perform poorly on previously learned tasks. This post explains the mechanism and practical fixes for LLM practitioners.

Diagram illustrating catastrophic forgetting in neural networks where new training erases previous weight associations
Diagram illustrating catastrophic forgetting in neural networks where new training erases previous weight associations

Catastrophic forgetting is a phenomenon where a neural network trained on a new task suddenly performs at baseline level on a previously learned task. This occurs because all knowledge is stored in one set of shared weights, so gradient descent updates for new data overwrite parameters essential for old skills. It is now a routine production problem for anyone fine-tuning language models, moving from a theoretical issue in connectionist models to a practical barrier in continual learning.

In 1989, psychologists Michael McCloskey and Neal Cohen ran what looked like a simple experiment. They trained a standard neural network to memorize one list of paired associations, say letters mapped to digit strings. The network learned it perfectly. Then they trained the same network on a second list built from the same letters. After a few hundred updates on the new list, the network was near perfect on it. It was also back near chance level on the first list. Not degraded. Erased.

The two called the effect catastrophic interference (paper here60536-8)). They tried to fix it the way any careful experimenter would: more hidden units, slower learning, overtraining on the first list, freezing half the weights. None of the manipulations reliably prevented the collapse. Robert French gave the phenomenon its now-standard name a decade later, "catastrophic forgetting," in a Trends in Cognitive Sciences review01294-2) that framed it as the central obstacle to connectionist models of human-like memory.

Thirty-seven years later it is still the central obstacle, and it is now a routine production problem for anyone fine-tuning a language model.

Why shared weights forget

The mechanism is not mysterious. A neural network stores everything it knows in one set of weights. There is no separate compartment for "Spanish translation" and one for "JSON formatting." Both skills live in overlapping matrices of numbers, and gradient descent updates those numbers to reduce the loss on whatever it is looking at right now.

When training on the new task moves a weight that the old task also depended on, the old task suffers. If successive tasks pull the same weights in unrelated directions, the model does not average the two skills. It drifts toward whichever data the optimizer saw most recently. The McCloskey and Cohen experiments showed how sharp this drift is: performance on the original task fell to baseline after learning even a small amount of the new one.

Cognitive scientists find the contrast with human learning uncomfortable. A person who learns to drive a manual transmission does not forget how to drive an automatic. The brain appears to consolidate old skills before layering new ones on top, a stability-plasticity balance that plain gradient descent in artificial networks does not have. That asymmetry is why the effect got "catastrophic": the failure mode is not graceful decay, it is sudden overwrite.

A mechanical press re-stamping one shared patterned surface with a new lattice, erasing the old pattern

The same failure in your fine-tuning run

For LLM practitioners, catastrophic forgetting is what happens between the before and after benchmark tables. You take a general-purpose model, fine-tune it on 50,000 examples of legal contract review, and it becomes excellent at contracts. It also gets measurably worse at arithmetic, multilingual tasks, instruction following, and basic factuality, because the fine-tuning distribution says nothing about those skills and the gradient does not care about distributions it cannot see.

The research literature has made this concrete at every scale:

  • A 2020 study of BERT fine-tuning (Yang et al.) found the process brittle even on small datasets, with many trials degrading partway through training, and recommended early stopping as a practical defense against overwriting the pretrained model.
  • In comparisons of LoRA against full fine-tuning, Biderman et al. (2024) found that full fine-tuning on code or math data destroyed much more of the base model's off-domain performance than LoRA did, while LoRA itself underperformed full fine-tuning on the target task. The trade-off is the whole story in one sentence: learn less, forget less.
  • Gupta et al. (2023) showed that naive "warm-starting," simply continuing pretraining on new domain data with the same recipe, causes significant forgetting, and that mixing replay data from the original distribution back into training is one of the few reliable mitigations.
  • An EMNLP 2024 study of cross-lingual continual pretraining quantified the replay dose: mixing 5% to 30% of source-language data during target-language pretraining effectively prevented forgetting without slowing adaptation. Without replay, smaller models degraded severely.

The four levers practitioners actually pull

A balance scale holding an orderly stack of patterned blocks on one side and a funnel pouring new blocks onto the other

Decades of continual-learning research compress into four intervention points.

Replay the old data. The blunt fix: keep mixing examples of what the model already knows into the new training run. If you cannot ship the original pretraining corpus (licensing, privacy, size), self-synthesized rehearsal, where the old model generates data that the new model retrains on, approximates the same effect. Continual pretraining work traces back to Cossu et al., who showed pretrained models that keep seeing their original distribution stay robust across task sequences.

Constrain where updates can go. Regularization methods anchor the model to its starting point. The canonical one is Elastic Weight Consolidation, where Kirkpatrick et al. (2017) at DeepMind used Fisher information to estimate which weights matter most for old tasks and penalized movement on exactly those, letting the rest stay plastic. Architecturally, LoRA is regularization by construction: the base weights are frozen bit-for-bit and only a low-rank adapter trains, which is one reason LoRA dominates production fine-tuning.

Measure the drift directly. A 2025 paper by Shenfeld, Pari, and Agrawal titled "RL's Razor" reported a cleaner framing: in matched experiments, reinforcement learning preserved old capabilities significantly better than supervised fine-tuning, and the variable that predicted forgetting was neither algorithm nor epoch count but the KL divergence between the tuned and base model on the new task. On-policy RL is implicitly biased toward KL-minimal solutions, the ways of learning a skill that disturb the model least. SFT can land arbitrarily far away. In their words, among all policies that solve a task, RL prefers the one closest to who you already were. This is a live research finding, not yet settled science, but it gave labs a measurable target: forgetting is a distribution-shift budget, and you can spend it or audit it.

Stop early. Every mitigation above trades against plasticity. The cheapest knob remains validation curves on old tasks: if general-benchmark scores start sliding during fine-tuning, the run is already overwriting the model, and early stopping beats optimism.

What remains unsolved

Nobody has shipped a production LLM that learns continuously the way a human does, adding skills for months without a retraining event. Frontier labs still train in discrete stages, and each new post-training run is checked against the old model's behavior precisely because regression on unrelated capabilities, sometimes called the alignment tax when safety behavior erodes, is the expected failure mode. Model merging and adapter routing push against the same wall from different directions: they distribute forgetting across components rather than eliminating it in one weight matrix.

For the working practitioner the takeaway is unglamorous. Catastrophic forgetting is not a bug that better optimizers will remove. It is a property of storing all knowledge in shared parameters, demonstrated on paired-associate lists in 1989 and on code-and-math fine-tuning runs in 2024, and the craft of post-training is largely the craft of deciding which old capabilities you are willing to pay for a new one.

Sources

Frequently asked questions

Why do neural networks forget old skills when learning new ones?

Neural networks store all knowledge in one set of shared weights without separate compartments for different skills. When gradient descent updates weights to reduce loss on new data, it may move parameters that were critical for the old task, causing the model to drift toward the new data and erase the old skill.

How does LoRA help prevent catastrophic forgetting compared to full fine-tuning?

A 2024 study by Biderman et al. found that full fine-tuning destroys more off-domain performance than LoRA. LoRA acts as regularization by construction by freezing base weights bit-for-bit and only training low-rank adapters, which helps preserve the base model's original capabilities while learning new tasks.

What is the most effective method to mitigate catastrophic forgetting?

Replaying old data is one of the few reliable mitigations. Research shows that mixing 5% to 30% of source-language data during target-language pretraining effectively prevents forgetting. If original data is unavailable, self-synthesized rehearsal using data generated by the old model is an alternative approach.

Can reinforcement learning reduce forgetting compared to supervised fine-tuning?

Yes, a 2025 paper titled 'RL's Razor' reported that reinforcement learning (RL) preserves old capabilities significantly better than supervised fine-tuning (SFT). RL is implicitly biased toward KL-minimal solutions, preferring ways of learning a skill that disturb the model least compared to SFT.

Who coined the term 'catastrophic forgetting'?

Robert French gave the phenomenon its standard name, 'catastrophic forgetting,' in a 1999 Trends in Cognitive Sciences review. He framed it as the central obstacle to connectionist models of human-like memory, building on earlier work by McCloskey and Cohen who described it as catastrophic interference in 1989.

AILLMEducation