Skip to content
The Daily Triptych062 / 365
Capability decay during fine-tuning

As fine-tuning steps progress on a single narrow task, that task's performance improves while unrelated general capabilities decline. The rate of forgetting varies by how much the tasks share weights.

II · THE IDEA · ARTIFICIAL INTELLIGENCE

Catastrophic Forgetting

Training and alignment · 2017 onwards · Narrow fine-tuning corpus

▶ Listen · narrated

The model worked before you fine-tuned it. Now it excels at the new task but fails at things it handled easily yesterday. You have just met catastrophic forgetting.

At a glance

What it is
Loss of previously learned capability when a model is trained further on a narrow distribution
Where it appears
Fine-tuning, continual learning, domain adaptation
Why it happens
Weights that served many tasks are overwritten to serve the new one
Typical symptom
New task improves, broad capability decays, often unnoticed until deployed

Imagine you have learned to cook fifty different dishes. Now someone asks you to practise only one of them, every day, for a month, and to get really good at it. You do, and that dish becomes excellent. But when you try to cook the others again, you have forgotten steps, proportions, techniques. Your hands remember only the one you practised. A neural network has the same problem. It stores everything it knows in a single set of adjustable numbers called weights, and those numbers are shared across all its skills. When you train it further on just one narrow task, you are adjusting those shared numbers to fit that task. If the training data does not include the other tasks, the network has no reason to preserve them, so it overwrites whatever made them work. The new task improves and the old ones degrade. This is catastrophic forgetting, and it is not a bug. It is what gradient descent does when the data changes.

Look closer

  1. The forgetting is not uniform

    Tasks similar to the fine-tuning data survive better than distant ones. If you fine-tune on medical question-answering, the model may still handle biology essays reasonably but lose its ability to write working code or parse legal clauses. The pattern suggests that weights are shared in clusters by domain or syntax, so a narrow update can wipe out an entire cluster while leaving others mostly intact. Empirical work by Luo et al. found that general knowledge and reasoning degrade faster than stylistic or formatting skills, which implies the weight geometry is not random.

  2. Small learning rates do not prevent it

    Slowing the update helps, but only delays the problem. If the fine-tuning data is narrow and the training runs long enough, the model will eventually overfit to the new distribution and forget the old one, even with a conservative learning rate. The issue is not the speed of change but the direction: the gradient points away from the old tasks because they are absent from the loss. You are teaching the model that only the new task matters, and it believes you.

  3. It can happen during pre-training too

    Catastrophic forgetting is most visible in fine-tuning because the distribution shift is sharp, but the same mechanism operates whenever the data changes. If a pre-training run shifts from web text to code halfway through, early linguistic capabilities can degrade. The term catastrophic forgetting was coined for continual learning in smaller networks, but large language models exhibit the same behaviour at scale, and the consequences are more expensive because the training runs cost more and the deployed failures are more public.

The story

A neural network stores what it has learned in its weights, and those weights are shared across everything the network does. There is no separate filing cabinet for French translation, another for sentiment analysis, another for code completion. Every capability is a pattern distributed across the same parameters. When you fine-tune on a narrow task, you are adjusting those shared weights to fit the new data, and if the new data does not include examples of the old tasks, the gradient will cheerfully overwrite whatever made them work.

The term catastrophic forgetting was introduced by Michael McCloskey and Neal Cohen in 1989, studying small networks learning simple sequences. The phenomenon was dramatic: teach a network to recognise digits zero through four, then train it on five through nine, and it would forget the first set almost completely. The forgetting was not gradual wear but abrupt collapse, hence catastrophic. For decades this was considered a hard problem in continual learning, the subfield concerned with training a model on a sequence of tasks without forgetting earlier ones.

Large language models do not escape this. They are better at retaining broad capability than the small networks of the 1980s, partly because their sheer size gives them more parameters to work with and partly because pre-training on diverse data builds in some redundancy. But fine-tune a large model on a few thousand examples of a single task and the old problem reappears. The model's performance on the new task climbs, and if you are only measuring that, everything looks good. Then someone tries to use it for something else and discovers it has regressed.

The mechanism is straightforward. During fine-tuning, the model sees only the new task. The loss function measures only error on that task. The gradient therefore points only toward better performance on that task, and it adjusts weights accordingly. If a weight contributed to translating German but is also useful for the new task in a different configuration, the gradient will move it. The model has no memory of what the weight used to do, no gradient signal pulling it back, because German translation is not in the fine-tuning data. The weight moves, and the old capability weakens. Repeat this across thousands of parameters and the cumulative damage becomes catastrophic.

Luo et al. conducted a systematic study in 2023, fine-tuning large language models on sequences of tasks and measuring how much of each task survived as new ones were added. They found that general knowledge and reasoning capabilities degraded more quickly than surface-level skills like maintaining a particular format or tone. This suggests that the weights encoding deep semantic understanding are more vulnerable, perhaps because they are more densely reused across tasks. The study also found that forgetting accelerates: the more tasks you chain together, the faster each one erodes the previous ones, which implies the weight space is being stretched in incompatible directions.

Several mitigation strategies exist, none perfect. You can mix old data into the fine-tuning set, which gives the gradient a signal to preserve old capabilities, but this requires keeping representative samples and increases training cost. You can use techniques like Elastic Weight Consolidation, proposed by Kirkpatrick et al. in 2017, which identifies weights that were important for old tasks and penalises large changes to them. This slows forgetting but does not eliminate it, and it adds complexity to the training loop. You can fine-tune only some layers, leaving others frozen, which limits damage but also limits how much the model can adapt. Or you can accept the trade-off and fine-tune a separate copy for each narrow use case, which avoids forgetting but multiplies deployment cost.

The most common mistake is not measuring for it. Teams fine-tune on their specific task, evaluate on that task, see good numbers, and ship. The forgetting is discovered later, in production, when users report that the model has become worse at things it used to handle. By then the old checkpoint may be gone, the training data may have changed, and the fix is expensive. Catastrophic forgetting is not a subtle research problem. It is the most common self-inflicted wound in applied work with language models.

Why it mattered then

When Kirkpatrick and colleagues published their work on Elastic Weight Consolidation in 2017, catastrophic forgetting was already a well-known problem in continual learning, but it was mostly studied in small networks on toy tasks. Their contribution was to show that the same phenomenon appeared in deeper networks on more realistic problems, and to propose a practical mitigation. The timing mattered because neural networks were beginning to be deployed in settings where they would need to learn new tasks after initial training, and the forgetting problem was becoming a barrier to that. The paper demonstrated that you could measure which weights mattered most for previous tasks and protect them during subsequent training, which made continual learning more feasible. It did not solve the problem completely, but it made the trade-offs explicit and gave practitioners a tool they could actually use.

Why it matters now

Catastrophic forgetting is now a daily concern in production systems. Every time a company fine-tunes a foundation model on proprietary data, they risk degrading the broad capability that made the foundation model valuable in the first place. The risk is highest when the fine-tuning corpus is narrow—a few thousand customer service transcripts, a specific legal domain, a single product's documentation. The model learns the new task but forgets how to handle edge cases, unusual phrasings, or tasks outside the fine-tuning distribution. This is why many practitioners now maintain evaluation suites that test general capability alongside task-specific performance, and why some organisations fine-tune separate models for separate tasks rather than trying to make one model do everything. The problem also appears in continual pre-training, where a model is trained further on new data to update its knowledge. If the new data is not diverse enough, the update can degrade existing capability, which is why some research groups now mix a portion of the original pre-training data into continual training runs. Catastrophic forgetting is not an exotic failure mode. It is the default behaviour of gradient descent on a narrow distribution, and avoiding it requires deliberate design.

The surprising detail

Elastic Weight Consolidation works by estimating the Fisher information matrix, which measures how sensitive the loss is to each parameter. Weights with high Fisher information were important for the old task, so the technique adds a penalty term that resists changing them during new training. The surprising part is that this penalty is computed from the old task's data but applied during training on the new task, which means you are simultaneously optimising two objectives: do well on the new task, but do not move weights that mattered for the old one. This is not a perfect solution—if the two tasks genuinely require incompatible weight configurations, no penalty will reconcile them—but it makes the trade-off explicit and adjustable. The method has been adapted for large language models, though computing the Fisher information for billions of parameters is expensive enough that approximations are usually necessary.

Remember this

Shared weights mean shared risk. Fine-tune on a narrow task and the model forgets what the task omits.

Test yourself

You fine-tune a model on 5,000 examples of a single task, achieve excellent performance on that task, and deploy it. Users report that it now fails at things it handled well before fine-tuning. You have three options: mix the original pre-training data into fine-tuning, use Elastic Weight Consolidation, or fine-tune only the final layers. Explain one concrete trade-off for each approach.

Go deeper

Image: Original diagram, The Daily Triptych. Licence: Original work. Source.

← Back to day 62