NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reinforcement Learning Can Be Recovered From Its Own Rollouts

Jiayi Sheng, Jingwen Gu, Guanning Zeng, Zhaoyi Zhou, Stefano Viel, Qianqian Wang, Fahim Tajwar, Andrea Zanette

TL;DR

During reinforcement learning (RL) post-training, language models burn vast amounts of compute generating trial-and-error text ("rollouts"), only to throw that data in the trash after every weight update. This paper reveals that if you simply save those discarded rollouts—good and bad responses alike—you can completely reconstruct the RL run using plain supervised fine-tuning (SFT), without ever looking at a single reward signal. Even wilder: training on just the last step's worth of rollouts is often enough to match the final performance of a thousand-step RL run, turning exhaust fumes into reusable training assets.

What Problem Does This Paper Address?

When we post-train large language models with online RL (think GRPO or REINFORCE), the model samples multiple answers to a prompt, checks a verifier for binary rewards ($0$ or $1$), updates its weights, and deletes the generated answers. Autoregressive generation is the most expensive part of this loop, yet all the knowledge is assumed to live strictly inside the final model weights.

The authors ask a wonderfully fundamental question: How much of what a model learns during RL is actually captured in the data trail it leaves behind?

If you try the obvious thing—re-running the exact same RL algorithm offline on saved rollouts and rewards from the same starting model—it fails spectacularly. Tiny numerical differences cause the replayed model to drift slightly from the original policy. Because policy-gradient baselines (terms subtracted from rewards to lower variance) only cancel out to zero when data comes from the exact current model, this tiny drift creates a feedback loop that actively pushes the student model away from the data-generating distribution until it suffers catastrophic collapse.

Figure 1: Recovering online RL from its rollouts. (a) Recovering online RL with SFT. The online run samples a batch Dt at each step. The student ˆπt takes one SFT update on each Dt in order, which keeps it close to the online checkpoint πt. (b) MATH-500 pass@1 of Qwen3-1.7B-Base trained on the archived rollouts of an online MaxRL run. Replays marked w/ IS reweight each token by a truncated importance ratio. The three offline replays are evaluated every 10 steps, the other runs every 100.

Methods

To escape the RL replay trap, the authors ditch rewards and policy gradients altogether, turning instead to Supervised Fine-Tuning (SFT)—standard maximum likelihood estimation (next-token prediction)—on the raw, unfiltered rollouts. Because SFT minimizes the KL divergence toward the policy that generated each batch, any drift gets pulled back toward the online trajectory rather than amplified.

Figure 2: Recovering online RL from its saved rollouts. The online run saves the rollouts D0, . . . , DT −1 of every step. (a) For trajectory recovery, the student takes one SFT update on each batch in order. (b) For final policy recovery, the student trains with SFT on the rollouts of the last m steps only.

They explore four ways to use an unfiltered archive of RL batches $(D_0, \dots, D_{T-1})$:

  • Chronological Trajectory Recovery: Starting from the base model, take a single SFT update on each batch in exact historical order.
  • Endpoint Recovery: Skip the history and loop SFT updates solely over the rollouts from the last $m$ steps (often just $m=1$, the very last batch).
  • Data-Space Specialist Composition: Combine independent RL specialists (e.g., math + logic) by interleaving SFT updates on their archived rollouts rather than merging model weights.
  • Cross-Model Transfer: Train a smaller student model via SFT on a larger model's archived RL rollouts, zero extra sampling required.

Datasets

No new benchmarks are introduced. Models (Qwen3-0.6B/1.7B/4B-Base and SmolLM2-360M-Instruct) are trained and evaluated on established reasoning tasks:

  • Training: Polaris-53K, GSM8K, and Knights and Knaves (KnK) logic puzzles.
  • Evaluation: MATH-500, AIME25 (plus AIME24–26), BeyondAIME, Minerva, GPQA-Diamond, GSM8K, and KnK.

Key Insights and Ideas

  • RL's compute is spent finding a distribution, not learning it: Because SFT on a single late-stage rollout batch ($4,096$ responses) can match $1,000$ steps of online RL, the heavy lifting of RL appears to be searching for a better sampling distribution rather than performing complex credit assignment on each sample.
  • Incorrect answers don't need filtering: SFT replays all rollouts—both right and wrong—without reward labels. Because the online policy naturally generates more good answers over time, matching its raw distribution is enough.
  • Order is destiny: Chronological SFT tracks online RL step-for-step. Shuffling the batches plateaus early, and reversing them ($D_{T-1}$ down to $D_0$) shoots performance up initially before dragging the model right back down to base-model mediocrity.
  • Data merging beats weight merging: Weight-space merges (like TIES or task arithmetic) degrade badly on RL specialists due to parameter interference. Mixing their archived rollouts via SFT preserves both skills cleanly.

Key Results

  • Offline RL Collapses: Even with truncated importance sampling (IS) and score centering (SC), offline RL replays diverge—KL divergence spikes by orders of magnitude before accuracy crashes (Figures 1b & 3).
  • Near-Zero Recovery Error: Across $1,000$ steps of MaxRL on Qwen3-1.7B-Base, chronological SFT tracks online pass@k almost identically, achieving trajectory and endpoint errors between 0.002 and 0.011 across MATH-500, AIME25, GPQA-Diamond, and KnK (compared to base-model gaps up to 0.719). This holds for Qwen3-4B-Base, GRPO, and RLOO.
  • Last-Step Efficiency: On Qwen3-1.7B-Base, SFT on only the final RL step's rollouts ($m=1$) hits an endpoint error of 0.007 on MATH-500; in fact, a random half ($2,048$ rollouts) suffices. Smaller models like SmolLM2-360M need a slightly wider window ($m=50$ steps) to close the gap (0.009 error).
  • Zero-Cost Distillation & Merging: Composing math and KnK specialists via rollout SFT lands right on the Pareto frontier of both tasks, whereas weight merges lose roughly half their KnK accuracy. Similarly, training Qwen3-0.6B on Qwen3-1.7B's archived rollouts matches traditional policy distillation without generating a single new teacher token.

Limitations and Future Work

The experiments only test models up to 4B parameters, leaving behavior at frontier scale an open question. Furthermore, unfiltered SFT is strictly bounded by the teacher's distribution—it recovers online RL rather than surpassing it. Scaling these tests to larger models and finding ways to reuse rollout archives to actually improve upon the original RL run are key next steps.

Summary updated

BibTeX
@misc{sheng2026reinforcement,
  author = {Jiayi Sheng and Jingwen Gu and Guanning Zeng and Zhaoyi Zhou and Stefano Viel and Qianqian Wang and Fahim Tajwar and Andrea Zanette},
  title = {{Reinforcement Learning Can Be Recovered From Its Own Rollouts}},
  year = {2026},
  eprint = {2611.33102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33102},
}
Figure