[KongchangAI]
· 2 min read· 1,049 words

Endogenous Forgetting in RL Fine-Tuning: Mechanisms and Mitigation Strategies

Endogenous Forgetting in RL Fine-Tuning: Mechanisms and Mitigation Strategies

In on-policy RL, coupling between model evolution and data distribution causes endogenous forgetting; successful-trajectory replay can effectively mitigate it.

The article explores endogenous forgetting in on-policy reinforcement learning during LLM post-training. The study points out that in on-policy RL the model itself is constantly updated, causing the subsequent training data distribution to drift with policy evolution and thus triggering forgetting, even without any decline in data quality. To verify this, the researchers designed a controlled experiment: successful trajectories collected from an RL run were used for supervised learning in chronological and shuffled order respectively, revealing that chronological training leads to more severe forgetting and lower solution coverage. Based on this, the article proposes a successful-trajectory replay strategy that periodically mixes historical successful trajectories into the current training batch. Experiments show that replay reduces forgetting and prompt-level performance fluctuations, and significantly improves solution coverage while maintaining or improving pass@1. The article concludes by discussing the limitations of replay strategies and their implications for designing RL post-training pipelines.

Introduction

In the post-training of large language models (LLMs), reinforcement learning (RL) is widely used to improve model performance on reasoning tasks. However, a core contradiction persists: how can a model continuously learn new behaviors while retaining capabilities it has already mastered? A recent study from rss turns its attention to "Endogenous Forgetting"—a forgetting phenomenon caused by non-stationarity in the data distribution—and explores its potential as an obstacle to scaling on-policy RL.

Endogenous Forgetting in RL Post-Training

What Is Endogenous Forgetting?

In standard supervised learning settings, forgetting usually stems from changes in the data distribution or switches in the task sequence. But in on-policy RL, the root of forgetting is more subtle: the model itself is constantly being updated, and the updated model in turn determines the data distribution that subsequent training encounters. This feedback loop causes the effective data distribution to drift over time, gradually making previously learned behaviors inaccessible—even though these behaviors were never covered in a static dataset. The study defines this phenomenon as endogenous forgetting and identifies it as a key factor hindering the scaling of on-policy RL.

On-policy RL refers to training in which the data is sampled in real time by the current policy (i.e., the model being trained), rather than coming from a fixed offline dataset. In LLM post-training, this means that with every update step, the reasoning trajectories used for subsequent training come from the newly updated model, and the data distribution keeps changing as the policy evolves. The opposite is off-policy RL, which typically relies on pre-collected fixed data or data generated by an older policy. The advantage of on-policy RL is that the data closely matches the current policy and the training signal is more accurate, but the cost is a non-stationary data distribution—precisely the soil in which endogenous forgetting arises. Understanding this distinction helps grasp why forgetting in on-policy RL has a unique mechanism different from traditional supervised learning.

Controlled Experiments Isolating Endogenous Forgetting

To verify the existence of endogenous forgetting, the researchers designed an elegant controlled experiment. They first collected successful trajectories from an RL run (i.e., sequences in which the model correctly solved problems), then attempted to retrain the model on these trajectories using supervised learning, but with two different training orders: one following the chronological order in which the trajectories were produced (consistent with the RL training process), and the other with the order shuffled.

The results clearly showed that chronological training leads to more severe forgetting and lower solution coverage, whereas shuffled training significantly mitigates forgetting. This comparison directly demonstrates that even with identical data, merely having the data presentation order coupled with the model's evolution process triggers endogenous forgetting. In other words, forgetting does not stem from a decline in data quality, but from the dynamic coupling between the data distribution and the model state.

pass@1 is a commonly used evaluation metric in code generation and reasoning tasks: for each problem, a single sample is drawn independently; if that sample is correct, it is counted as a pass, and the final metric is the pass rate across all problems. It measures the model's accuracy under a single attempt, as opposed to pass@k (at least one correct out of k samples). The solution coverage mentioned in this article focuses on the proportion of problem types that the model can correctly solve out of all problems, reflecting the breadth of the model's capabilities rather than the success rate on individual problems. Used together, the two can distinguish between "repeatedly succeeding on a few problems" and "succeeding on a more diverse set of problems"—which is one reason replay strategies are considered more valuable.

Successful-Trajectory Replay as a Mitigation Approach

Since endogenous forgetting is related to the temporal order of data, a natural idea is to reintroduce past successful experiences during training. The researchers explored a "successful-trajectory replay" strategy, in which historical successful trajectories are periodically mixed into the current batch during RL training.

Experiments on multiple reasoning tasks and across different model families showed that the replay strategy effectively reduces forgetting and lowers prompt-level performance fluctuations. More importantly, compared with standard RL, replay not only achieves comparable or higher final pass@1 metrics but also substantially improves solution coverage—meaning the model can solve a more diverse set of problems while maintaining overall performance.

Experience replay was originally a classic technique in deep reinforcement learning, which breaks the temporal correlation of data and stabilizes training by sampling old data from a historical experience buffer and mixing it with current new data during updates. In LLM RL post-training, the objects replayed are historical successful trajectories (i.e., complete reasoning sequences in which the model correctly solved problems), rather than single-step transitions. Unlike traditional uniform replay, the replay ratio, replay frequency, and criteria for selecting successful trajectories here all need to be tuned to the characteristics of LLM training. The replay mechanism essentially introduces a degree of "offline" component into the on-policy framework, thereby balancing data freshness and distribution stability.

Implications for RL Post-Training

This study reveals an easily overlooked mechanism in on-policy RL: the model's own evolution reshapes the data distribution, thereby triggering forgetting. This perspective has practical significance for designing more robust RL training pipelines. As a lightweight intervention, successful-trajectory replay requires no modification to the RL algorithm itself; it mitigates forgetting simply by adjusting the data sampling strategy, offering a scalable direction for future research.

Of course, replay strategies are not a panacea. They depend on a storage and replay mechanism for successful trajectories and may face storage overhead and replay-ratio tuning issues in long-horizon training. In addition, the study has so far validated the approach mainly on reasoning tasks, and its generality to broader task types remains to be explored. Nevertheless, this work provides a new entry point for understanding stability issues in RL post-training.

Endogenous Forgetting in RL Post-Training

Conclusion

Endogenous forgetting is a phenomenon worth guarding against in RL post-training, arising from the dynamic coupling between model evolution and data distribution. Controlled experiments confirm that chronological training exacerbates forgetting, while successful-trajectory replay effectively mitigates the problem and improves solution coverage while maintaining pass@1. For researchers and engineers working to scale RL training, incorporating a replay mechanism into the training pipeline may be a simple yet effective safeguard for stability.

#endogenous forgetting#on-policy RL#RL post-training#successful-trajectory replay#LLM fine-tuning
Share:

Related articles