Endogenous forgetting in RL post-trainingEndogenous Forgetting in RL Post-Training
The authors study endogenous forgetting in RL post-training and propose successful-trajectory replay; on Cryptarithm with Qwen2.5-3B, replay raises pass@1 from 31.8% to 58.6%.
- On a fixed training set, the effective data distribution of on-policy RL still changes with the policy, which may cause the model to forget prompts it could already solve and reduce large-k solution coverage. The authors study this endogenous forgetting and methods to mitigate it during training.
- The authors decompose net learning gain into attained gain and unrecovered loss, and use ordered and shuffled SFT to isolate the effect of temporal curriculum; they then add supervised replay of historical successful trajectories to the GRPO objective, prioritizing sampling by low recent pass rate and setting a cooldown.
- Ordered SFT has higher unrecovered loss in all six settings. RL replay reduces unrecovered loss in seven settings and increases pass@64 in all eight; Qwen2.5-3B on Cryptarithm rises from 31.8% to 58.6% pass@1 and supports a larger learning rate.
- The authors state that replay is not necessarily the best mitigation method, and that locating prompts by degree of forgetting remains to be studied; the largest experimental model is 8B, and long-horizon RL on larger models exceeds the compute budget. The paper does not report the number of independent training repetitions or confidence intervals for the main results.
- Evaluated models
- Qwen2.5-3BLlama3.2-3B-InstructQwen3-1.7B-BaseQwen3-8B-Base
- Metrics
- pass@1pass@64attained gainunrecovered losstotal variationmonotonic improvement
arXiv paper 2611.35529 studies endogenous forgetting in RL post-training, i.e., forgetting caused by the reinforcement learning post-training process itself.
Paper analysis
What problem does this paper attempt to solve?
Studies endogenous forgetting induced by on-policy RL itself on a fixed dataset, and uses successful-trajectory replay to preserve learned capabilities and solution coverage.
The core problem is: even when training prompts are fixed and sampled independently at each step, on-policy RL may forget capabilities it has already acquired because the policy changes the effective training distribution.
- Problem setting: The authors focus on long-horizon RL in LLM reasoning post-training. Known phenomena include large-k pass@k not exceeding the base model and premature convergence during training; the authors argue that sustained improvement requires not only acquiring new capabilities but also retaining capabilities already present from pretraining or during RL.
- Difference from classical forgetting: Catastrophic forgetting in classical continual learning arises from a user-specified task sequence and is an exogenous phenomenon; the endogenous forgetting the authors study occurs on a fixed dataset and stems from non-stationarity caused by the policy itself.
- Core mechanism hypothesis: Under binary rewards, all-correct or all-wrong response groups carry no policy-gradient signal, so which prompts produce training signal depends on the current policy; the response distribution for the same prompt also changes with the policy, forming an endogenous curriculum. The policy may repeatedly learn and forget, or may drift so far that correct responses can no longer be sampled and it cannot recover on its own.
- Paper contributions: The authors propose an attained gain and unrecovered loss decomposition that distinguishes learning, unrecovered forgetting, and overall pass@1 change; they use ordered versus shuffled SFT on the same successful trajectories to isolate the effect of temporal order, then study successful-trajectory replay.
- Study setting: This is a study of training dynamics and mitigation methods and does not posit an external attacker. The affected subject is the policy undergoing verifiable-reward RL post-training, evaluated on whether the success rate on prompts it already knew, final pass@1, and large-k solution coverage decline.
What related research exists?
Related work is divided into temporal forgetting in RL, reasoning-solution coverage, and experience replay; the authors distinguish their work through controlled SFT and training-time success replay.
Temporal forgetting and non-stationarity in RL post-training
- Shenfeld et al. (2026), Chen et al. (2025b), Phan et al. (2026): Study whether on-policy RL forgets general pretrained capabilities when adapting to new tasks or domains; the authors instead study forgetting induced by the changing policy itself during continued training in the same domain.
- Nguyen et al. (2025), Qin et al. (2026), Li et al. (2026): Study RL coverage loss, loss of the correct set, and correct-to-wrong transitions, respectively. Appendix C notes that Nguyen et al.'s SELF performs forward KL toward the full base distribution, Qin et al. only revisit prompts that were once all-correct, and Li et al. sample across historical checkpoints at inference time; the authors state that these methods differ from replay that continuously preserves successful trajectories during training.
- Shen et al. (2026) and deep RL work: Shen et al. observe ground truth regression and wrong-mode amplification; Igl et al. (2020), Fedus et al. (2020), Kaplanis et al. (2019) study non-stationarity and interference in deep RL.
Reasoning, coverage, and the boundaries of RL
- Yue et al. (2025), Tajwar et al. (2026): Discuss whether RL extends reasoning capabilities beyond pretraining or mainly increases the probability of already accessible solutions.
- Yue et al. (2025), Nguyen et al. (2025): Point out that an increase in overall pass@1 can coexist with a decrease in large-k pass@k; the authors further focus on how, under limited on-policy sampling, a decline in success rate reduces the opportunities for correct solutions to be observed and reinforced again.
Experience replay and related optimization
- Lin (1992), Mnih et al. (2015), Schaul et al. (2015), Oh et al. (2018), Rolnick et al. (2019): Establish experience replay in RL, prioritized replay, self-imitation, and continual learning; this paper's replay objective is inspired by self-imitation learning and prioritized replay.
- Arnal et al. (2026), Sun et al. (2026a), Zhang et al. (2025b), Ma et al. (2026): Mainly use replay to reduce generation cost or improve sample efficiency; GEM (Anthony et al., 2026) preserves past successes in sparse-reward settings and emphasizes rare successes.
- GRPO and alternative mitigations: Training uses Shao et al. (2024)'s GRPO and Liu et al. (2025)'s variant without group standard deviation normalization and without KL; the authors also compare reference-policy KL and a historical-reward baseline inspired by DDPO (Black et al., 2024).
Experimental comparisons and benchmarks: The main comparison is standard GRPO versus GRPO plus replay at the same number of gradient steps; the SFT comparison is Ordered versus Shuffled; the tasks are KK, Cryptarithm, POLARIS math, and MBPP/MBPP+ coding. The authors position this paper as connecting forgetting and endogenous curricula through a unified decomposition and controlled experiments, rather than using replay solely for sample efficiency.
How does the paper address this problem?
First decompose net learning gain and use ordered SFT to isolate the endogenous curriculum, then add a supervised objective on historical successful trajectories to GRPO.
The overall idea is to first measure and isolate endogenous forgetting, then use successful-trajectory replay to continuously reinforce historically correct solutions. Replay uses a supervised maximum-likelihood update rather than off-policy policy gradients on old trajectories.
Sources of non-stationarity and decomposition of forgetting
- Under a fixed prompt distribution Dtr and verifier reward, the policy still determines which response groups have non-zero advantage and the response distribution on each prompt. With binary rewards, all-correct and all-wrong groups have zero reward variance and thus no group-relative policy gradient signal.
- Let m(q,t) be the true pass@1 on prompt q at checkpoint t, and m⋆(q,t) the historical best value up to t. The core decomposition is m̄(t)−m̄(0)=Gatt(t)−Funrec(t), where attained gain is the improvement of the historical best over the initial value, and unrecovered loss is the difference between the historical best and current performance.
- This decomposition shows that a positive net pass@1 gain does not require the unrecovered loss to be small. The authors additionally measure prompt-level oscillation by V(q), the sum of absolute changes in success rate between adjacent checkpoints; a value above 1 necessarily involves learning-forgetting round trips.
- Appendix F uses two-fold cross-fitting to select the historical best checkpoint, reducing the upward bias of the noisy maximum; with n=160 per prompt per checkpoint, responses are split into two folds of 80, randomly partitioned 100 times and averaged, with negative estimates not truncated.
Controlled SFT: isolating the temporal curriculum
- Positive-advantage trajectories are collected from GRPO runs across six model-domain settings; Appendix E.1 additionally runs a version that retains successful trajectories from all-correct groups.
- Ordered SFT trains in the order of RL generation, preserving the endogenous curriculum; Shuffled SFT randomly permutes the same set of trajectories, removing the temporal curriculum.
- Both start from the same base policy and use the same data and hyperparameters, each trained for one epoch and passing over the data only once; SFT batch size 256, learning rate 10−5. The authors therefore attribute performance differences to temporal order.
- Shuffled requires future rollouts and cannot be used for real online training, so the authors additionally add historical-success mini-batch replay to Ordered SFT; the SFT replay weight λ=1, and the current and replay batch sizes are the same.
Successful-trajectory replay in RL
- At each step, a replay term is added to the standard GRPO objective Jt, optimizing JtRR(θ)=Jt(θ)+λ Jrep,t(θ); the replay term is the token-normalized log-likelihood of historically verified successful trajectories, and λ fixes its relative weight.
- This objective is equivalent to minimizing, on replay prompts, the forward KL from the historical empirical distribution of successes to the current policy, omitting constants independent of θ. The authors state that this avoids high-variance, importance-weighted gradients on stale trajectories.
- The buffer stores newly generated successful trajectories during training; GRPO in the total objective uses a variant without group-level reward standard deviation normalization and without KL penalty, with clipping parameter ϵ=0.2. All replay settings in RL experiments use λ=0.1.
- Prioritized replay uses 1 minus the most recently observed group-level pass rate as the prompt priority, favoring rare successes; this estimate is updated only when the prompt is sampled on-policy. A cooldown mechanism sets the weight of a just-replayed prompt to 0 and linearly restores it to 1 within H steps of one training epoch.
- After a prompt is selected, successful trajectories are sampled uniformly from its stored ones; when the total priority of a non-empty buffer is zero, it degenerates to uniform prompt sampling, and when the buffer is empty the replay term is omitted. The full procedure is given in Algorithm 1.
Tasks, training and evaluation
- KK uses puzzles with 3–7 residents, training 1,000 cases and testing 100 cases per difficulty; Math uses Polaris-53K for training and 600 uniformly drawn held-out cases for evaluation; Coding uses 320 deduplicated MBPP problems for training and MBPP+ for evaluation.
- Cryptarithm is generated by Reasoning Gym and, after filtering for unique solutions, yields 22,672 problems, split into 22,172 training problems and 500 test problems; the main text also summarizes this as 22K training problems. Because only 147 correct responses remain after positive-advantage filtering, this task is used only in RL experiments.
- Rewards are binary based on answer correctness, with no LLM judge. At each evaluation checkpoint, multiple responses are sampled per prompt, and pass@1 and pass@k are computed with the unbiased estimator of Chen et al. (2021).
- Training uses verl; Table 4 gives the learning rate, batch size, group size, temperature and replay batch for each task. For example, group size is 8 or 16, training temperature is 1.0 throughout, and validation top-p is 0.95 throughout; for Qwen models, generation content after the expected answer template is truncated.
What experiments did the paper conduct?
Results from six SFT groups and eight RL groups show that replay usually reduces forgetting and maintains coverage, but Cryptarithm is an exception and one group's pass@1 drops slightly.
Experimental setup
- Models tested: Qwen2.5-3B, Llama3.2-3B-Instruct, and Qwen3-1.7B-Base for SFT; RL additionally adds Qwen3-8B-Base on Math, for four models in total.
- Tasks and scale: KK tests 100 examples per difficulty; Math tests 600 examples; Coding is evaluated on MBPP+; Cryptarithm tests 500 examples. Training set sizes are given in Appendix D.1.
- Comparison methods: SFT compares Ordered, Shuffled, and Ordered plus replay; RL compares Standard (GRPO without replay) and Replay, and also examines reference-policy KL and a historical-reward baseline.
- Metrics: Final pass@1, pass@64, attained gain, unrecovered loss, and the proportion of monotonically improving prompts; V(q), pass@128, training reward, and the proportion of prompts with non-zero advantage are also examined.
- Judging and sampling: A fixed verifier gives binary reward based on answer correctness, with no LLM judge; the cross-fitting implementation uses 160 responses per prompt per checkpoint and 100 random folds. The main text does not state whether this n applies to all main-table evaluations.
- Training controls: In each model–domain setting, Standard and Replay are trained for the same number of gradient steps, with replay λ=0.1; the paper does not report independent training repetitions or confidence intervals for the main tables.
Main results
The table below shows final RL results, with values in %; G att and F unrec are reported in percentage points as in the paper. According to Table 3, base results are in Table 6.
Swipe horizontally to read the table
Domain Model Method Pass@1 Pass@64 G att F unrec KK Qwen2.5-3B Standard / Replay 93.4 / 96.6 98.0 / 100.0 92.6 / 92.6 5.7 / 2.4 Cryptarithm Qwen2.5-3B Standard / Replay 31.8 / 58.6 31.8 / 59.4 31.5 / 59.9 0.2 / 1.7 Math Qwen2.5-3B Standard / Replay 23.1 / 25.5 54.0 / 62.7 17.2 / 13.4 9.6 / 3.4 Math Llama3.2-3B-Instruct Standard / Replay 19.7 / 19.9 42.7 / 57.8 15.1 / 9.3 7.7 / 1.7 Math Qwen3-8B-Base Standard / Replay 34.4 / 41.3 68.8 / 75.5 28.2 / 22.1 17.5 / 4.5 Coding Qwen3-1.7B-Base Standard / Replay 63.0 / 65.2 70.3 / 83.7 38.7 / 37.1 7.9 / 4.1 Coding Qwen2.5-3B Standard / Replay 66.7 / 67.0 80.0 / 83.5 30.6 / 27.9 6.3 / 3.2 Coding Llama3.2-3B-Instruct Standard / Replay 60.5 / 59.6 69.8 / 77.9 45.8 / 42.4 9.1 / 6.6 - Coverage and forgetting: Replay improves pass@64 and the proportion of monotonically improving prompts in all eight settings, and reduces F unrec in seven settings; the authors state that it reduces forgetting and maintains or expands coverage in most settings.
- Exceptions: Cryptarithm's F unrec rises from 0.2 to 1.7; the authors explain that standard RL stops learning earlier, so apparent forgetting is lower. On Coding with Llama3.2-3B-Instruct, replay's pass@1 is 0.9 percentage points lower.
- Two coverage regimes: The authors call KK and Cryptarithm the expansion regime, where standard RL also expands coverage; Math and Coding are the sharpening regime, where standard RL's large-k coverage declines relative to the base model and replay mitigates the decline.
Controlled SFT and replay
- Effect of ordered curricula: In Table 1, Ordered SFT has higher attained gain and higher unrecovered loss in all six settings, lower final pass@1 in four settings, and lower pass@64 in five settings; the proportion of monotonically improving prompts is lower in all six settings.
- Specific comparisons: On Math with Qwen2.5-3B, Ordered to Shuffled gives pass@1 of 23.2 to 26.0, pass@64 of 51.9 to 59.4, and F unrec of 7.9 to 3.6; on Coding with Llama3.2-3B-Instruct, the corresponding F unrec is 12.4 to 4.3.
- Oscillation and old data: The authors' interpretation of Figure 2 is that Ordered's V(q) has a longer right tail; in Figure 3, the two orders have similar loss on the current batch, but Ordered's loss on old rollouts flattens and then rises, while Shuffled remains lower.
- SFT replay: Table 2 shows that the change in F unrec is negative in all six settings and the change in pass@64 is positive in all six; the change in pass@1 is −2.6 on KK with Qwen2.5-3B, −0.8 and −1.1 on Coding with Qwen2.5-3B and Llama3.2-3B-Instruct respectively, and positive in the remaining three settings.
- Retaining all-correct groups: After repeating the experiments in Table 5 of Appendix E.1, Ordered has higher F unrec and lower pass@64 in all six settings; the authors conclude from this that forgetting does not arise solely from prompts that were once all-correct no longer providing training signal.
Continual learning, efficiency, and alternative methods
- Cryptarithm case: Figure 6 and the main text state that standard RL essentially stops improving within 150 steps, and the proportion of training prompts with non-zero group-relative advantage drops to zero; replay recovers some forgotten prompts and maintains the learning signal, with final pass@1 of 58.6% versus 31.8% for standard.
- KK efficiency: Figure 7 indicates that replay reaches standard RL's final pass@1 about 3.3k gradient steps earlier (1.7× faster) and its final pass@64 about 5.5k steps earlier (3.2× faster); the authors leave when acceleration can occur to future research.
- Learning-rate sweep: On Math, sweeping from 6×10−7 to 6×10−6; Figure 8 and the main text state that standard RL collapses at 3×10−6 and 6×10−6, KL does not consistently prevent collapse, and replay remains stable and continues to improve.
- KL comparison: Figure 21 compares β of 0.001 and 0.01. On Math, both KL settings limit attained gain and have higher F unrec than replay; on Coding, stronger KL preserves most coverage and reduces forgetting but limits attained gain relative to replay.
- Historical-reward baseline: Figure 9 compares K=64 and 128 on Coding with Qwen3-1.7B-Base; both have higher pass@1 than standard RL and preserve some coverage, but have higher F unrec and lower pass@64 than replay. K=64 has higher attained gain than replay.
Other ablations and analyses
- Training prompts: Appendix E.3 evaluates on the full Coding training set and 500 Math training prompts; F unrec grows for standard RL on Math, and estimated values are small for both methods on Coding.
- Stratification by initial success rate: In Figure 20, standard RL's largest loss is in the KK zero-success group and in the 10–25% initial pass@1 group on Math and Coding.
- More k and training curves: Figure 18 gives pass@8, 64, and 128 trajectories for four additional settings; Figure 17 gives training reward for six Math/Coding settings, and the authors state that replay's final reward is higher.
- Statistical calibration: Appendix F.1.4 uses an exact conditional null distribution to determine whether a prompt improved or degraded, with a two-sided nominal level α=0.05 and a false-positive rate of at most 0.025 in each direction.
What are some points that can be further explored?
The authors list more direct replay sampling, other mitigation methods and validation at scales above 8B as future directions.
Limitations and future directions noted by the authors
- The mitigation method may not be optimal: Appendix A states that successful-trajectory replay is only one feasible method; other methods may be effective or complementary, and exploring other mitigation methods is left for future work.
- Prioritized sampling by degree of forgetting: Appendix A proposes locating the most forgettable prompts by prompt-level unrecovered loss, but buffered prompts update their success rates only when sampled on-policy, so stored values become stale; identifying these prompts during training still requires research.
- Understanding forgettable prompts: The Conclusion proposes that a qualitative understanding is needed of which prompts are most easily forgotten, to clarify when and why existing capabilities are lost.
- Improving replay strategies: The Conclusion proposes that more refined replay sampling could target the most forgettable prompts and better maintain acquired capabilities.
- Drawing on continual RL: The Conclusion proposes that other continual RL methods could be adapted to RL post-training as complementary interventions.
- Model scale: Appendix A states that experiments cover at most 8B parameters, and long-term training of larger models exceeds the compute budget; larger capacity may reduce parameter interference and change the degree of forgetting, and a systematic study of scale effects is left for future work.
Scope of experiments
- Four models are tested: Qwen2.5-3B, Llama3.2-3B-Instruct, Qwen3-1.7B-Base, and Qwen3-8B-Base; the 8B model appears only in the Math RL experiments (§4.2).
- SFT covers six model–domain settings across KK, Math, and Coding; RL adds Math with Qwen3-8B-Base and Cryptarithm with Qwen2.5-3B, for eight settings in total (Table 1, Table 3).
- Evaluations of alternative mitigations include a Math learning-rate sweep, reference-policy KL on Math and Coding, and a historical-reward baseline on Coding with Qwen3-1.7B-Base (Figure 8, 9, 21).
- Training-prompt analysis covers the full Coding training set and 500 Math training prompts; the main evaluation uses a fixed verifier and binary correctness reward, with no LLM judge (Appendix D, E.3).
- The paper does not report independent training repetitions, confidence intervals for the main results, or actual training wall-clock time; the efficiency numbers in Figure 7 are expressed as the number of gradient steps required to reach standard RL's final performance.
Summarize the main content of the paper
The authors decompose RL forgetting into learning and unrecovered loss, and use successful-trajectory replay to reduce oscillation and maintain solution coverage.
This is a study of training dynamics in LLM post-training with verifiable-reward RL, centered on endogenous forgetting induced by the policy itself even on a fixed dataset, and on how to mitigate it with historical success supervision.
- Problem: The current policy determines which prompts produce nonzero advantage and which responses are reinforced. Prompts already mastered may be repeatedly lost and recovered, or correct responses may no longer be sampled at all; overall pass@1 rising can mask these changes.
- Method: The authors express net pass@1 gain as attained gain minus unrecovered loss, and characterize prompt-level oscillation with V(q). Controlled SFT trains on the same successful trajectories in generation order or random order; the RL method adds maximum-likelihood replay of successful trajectories to GRPO, prioritizing sampling by recent low pass rate and setting a cooldown.
- Controlled evidence: In Table 1, Ordered SFT has higher unrecovered loss in all six settings, lower pass@1 in four settings, and lower pass@64 in five settings; after retaining successful trajectories from all-correct groups, Appendix Table 5 still yields higher loss and lower pass@64 in all six settings.
- Main RL results: In Table 3, replay reduces unrecovered loss in seven settings and increases pass@64 and the proportion of monotonically improving prompts in all eight settings. Cryptarithm is an exception on the forgetting metric; on Coding with Llama3.2-3B-Instruct, replay pass@1 is 59.6% versus 60.5% for the standard.
- Continual learning case: On Cryptarithm with Qwen2.5-3B, standard RL reaches a final pass@1 of 31.8%, versus 58.6% with replay; the authors state that standard RL loses the nonzero-advantage signal due to forgetting, whereas replay can recover some forgotten prompts.
- Other findings: On KK, replay reaches the standard RL final pass@1 about 3.3k gradient steps earlier; in the Math learning-rate sweep, standard RL collapses at 3×10−6 and 6×10−6, while replay remains stable. KL and historical-reward baselines can partially mitigate, but in the corresponding experiments did not simultaneously achieve replay's low forgetting and coverage.
The authors argue that long-horizon RL post-training should attend to both acquiring and retaining capabilities, and that successful-trajectory replay is worth considering as a candidate default component for extended training; at the same time, replay is not the only approach, and identifying forgettable prompts, finer-grained sampling, and validation at scales above 8B remain open.
Research lineage
1 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.