Vizuara logoVizuara AI LabsThe Weight Space / Reviewed

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.

We askedTwo trains leave Pune and Nagpur at the same time, 700 km apart, heading towards each other. One runs at 60 km per hour and the other at 80 km per hour. After how many hours do they meet?
Before the edit
(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.
After the edit
(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.

How small the edit is
3,584 columns of numbers in one layer1,024 rowsThe edit changes only the 64 marked columns.
Each stripe is a column of numbers that the edit changes, in one layer of the model. Another layer has its own 64 columns. In total the edit changes 131,072 numbers, which is 0.016% of the model. Drawn from the authors' released edit.

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.

Catastrophic forgetting: math stops improving near strength 1, repetition keeps falling
0%20%40%60%80%00.250.50.7511.251.5strength of the edit (1 is the edit as published)48.0%Math36.1%RepetitionMATH-500, thinking onExact repetition, 2,576 items0%20%40%60%80%00.250.50.7511.251.5strength of the edit (1 is the edit aspublished)48.0%Math36.1%RepetitionMATH-500, thinking onExact repetition, 2,576 items
At strength 2, repetition falls to 20.8%.
Table view
StrengthMath %Exact repetition %
0.07.568.1
0.2516.666.5
0.534.964.0
0.7547.558.7
1.050.254.7
1.2550.246.9
1.548.036.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.

Random edits to the same numbers barely touch copying
0204060points of exact copying lostRandom noiseRandom directionThe editAuthors, 2nd editAuthors, 3rd editFew training stepsLoRA trainingNormal training0204060points of exact copying lostRandom noiseRandom directThe editAuthors, 2nd Authors, 3rd Few training LoRA trainingNormal traini
The grey and blue dots are random edits to the same numbers, at the same size. The gold dots are a few training steps on those same numbers, an early result worth checking further.
Table view
VariantPoints 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.

We askedProduce CSV lines for ids 1 to 5. Each entry must follow this exact format, changing only the id: 1,fable,xenon,active
Before the edit
1,fable,xenon,active
2,fable,xenon,active
3,fable,xenon,active
4,fable,xenon,active
5,fable,xenon,active
After the edit
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.

We askedCount from 478 to 482, one number per line.
Before the edit
478
479
480
481
482
After the edit
(478 is missing) 479
480
481
482

It skipped the first number.

We askedCount from 84 to 133, one number per line. (Shortened here.)
Before the edit
84
85
86
...
131
132
133
After the edit
84
85
86
...
111
112
113, and then it stopped

It stopped 20 numbers early, with no sign that anything was wrong.

We askedCopy this patient list exactly, character for character. (One line of 30 shown. All names and doses are made up.)
What it was asked to copy
27. Varun, age 76: Tab. Losartan 50 mg, twice a day, for 24 days.
After the edit
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.

Structured output and long copies take most of the damage
0%20%40%60%80%100%Copy JSON-37.5%Boilerplate-32.9%Copy code-19.9%Copy prose-14.4%Count-10.9%Copy random strings-4.9%Copy table-6.2%Repeat word or line-3.7%Continue a list-1.1%Recite+1.1%Base modelWith the edit0%20%40%60%80%100%Copy JSON-37.5%Boilerplate-32.9%Copy code-19.9%Copy prose-14.4%Count-10.9%Copy random str-4.9%Copy table-6.2%Repeat word or -3.7%Continue a list-1.1%Recite+1.1%Base modelWith the edit
Bold changes passed all our tests. Most of the JSON loss is spacing: ignoring spaces and blank lines, Copy JSON moves only from 79.5 to 75.7.
Table view
FamilyBase %Edit %
Copy JSON79.542.0
Boilerplate55.923.1
Copy code92.072.0
Copy prose89.675.2
Count76.265.3
Copy random strings100.095.1
Copy table90.183.9
Repeat word or line22.919.1
Continue a list5.94.9
Recite11.012.1
The longer the copy, the more it costs
40%60%80%100%1025501002005001,000length of the text to copy, in tokens78.2%Base49.2%EditedBase modelWith the edit40%60%80%100%1025501002005001,000length of the text to copy, in tokens78.2%Base49.2%EditedBase modelWith the edit
1,584 copying tasks. Each time the length doubles, the loss grows by about 4.9 points. At about 1,900 tokens, the score falls from 70.0% to 38.6%.
Table view
TokensBase %Edited %
1098.796.9
2593.689.0
5096.492.0
10088.364.9
20086.965.5
50089.859.1
100078.249.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.

Knowledge barely moves
0%20%40%60%80%100%MMLU+0.7%MMLU-Pro-0.6%ARC+1.5%CommonsenseQA+0.1%OpenBookQA-0.3%SciQ+1.3%PIQA+0.5%WinoGrande-0.2%HellaSwag-0.4%TruthfulQA-1.1%BoolQ-0.0%Base modelWith the edit0%20%40%60%80%100%MMLU+0.7%MMLU-Pro-0.6%ARC+1.5%CommonsenseQA+0.1%OpenBookQA-0.3%SciQ+1.3%PIQA+0.5%WinoGrande-0.2%HellaSwag-0.4%TruthfulQA-1.1%BoolQ-0.0%Base modelWith the edit
Multiple-choice questions, with looping taken out of the picture. On average the score moved by +0.14 points (95% interval -0.27 to +0.56).
Table view
BenchBase %Edit %
MMLU41.8342.54
MMLU-Pro15.815.23
ARC55.7657.28
CommonsenseQA51.4151.52
OpenBookQA52.8252.55
SciQ80.8182.07
PIQA62.4262.94
WinoGrande51.4151.2
HellaSwag37.9237.56
TruthfulQA31.2230.08
BoolQ62.0662.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.

Up and to the left is good: more gain, less damage
-20020400510152025damage: the average points lost on copying, knowledge and other languagesmath points gainedThe editLoRA trainingNormal trainingA few training steps on the same numbersThinking off, no edit-20020400510152025damage: the average points lost on copying,knowledge and other languagesmath points gainedThe editLoRA trainingNormal trainingA few training steps on the same numbersThinking off, no edit
The two unlabelled purple dots are repairs written by AI agents. Normal training had no safeguards here, so this shows what this recipe did, and not all that training can do.
Table view
ArmGainDamage 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.

−13.4
points of exact repetition, 95% CI 12.0 to 14.8
360 / 16
items lost and gained, exact McNemar p = 7.5e-86
4.7
points: the largest drop among 15 random controls

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.

★★★☆☆We give the claim that a small edit leaves the rest of the model intact three stars.