Skip to content
mentoor

Topic 1 of 5 · 4 min read

Catastrophic forgetting of general skills

Goal: Detect forgetting from before-and-after eval results and choose a mitigation for the next run.

Fine-tuning moves every weight it touches toward your narrow data, so skills the base model had but your data never exercises can quietly get worse. This is catastrophic forgetting. The tuned model scores well on your task and fails on things nobody tested.

Check yourself · 1 of 3

After fine-tuning on legal summaries, a model summarises contracts better but now fails at simple arithmetic it handled before. What is this called?

Choose one answer

Why it matters

You tune an open-weight model on 8,000 support tickets. Ticket classification jumps. A month later users complain that the same assistant now writes broken JSON, ignores formatting rules, or answers simple arithmetic wrongly. The base model could do all three. Your eval only measured tickets, so the loss was invisible at release.

How to detect it

Run the same evals on the base model and the tuned model, and compare them side by side:

  1. Target eval: the task you tuned for. It should go up.
  2. Held-out general evals: instruction following, JSON output, a maths set, a coding set, a language or two you care about. They should stay flat.
  3. Your own regression set: 50 to 200 real prompts from the product that already worked before tuning.

Fix the prompts, the decoding settings and the grader across both runs. If two numbers differ, it must be because of the weights.

How to reduce it

  • Mix in general data. Blend instruction data that looks like the base model's original behaviour into your task data, so the gradient does not point only one way.
  • Lower the learning rate and train fewer epochs. Big steps over many passes overwrite more.
  • Use adapters. LoRA trains small added matrices and leaves the base weights frozen. The paper "LoRA Learns Less and Forgets Less" found it forgets less outside the target domain than full fine-tuning, at the price of learning less on the target.
  • Stop early on the general evals, not only on the target loss.

Before and after

Eval Base Tuned, full run Verdict
Ticket routing accuracy 61% 91% goal met
JSON validity 98% 74% forgetting
Maths word problems 58% 41% forgetting

Weak: ship because routing improved. Fixed: rerun with a lower learning rate, a LoRA adapter and 20% general instruction data, then require JSON validity within two points of the base.

What goes wrong

  • Evaluating only the target task, so nothing measures the loss.
  • Comparing a tuned model under one prompt template with a base model under another.
  • Treating a falling training loss as proof of health.

Examples

The routing model that forgot JSON

A team tunes a 7B open-weight model to route tickets. Routing accuracy rises from 61% to 91%. Their tool-calling prompts, which return JSON, now fail parsing in about one case in four. The cause is the tuning set: every example ended in a single label, never in JSON. Next run: add 20% mixed instruction data that includes JSON answers, and gate release on JSON validity.

One eval table, one decision

Base versus tuned: task +30 points, general instruction following -2, maths -17. Two small drops are noise, a 17-point drop is not. The maths set is the one to chase, so the next run lowers the learning rate and adds maths examples to the blend, then re-measures all three rows.

Key points

  • Fine-tuning on narrow data can degrade skills the base model had and your data never exercised.
  • Detect forgetting by running identical held-out general evals on the base and the tuned model.
  • Keep a regression set of real prompts that worked before tuning and re-run it after every run.
  • Mix general data into the training set, lower the learning rate and train for fewer epochs to reduce damage.
  • LoRA adapters leave base weights frozen and forget less than full fine-tuning, but they also learn less on the target.

Common mistakes

  • Reporting only the target-task score and treating a clean training loss as evidence of health.
  • Comparing base and tuned models with different prompt templates or decoding settings.
  • Fixing forgetting by training longer on the lost skill alone, which can erase something else.
  • Assuming LoRA removes forgetting entirely; it reduces it, and ranks and data still matter.

Check yourself · 2 of 3

You tuned a model and its target task score rose. Which check best shows whether it forgot general abilities?

Choose one answer

Check yourself · 3 of 3

Which change is most likely to reduce forgetting on the next tuning run?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic