arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.18738

Enabling Token-wise Importance Sampling in Off-Policy RLVR with Proximal KL Regularization

Hao Bai, Jiarui Yao, Tong Zhang

Abstract

In reinforcement learning with verifiable rewards (RLVR), asynchronous generation, differences between rollout and training policies, and response reuse across optimizer minibatch updates can all produce off-policy data. Token-wise importance weighting allows policy-gradient methods to reuse these responses without multiplying likelihood ratios across a long response, but it generally biases the gradient. We prove that, under coverage and local expressiveness conditions, adding full future KL credit makes the exact proximal optimizer the update's unique stationary policy. The result holds even when responses come from a mixture of older policies and requires neither full-response importance weights nor a fitted critic. We also prove convergence of continuous-time tabular population updates under persistent coverage and time-varying behavior policies, and give a finite-sample reward guarantee for linear logistic models under additional assumptions. These results motivate Proximal KL, a practical off-policy RLVR method that separates the proximal reference from the sampling policy and replaces ordinary PPO clipping with bounded future KL credit. Across all seven matched off-policy comparisons on Qwen3-1.7B and Qwen3-4B, Proximal KL achieves higher micro-averaged accuracy than GRPO over eight math benchmarks, spanning two learning rates, response reuse, and rollout staleness. The absolute improvement in micro-averaged accuracy reaches 2.58%. A separate on-policy comparison shows comparable aggregate accuracy for the two methods. These gains accompany stable optimization: in the periodic-refresh experiments, Proximal KL avoids the training collapses observed in PG and CISPO, attains higher training accuracy than GRPO, and reaches higher accuracy in fewer policy updates. To explain these gains, ablations first compare how off-policy sampling is corrected: token-wise weighting outperforms sequence-level and unweighted controls. With token-wise correction retained, future KL feedback reduces sensitivity to the tested baseline perturbation relative to PPO clipping. The extent of this feedback matters as well: a finite future cost horizon improves AIME24 mean@16 and pass@16 over the full tail, while fixed-policy measurements show that truncation reduces correction variance over the tested horizons.

Project page: https://biechi.github.io/blog/offpolicy-proximal-kl/

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) optimizes a policy from verifier-scored responses, often generated by a behavior policy that differs from the policy being optimized. This off-policy mismatch has several sources. Asynchronous systems overlap generation and optimization, so responses may come from earlier policy versions (Fu et al., 2025; Bai et al., 2026; Zhu et al., 2025; RadixArk, 2026). Reusing collected trajectories across optimizer minibatch updates introduces mismatch as the current policy changes, even when collection is synchronous. We study the common problem of learning from these off-policy responses.

Policy-gradient methods such as GRPO and DAPO use token-wise importance ratios (Shao et al., 2024; Yu et al., 2025). Exact importance correction of a response-level objective instead multiplies the ratios across the response, which can have high variance for long responses. Token-wise weighting avoids this product but generally biases the gradient. We ask when an update based on token-wise weights and sampled rewards, without a fitted value or Q function, still retains the proximal target. This target is the optimizer of a KL-regularized objective.

We study a proximal objective that penalizes the reverse KL divergence from the current policy to a reference policy held fixed during each optimization round (Geist et al., 2019; Tomar et al., 2022). The reference defines the improvement target, while the behavior policy determines the sampling distribution. Following batch-size-invariant policy optimization (Hilton et al., 2022), we separate these policies so the target remains fixed even when the data-generating distribution differs from the current policy. For autoregressive responses, the regularized policy gradient assigns each token the current and all future token log-ratio costs, as expressed by Future-KL credit (Yao et al., 2026). We combine this full credit with a single importance ratio for the current token.

Our main result shows that, under coverage and local expressiveness, the expected token-wise update with full future KL credit vanishes if and only if the learner equals the proximal optimizer. The result holds for any supported stale behavior policy or mixture of behavior-policy versions, although the expected update can differ from the exact proximal gradient away from the optimizer. The proof uses the soft path-consistency identity established by PCL and Trust-PCL (Nachum et al., 2017, 2018). With independent tabular logits and persistent coverage, we further prove convergence of continuous-time updates (Appendix E).

To study learning from sampled responses, we also give a finite-sample reward guarantee after repeated reference refreshes for a linear logistic model, whose token logits depend linearly on trainable parameters through fixed features (summarized in Theorem 2, with the precise statement in Appendix F). Under its assumptions, the final policy approaches the comparator's expected reward for a single response. Its mismatch condition bounds the sum of learner-weighted squared token log ratios along each response path, and the update never forms the response-level product of ratios. This analysis motivates a practical algorithm that can also be applied to nonlinear models such as Transformers.

Guided by these results, we develop Proximal KL Regularization (Proximal KL). The practical update records each token's behavior probability, periodically refreshes the proximal reference, and subtracts bounded future KL costs from a group-relative reward advantage before applying the token-wise importance weight. A bound on each log-ratio cost limits individual contributions, while a tunable horizon limits how many future costs are included. The update omits ordinary PPO clipping. Section 4 discusses the trade-off between bias and variance when bounding the costs, and Section 6.4 evaluates these choices empirically.

Contributions. To our knowledge, this is the first stationary-policy guarantee for critic-free token-wise importance weighting with full future KL credit under supported stale behavior mixtures. We also prove tabular convergence and, for a realizable linear logistic model, a finite-sample reward guarantee under correct-solution coverage using a full-credit group update with repeated reference refreshes (Theorem 2). Our empirical comparisons show that Proximal KL achieves higher micro-averaged held-out accuracy than GRPO in all seven matched off-policy settings in Section 6.3. These gains span eight math benchmarks, 1.7B and 4B models, and the tested learning rates and rollout staleness levels, including fresh rollouts reused across optimizer minibatches. In the separate on-policy comparison, Proximal KL attains aggregate accuracy comparable to GRPO. Complementary periodic-refresh experiments show that Proximal KL sustains training gains through the collapses observed in PG and CISPO and attains higher training accuracy than GRPO at compara-able optimizer-update counts (Section 6.2). The ablations connect these outcomes to update design: current-token importance correction outperforms Sequence-level IS and IS-free settings, and future KL feedback is less sensitive to the tested baseline perturbation than PPO clipping. The tightest tested future-cost bound combines strong accuracy with smaller gradient-norm excursions, while a finite horizon outperforms both strong local and full-tail corrections. Fixed-policy measurements confirm that truncation reduces correction variance over the tested horizons (Section 6.4).

References (100)

Couldn't load all references. Reload the page to try again.