Reinforcement Learning Can Be Recovered From Its Own Rollouts
Organizations: Carnegie Mellon University · University of Illinois Urbana-Champaign · Tufa Labs · Harvard University
Abstract
Broadly speaking, reinforcement learning (RL) post-training converts compute into model capabilities by training on model-generated data. Typically, the rollouts are discarded after each update, and the knowledge acquired during RL resides in the model weights. In this work, we investigate how much of this knowledge is retained in the rollouts themselves. A natural first attempt is to replay the original RL algorithm on archived (rather than freshly generated) rollouts, but this generally leads to catastrophic collapse. We provide a simple explanation for this phenomenon, which in turn suggests a remedy we call maximum likelihood replay: fitting the model to its archived rollouts. Surprisingly, starting from the same base model and replaying the rollouts in the order in which they were generated, without any distinction between correct and incorrect responses, is sufficient to recover the performance of online RL. In fact, a single maximum likelihood update per rollout batch closely tracks the entire learning curve of online RL. Furthermore, maximum likelihood replay on the rollouts of the last few RL steps often suffices to recover the final model's performance. This suggests that much of the compute invested in RL goes into discovering an improved sampling distribution rather than learning it from samples.
Figures & tables
| Algorithm | Prompt weight |
|---|---|
| REINFORCE, RLOO | |
| GRPO | |
| MaxRL |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Online MaxRL | Replay | Evaluation |
|---|---|---|---|
| Qwen3-1.7B-Base, Polaris-53K | 1000 steps, 256 prompts 16 rollouts per step. lr , constant | Replay: AdamW, lr , constant, wd 0.01, clip 1.0, max length 6144; 1000 updates. Last step only: the 4096 rollouts of step 1000, 200 updates. Offline MaxRL: same rollouts and lr, with the online MaxRL advantage computed from the 16 stored rewards per prompt, one update per stored step | Figures 4 and 5 : 128 samples per question, every 100 steps. Figure 8 : 512 samples |
| Qwen3-4B-Base, Polaris-53K | 1000 steps, 256 prompts 16 rollouts per step; lr , constant | Replay on the archived rollouts in order: AdamW, lr , constant, wd 0.01, clip 1.0, max length 6144; 1000 updates | Figure 5 : 1024 samples per question, final checkpoint |
| Qwen3-1.7B-Base, Knights and Knaves | 1000 steps, 256 puzzles 16 rollouts per step. lr , constant | Replay: AdamW, lr , constant, wd 0.01, max length 8192; 1000 updates. Last step only: the rollouts of step 1000, evaluated after 500 updates | Replay: 32 samples per puzzle. Online: 32 samples per puzzle every 100 steps, 128 at the final checkpoint |
| SmolLM2-360M-Instruct, GSM8K | 1500 steps, 256 prompts 128 rollouts per step; AdamW, lr , constant; response length 2048 | Replay: AdamW, lr , constant, on the last 1, 5, or 50 steps; all compared after 420 updates | 32 samples per question; pass@ for is the bootstrap estimate computed by verl |
| Online MaxRL | Maximum likelihood replay | |
|---|---|---|
| Initialization | maze_ckpt1500 | same |
| Data per step | 256 mazes 32 rollouts | one archived RL step (8192 rollouts) |
| Length (prompt / response) | 320 / 180 tokens | 512 tokens in total |
| Objective | MaxRL advantage, no KL | NLL on all rollouts |
| Optimizer | AdamW, lr , constant | AdamW, lr , constant, wd 0.01, clip 1.0 |
| Rollout sampling | temperature 1.0 | – |
| Online MaxRL | Offline replay | |
|---|---|---|
| Initialization | ResNet-50 | same |
| Data per step | 256 images 1024 rollouts | one archived RL step (262144 rollouts) |
| Input resolution | (RandomResizedCrop from ) | same ( center crop for eval) |
| Objective | MaxRL advantage, no KL | maximum likelihood replay: NLL on all rollouts; Offline REINFORCE: NLL on correct rollouts only; Offline MaxRL: all rollouts, weighted by the MaxRL advantage |
| Optimizer | SGD, lr , momentum , wd , cosine decay with 2-epoch warm-up, clip | same |
| Rollout sampling | softmax temperature 1.0, multinomial with replacement, per image | – |
| Checkpoint | MATH500 | Minerva | BeyondAIME | AIME24 | AIME25 | AIME26 | All Math | KnK | |
|---|---|---|---|---|---|---|---|---|---|
| Base model and Online-MaxRL final checkpoints | |||||||||
| Qwen3-1.7B-Base | pass@1 | 57.4 | 21.1 | 1.2 | 4.0 | 3.1 | 1.7 | 36.2 | 2.1 |
| pass@8 | 82.3 | 43.1 | 6.4 | 14.9 | 15.4 | 7.1 | 56.8 | 12.3 | |
| pass@32 | 89.2 | 52.2 | 14.0 | 26.4 | 29.3 | 10.0 | 64.6 | 27.4 | |
| Online MaxRL (Polaris-53K) | pass@1 | 70.8 | 30.5 | 1.6 | 11.6 | 7.4 | 6.4 | 46.4 | 3.4 |
| pass@8 | 88.5 | 47.9 | 8.7 | 25.9 | 20.9 | 18.6 | 62.5 | 16.2 | |
| Checkpoint | MATH500 | Minerva | BeyondAIME | AIME24 | AIME25 | AIME26 | All Math | KnK | |
| Last-step | |||||||||
| Last-step alternating replay | pass@1 | 70.8 | 30.7 | 1.7 | 11.7 | 6.9 | 6.3 | 46.4 | 68.3 |
| pass@8 | 88.2 | 47.9 | 9.2 | 26.0 | 18.2 | 20.0 | 62.4 | 88.1 | |
| pass@32 | 92.8 | 56.2 | 17.0 | 33.3 | 30.0 | 33.3 | 68.9 | 94.1 | |
| Last-step alternating replay (token-balanced) | pass@1 | 70.4 | 30.5 | 1.8 | 11.9 | 6.2 | 5.7 | 46.2 | 68.0 |
| pass@8 | 87.9 | 48.0 | 9.3 | 24.2 | 18.1 | 19.4 | 62.1 | 87.8 | |
RL Post-Training
Reinforcement learning post-training adapts pretrained models with reward or feedback signals to improve reasoning, alignment, and interactive behavior.
See all 475 papers