Catastrophic Forgetting
A tiny edit made an AI model far better at math. Here is what it forgot, and what it kept.
The problem the edit fixes
Qwen is a small open AI model. When it thinks before answering, it often gets stuck repeating itself until it runs out of space. Here is a real example, before and after.
(32,768 tokens, and no answer.)
Wait, if they start at different locations, they are moving towards each other.
* Wait, if they start at different locations, they are moving in opposite directions.
The word "Wait" appears 1,537 times. It ran out of space.(2,103 tokens) They will meet after 5 hours.
Across 8 simple questions asked twice each, Qwen was right 2 times of 16 before the edit and 10 of 16 after.
On a standard math test, Qwen scores 7.45%. On 2 November, researchers at MIT asked a stronger AI to fix this by changing the numbers inside Qwen directly, with no training. It changed just 0.016% of them, and the score jumped to 50.25%. We ran it ourselves and got the same result.
In plain words, the edit finds the part of the model that pushes it to repeat itself, and it turns that part down.
What is catastrophic forgetting?
When you change a neural network so it learns something new, it often loses something old. This is called catastrophic forgetting, and it is the main risk of changing a model that already works. The authors hoped their edit would avoid it, since it touches so few numbers.
That suggests a simple test. If you turn down the part of a model that repeats things, does it get worse when you ask it to repeat something on purpose? This matters, because copying is a big part of what these models do: moving code, returning data, quoting a contract. In those jobs, close is not good enough.
The result
We built 2,576 copying tasks and fixed the rules before scoring anything. Then we applied the edit at different strengths, where 1 is the edit as published.
Table view
| Strength | Math % | Exact repetition % |
|---|---|---|
| 0.0 | 7.5 | 68.1 |
| 0.25 | 16.6 | 66.5 |
| 0.5 | 34.9 | 64.0 |
| 0.75 | 47.5 | 58.7 |
| 1.0 | 50.2 | 54.7 |
| 1.25 | 50.2 | 46.9 |
| 1.5 | 48.0 | 36.1 |
Math improves quickly and then stops improving, near strength 1. Copying keeps falling. At strength 1, exact copying falls from 68.1% to 54.7%. Of the tasks the model used to get right, it now fails about one in five.
Could any change do this? We tried 15 random edits to the same numbers, at the same size. The worst of them lost 4.7 points. The real edit lost 13.4.
Table view
| Variant | Points lost |
|---|---|
| Random noise | -0.3 |
| Random noise | +0.2 |
| Random noise | +0.5 |
| Random noise | +0.2 |
| Random noise | +0.1 |
| Random noise | +0.9 |
| Random noise | -0.4 |
| Random noise | +0.4 |
| Random noise | -0.7 |
| Random noise | +0.2 |
| Random direction | +3.1 |
| Random direction | +4.7 |
| Random direction | +3.0 |
| Random direction | -0.4 |
| Random direction | +1.5 |
| The edit | +13.4 |
| Authors, 2nd edit | +16.1 |
| Authors, 3rd edit | +37.2 |
| Few training steps | -0.2 |
| Few training steps | +0.0 |
| Few training steps | +0.6 |
| LoRA training | +35.0 |
| LoRA training | +12.3 |
| LoRA training | +38.0 |
| Normal training | +68.0 |
| Normal training | +66.0 |
| Normal training | +41.6 |
| Normal training | +67.7 |
| Normal training | +68.1 |
What the forgetting looks like
These are real answers from the model. We picked them because they are easy to read, so they are not typical.
1,fable,xenon,active1,fable,xenon,active 2,fable,xenon,active 3,fable,xenon,active 4,fable,xenon,active 5,fable,xenon,active
1,fable,xenon,active 2,cat,argon,active 3,dog,neon,active 4,bird,hydrogen,active 5,snake,ion,active
It was told to change only the number. It started inventing other values.
478 479 480 481 482
(478 is missing) 479 480 481 482
It skipped the first number.
84 85 86 ... 131 132 133
84 85 86 ... 111 112 113, and then it stopped
It stopped 20 numbers early, with no sign that anything was wrong.
27. Varun, age 76: Tab. Losartan 50 mg, twice a day, for 24 days.
27. Varun, age 76: Tab. Losartan 50 mg, twice daily, for 24 days.
The meaning survived here, but it was told to copy exactly and it reworded a medicine instruction.
To be fair, we also gave the model 25 ordinary documents of our own, such as prescriptions, contracts, code and bank records. Before the edit it copied 22 exactly, and after the edit 21. On most everyday copying the edited model is fine. The damage shows up in structured data and long copies.
Table view
| Family | Base % | Edit % |
|---|---|---|
| Copy JSON | 79.5 | 42.0 |
| Boilerplate | 55.9 | 23.1 |
| Copy code | 92.0 | 72.0 |
| Copy prose | 89.6 | 75.2 |
| Count | 76.2 | 65.3 |
| Copy random strings | 100.0 | 95.1 |
| Copy table | 90.1 | 83.9 |
| Repeat word or line | 22.9 | 19.1 |
| Continue a list | 5.9 | 4.9 |
| Recite | 11.0 | 12.1 |
Table view
| Tokens | Base % | Edited % |
|---|---|---|
| 10 | 98.7 | 96.9 |
| 25 | 93.6 | 89.0 |
| 50 | 96.4 | 92.0 |
| 100 | 88.3 | 64.9 |
| 200 | 86.9 | 65.5 |
| 500 | 89.8 | 59.1 |
| 1000 | 78.2 | 49.2 |
What it did not forget
This matters just as much. Knowledge held. On 74,097 multiple-choice questions, the score barely moved. Answers across 20 languages barely moved. The model refused harmful requests as often as before.
Table view
| Bench | Base % | Edit % |
|---|---|---|
| MMLU | 41.83 | 42.54 |
| MMLU-Pro | 15.8 | 15.23 |
| ARC | 55.76 | 57.28 |
| CommonsenseQA | 51.41 | 51.52 |
| OpenBookQA | 52.82 | 52.55 |
| SciQ | 80.81 | 82.07 |
| PIQA | 62.42 | 62.94 |
| WinoGrande | 51.41 | 51.2 |
| HellaSwag | 37.92 | 37.56 |
| TruthfulQA | 31.22 | 30.08 |
| BoolQ | 62.06 | 62.02 |
The usual way of teaching a model did far worse. We trained it on the same kind of math problems. It never got near the edit's gain, it lost about 55 points of copying, and it almost stopped refusing harmful requests. A careful engineer would do better than this simple recipe, but the gap is large.
Table view
| Arm | Gain | Damage D |
|---|---|---|
| The edit | +42.8 | +4.32 |
| LoRA training | +5.3 | +16.15 |
| Normal training | -0.5 | +23.61 |
| A few training steps on the same numbers | +32.2 | +0.47 |
| Thinking off, no edit | +37.1 | +0.00 |
| s2e1 repair | +40.8 | +3.38 |
| s2e2 repair | +42.3 | +2.71 |
So the authors are right about the comparison. The edit does forget something, and it is close to what it was built to remove. That is a much smaller price than catastrophic forgetting usually means. If your model writes reports, you may never notice. If it writes JSON or moves code all day, test first.
Two practical tips
Turn it down a little. At three quarters of the published strength, you keep 40.0 of the 42.8 points of math gain, and you lose 9.4 points of copying where the full edit loses 13.4. We also asked five AI agents to repair the edit, and two succeeded. This simple change, with no agent at all, works about as well.
Try the off switch. Switching thinking off, with no edit at all, gains 37.1 of the edit's 42.8 points on this math test. The edit is still better, by 5.7 points. But the off switch costs nothing.
For researchers: the mathematics, full numbers and caveats
The edit as a matrix
The change is rank one: \(W' = W - \alpha\, a\, v\, b^{T}\), where \(v\) is a direction in 1,024 dimensions, \(b\) has 64 nonzero entries, and \(\alpha\) is the dose used in the charts.
Asked to repeat a paragraph, a language model does something so dull that nobody benchmarks it. It is also most of what we use these models for: quoting a contract, moving a function to another file, returning the same JSON with one field changed.
The released edit, p50c, works by subtracting a repetition direction from 64 columns of two MLP layers in Qwen3.5-0.8B, 131,072 weights in all. It stops the model looping in its reasoning, and math goes from 7.45% to 50.25%. The authors suggest that such an edit "can leave the rest of the model intact" and avoid the catastrophic forgetting of fine-tuning. That is a reasonable hope. It also suggests an obvious test nobody had run. If you remove a direction used for repeating, does the model get worse at repeating when you ask it to?
It does. We built 2,576 sealed repetition tasks in 11 families and fixed the test before scoring anything.
The drop grows smoothly with dose, Spearman 1.00 across doses. Look at the shape near dose 1, because it may be the most useful thing on this page. Math has mostly arrived by dose 0.75, at a gain of 40.0 points against 42.8 at dose 1, and at that dose repetition has lost 9.4 points against 13.4. These dose figures are descriptive and rest on 2 samples per problem, but anyone shipping this edit should try a smaller dose first.
The controls are what make this a finding. We applied random edits at the same 64 columns with the same norm, and rotated copies of the edit that keep its exact spectrum and change only where it points. None came close.
What kind of damage
A careful reader should weigh a few things against that headline, and we would rather say them than have them said to us. The failures are mostly small. Among the 360 lost items the median normalised edit distance is 1.5%. 117 of the 360 differ from the gold only in whitespace, mostly blank lines in JSON. With whitespace collapsed, an exploratory measure, the drop is 9.2 points, and it still exceeds every control. Only 1 of the 360 ran to the token cap, so the edited model does not loop instead of copying. It slips, or stops early, or runs on. Exact match is what code and structured output ask for, so it stays our primary measure, but the claim is that exact copying is damaged. The model can still copy.
What did not forget
Almost everything else held. We tested 74,097 multiple-choice rows with teacher forcing, which takes looping and sampling out of the picture. Macro accuracy over 11 benchmarks moved by +0.14 points (95% CI -0.27 to +0.56). We predicted some subjects would be hurt, and of 57 MMLU subjects none was detectably hurt, although the median subject would have needed a 13-point drop to clear Holm correction, so that is weak evidence subject by subject. We predicted non-English languages would fall further than English, and they did not: on 1,530 questions in 20 languages the contrast is +0.19 points (95% CI -0.86 to +1.21). HarmBench refusal went from 41.0% to 41.5%. Random edits at the same columns moved knowledge as much or more.
On this the authors are right, and comparison with training makes the point sharply. Fine-tuning and LoRA on 9,251 practice problems never got near the edit's gain: from step 5 upward at fixed learning rates, the best we saw on the practice ladder was 14.8 points for LoRA and 6.6 for fine-tuning, against 44.5. Both had stopped looping by the first rung, having learned the short form of the reference solutions, and they forgot more along the way. There is an exception: one LoRA seed at step 10 lost 12.3 points of repetition, less than the edit, at a gain of +7.9. Under fine-tuning, HarmBench refusal fell from 41% to below 0.5%. Those arms had no retain set and one training format, so a practitioner would do better. We report what this recipe did.
Two things we did not expect
Smallness alone does not protect a model. An exploratory arm ran 5 to 10 gradient steps restricted to the same 131,072 weights the edit changes. It gained about 32 points on MATH-500 and lost about 0.2 points of repetition, against the edit's 13.4, with composite damage 0.47 against 4.32. Its delta barely overlaps the repetition direction, so there is a second way out of looping at these columns that does not pay in copying. Size is not ruled out as a protection, since only these two confined arms got past +30. The arm has real limits: the same weights lose about 49 points of repetition by step 2,560, it trails the edit on IFEval by 16.5 points and on MMLU-Pro by 4.4, and the authors' 50-pass search chose its location for us. We fell short of the matching window and declared it exploratory, so treat it as the first thing to check, not as a result.
And on MATH-500 most of the gain is available for free. Thinking off, with no edit at all, gains 37.1 points against the edit's 42.8. The edit is still better, by 5.7 points (95% CI 3.2 to 8.1), and on IFEval and MMLU-Pro by more: on MMLU-Pro thinking off gains only +5.2 of the edit's +18.0. On code, HumanEval and MBPP, where looping is not the problem, it does nothing measurable.
Can it be repaired?
We gave five fresh agents the edit and asked them to keep the gain and restore repetition, on dev items only. Two of the five met both preregistered criteria. The best zeroed 12 columns of layer 15, kept +42.3 points of gain and brought repetition from 54.7% to 60.1%. No patch recovered it to the base model's 68.1%. One agent ended early and froze nothing. Another measured that the edited neurons push about as hard during copying as during looping, and froze the edit unchanged, which is an honest answer. A fifth patch ran out of time before its knowledge score. Our scripted baselines were cut off by the night's spending limit.
The recheck added a humbling control. Scaling the edit to dose 0.75 with no agent and no selection also meets both criteria, and it beats one of the two passing patches on damage. Only the 12-column patch beats it.
So the edit does forget something, and that thing is close to what it was built to suppress. It is a narrower cost than catastrophic forgetting usually means, and much smaller than what training paid. If your model writes JSON for a living, it is not a small cost at all.
