What is catastrophic forgetting in LLM fine-tuning?
For example, an AI team fine-tunes an open model with 8 billion weights (Llama 3 8B) on school maths. Its maths score climbs from 60% to 83%. Then the same model scores lower on the general tests it used to pass: knowledge, common sense, truthfulness, reasoning, following instructions and code. That loss is catastrophic forgetting: training for one new task overwrites the weights, the learned numbers inside the model, that held the old skills. In a NeurIPS 2026 study from New York University and the University of Calgary, full fine-tuning, which retrains every weight, left Llama models 1.3 to 3.1 points below their starting scores on six such tests, and LoRA, the popular shortcut that trains a small add-on patch, lost up to 5.4.
Teach the model maths. Does it forget everything else?
For a team that fine-tunes an open model, such as Llama or Qwen, for its own tasks.
The model: Llama 3, 8 billion weights
Zoom: 8 weights inside one square
Each square holds about 55 million weights: the numbers the model learned.
New skill: school maths
60.3% before training
Old skills it already had
- AaKnowledge
- ?!Common sense
- ✓Truthfulness
- ◐Reasoning
- ☰Instructions
- </>Code
Start average of six tests
What you store for this one skill
Nothing yet
Press a way to teach the model.
- Retrain every weight: the new skill goes in, old skills slip out. That is catastrophic forgetting.
- Bolt on a patch: a small file, but old skills still slip.
- Switch a few off: the same new skill, and old skills stay, because every other weight keeps its value.
Full fine-tuning
LoRA
Deletion Tuning
Scores and sizes are the paper's, for Llama 3 8B on GSM8K school maths (LoRA at rank 1). Old skills: the average of six tests across its 1B to 8B Llama runs; LoRA's figure is shared with random sparse tuning. Deletion Tuning switched off 0.046% of weights. Which badges fade, the dots and the zoomed numbers are drawn by us.
The surprise: switching off fewer than 1 weight in 2,000, and changing nothing else, teaches the skill as well as retraining all 8 billion — 83.6% on the maths test against 83.2% for full fine-tuning — while old-skill scores stay within one point of the start. The method is called Deletion Tuning.
Join free to read the rest
Join free to score your team, see what to check before you bet on it, get the first moves step by step, and learn how you'll know it's working.
Is it for you?
Is Deletion Tuning a fit for your team?
Whoever runs your model training answers for the team
1Do you fine-tune open-weight models yourself?
You train Llama or Qwen on your own data, not only call a hosted model.
Deletion Tuning needs the model's weights, so it applies only where you hold them.
2Do you keep several task versions of one model?
One base model tuned separately for support, billing and code review.
Each version becomes a mask of a few MB over one shared base instead of a full copy.
3Has a fine-tune ever hurt something the model already did well?
After training on contracts, the assistant followed formatting instructions less well.
That is the forgetting this method was measured to avoid.
4Are your models 7B or larger?
Llama 3 8B, Qwen2.5 14B or Qwen3 30B.
That is where it matched full fine-tuning; at 1B to 3B it reached 90% to 99% of it.
Our scoring, built from the settings the paper tested.
Before you bet on it
Where the evidence ends.
What is proven, and what is not yet
Matches full fine-tuning at 7B to 30B (reinforcement learning) and 3B to 7B (supervised, and distillation: learning from a teacher model's answers)
Tasks beyond maths, knowledge, reasoning, tool use and chemistry
Old skills within one point, Llama 1B to 8B
Forgetting under supervised training and distillation
Masks 600 to 4,700 times smaller than full copies
Learning tasks in sequence, or merging masks
One default setting across sizes
Released code for the LoRA comparison
Does Deletion Tuning work on small models?
Partly. Under reinforcement learning (training by rewarding answers a checker marks correct) it reached 90% to 99% of full fine-tuning at 0.5B to 3B (Llama 3.2 1B: 54.4% against 60.5% on school maths) and matched it from 7B up, including a 30B mixture-of-experts model (one that routes each word to a few specialist parts). Under supervised fine-tuning (training on example answers) it matched at 3B, but at 1B it trailed on the harder BBEH reasoning tests (5.7% against 8.4%).
Our take: worth a test for any team that keeps several tuned versions of one open model of 7B or more. Rerun a released mask first, then train one on the task where forgetting has hurt you; keep LoRA where training memory is the limit.
Your first moves
Rerun a released mask
The code is MIT-licensed and the trained masks are on Hugging Face, so the first test needs no training.
-
Install the authors' code
This is the environment for the maths runs. Like installing the exact toolkit a recipe was tested with.
Show the command
uv venv envs/grpo --python 3.10 && source envs/grpo/bin/activate uv pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu126 uv pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu12torch2.8cxx11abiTRUE-cp310-cp310-linux_x86_64.whl uv pip install vllm==0.11.0 uv pip install -r requirements_grpo.txt uv pip install -e "./verl[gpu,vllm,math]"
-
Download the Qwen2.5 7B mask and score it on the six maths tests
You should see: A mean close to the paper's 52.3% across the six maths tests
It checks the paper's number on your own hardware first.
Show the command
hf download Jacklu0831/deletion-tuning-masks --include "grpo/qwen2.5-7b-simplerl-zoo/*" --local-dir masks bash scripts/evaluate_grpo.sh qwen7b masks/grpo/qwen2.5-7b-simplerl-zoo outputs/eval/qwen7b
-
Turn the mask into an ordinary model
You should see: A model folder that loads in Transformers or vLLM
Your serving stack does not change.
Show the command
python src/apply_mask.py --base_model Qwen/Qwen2.5-7B --mask_dir masks/grpo/qwen2.5-7b-simplerl-zoo \ --output_dir outputs/masked/qwen7b
Train a mask and measure what it forgets
-
Train with the paper's settings on a supported model
Masks save under global_step_N/mask/. The repository covers only the paper's eight models and datasets; your own task needs its own data preparation and config, which the README does not describe.
Show the command
bash scripts/train_grpo.sh llama1b outputs/grpo/llama1b
-
Keep the default settings
Every setting in the paper's sweeps landed within 1.6 points of the best on Llama 3 8B and 3.2 on Qwen2.5 7B: spend the effort on your examples, not the knobs.
-
Measure forgetting on every saved mask
You should see: Old-skill scores within about a point of the base model
It reports forward KL and the six old-skill scores for the base model and each mask.
Show the command
bash scripts/retention.sh llama1b outputs/grpo/llama1b outputs/retention/llama1b
Costs: what the source gives
Free, MIT licence; masks on Hugging Face
H200 GPUs: one for models up to 3B, several above; supervised runs on L40S
More than LoRA, less than full fine-tuning: one trainable value per gate weight
1.0 MB (Llama 3.2 1B) to 47.1 MB (Qwen2.5 7B, chemistry), against 4,714 to 116,471 MB for full copies
Not given by the paper
How you'll know
What to watch
- The new task's score against your current full fine-tuning or LoRA run, on examples kept out of training.
- Old-skill scores from the retention script on every saved mask, not only the last one.
- The share of weights deleted: the paper's runs all stayed under 0.05% (ours: far more suggests a setting is off).
Under the hood
A large language model (LLM) is billions of numbers called weights, set during pre-training so the model predicts the next word well. Fine-tuning is a second round of training on your own task that adjusts those numbers until the model does that task better. Picture a mixing desk that already sounds good: fine-tuning moves its sliders to suit one new song.
How fine-tuning changes a model today
The path one new skill takes, from your examples to your app.
You collect examples of the new task
Maths questions with checked answers, support replies or tool calls show training what a good answer looks like.
Sources: [1]
Why does a model forget when you fine-tune it?
Training is free to move any weight that helps the new task, including ones old skills rely on. The paper tracks this drift with forward KL, how far the trained model's answers move from the original's, a known predictor of forgetting: 1.0 to 1.5 under full fine-tuning on Llama, at most 0.05 under Deletion Tuning.
The fix and its methods
The fix: switch weights off instead of rewriting them
One job from start to finish: training takes the base model and your examples, learns an on-off switch for each weight in one part of every layer, and saves the switches as a small mask file. A script then zeroes the switched-off weights and saves an ordinary model that loads in Transformers or vLLM.
What is Deletion Tuning?
Deletion Tuning is a fine-tuning method that teaches a pretrained LLM a new task only by setting a learned set of its weights to zero, leaving every other weight at its original value. It was introduced at NeurIPS 2026 by researchers at New York University and the University of Calgary, and works on the gate projection, the weights in each layer that decide how much of each signal passes through.
Training decides how many weights to delete. The starting share (1 in 2,048), the learning rate (training step size) and how fast switches firm up are settings; one default worked at every size tested.
Method 1: start from a sensible guess
Before training, each gate weight gets a Wanda score, its size times how active its input is on sample prompts from your task, and the lowest-scoring 1 in 2,048 start switched off. Like marking the weakest shoots before pruning.
Method 2: learn the switches, then make them firm
Each weight gets a soft switch between 0 and 1 that sharpens over training until it is plainly on or off. Wanda scores alone stayed within 2.4 points of the base model; trained switches gained up to 53.2, so the learning does the work, like a dimmer that ends the evening as a light switch.
Method 3: save one bit per weight, compressed
Almost every bit in the mask says keep, so standard compression (zstd, like a zip file) shrinks it to about 0.03 bits per weight: 8.4 MB for Llama 3 8B against 30,633 MB for a full fine-tuned copy. Switching tasks means loading another mask over the same base model, like a stencil laid over one printed page.
Deletion Tuning vs LoRA: which forgets less?
Deletion Tuning: on the paper's six old-skill tests it stayed within one point of the base Llama models, while LoRA and random sparse tuning fell up to 5.4 points and full fine-tuning 1.3 to 3.1. On the new task all three are level at 8B.
Maths score after training (base 60.3%)
Full fine-tuning83.2%
LoRA (rank 1)83.4%
Deletion Tuning83.6%
Old-skill tests against the start
Full fine-tuning1.3 to 3.1 lower
LoRA (rank 1)Up to 5.4 lower
Deletion TuningWithin 1 point
Saved file
Full fine-tuning30,633 MB
LoRA (rank 1)10.0 MB
Deletion Tuning8.4 MB
Sources
Check our working
- Lu, Yang, Lasby, Pote, Ioannou and Ren, The Surprising Effectiveness of Deleting Weights in LLM Post-Training (NeurIPS 2026), arXiv 2611.10866, CC BY 4.0
- Deletion Tuning code repository README, agentic-learning-ai-lab/deleting-weights (MIT licence)
Found this useful? Send it to someone who should read it.