Efficient RL Training for LLMs with Experience Replay
Organizations: FAIR at Meta · NYU Courant Institute and CDS
Abstract
While Experience Replay - the practice of storing rollouts and reusing them multiple times during training - is a foundational technique in general RL, it remains largely unexplored in LLM post-training due to the prevailing belief that fresh, on-policy data is essential for high performance. In this work, we challenge this assumption. We present a systematic study of replay buffers for LLM post-training, formalizing the optimal design as a trade-off between staleness-induced variance, sample diversity and the high computational cost of generation. We show that strict on-policy sampling is suboptimal when generation is expensive. Empirically, we show that a well-designed replay buffer can drastically reduce inference compute without degrading - and in some cases even improving - final model performance, while preserving policy entropy.
Figures & tables
| (W, T) | (7,1) | (6,2) | (5,3) | (4,4) | (2,6) | (1,7) |
|---|---|---|---|---|---|---|
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Median | IQR | # Independent runs |
|---|---|---|---|
| Qwen3-0.6B | |||
| Qwen2.5-7B |
| (W, T) | (7,1) | (6,2) | (5,3) | (4,4) | (2,6) | (1,7) |
|---|---|---|---|---|---|---|
Experience Replay
Experience replay stores and reuses past examples or trajectories to improve learning efficiency, stability, and retention across tasks.
See all 45 papers