Catastrophic forgetting

Catastrophic forgetting is the tendency of a neural network to abruptly lose skills or knowledge it had learned when it is trained on new data or a new task.

People who learn French do not forget English. Neural networks often do something close to that. Train a network on one task until it is good at it, then train it only on a second task, and its performance on the first can collapse. The effect is called catastrophic forgetting, or catastrophic interference, and it is the central obstacle to models that keep learning over time.

The problem was named in 1989 by Michael McCloskey and Neal Cohen. In one experiment they taught a network single-digit addition facts involving one, such as 1 + 1 through 9 + 1, then trained it on facts involving two. After even one round of training on the twos, it could no longer reliably answer the ones problems. The cause lies in how networks store knowledge: every skill is spread across many shared weights, so adjusting those weights for a new task overwrites what supported the old one. In a second experiment, when two lists of associations were trained together rather than one after the other, the network learned both.

Researchers have tried many fixes. One well-known approach, elastic weight consolidation, published in 2016 by James Kirkpatrick and colleagues, slows learning on the weights that matter most for earlier tasks; the authors used it to learn several Atari 2600 games in sequence. Other approaches replay a sample of old data alongside the new, or add fresh parameters for each new task while leaving old ones untouched.

The issue matters for today's language models when they are fine-tuned. A 2023 study by Yun Luo and colleagues found forgetting of domain knowledge, reasoning and reading comprehension in models from 1 billion to 7 billion parameters during continual instruction tuning, and in that range the larger models forgot more. The same study found that general instruction tuning before the specialised training reduced the forgetting.

Common questions

What is catastrophic forgetting?

It is what happens when a neural network trained on a new task loses much of its ability on tasks it learned earlier. The new training changes shared weights that the old skills depended on, so the old knowledge is overwritten rather than kept.

Do large language models suffer from catastrophic forgetting?

Yes, when they are fine-tuned on narrow data. Studies have found that further training can erode general knowledge and reasoning that the model had after pre-training. Developers reduce this by mixing in general data, training for less time, or using methods that keep the original weights frozen.

How do you prevent catastrophic forgetting?

Common methods include replaying some old training data alongside the new, penalising changes to weights that were important for earlier tasks, and adding separate parameters for new tasks. None removes the problem entirely; each trades memory, compute or flexibility against forgetting.

Is catastrophic forgetting the same as a knowledge cutoff?

No. A knowledge cutoff means a model never saw information from after a certain date. Catastrophic forgetting means a model loses something it had already learned because of later training.

Finding more

Search for "catastrophic forgetting", "catastrophic interference neural networks", "elastic weight consolidation" or "forgetting in LLM fine-tuning" to follow the research. Papers on arXiv, survey articles on continual learning and encyclopedia entries that cite the original 1989 work are reliable. Results depend heavily on the model, data and training recipe, so treat any single study's numbers as specific to its set-up.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.