When to Stop Reusing: Dynamic Gradient Gating for Sample-Efficient RLVR

Yuchun Miao, Sen Zhang, Yuqi Zhang, Yaorui Shi, Qi Gu, Xunliang Cai, Lefei ZhangarXiv 2026

TL;DR

Reinforcement Learning with Verifiable Rewards (RLVR) for LLMs is severely bottlenecked by the high computational cost of generating rollouts. While reusing rollout samples for multiple training updates seems like an obvious fix, it typically triggers catastrophic training collapse. This paper discovers that this collapse is heralded by a sharp, isolated weight divergence exclusively in the model's language modeling head (lm_head), and leverages this signal to create a lightweight gating mechanism that safely unlocks up to $2.93\times$ sample efficiency gains.

What Problem Does This Paper Address?

Algorithms like Group Relative Policy Optimization (GRPO)—which power modern reasoning models like DeepSeek-R1—rely on generating massive numbers of rollouts (sample answers) to learn from verifiable rewards (like compiler outputs or math checkers). This rollout generation phase is incredibly expensive, often eating up over 80% of the post-training GPU budget.

In classical reinforcement learning, you can easily improve sample efficiency by reusing a batch of rollouts for multiple gradient updates. However, when you try this with LLMs, it quickly leads to severe performance degradation. Successive updates create a vicious feedback loop where the model over-inflates the importance of rare "tail tokens," causing a catastrophic policy shift that corrupts the optimizer. As a result, AI engineers have been forced to stick to a conservative, computationally wasteful "single-use" regime where every rollout batch is discarded after just one update.

The authors of this paper set out to find a reliable, real-time warning signal that can detect this policy shift before it causes training collapse, allowing safe sample reuse.

Methods

The authors introduce Dynamic Gradient Gating (DGG), a lightweight, pre-optimizer intervention based on a newly discovered phenomenon they call Disproportionate Weight Divergence (DWD).

Instead of monitoring slow or unreliable global metrics like KL divergence, DGG focuses entirely on the gradient norm of the final lm_head layer:

  1. Online Detection via Z-Score: At each sample reuse step, DGG tracks the step-wise change in the lm_head gradient norm and computes a running Z-score against recent history.
  2. Pre-Optimizer Interception: If the Z-score exceeds a tuned threshold ($\tau$), indicating an anomalous surge, DGG steps in before the weights or the Adam optimizer states can be corrupted. It zeroes out the harmful gradients and immediately terminates the reuse loop for that batch, prompting the system to generate a fresh set of rollouts.

This method acts as a simple wrapper around standard RL loops and requires no modifications to the underlying loss function or optimizer.

Datasets

The authors evaluated DGG across 10 distinct benchmarks using Qwen3-4B-Instruct and Qwen2.5-7B-Instruct as base models:

  • Mathematical Reasoning: MATH500, AIME25, Minerva Math, and Olympiad Bench.
  • Agentic Tasks: ALFWorld and WebShop.
  • Search-Augmented QA: HotpotQA, 2Wiki, MuSiQue, and Bamboogle.

Key Insights and Ideas

  • The DWD Phenomenon: The core "aha!" moment of the paper is that training collapse is structurally asymmetric. When sample reuse destabilizes training, the intermediate layers (Attention and MLP blocks) remain perfectly stable, while the lm_head experiences an abrupt, isolated surge in weight divergence.
  • Structural Shielding: The authors mathematically prove (Theorem 1) why this happens: intermediate layers are inherently shielded from harmful gradients by downstream Jacobian projections. The toxic gradients caused by tail-token inflation concentrate almost entirely at the final layer.
  • A Principled Indicator: They also prove (Theorem 2) that the lm_head gradient norm strictly lower-bounds the empirical Pearson $\chi^2$ policy divergence. This makes it a mathematically certified signature of policy shift, whereas global gradient norms or clip ratios fail to show a clear spike at the onset of collapse.
Comparison of different monitoring signals showing the sharp spike in the LM Head gradient norm at the point of collapse.

Key Results

  • Substantial Speedups: DGG successfully reaps the benefits of sample reuse without the risk of collapse. It achieves up to a $2.93\times$ rollout speedup (sample efficiency) and up to a $2.14\times$ wall-clock speedup compared to the standard single-use baseline.
Table showing Rollout and wall-clock speedups of DGG across different models and tasks.
  • Preserved Performance: While naive sample reuse causes performance to plummet early in training, DGG consistently matches or slightly exceeds the final converged accuracy of the single-use baseline across all 16 experimental settings.
Performance curves over time showing how DGG matches or exceeds the baseline while naive reuse collapses.

Limitations and Future Work

The primary limitation of this work is its scope: the theoretical and empirical analyses were conducted exclusively using the GRPO objective, which does not utilize a separate value network. The authors note that future work is required to determine whether a similar structural divergence manifests at the value_head in standard PPO (Proximal Policy Optimization) pipelines when the value network collapses.

Summary updated

BibTeX
@misc{miao2026when,
  author = {Yuchun Miao and Sen Zhang and Yuqi Zhang and Yaorui Shi and Qi Gu and Xunliang Cai and Lefei Zhang},
  title = {{When to Stop Reusing: Dynamic Gradient Gating for Sample-Efficient RLVR}},
  year = {2026},
  eprint = {2605.19425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.19425},
}
Figure