Boosting Off-Policy RLVR with Data-Centric Replay

Yuxiao He, Ziqi Wang, Junge ZhangNeurIPS 2026

TL;DR

Training Large Language Models (LLMs) to reason via trial-and-error is wildly data-inefficient because we usually throw away generated reasoning traces after a single update. Reusing old data ("off-policy" learning) saves massive amounts of compute, but typically tanks performance because the model's safety mechanisms reject outdated data. This paper introduces STAR, a smart data-filtering framework that serves the model fresh, high-value memories—beating standard training accuracy in a fraction of the time using just 13% of the generated data.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR)—where an LLM tries to solve a math or coding problem and gets a binary pass/fail grade—is the secret sauce behind modern reasoning models. Today, RLVR is mostly on-policy: the model generates a batch of answers (rollouts), learns from them once, and immediately deletes them. Because generating long reasoning chains is painfully slow, throwing them away after one use creates a massive compute bottleneck.

The obvious fix is off-policy learning: save past attempts in a "replay buffer" and study them multiple times. Unfortunately, off-policy RLVR consistently underperforms on-policy baselines.

Why? To keep training stable, modern RL algorithms (like PPO and GRPO) use a "trust region" clipping mechanism. If a saved trajectory looks too different from how the current model behaves—a phenomenon called data staleness—its gradient gets clipped to zero. When sampling randomly from a replay buffer, so much data is stale that the algorithm clips away most of its own learning signal. Previous attempts tried loosening the clipping rules, which helps slightly, until you loosen them too much and training violently collapses.

Off-policy training dynamics showing accuracy gaps, high clipping fractions, and policy divergence, including the collapse of naive unclipping (Adopt-off).

Methods

Instead of tweaking the optimizer's math to tolerate bad data, the authors shift to a data-centric approach: STAR (Staleness-Aware Replay). Decoupled from the underlying RL algorithm, STAR upgrades standard uniform buffer sampling with two new mechanisms:

  1. Weighted Resampling (Optimization Phase): Instead of grabbing historical rollouts at random, STAR scores and samples them based on freshness and informativeness:
  2. Low Staleness: It prioritizes trajectories where the length-normalized Importance Sampling ratio ($\bar{\rho}$) between the current policy and the old behavior policy is close to 1—meaning the old response still looks like something the current model might say.
  3. High Quality: Computing exact per-sample gradients is too expensive, so the authors prove a nifty mathematical shortcut: a prompt's expected gradient magnitude is proportional to the variance of its group pass rate, $a(1 - a)$. Prompts that the model gets right half the time ($a = 0.5$) provide the richest learning signal, whereas already-mastered ($a=1$) or impossible ($a=0$) prompts contribute almost nothing.
  4. Hard-Sample Recurrence / HSR (Rollout Phase): Studying old memories repeatedly can cause "entropy collapse," where the model prematurely locks into narrow strategies. HSR keeps a pool of prompts where accuracy falls below 10% and swaps them into 5% of new rollout batches, forcing the model to keep exploring its capability boundaries.

Datasets

No new benchmarks are introduced; the authors evaluate on established reasoning and coding suites:

  • Math: Trained Qwen-2.5-Math-7B on DeepScaler; evaluated on AIME 2024, AIME 2025, AMC 2023, Minerva Math, OlympiadBench, and Math500.
  • Code: Trained Llama-3.2-Instruct-3B on a mix of Taco, Codeforces, CodeContests, and APPS; evaluated on HumanEval, LeetCode, and LiveCodeBench.

Key Insights and Ideas

  • Relaxing trust regions hits a hard wall: In a clever diagnostic experiment (Adopt-off in the figure above), the authors forced off-policy training to clip the exact same percentage of tokens as on-policy training. Accuracy briefly spiked, then crashed completely. You cannot algorithmically force an LLM to safely digest super-stale data.
  • Staleness mathematically Starves the Optimizer: The authors prove (Theorem 1) that the Total Variation (TV) distance between the current and historical policies upper-bounds the "discard loss" (the optimization signal lost to clipping). Empirically, this discard loss correlates remarkably well ($R^2 = 0.970$) with the accuracy drop relative to on-policy training.
  • Pass-rate variance is a free proxy for gradient value: Rather than running extra backward passes to see which memories are worth replaying, $a(1 - a)$ gives you an instant, zero-cost estimate of sample quality using accuracy stats already collected during generation.

Key Results

STAR acts as a universal booster across five RLVR backbones (GRPO, GSPO, M2PO, DCPO, and BAPO):

  • Surpassing On-Policy Accuracy: While all five standard off-policy algorithms fall short of the on-policy GRPO baseline on math (44.5%), adding STAR pushes every single one past the baseline. Vanilla off-policy GRPO jumps from 39.4% to 47.2% (+19.8% relative gain), and M2PO+STAR hits 47.5%. Coding tasks see a similar bump (reaching 36.3% vs. 34.1% on-policy).
  • Massive Speed and Data Efficiency: To match the converged accuracy of on-policy GRPO (which takes 1,228k rollouts and 37.0 hours), off-policy GRPO with STAR needs fewer than 1/3 of the steps, just 160k rollouts (13.0%), and 6.7 hours—a 5.5$\times$ wall-clock speedup.
Figure 1: STAR improves the performance and efficiency of off-policy RLVR. We use GRPO as the backbone algorithm and Qwen-2.5-Math-7B as the base model. Rollout cost is measured by the number of generated trajectories. Left: STAR substantially improves off-policy training, reaching the converged performance of on-policy RLVR within fewer than 1/3 of the training steps. Right: STAR reaches the converged performance of on-policy RLVR using only 13.0% of the rollout data, while achieving a 5.5× wall-clock speedup.

Limitations and Future Work

  • PPO-Clip Assumption: The theoretical bounds specifically assume PPO-style clipping trust regions, so they may not directly translate to radically different off-policy RL objectives.
  • Binary Rewards Only: Both the theory and the $a(1 - a)$ quality proxy rely on bounded advantages and binary (pass/fail) verifiable rewards. Extending STAR to open-ended generation with nuanced, continuous, or learned reward models remains an open question.
  • Model Scale: Experiments top out at 7B parameters; scaling STAR up to frontier-sized models is left for future work.

Summary updated

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has become an important approach for improving the reasoning capabilities of large language models (LLMs). On-policy training remains the dominant RLVR paradigm, but its reliance on fresh rollouts leads to poor data efficiency. To address this bottleneck, off-policy paradigm has attracted increasing attention by reusing historical trajectories through replay buffers. Despite its efficiency advantages, off-policy training often struggles to match the performance of on-policy training. Our analysis reveals that this limitation primarily stems from data staleness introduced by replay buffers: to maintain training stability, mainstream algorithms discard a large fraction of high-staleness optimization signals, leading to substantial performance degradation. To address this issue, we propose **STAR** (**St**aleness-**A**ware **R**eplay), a data-centric replay framework decoupled from specific optimization algorithms. STAR improves off-policy RLVR by constructing low-staleness and high-quality training data. Experiments on a range of mathematical reasoning and code generation tasks show that STAR consistently improves off-policy RLVR with up to 19% relative performance gains, and enables it to surpass the on-policy baseline using only around 13% of the rollout data while achieving 5x-6x wall-clock speedup.
BibTeX
@inproceedings{he2026boosting,
  author = {Yuxiao He and Ziqi Wang and Junge Zhang},
  title = {{Boosting Off-Policy RLVR with Data-Centric Replay}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9dxvGd7Shr},
}
Figure