RL’s Razor

Teach a model one new skill and it can forget the rest. This paper finds that reinforcement learning forgets less than supervised fine-tuning, because it drifts less, measured in KL, from the base model.

Pick a teacher, then press Train. All three teach the same toy model to answer correctly 99% of the time. Watch the yellow gauge: it counts how far each teacher dragged the model from where it began. Then we build, piece by piece, the experiments, the law, the oracle test and the proof.

You need a feel for probability (a number from 0 to 1 for how likely something is) and the idea that a model is tuned by examples. We build the rest from zero.

Based on “RL’s Razor: Why Online Reinforcement Learning Forgets Less” by Idan Shenfeld, Jyothish Pari and Pulkit Agrawal (Improbable AI Lab, MIT, 2025), arXiv 2509.04259. A reading for MAS.S62 Lecture 6, Model Evolution. Every idea is re-taught here in our own words and devices.

Teach the toy model

Illustrative toy, not the paper’s data. One question, six reply styles A to F, base probabilities 40, 25, 15, 10, 7 and 3 percent. Styles C, D and F are correct (28% together). The annotator writes F 80% of the time; the oracle labels copy the base model’s own ratios inside the correct set. Training stops at 99% correct. KL here is the shift from the base, in nats: the sum over replies of the new share times ln(new share / base share).

Chapter 0

A Model That Forgets

See why teaching a model a new skill can erase old ones, and why the way you teach it changes how much

Picture a model that already does many things well. It writes code, answers science questions, follows instructions and finishes your sentences. Your team now needs it to call one new tool, say a company search API, with the right arguments every time.

So you train it on that one job. A week later it calls the API perfectly. But a colleague notices something odd. The model now writes clumsier answers, misses questions it used to pass, and ignores half of a long instruction. The new skill came in, and old skills went out.

This has a name: catastrophic forgetting. It is the loss of earlier abilities when a model learns something new. Think of a student who crams for one exam and finds, a week later, that last term’s material has gone.

Why this matters more every year

Today most models are frozen after training. The authors, Idan Shenfeld, Jyothish Pari and Pulkit Agrawal of MIT’s Improbable AI Lab, want something else: a long-lived agent that keeps learning new skills from new data, for years. They call this continual learning. It only works if learning skill number ten does not erase skills one to nine.

Bigger models and more pre-training data improve robustness. Even so, forgetting stays a stubborn problem, and the paper’s own scaling check agrees. So the field needs to know what actually causes it.

Two ways to teach, one surprise

The paper studies the two most common ways to adapt a model after pre-training. This adaptation step is called post-training. The model you start from is the base model, and the paper writes its behaviour as π0.

Supervised fine-tuning (SFT) shows the model the answers it should give, and the model learns to copy them. It is the student who studies a solutions book. Reinforcement learning (RL) lets the model try answers on its own, scores each try, and nudges the model toward the tries that scored well. It is the student who practises problems and checks the result.

The surprise is in the paper’s first figure. Give both methods the same new task. Tune each until it reaches the same new-task score. SFT gets there by erasing old knowledge. RL gets there and keeps most of what it knew.

The claim, as a trade. On-policy RL learns a new task and keeps old skills where SFT could not, because RL only moves the model a short distance from where it started, measured in KL. The authors name this RL’s Razor: among all the ways to solve a new task, RL prefers the ones closest in KL to the base model.

Two words in that claim need a proper explanation. KL is a way to measure the distance between two probability distributions. On-policy means the model learns from outputs it wrote itself. Chapters 1 and 3 build them from zero. For now, feel the problem. Push the new task further and watch what happens to the old skills.

Push the new task, watch the old skills

Top bar: the new task. Four bars below: older abilities. Blue outlines mark where each started. Red marks what was lost. Choose a teacher, then drag how far you push the new task.

30%

Illustrative shape, not the paper’s data. The four skills stand for the kinds of benchmarks the paper uses (common sense, knowledge, instruction following, code); their starting scores here are made up. The curves encode only the paper’s qualitative result: under SFT the old scores fall as the new score rises, under RL they stay almost flat (Figure 2). Chapter 2 shows how the real frontiers are measured.

Drag to 70% with SFT chosen. The new bar fills, and the four old bars lose a large slice. Switch to RL and drag again. The new bar fills the same way, and the old bars hardly move. Same task, same final score, very different cost.

What this paper adds

People have long fought forgetting by freezing weights, protecting important parameters, or adding penalty terms. Those tricks reduce the symptom. The authors ask a different question: what variable determines how much a model forgets? Their answer is a single measurable number, and a reason RL keeps it small.

The paper also does not propose a new training algorithm. It offers a law, a principle and a proof. The rest of this lesson builds each one from scratch, with the paper’s own numbers where they exist.

The road

  1. Two teachers: what one SFT step and one RL step do to the data, with shapes.
  2. The experiment: Pareto frontiers on math, science, tools and a robot arm.
  3. The forgetting law: KL on the new task predicts forgetting.
  4. The oracle test: SFT on KL-minimal labels beats RL.
  5. Which ingredient matters: on-policy data or negative examples?
  6. The math: rejection sampling and policy gradient as projections.
  7. Ruling out the rivals: weight change, sparsity, rank, activations.
  8. Field guide: numbers, terms, a checklist and the core code.
Two models are fine-tuned on a new task and both reach the same new-task accuracy. One used SFT and one used RL. What does the paper find?

Chapter 1

Two Teachers: SFT and RL

Follow one training step through each method and see where the training text comes from

Imagine a tutor with one pupil and one question: “What is 12 × 4?” The tutor can teach in two ways. In the first, the tutor writes the full worked answer on the board and the pupil copies it. In the second, the pupil writes their own attempt, the tutor marks it right or wrong, and the pupil adjusts. Everything else in this paper follows from that difference.

A model is a policy

A language model reads a prompt and writes a reply one token at a time. A token is a small piece of text, such as a word or part of a word. For each position the model outputs a probability for every token it knows, a list of V numbers that add up to 1. The length of that list, V, is the size of the model’s vocabulary.

Multiply the per-token probabilities and you get the probability of a whole reply y given a prompt x. The paper writes it π(y | x) and calls the model a policy, the word reinforcement learning uses for “the thing that chooses actions.” Here, an action is writing a reply. The starting model is π0, the base policy. Training produces a new policy π.

SFT: copy fixed labels

In supervised fine-tuning, someone has already written a reply for every training prompt. These replies are the labels. The model is trained to make each label more probable. The paper writes the objective like this.

LSFT(π)
The loss, a number that training pushes down. Low loss means the model gives the labels high probability.
Ex∼D, y∼πβ
The average over prompts x drawn from the dataset D, with replies y drawn from πβ. The symbol πβ is the supervision distribution: wherever the labels come from, such as a person, a stronger model, or a script. It is fixed and external.
log π(y | x)
The log of the probability that the current model gives the label. A bigger log-probability means a smaller loss, so the model learns to say the label.

A worked case. Suppose the label starts with a token the model rates at 0.20. The loss for that token is −ln 0.20 = 1.61. After a step, the model rates it at 0.30. The loss falls to −ln 0.30 = 1.20. SFT keeps doing this for every token of every label, so the model drifts toward whatever the labels say.

RL: score the model’s own tries

In reinforcement learning there are no written replies. The model writes replies itself, and a reward scores each one. In this paper the reward is binary: 1 if the final answer is correct, 0 if not. There is no KL penalty added.

LRL(π)
The policy-gradient loss. In practice gradients flow only through the log π term, not through the sampling.
Ex∼D, y∼π
Average over prompts from D, with replies drawn from the model itself, π. This is the key difference from SFT. The model is its own source of training text.
A(x, y)
The advantage: how much better this reply scored than the model’s other replies to the same prompt. Positive means reinforce it. Negative means push it down.
log π(y | x)
The same log-probability as in SFT. RL multiplies it by the advantage, so good replies become likelier and bad ones less likely.

The paper trains with GRPO, which samples a group of replies per prompt and compares them to each other. A worked case, with a small group of 8 to keep the sums short (the paper’s group is 64): the model writes 8 replies and 3 are correct. The group mean reward is 3/8 = 0.375. A correct reply gets advantage 1 − 0.375 = +0.625. A wrong reply gets 0 − 0.375 = −0.375. (Original GRPO also divides by the group’s standard deviation; the paper uses the Dr. GRPO variant, Table 2.)

So there are two differences, and the paper names them. First, the sampling distribution: SFT trains on outside text, RL on the model’s own samples. Second, negative examples: RL pushes wrong replies down, SFT only pulls labels up. Chapter 5 tests each difference alone. Step through one training step of each method below.

Walk through one training step

Choose a method, then press Next step. The highlighted box shows where the data comes from and its shape. B is the number of prompts, T the reply length in tokens, V the vocabulary size.

Shapes are the general ones for a language model. RL numbers follow the paper’s Table 2: group size 64 and 8 prompts per generation, so 512 replies per round. The SFT batch of 64 is one of the swept batch sizes (16 to 128). The box colours follow this page’s roles: warm is SFT, purple is RL.

Look at step 2 in each lane. In SFT the text arrives from outside, fixed, whatever the model currently believes. In RL the text comes from the model, so it is always something the model already finds possible. That one fact decides everything that follows.

# SFT: the labels come from a fixed dataset
logp = log_softmax(model(x, y_in), dim=-1)            # [B, T, V]
logp_y = logp.gather(-1, y[..., None]).squeeze(-1)    # [B, T]   log pi(y|x), token by token
loss = -(logp_y * mask).sum() / mask.sum()

# RL (GRPO style): the "labels" are the model's own samples
y = model.generate(x, n=G)                            # [B, G, T]  sampled from pi itself (paper: G=64)
r = reward(x, y)                                      # [B, G]     1 if correct, else 0
A = r - r.mean(dim=-1, keepdim=True)                  # [B, G]     advantage, group mean removed
logp_y = token_logprobs(model, x, y)                  # [B, G, T]
loss = -(A[..., None] * logp_y * mask).sum() / mask.sum()
In the RL loss, where do the replies y come from?

Chapter 2

The Experiment: Learning Versus Forgetting

Build a Pareto frontier for each method and read what the paper’s four tasks show

Two cooks claim to make the best soup. One says the secret is a hot flame, the other a slow simmer. To judge fairly you cannot compare one bowl from each. Each cook can adjust heat, salt and time, and a lucky or unlucky setting would decide the contest.

The fair test: let each cook make dozens of bowls at many settings. Then ask, for any given taste score, which cook wastes less. The paper makes exactly this test for SFT and RL, with “taste” being new-task accuracy and “waste” being lost prior skills.

The setup: four tasks, two ledgers

The authors fine-tune models on a new task and keep two ledgers. New-task performance is accuracy on held-out test items of the task they trained on. Prior-task performance is the average score on a set of unrelated benchmarks. A drop on those benchmarks counts as forgetting.

There are three language tasks, all on Qwen 2.5 3B-Instruct, and one robot task. Math uses questions from Open-Reasoner-Zero. Science Q&A uses the Chemistry L-3 subset of SciKnowEval. Tool use uses the ToolAlpaca dataset. The robot task has OpenVLA 7B pick up a can in the SimplerEnv simulator.

To measure forgetting, the language models take six established benchmarks: HellaSwag, TruthfulQA, MMLU, IFEval, Winogrande and HumanEval. The robot is tested on opening and closing a drawer, a task it was not trained on.

Where the training data comes from

Both teachers get the same prompts. RL gets a binary reward and nothing else: no KL penalty, no reward model. SFT needs written replies, and the datasets only had final answers. So the authors built the labels. For math they asked DeepSeek R1 for up to 16 replies per prompt and kept one that matched the correct answer. That gave labels for 96% of the dataset. For science they did the same with GPT-4o and labelled the whole dataset.

The robot case is similar. The simulator has a 10 × 10 grid of starting positions for the can. For SFT the authors collected 10 successful trajectories per grid point, using the RT-1 model, and kept the successes. For RL they trained with REINFORCE and a reward-normalisation baseline, collecting 5 trajectories per grid point. They tested at 100 random can positions.

A fair comparison needs a frontier

Each method has settings such as learning rate, batch size, number of epochs and scheduler (Table 2 lists the sweep). Different settings land at different spots on a two-dimensional plane: new-task accuracy across, prior-task score up. The aim is to read each method’s best trade-off, not a lucky point.

That best trade-off is the Pareto frontier. A run sits on it if no other run does better on the new task without also forgetting more. It is the outer edge of the cloud of runs. A worked case with four runs of one method, written as (new accuracy, prior score): (0.40, 0.55), (0.50, 0.52), (0.50, 0.45), (0.60, 0.40). Run (0.50, 0.45) is beaten by (0.50, 0.52), which has the same new score and a better prior score, so it is off the frontier. The other three each win on one axis, so they stay.

The authors follow a fixed recipe from Appendix B.1: sweep hyperparameters, score each model on both ledgers, keep only the models within 2 accuracy points of the frontier, then fit an exponential curve through the survivors. Try it on a cloud of runs.

Find the frontier

Each dot is one fine-tuned model. Purple is RL, warm is SFT. Switch to the frontier view to keep only runs within 2 points of the edge, then drag the target to see what each method keeps when it reaches that accuracy.

55%

Illustrative cloud: 28 made-up runs per method from a fixed seed, shaped to show the paper’s qualitative finding (Figure 2). Axis values are not the paper’s. The paper’s real clouds come from dozens of trained models per method and task. The frontier here is the staircase of runs that nothing beats on both axes.

With all runs shown, the clouds overlap in x but not in y. The purple cloud stays high. The warm cloud tilts down. Switch to the frontier view and the contrast is plain. At the same target accuracy, the best SFT run has given up noticeably more prior skill.

What the four panels show

Figure 2 draws this for math, science, tool use and the robot. For RL, as new-task accuracy rises, prior-task scores stay nearly unchanged. For SFT, gains on the new task come with a substantial loss on the prior tasks. The gap is sharpest in math, where even small gains correspond to a sharp drop in prior-task performance.

In science and tool use, SFT keeps some prior ability at lower new-task accuracy, but it degrades fast as accuracy climbs. This is the paper’s Takeaway 1: RL learns the new task while incurring minimal forgetting, and SFT reaches similar accuracy only by sacrificing prior knowledge.

One more check guards against a simple excuse. Maybe bigger models just forget less, and RL is a stand-in for scale. The authors repeat the SFT runs on Science Q&A with Qwen 2.5 at 3B, 7B and 14B parameters (Appendix C.2, Figure 8). All three sizes show the same trade-off: gains on the new task cost prior knowledge.

Why does the paper compare Pareto frontiers instead of one trained model from each method?

Chapter 3

The Forgetting Law: KL on the New Task

Measure the distance a model moved, and see why that one number predicts what it forgot

You move house. Afterwards a friend asks how much you changed. One way to answer: count how many boxes you packed. Another: ask whether your daily routine still works. The first measures effort, the second measures what you can still do.

For a model, the first answer is “how many weights changed.” The second is “how differently does it now answer.” The paper bets on the second. It measures the change in what the model says, not in its internals, and it finds one number that predicts forgetting well.

KL divergence from zero

Start with surprise. If an event has probability p, seeing it carries surprise −ln p. A 50% event gives 0.69. A 1% event gives 4.6. Rare events surprise you more.

Now suppose you believe the world follows distribution Q, but it really follows P. On average, how much extra surprise do you suffer? That average is the KL divergence from Q to P, named for Kullback and Leibler.

KL(P ‖ Q)
The expected extra surprise of believing Q when the truth is P. It is zero only when P and Q are identical. Otherwise it is positive. The unit is nats when we use the natural log.
∑y
Add up over every possible reply y.
P(y)
How often reply y really occurs. This weights each term, so replies P rarely produces count little.
P(y) / Q(y)
How much more P likes y than Q does. The log makes this ratio into extra surprise.

A worked case with two outcomes. The base model says (0.8, 0.2). A fine-tuned model says (0.5, 0.5). Then KL(fine-tuned ‖ base) = 0.5 ln(0.5/0.8) + 0.5 ln(0.5/0.2) = 0.5(−0.470) + 0.5(0.916) = 0.223 nats. Swap the roles and KL(base ‖ fine-tuned) = 0.8 ln(0.8/0.5) + 0.2 ln(0.2/0.5) = 0.376 − 0.183 = 0.193 nats. The two directions differ. KL is a gap, not a ruler: it is not symmetric.

The direction matters in the paper. Forward KL, KL(π0 ‖ π), asks how badly the new model covers what the base model could say. It grows large when the new model stops saying something the base used to say. Reverse KL, KL(π ‖ π0), asks how much the new model says things the base rarely said. Play with it.

Measure the distance moved

Blue outlines are the base model. The filled bars are a new model you shape: drag how much of its probability goes to style F, the rarest one. The other five styles shrink or grow together, keeping their base ratios.

3%

Illustrative toy: the same six-style base model as the hero (40, 25, 15, 10, 7, 3 percent). Both KL values are computed live in nats. At 3% the new model equals the base and both are zero. Push F toward 95% and watch the other five bars shrink. Here the reverse gauge climbs faster, because the new model piles probability onto a reply the base almost never wrote.

At 3% the new model is the base model and both gauges read zero. Raise F and both rise. Since F starts rare, pushing it up means moving a lot of probability, and a lot of KL.

The empirical forgetting law

Here is the paper’s central empirical claim, in its own words: when fine-tuning a model π on a new task τ, the degree of forgetting is accurately predicted by Ex∼τ [ KL(π0 ‖ π) ], the KL divergence between base and fine-tuned policy evaluated on the new task.

forgetting
The drop in score on prior tasks, such as FashionMNIST for the toy model or the six benchmarks for the language models.
f
A smooth rising curve. The paper fits a quadratic (a second-degree polynomial) and reports how well it explains the data.
Ex∼τ
Average over inputs x from the new task τ. No prior-task data is needed.
KL(π0(·|x) ‖ π(·|x))
The forward KL between the base and fine-tuned reply distributions for one input x.

The practical point is big. Prior tasks in a foundation model are vast or unbounded, so measuring forgetting directly is impractical. The new-task KL can be measured, and even influenced, during training. The paper is frank that the mechanism, why a larger KL on the new task disrupts old knowledge, is not yet understood.

A toy where everything converges: ParityMNIST

Large-model RL cannot easily run to convergence, and a search for predictors needs many runs. So the authors built a small test bed. ParityMNIST reframes handwritten digits as a parity question: is this digit even or odd? Any even label counts as right for an even image, so many different output distributions are equally correct. That mirrors language tasks, where many replies solve the same problem.

The model is a 3-layer MLP. Its input is a flattened 28 × 28 image plus one flag, +1 for parity and −1 for FashionMNIST, so 785 numbers. Hidden layers hold 512 and 256 units, and the output is 10 digit scores. It is pretrained on 500 ParityMNIST and 500 FashionMNIST images, then fine-tuned only on ParityMNIST. Forgetting is the drop on FashionMNIST.

Plot forgetting against KL on the new task and every method falls on one curve (Figure 3, middle). The quadratic fit gives R² = 0.96 in ParityMNIST. R² is the share of the variation the curve explains, so 0.96 means 96%. Two different SFT labelings give different frontiers, but their forgetting-versus-KL curves coincide. In the language models the same plot gives R² = 0.71, weaker, with residuals centred on zero that the authors attribute to noisy KL and accuracy estimates.

Takeaway 2: forgetting in both SFT and RL is predicted by the KL divergence between the fine-tuned and base models on the new task. Algorithm names do not matter. Distance does.

According to the forgetting law, which measurement predicts how much a model forgets?

Chapter 4

The Oracle Test

Build the best possible SFT labels and watch SFT beat RL, which proves the cause is KL and not the algorithm

Suppose you must teach a pupil to answer an even-or-odd question, and you may pick which correct answer the pupil should give. For an even digit, “0”, “2”, “4”, “6” and “8” are all right. Which one do you teach?

A tidy teacher picks one: always say “0”. A gentle teacher asks what the pupil already tends to say, and reinforces that. The paper says the gentle teacher causes less forgetting, and then it builds the gentlest teacher possible to prove it.

Why this is a real test

The KL law is a correlation until someone controls it. If KL is truly the cause, then an SFT run whose labels were chosen to minimise KL should forget the least of all, even less than RL. If KL were just a side effect of RL, this would fail. The authors call the labels they build the oracle distribution. It is an experimental tool, since it needs the base model’s own probabilities. It is not a recipe for practice.

In ParityMNIST the authors compare five fine-tuning strategies. GRPO and GRPO with a KL penalty (coefficient 0.1) are the RL runs. SFT 1 maps every even digit to label 0 and every odd digit to label 1. SFT 2 maps even digits randomly to {0, 4} and odd digits to {1, 5}. The fifth, SFT on the oracle distribution, draws labels from the KL-minimal distribution. Each method ran about 500 times across 15 learning rates between 3e-6 and 1e-3, two schedulers, one or two epochs and mid-training checkpoints.

Building the oracle labels

Take one image. The base model gives a distribution over the 10 labels, π0(·|x). Let S be the set of labels that are correct for this image. We want a label distribution q that has two properties. It puts all its probability on S, so it gets 100% accuracy. Among all such q, it sits closest to π0.

q*
The oracle label distribution for this image. SFT then trains on labels sampled from it.
q(S) = 1
All probability sits on correct labels. This is the constraint that gives perfect accuracy.
π0(y) / π0(S)
The base model’s own probability for label y, divided by the total base probability of all correct labels. In words: keep the base model’s preferences among correct answers, and delete the wrong ones.

Why does that formula minimise KL? Write any q on S as q(y) and use π0(y) = π0(S) · π0(y | S). Then KL(q ‖ π0) = KL(q ‖ π0(·|S)) − ln π0(S). The last term does not depend on q. The first term is zero exactly when q = π0(·|S). The proof is the same as Lemma A.1 in Chapter 6.

The paper’s appendix writes the KL with its arguments in the other order. With zero probability on wrong labels, that order would be infinite, so we write the order that stays finite. It gives the same closed form the paper reports.

Worked case, using the hero’s toy: base probabilities (A to F) 0.40, 0.25, 0.15, 0.10, 0.07, 0.03, with C, D, F correct. The correct set holds π0(S) = 0.15 + 0.10 + 0.03 = 0.28. So q* = (0.15, 0.10, 0.03) / 0.28 = (0.536, 0.357, 0.107) on (C, D, F). Its KL from the base is −ln 0.28 = 1.27 nats. That is the floor for any teacher that reaches perfect accuracy. The hero’s tick marks it. Now vary the annotator.

Choose the labels, pay the KL

The warm curve shows the KL shift SFT ends with, for every annotator style. Drag the annotator’s share on the rare correct style F. The pink dot is the oracle. The purple line is where RL ended.

80%

Illustrative toy with the hero’s six-style model. The annotator puts the chosen share on F and splits the rest between C and D in the base model’s own 60 to 40 ratio. Every point is a full training run to 99% correct, so a run that stops at 99% can read a hair under the 1.27 floor. The RL line is one run of the toy’s exact expected policy gradient. The shape matches the paper’s claim in kind (Figure 3), not in value.

The curve dips to its lowest point where the annotator copies the base model’s own taste, a 10.7% share on F, and it climbs steeply on both sides. At 80% on F, SFT ends far away. RL lands in between. It beats an annotator with a strong favourite, and it loses to the oracle.

What the paper found

In ParityMNIST (Figure 3, left), SFT outperforms RL only when it trains on the oracle distribution. SFT on the oracle labels retained more prior knowledge than RL and achieved the best trade-off in the study. RL does well because its on-policy updates bias the solution toward low-KL regions. Guide SFT straight to the KL-minimal labels, and it can win.

A second check supports the same idea. The authors trained an SFT student on data generated by an RL-trained teacher (Figure 9). Across a sweep of student hyperparameters, the student matched the teacher within noise on both the new task and the prior task. So the optimiser does not matter. What matters is the distribution the model ends with.

Why this is the cleanest experiment in the paper. The authors changed the labels and nothing else. KL went down, forgetting went down. They changed the teacher, copied the distribution, and forgetting followed the distribution. The cause lives in what the model is pulled toward, not in the algorithm that pulls it.
What does the oracle SFT experiment show?

Chapter 5

Which Ingredient Matters?

Split RL into two ingredients, on-policy data and negative examples, and test each one alone

A detective has two suspects for the same crime. Both were at the scene. To find the culprit, the detective does not argue about motive. The detective separates them and tests each one alone.

Chapter 1 left two suspects for why RL forgets less. RL trains on the model’s own samples, and RL pushes wrong replies down. Either could be the reason. Another group of researchers (Lai and colleagues, working at the same time) argued the second one: RL learns from negative examples. This paper tests both.

A two-by-two of training methods

The trick is to build a method for each combination. One axis says where the training text comes from. On-policy means the model writes it. Offline means it comes from a fixed source. The other axis says whether wrong replies get a push down. That makes four corners, and the paper trains one method in each on the Science Q&A task.

The paper chose SimPO over the naive version, raising the probability of positives and lowering that of negatives separately, because the naive version was unstable to train. SimPO compares a correct reply yw with a wrong reply yl through a logistic term.

LSimPO
A preference loss as the paper writes it. The expectation runs over prompts, a correct reply yw (“winner”) and a wrong reply yl (“loser”), both drawn from fixed sources.
log σ
The log of the sigmoid σ(u) = 1 / (1 + e−u), a curve that turns any number into a value between 0 and 1. The loss is small when the argument is large and positive.
log π(yw|x)
The model’s log-probability for the correct reply. Training raises it.
log π(yl|x)
The model’s log-probability for the wrong reply. Training lowers it. The −1 is a required margin between the two.

The verdict

The result (Figure 4): 1-0 REINFORCE behaves like GRPO, and SimPO behaves like SFT. Dropping the negatives from RL changes almost nothing. Adding negatives to offline training changes almost nothing. So the critical factor is not negative gradients. It is on-policy data.

The KL plot confirms it. On-policy methods, GRPO and 1-0 REINFORCE, reach the same new-task accuracy with a significantly smaller KL shift from the base model than the offline methods, SFT and SimPO. Smaller shift, less forgetting, as the law predicts. And the paper’s own results contradict the other group’s explanation that negatives are the key.

Why does this design persuade? Because each method differs from its neighbour in exactly one respect. Compare GRPO with 1-0 REINFORCE and only the negatives change. Compare 1-0 REINFORCE with SFT and only the source of the text changes: the model’s own correct samples against a fixed set of correct labels. The authors ran all four with the same sweep protocol as Chapter 2, so each method gets its own Pareto frontier on the same plane.

Look at 1-0 REINFORCE once more, because it is the surprise. It is nothing exotic: sample replies, keep the correct ones, and run ordinary SFT on them. It behaves like RL and not like SFT on outside labels. The only thing that changed was who wrote the text.

Try it on the toy. Four teachers train the six-style model to 99% correct. The annotator’s taste only matters for the two offline methods, since the on-policy methods never read it.

Run the 2 × 2

Each bar is the KL shift a method ends with at 99% correct. Purple bars are on-policy, warm bars are offline. Drag the annotator’s share on style F to change the offline labels.

80%

Illustrative toy, not the paper’s data. GRPO and 1-0 REINFORCE show the same bar on purpose: in expectation their gradients point the same way (the advantage only subtracts a baseline), which is why they behave alike. The SimPO stand-in adds a push away from an external model’s wrong replies (45% A, 35% B, 20% E) to the SFT pull, with weight 0.5. Real runs differ by sampling noise.

Slide the annotator toward the base model’s own taste (about 11% on F) and the offline bars drop below the on-policy ones, because those labels come close to the oracle. Slide it to a rare style and they stand far above. Adding negatives to the offline method did not rescue it. What mattered was whose data it was, and whether that data sat near the model.

Which result shows that on-policy data, not negative examples, explains RL’s smaller KL shift?

Chapter 6

The Math: A Conservative Projection

Derive why reweighting the model’s own samples lands on the closest correct policy

You have a sack of the model’s own replies to one question. Some are correct and some are wrong. You throw the wrong ones away and keep the rest. The pile you keep still looks like the model: it holds the same styles in the same proportions, just fewer of them.

That pile is the heart of the proof. The paper shows that this “keep the correct ones” step is the closest way, measured in KL, to turn the model into a model that is always right. And policy-gradient RL turns out to be this step, repeated. This chapter derives both facts.

The setting

Keep it small. There is one prompt and a finite set Y of possible replies. A reward R(y) is 1 for a correct reply and 0 for a wrong one. Let S be the set of correct replies. A policy is a probability distribution over Y. We call a distribution optimal if all its probability sits on S. The set of optimal distributions is P*. The paper wants to know which member of P* RL ends up at.

Step 1: rejection sampling is the nearest optimal distribution

Rejection sampling means: draw y from the policy p, keep it if R(y) = 1, and otherwise draw again. What distribution do the kept draws follow? Keep y with probability p(y), but only if y is in S, and then divide by the total kept probability p(S) so the shares add to 1. That is the conditional distribution p(y | S) = p(y) / p(S).

Claim (Lemma 5.1, proved as Lemma A.1): this kept pile is the optimal distribution closest to p in KL.

qRS
The distribution of accepted draws from rejection sampling.
Ey∼q[R(y)] = 1
The expected reward is 1. Since R is 0 or 1, this forces every bit of q’s probability onto correct replies.
p(· | S)
The policy p, restricted to S and rescaled to add to 1.

The proof takes four lines. Any q with all its mass on S can be compared with p(·|S). Since p(y) = p(S) p(y | S) for y in S, we get KL(q ‖ p) = ∑y∈S q(y) ln [ q(y) / p(y) ] = KL(q ‖ p(·|S)) − ln p(S). The last term does not depend on q. KL is zero only when its two arguments are equal. So the minimum sits at q = p(·|S), and it is unique. In the toy, p(S) = 0.28, so the nearest optimal distribution is (0.536, 0.357, 0.107) on C, D, F, and its KL from p is −ln 0.28 = 1.27 nats.

This move has a name. Projecting a distribution onto a set by minimising KL(q ‖ p) over the set is an I-projection, or information projection. Picture snapping to the nearest point of a set, with KL as the ruler.

Step 2: a policy-gradient step is a projection too

Now the learning half. The single-step RL goal is to maximise Ey∼π[R(y)]. The policy-gradient trick says the gradient is the same as for the objective ∑y π(y) R(y) log π(y), where the weight π(y) R(y) is held fixed (“stop-gradient”) and only the log changes.

Z
The policy’s current success rate, here the total probability on correct replies. It is a constant for one gradient step.
q(y)
The policy restricted to correct replies and rescaled. It is exactly the rejection-sampling pile from Step 1.
Ey∼q[log π(y)]
The average log-probability the policy gives to the kept pile. Raising it means pulling π toward q.

Maximising Eq[log π] is the same as minimising KL(q ‖ π), because KL(q ‖ π) = Eq[log q] − Eq[log π] and the first term does not involve π. Fitting a model to match a target by minimising KL(target ‖ model) is an M-projection (moment projection). It is also what maximum-likelihood training does. So one policy-gradient step does this: build q by rejection sampling, then train the policy toward q by ordinary maximum likelihood.

Step 3: alternate the two, and the answer is the closest one

Put the two halves in a loop. Theorem A.3 says that policy gradient on a binary reward is equivalent to: first, qt = argminq in P* KL(q ‖ πt) (the I-step: sieve the policy), then πt+1 = argminπ in Π KL(qt ‖ π) (the M-step: fit the policy to the sieve). This is an EM procedure with information projections. Here Π is the family of policies the model can represent.

Theorem 5.2 (proved as Proposition A.4) then says, in plain words: if the set of policies the model can represent is smooth and bowl-shaped, with no traps to get stuck in (a convex family such as an exponential family), optimal policies are reachable, and the M-step is exact, the loop converges to π† = argminπ in P* ∩ Π KL(π ‖ π0). Among all optimal policies the model can represent, policy gradient picks the one closest to where it started. If the M-step is only approximately solved, with errors that add to a finite total, it reaches the same limit. This is why the paper says the KL-minimal bias appears “even without explicit regularization.”

Compare SFT. The SFT target is an outside distribution πβ. It is not built from the model’s own π, so nothing ties it to π0. It can sit arbitrarily far away. That is the whole difference.

Project step by step

Pink diamonds mark the sieve q: the model restricted to correct replies. Choose how the model moves toward it, then press Step. Blue outlines are the base model.

Illustrative toy. Exact projection moves the distribution half-way to the sieve each step, which keeps the ratios among correct styles. The gradient mode is the hero’s RL update on six softmax logits with step size 0.6; the rich get richer, so it drifts away from the base ratios. This mirrors the paper’s caveat that a neural net’s family is not exactly convex in the required sense (Appendix A).

Run exact projection for six steps. The success rate climbs 28%, 64%, 82%, 91% and so on, and the three correct styles keep the ratio they had in the base model, 54 : 36 : 11. It lands on the oracle. Now switch to gradient steps. It gets to 99% correct too, but one style swallows the others, and the KL ends higher. That gap is the paper’s caveat in action.

Takeaway 3. On-policy training explains why RL keeps a small KL. Sampling from the model’s own distribution keeps it near the base model, while SFT pushes it toward arbitrary external distributions.

Two caveats the paper states openly. First, GRPO and PPO replace the raw reward with an advantage. That is a control variate: it lowers the variance of the gradient without changing its expected direction, so the projection view still holds. Second, the set of optimal policies is linear in distribution space, but a neural network’s representable family is not in general the right kind of curved set. Exact convergence to the minimum-KL solution may not happen. The theorem is a principled explanation of the bias seen in practice, not a guarantee for every network.

Why is one policy-gradient step on a binary reward a conservative move?

Chapter 7

Ruling Out the Rivals

Test weight change, sparsity, rank, activations and other distances, and see why only forward KL survives

When a plane crashes, investigators do not stop at the first cause that fits. They list every other suspect and check each one. A claim that survives is stronger than a claim that was never challenged.

The authors do the same. Before they announce that KL is the predictor of forgetting, they test every other variable they or earlier papers proposed. They group these suspects into four families. Each family has a story about why it should predict forgetting. None of them keeps up with forward KL.

Suspect 1: how far the weights moved

The oldest idea says forgetting follows how far the parameters travelled. Methods such as Elastic Weight Consolidation protect weights that matter. The authors measure parameter change in three ways. L1 change is the sum of absolute differences between old and new weights. Fisher-weighted L2 change counts each weight by how sensitive the previous task is to it. Spectral norm of the change is the largest factor by which the change matrix can stretch a vector.

The result is weak. L1 gives R² = 0.34, and the Fisher-weighted and spectral versions give 0.58 each. The text explains why: large parameter shifts can occur without forgetting, and forgetting sometimes occurs despite small parameter movement. The same distance in weight space can mean very different changes in what the model says.

Suspect 2: how far the internal features moved

A second idea says to preserve the model’s internal features. The authors measure activation change with L1 and L2 distances between hidden activations. These score R² = 0.52 and 0.55. Representation drift is real in training, but the curves differ between training objectives, so it does not work as a single predictor.

Appendix C.1 digs further, with CKA (centred kernel alignment). CKA asks whether two models agree on how different inputs relate to one another: build a similarity matrix of random Wikipedia paragraphs under each model, then compare the matrices. A score of 1 means the geometry is identical. The authors used a local variant, CKNNA, and compared SFT and RL models that had reached similar new-task accuracy. The RL models scored 0.94 against the base. The SFT models scored 0.56. RL changes how the model represents things much less. The paper reads this as RL integrating new abilities without disturbing the representation space.

Suspect 3: sparse, low-rank updates

A recent paper (Mukherjee and colleagues) argued that RL changes only a small subnetwork, so its updates are sparse, while SFT updates are dense. That would explain a lot. The authors test it and find a surprise in the number format.

Models are often trained in bfloat16, a 16-bit number format that keeps about 8 significant bits. Near the value 0.5 the gap between neighbouring numbers is 2−8, about 0.0039. Add an update of 0.001 to a weight of 0.5 and the result rounds back to 0.5. The update vanishes. RL updates are small, so many vanish, and the weights look sparse. Repeat the same training in float32 and the models reach identical performance with no sparsity in their updates. The rank of the weight change is full for every algorithm. So sparsity was a rounding artefact, not a cause of anything.

Suspect 4: other ways to measure distance

Last, the authors compare distances between output distributions, all measured on new-task inputs. Forward KL, reverse KL, total variation (the largest gap in probability the two distributions assign to any event) and the L2 distance between probability vectors. Reverse KL gives a good signal. Total variation correlates moderately. Neither matches forward KL. Table 1, below, collects every candidate. Pick a family and compare.

Which variable predicts forgetting?

Each bar is the R² of a quadratic fit between a variable and forgetting on ParityMNIST: the share of forgetting the variable explains. Choose a family to light up its bars.

Numbers are the paper’s Table 1 (R² of a second-degree polynomial fit, mean ± spread, MNIST task): forward KL 0.96, reverse KL 0.93, TV 0.80, distribution L2 0.56, weight L1 0.34, Fisher-weighted L2 0.58, spectral norm 0.58, activation L1 0.52, activation L2 0.55. Sparsity and rank of the weight change are marked N/A in the table and are not drawn.

Forward KL, at 0.96, explains nearly all the variation. Reverse KL is close behind at 0.93, so the reverse-direction result in Chapter 6 still speaks to forgetting. Everything that watches weights or activations lands between 0.34 and 0.58. Even the output-space L2 distance only reaches 0.56. The way KL weighs the differences, by the log of a ratio, seems to matter.

One more angle: step by step

Appendix C.3 looks at single training steps on ParityMNIST. For each update the authors compute two numbers. One is the cosine between the update and the gradient of the FashionMNIST loss. A positive cosine means the step pushes the model toward worse FashionMNIST performance, which is forgetting. The other is the change in KL on the ParityMNIST test set. Steps with a larger KL change tend to align more with the forgetting gradient (Figure 10). The correlation shows up per step, not only at the end of training.

What the paper does not claim

The authors list the gaps. They lack a mechanistic account of why a larger KL on the new task disrupts old knowledge: representational interference, implicit capacity limits, or something else. The KL link is shown on moderate-scale language models and toy models, and frontier-scale behaviour is unknown. They did not study online but off-policy algorithms, which are common in RL. And the language-model fit is weaker than the toy one (R² = 0.71 against 0.96). Offline data can still help if learning stays near the KL-minimal path. The principle is a new axis for judging post-training methods: not only how well they optimise the new task, but how little they move in KL.

The paper found RL updates look sparse in bfloat16. What explains that?

Chapter 8

Field Guide

Keep the numbers, the terms, the checklist and the core code on one page

Here is the whole paper in one breath. Fine-tuning a model on a new task can erase old skills. At the same new-task accuracy, RL erases far less than SFT. The amount erased follows one number, the forward KL between the base and tuned model on the new task. RL keeps that number small because it learns from its own samples, which is a conservative projection toward the closest correct policy. SFT on labels that sit far from the model drags it far away. SFT on KL-minimal labels does even better than RL.

The numbers

WhatValueWhere in the paper
ModelsQwen 2.5 3B-Instruct (math, science, tool use); OpenVLA 7B (robot pick-and-place)Section 3.1
Prior-skill benchmarksHellaSwag, TruthfulQA, MMLU, IFEval, Winogrande, HumanEval; robot drawer open and closeSection 3.1
RL recipeGRPO, Dr. GRPO loss, binary reward, no KL penalty, group size 64, 8 prompts per generationTable 2, B.1
SFT labelsDeepSeek R1 (up to 16 samples, 96% of math), GPT-4o (all of science), RT-1 (10 successes per grid point)B.1, B.2
Frontier recipekeep runs within 2 accuracy points of the frontier, fit an exponentialB.1
ParityMNIST net785 → 512 → 256 → 10; 500 + 500 pretraining images; about 500 runs per methodB.3
Forgetting law fitR² = 0.96 (ParityMNIST), 0.71 (language models)Section 4, Figure 11
Predictors comparedforward KL 0.96, reverse KL 0.93, TV 0.80, weight L1 0.34, others 0.52 to 0.58Table 1
Representation driftCKNNA to base: RL 0.94, SFT 0.56C.1
Scale check3B, 7B, 14B SFT show the same trade-offC.2, Figure 8
Ablation1-0 REINFORCE acts like GRPO; SimPO acts like SFTSection 5.1, Figure 4
Toy floor−ln 0.28 = 1.27 nats (this lesson’s own toy, not the paper)Chapter 4

The terms

TermMeaning in one line
Catastrophic forgettingLoss of earlier abilities after training on something new.
Policy π, base policy π0The model as a distribution over replies; the one you start from.
On-policyTraining text sampled from the model being trained.
Advantage A(x, y)A reply’s reward minus the average reward for the same prompt.
Forward KL(π0 ‖ π)Extra surprise when the tuned model must cover what the base could say.
Pareto frontierThe best trade-off a method reaches across its hyperparameters.
Oracle SFTSFT on the correct-only labels that sit closest in KL to the base.
I-projection / M-projectionNearest point of a set by KL(q ‖ p) / by KL(target ‖ model).

A checklist for your own post-training

The paper offers a law and a principle, not a recipe. These items are our reading of what follows from it. They are not claims the authors test.

The core as code

import torch

def forward_kl(logp0, logp):                   # [B, T, V] log-probs of base and tuned, same new-task prompts
    p0 = logp0.exp()
    return (p0 * (logp0 - logp)).sum(-1).mean()  # E_x KL(pi0 || pi), nats per token (a proxy for the sequence KL)

def oracle_labels(p0, correct):                # p0: [V] base probs for one input, correct: [V] bool
    q = p0 * correct                           # delete wrong labels, keep the base model's own ratios
    return q / q.sum()                         # q*(y) = pi0(y) / pi0(S)

def one_zero_reinforce_step(model, x, verifier, n=8):
    y = model.generate(x, n=n)                 # [B, n, T]  on-policy samples
    keep = verifier(x, y)                      # [B, n]     bool, the rejection-sampling filter
    logp = token_logprobs(model, x, y)         # [B, n, T]
    return -(logp * keep[..., None]).sum() / keep.sum()   # SFT on the model's own correct samples

Where it sits in the field

Older cures for forgetting constrain the weights (Elastic Weight Consolidation), preserve features, or match old outputs (Learning without Forgetting). Practitioners also noticed that the KL penalty used in RLHF helps stability and reduces forgetting. This paper turns that habit into a measurable law. Ross, Gordon and Bagnell (2011) showed on-policy learning can beat offline imitation on new-task performance. Chu and colleagues found that RL generalises where SFT memorises. The authors add that RL also forgets less.

For the course this reading belongs to, MAS.S62 Lecture 6, Model Evolution, the message is practical. A model that keeps improving after deployment must change without wiping itself. This paper says to measure how far each update moves the model and to prefer updates that stay near it.

Keep going

The takeaway. Forgetting is governed by how far a model moves in KL on the new task, not by the training algorithm. RL moves less because it learns from its own samples. The best path to a new skill is the shortest one.

You have the whole argument. Go back to the hero and run the three teachers again: you can now say why each ended where it did. Then open Teach to draw the proof from memory, or Present to explain it aloud.

Credit: Idan Shenfeld, Jyothish Pari and Pulkit Agrawal, Improbable AI Lab, MIT. “RL’s Razor: Why Online Reinforcement Learning Forgets Less.” arXiv 2509.04259, 2025. Paper · Project page. This lesson is our own re-teaching; every number marked illustrative is a toy of ours, not the authors’ data.

RL’s Razor
Read the paper · Back to MAS.S62 Lecture 6 · Back to Gleams