TL;DR
When we use Reinforcement Learning (RL) to teach Large Language Models (LLMs) how to reason, they secretly overwrite skills they already knew—even when trained on a completely fixed dataset. This happens because the evolving model changes its own effective training diet, creating a self-induced curriculum that causes "endogenous forgetting." Fortunately, giving the model a simple memory bank of its own past successes keeps its old skills intact while helping it learn faster, smoother, and further.
What Problem Does This Paper Address?
If you train a neural network on Task A and then switch to Task B, it famously forgets Task A. That’s classic "catastrophic forgetting," caused by an external change in the dataset.
You might assume that if you hold your dataset completely fixed and sample prompts uniformly at random, forgetting shouldn't happen. Yet in LLM post-training using on-policy RL—like Group Relative Policy Optimization (GRPO), where a model generates a batch of answers and learns by comparing the winners to the losers—strange pathologies emerge. Models plateau prematurely, and their "solution coverage" (measured by pass@k, the odds of getting at least one right answer out of $k$ tries) often shrinks below where the base model started.
The authors identify the culprit: endogenous forgetting. In group-based RL, if a model gets every sampled attempt at an easy prompt right, or every attempt at a hard prompt wrong, there is zero variance in the rewards—meaning zero gradient signal. As the model improves, easy problems silently drop out of the effective training loop while harder ones enter. The model accidentally creates its own shifting curriculum. Without reinforcement on previously mastered prompts, the policy drifts: either oscillating inefficiently between learning and unlearning, or drifting so far that it can never sample a correct rollout again to recover the skill.
Methods
To study and fix this hidden drift, the authors introduce three main components:
- Disentangling Metrics: Overall accuracy (
pass@1) hides turbulence beneath the surface. The authors decompose net accuracy changes into attained gain (progress from initialization to a prompt's peak historical performance) minus unrecovered loss (how far current performance has fallen from that peak). - Controlled SFT Isolation: To prove the shifting data distribution causes forgetting—independent of noisy RL gradients—they collect all winning trajectories from a standard RL run and perform Supervised Fine-Tuning (SFT) on a fresh model in two ways: Ordered SFT (chronological order, preserving the RL-induced curriculum) vs. Shuffled SFT (randomized order).
- Prioritized Successful-Trajectory Replay: For live on-policy RL (using GRPO), they maintain a buffer of historical winning responses. Alongside the standard RL update, they add an auxiliary maximum-likelihood (SFT) loss on buffered winners—avoiding unstable off-policy importance weights. Crucially, they prioritize prompts where the model’s recent pass rate is low (protecting rare, fragile skills) paired with a linear cooldown timer so the model doesn't obsessively replay the exact same prompt before its estimated pass rate updates.
Datasets
The authors evaluate models (Qwen2.5-3B, Llama3.2-3B-Instruct, Qwen3-1.7B-Base, and Qwen3-8B-Base) across four verifiable reasoning domains—no new benchmarks are introduced, though synthetic puzzles are generated using existing tools:
- Knights and Knaves (KK): Deductive logic puzzles.
- Math: Competition mathematics from POLARIS.
- Coding: Algorithmic programming trained on MBPP and evaluated on MBPP+.
- Cryptarithm: Arithmetic letter-substitution puzzles generated via Reasoning Gym (22K training, 500 test puzzles).
Key Insights and Ideas
- The data order alone is toxic: In the offline SFT experiment, Ordered SFT and Shuffled SFT train on the exact same examples for one epoch. Yet Ordered SFT suffers much higher unrecovered loss, worse solution coverage, and wilder prompt-level oscillations. The self-induced curriculum alone is enough to erode past capabilities.
- Forgetting starves the RL signal: On
Cryptarithm, standard RL hits a brick wall within 150 steps. Why? As the model forgets prompts it solved early on, it starts failing them 100% of the time—yielding zero reward variance and killing the GRPO gradient. Replay revives those lost solutions, keeping gradients alive. - Standard KL penalties protect the wrong anchor: Penalizing divergence from the initial base model (
KL regularization) only protects skills the base model already knew—while handcuffing the model from learning new ones. Replay dynamically protects newly discovered behaviors too. - Suppressing oscillations unlocks bigger learning rates: High learning rates usually cause RL runs to collapse because massive policy steps amplify learning-forgetting oscillations. By anchoring past successes, replay stabilizes aggressive step sizes.
Key Results
- Curbing Forgetting & Boosting Accuracy: Across 8 model-task RL setups, replay reduces unrecovered loss in 7 of them (the sole exception being
Cryptarithm, where standard RL simply stopped learning too early to have much left to forget). OnMathwith Qwen3-8B-Base, replay slashes unrecovered loss by 13.0 percentage points (from 17.5 to 4.5) and boosts finalpass@1by +6.9 points (34.4% to 41.3%). - Breaking Through Plateaus: On
Cryptarithm(Qwen2.5-3B), standard RL stagnates at 31.8%pass@1, whereas replay sustains learning all the way to 58.6%. - Preserving Coverage: Replay improves
pass@64across all 8 settings—for instance, jumping +15.1 points on Llama3.2-3BMathand +13.3 points on Qwen3-1.7BCoding. - Speedups & Stability: On
KK, replay reaches standard RL's finalpass@11.7x faster (3.3k fewer steps) and itspass@643.2x faster (5.5k fewer steps). OnMath, standard RL collapses at learning rates of $3\times 10^{-6}$ and $6\times 10^{-6}$, while replay trains stably and reaches the accuracy frontier faster.
Limitations and Future Work
The authors note that their replay mechanism is intentionally a simple first step. Key open questions include:
- Understanding prompt vulnerability: Developing a qualitative understanding of which specific prompts are most susceptible to endogenous forgetting and why.
- Smarter sampling & continual RL: Designing more targeted buffer-sampling strategies beyond pass-rate heuristics, and adapting broader continual-RL techniques to LLM post-training.
- Model scale & priors: Validating how endogenous forgetting behaves at frontier model scales (beyond 8B parameters), and systematically investigating how a base model's initial skill prior dictates when replay accelerates early learning.
Summary updated