Manuscript Offprint
arXiv:2610.20814Gibbs-Gap Policy Optimization for Off-Policy RL with Verifiable Rewards
Abstract
Reinforcement learning with verifiable rewards often trains language models on responses generated by a different, possibly stale behavior policy. Correcting this mismatch with learner-to-behavior importance weights can introduce high variance for long responses. We introduce Gibbs-Gap Policy Optimization (GGPO), which minimizes a log-mean-exp contrast of KL-adjusted rewards among responses to the same prompt, without learner-to-behavior importance weights. We derive GGPO from KL-regularized policy optimization: on policy, its population loss is exactly the KL-regularized optimality gap, and under suitable coverage the learner's single-response expected reward is at least the behavior policy's best-of-K reward, minus terms for the raw finite-group loss, regularization, and finite training data. We characterize reference refresh through exact Gibbs-target composition and a finite-data final-policy reward bound under local reference control and tokenwise behavior mismatch. This refresh is empirically important: in an ablation, fixed-reference GGPO scores 32.96 on the five-benchmark problem-weighted average, versus 46.58 with the default refresh schedule. Experiments on mathematical reasoning further show that GGPO outperforms GRPO and AGRO under training-inference mismatch and on fixed offline data, while maintaining its performance as controlled policy staleness grows.
1 Introduction
Reinforcement learning with verifiable rewards (RLVR) improves language-model reasoning by using automatic checks to evaluate task outcomes (Guo et al., 2025). In group-based methods, the model generates several responses to each prompt, and differences in their rewards provide a learning signal (Shao et al., 2024; Yu et al., 2025). These groups also suggest a natural performance target. If selecting the highest-reward response from a group improves on drawing a single response, we would like to train a learner whose individual responses approach the reward of that selection procedure. This motivation also underlies reward-ranked fine-tuning methods such as RAFT (Dong et al., 2023) and reasoning variants such as RAFT++ (Xiong et al., 2025). In practice, however, the policy that generates the group may differ from the learner being trained. During asynchronous generation, responses can arrive from an earlier policy version; even within a rollout batch, sequential learner updates can make the remaining responses stale (Noukhovitch et al., 2025; Zheng et al., 2025a). We refer to the policy generating these responses as the behavior policy , and to the policy being trained as the learner . The distinction is also relevant in offline training, where sampled responses remain fixed while the learner continues to change. Moreover, synchronizing policy parameters does not necessarily eliminate the mismatch: training and inference can use different implementations or numerical precision (MiniMax et al., 2025; Zhong et al., 2026).
A standard way to account for this mismatch is importance sampling, which weights behavior-policy data by the learner-to-behavior likelihood ratio . For an autoregressive response, this ratio is a product of conditional token ratios. Small differences at individual token positions can
Code is available at https://github.com/thunderous77/GGPO.
therefore accumulate over a long response, producing highly variable weights and making the update sensitive to a few sampled responses. Practical methods control these contributions through clipping, truncation, or masking (Schulman et al., 2017; Yu et al., 2025; Zhong et al., 2026; Ling Team et al., 2025; Zheng et al., 2025b). These choices involve both where to apply the correction, such as at the token or response level, and how strongly to limit it. They can reduce variance, but also introduce bias. This tradeoff motivates an alternative: learn directly from behavior-policy response groups through an objective that retains a quantitative connection to the learner's reward, without requiring learner-to-behavior importance weights in the update.
We introduce Gibbs-Gap Policy Optimization (GGPO), which learns from contrasts in KL-adjusted rewards among responses to the same prompt, without learner-to-behavior importance weights. Under bounded coverage, its finite-group loss controls the gap between the learner's single-response expected reward and the reward obtained by best-of-K selection from the behavior policy. Thus the response groups serve both as training data and as a reward benchmark for the learner. Groups of order K suffice for this comparison, and a uniform generalization bound extends it to finite data.
The construction follows from KL-regularized duality, which identifies a Gibbs policy whose adjusted reward is constant across responses. GGPO measures departures from this condition through contrasts within each group. On policy, its population loss equals the regularized optimality gap. For finite groups, we establish the reward comparison directly, without requiring accurate estimation of that population loss.
A fixed reference defines a single Gibbs target. Refreshing the reference to the current learner changes that target, allowing successive rounds to build on earlier progress. We characterize how exact targets compose across rounds and bound the reward of averaged outputs when updates are imperfect, under coverage and bounded adjusted-reward spread. Under binary rewards and local reference control, a finite-data guarantee bounds the final policy's reward using aggregate tokenwise mismatch and achieved fitting accuracy. Under its assumptions, the expected reward of one response from the trained policy can approach that of selecting the best of K responses from the initial policy. Section 5 summarizes this guarantee; Appendix B.1 gives the precise result.
GGPO builds on earlier work on off-policy consistency. AGRO (Tang et al., 2026) minimizes the variance of the same adjusted reward and identifies the same regularized optimum under common support. Although the two objectives share this target, they measure departures from it differently. We compare their objectives and guarantees in Section 2 and evaluate GGPO against GRPO and AGRO under training-inference mismatch, controlled policy staleness, and offline training.
Our contributions are:
• An off-policy group objective with a direct reward guarantee. GGPO minimizes the log-mean-exp contrast of KL-adjusted rewards within behavior-policy response groups, without learner-to-behavior importance weights. On policy, its population value is exactly the KL-regularized optimality gap. Off policy, coverage bounds that gap. Its raw finite-group loss bounds the gap between the learner's single-response expected reward and the behavior policy's best-of-K reward, with explicit terms for the loss, regularization, reference-behavior mismatch, and group size. A uniform empirical bound and oracle inequality extend this comparison to finite data.
• A characterization of periodic reference refresh. When each round exactly fits its Gibbs target, T refresh rounds at temperature implement one Gibbs update at temperature . This explains how refresh changes the target across rounds. For imperfect updates, a finite-data guarantee controls the final policy reward using aggregate tokenwise mismatch and achieved inner optimization accuracy. An ablation shows that periodic refresh substantially improves GGPO under the default training setting.
• Evaluation across behavior–learner mismatch regimes. On five mathematical-reasoning benchmarks and two model sizes, GGPO outperforms GRPO and its closest objective-level comparator AGRO under training-inference mismatch. It maintains its accuracy as the synchronization delay grows from N = 8 to N = 128, while GRPO and AGRO decline. At N = 128, token-level TIS improves GRPO, while GGPO achieves higher accuracy under the same synchronization delay. On a fixed offline rollout pool, GGPO has the highest MATH-500 accuracy at every checkpoint from 160 updates onward.
Group RLVR and behavior–learner mismatch. GRPO (Shao et al., 2024) uses within-group advantages in a PPO (Schulman et al., 2017) surrogate. Building on this group-based approach, DAPO (Yu et al., 2025), Dr.GRPO (Liu et al., 2025), and GSPO (Zheng et al., 2025b) modify sampling, normalization, or PPO-style ratio aggregation. MaxRL (Tajwar et al., 2026) derives success-normalized on-policy updates from a maximum-likelihood formulation. Its centered estimator is related to a special binary-reward limit of GGPO's update coefficients, detailed in Appendix A.4.
When the behavior policy differs from the learner, the update must also account for how the responses were sampled. Under this mismatch, asynchronous RLHF (Noukhovitch et al., 2025) studies staleness and IMPALA (Espeholt et al., 2018) uses V-trace. In LLM training, Zhong et al. (2026) studies truncated old-trainer-to-rollout correction weights alongside a PPO ratio whose denominator is the old trainer policy. This correction and PPO denominator serve different roles from GGPO's KL reference. Other methods mask ratio-based contributions (Ling Team et al., 2025; Li et al., 2026) or restructure learner-to-behavior ratios (Zhang et al., 2026b). These corrections trade importance-weight variance against clipping, truncation, or masking bias (Huang et al., 2026). GGPO does not evaluate learner-to-behavior correction ratios, while its population guarantee depends on behavior coverage.
In concurrent work, Marek and Ryabinin (2026) center token-level policy scores under the sampling distribution to remove an additional drift term induced by training-inference mismatch. This additive correction can be combined with importance weighting. GGPO derives a response-group objective from KL-regularized duality and contrasts KL-adjusted rewards using a separately maintained reference. Its update uses likelihoods of sampled responses under the learner and reference, rather than the sampler's next-token distribution.
Objectives without learner-to-behavior importance weighting. PCL/Trust-PCL (Nachum et al., 2017, 2018) optimize squared soft consistency residuals on off-policy trajectories. In language-model training, Kimi k1.5 (Kimi Team et al., 2025) uses squared Gibbs-consistency regression with an iteratively updated reference. Contrastive Policy Gradient (Flet-Berliac et al., 2024) uses a pairwise quadratic objective under fixed sampling distributions. OAPL (Ritter et al., 2026) regresses an estimated optimal advantage using the behavior policy as its KL anchor; its learner-to-behavior log ratio is a regression term, rather than an importance weight. AsymRE (Arnal et al., 2025) scales positive and negative feedback asymmetrically. DRO (Richemond et al., 2024) applies a squared penalty to the optimality residual while jointly estimating the value offset. These methods show that off-policy learning can be approached through consistency conditions, without learner-to-behavior correction ratios. GGPO follows this general approach, using a contrastive loss whose value can be related directly to reward.
Relation to AGRO. AGRO (Tang et al., 2026) is our closest objective-level comparator and an earlier example with an off-policy consistency guarantee. It minimizes the behavior variance of the same KL-adjusted reward. Theorem 2 of Tang et al. (2026) establishes that the regularized optimal policy is the unique global minimizer under common support, shared by GGPO.
GGPO’s distinction is the direct alignment of its loss value with the KL-regularized objective. Its exponential form is derived from the exact duality residual. This gives a direct interpretation of the loss value: at the population level and when behavior equals learner, the loss equals the regularized optimality gap for every positive candidate policy. Off policy, the connection becomes a coverage-dependent upper bound. AGRO’s variance loss, scaled by , is the local quadratic approximation to this population contrastive loss when adjusted-reward spread is small relative to (Appendix A.6). GGPO’s finite-group loss additionally admits a direct best-of-K reward bound and an empirical generalization bound. The finite-group variance comparison also yields a reward bound in terms of AGRO’s population variance objective (Eq. (39)). Appendices A.4 and A.6 give the gradient and finite-group weighting comparisons. The experiments compare the practical consequences under matched settings.
We also acknowledge related unpublished work by Audrey Huang and collaborators on coverage collapse and reference re-anchoring in policy optimization after pre-training (private communication with Nan Jiang, October 2026).
3 From KL regularization to a contrastive loss
We treat a complete response as one action in a contextual bandit. Fix a prompt , a finite action space , reward , temperature , and a reference policy with positive support. Define
Let and over all policies on . The unique maximizer is the Gibbs policy
The Gibbs variational identity (Richemond and Maginnis, 2017) gives a useful way to recognize this optimum. When is the Gibbs policy, its adjusted reward is constant across responses to the same prompt. This suggests learning by comparing adjusted rewards: if they differ among sampled responses, the learner has not yet satisfied this optimality condition.
We can test this condition using behavior-policy samples, even when the behavior policy differs from the learner. To quantify the differences, define the population contrastive loss
The following proposition states its dual interpretation and its relation to the original KL-regularized objective.
Proposition 1 (Population duality and regularized optimality). Suppose , , and are positive on . Define and . Then
With ,
Over all positive policies, the minimum contrastive loss is zero and its unique minimizer is . When , equals the exact KL-regularized optimality gap.
The ratio enters the analysis but is not evaluated as an update weight. For long responses, the worst-case sequence ratio in Eq. (5) can be large. Lemma 17 in Appendix B gives an alternative bound that converts finite-group loss into a proximal objective gap using aggregate tokenwise mismatch. Under its local reference assumptions, this can reduce the coverage dependence of the error bound without requiring a smaller . Appendix A.1 proves the proposition. Training uses finite groups, whose expected loss differs from and requires the separate guarantee in Section 4.4.
4 Gibbs-Gap Policy Optimization
We first describe the finite-group objective, its gradient, and the training procedure. We then state the reward guarantees for finite groups and periodic reference refresh.
4.1 From the population objective to finite groups
Given responses , let and define their KL-adjusted rewards . Replacing the behavior expectations in Eq. (3) with their empirical averages yields the single-group loss
This log-mean-exp gap compares the adjusted rewards within the sampled group. It is zero if and only if all responses in the group have the same adjusted reward, matching the optimality condition used to construct the population objective.
Let be the prompt distribution. For fixed and , the expected finite-group target and its prompt average are
(7)
We suppress the fixed and reference in the loss notation, writing when specifying the reference is necessary. Although the group loss replaces expectations by sample averages, its expectation is not generally the population loss: the logarithm is nonlinear. For i.i.d. groups, , the two share the same zero set for every , and as the group size grows (Proposition 5). Sharing the same zero set means that both losses identify the same unrestricted target. It does not, however, make their values interchangeable in a reward bound. We therefore compare finite-group loss directly with a reward benchmark.
4.2 Gradient and normalized training loss
Minimizing the group loss gives a weighted contrast between responses. To see how each response contributes to the update, define the within-group tilt
Let denote the uniform distribution on the sample indices. Then , so the finite-group loss penalizes deviations of the adjusted-reward tilt from uniformity. Holding rewards, actions, and reference likelihoods fixed during an actor update gives
Under gradient descent, responses with receive positive update coefficients, while those with receive negative coefficients. The behavior policy determines which responses appear in the group; the update uses no learner-to-behavior correction weight. The coefficient can also be written
The reward term in Eq. (10) separates reward classes, while the learner-to-reference ratio redistributes weight among similarly rewarded responses. This separates two effects in the update: rewarding successful responses and adjusting their relative likelihoods with respect to the reference. With binary rewards and small , concentrates on correct responses. Incorrect responses receive the same limiting negative coefficient, while the weights among correct responses follow a softmax of their negative learner-to-reference log ratios. GGPO therefore gives larger coefficients to correct responses whose likelihood has grown less relative to the reference, and the net coefficient summed over correct responses is largest when only one response in the group is correct. Figure 6 compares these coefficients analytically. At the population level, the frozen-behavior gradient of contrasts the behavior distribution with its induced exponential tilt. When , equals the exact regularized gap, while its frozen-behavior gradient follows the forward-KL/cross-entropy direction toward . Appendix A.4 gives the population relation, limiting cases, and coefficient analysis; Appendix C.4 reports weight-concentration diagnostics.
For a minibatch of retained groups, let . To reuse GRPO's training hyperparameters, we use
where is the minibatch mean response length. This positive normalization leaves the direction of each realized minibatch gradient unchanged. It removes the exterior and converts the sequence-level group average to a token-mean coefficient scale, allowing us to use the same training hyperparameters across methods. Appendix A.4 gives the full calculation.
Training retains only mixed-reward groups, so the minibatches used by the optimizer differ from the unfiltered groups in the analysis. For deterministic binary rewards, filtering and positive normalization preserve the zero set on behavior support for each prompt with (Proposition 9). The resulting training objective averages over the retained prompt distribution. The population and empirical best-of-K bounds concern the raw, unfiltered loss.
4.3 Practical GGPO algorithm
Let N be the number of learner minibatches consumed from one frozen behavior collection. This number is the synchronization delay N: the learner continues updating while the behavior collection remains fixed. We synchronize the rollout parameters with the learner, collect mixed-reward groups, and partition them into N disjoint minibatches. Each minibatch receives one optimizer update and is consumed once. Parameter synchronization does not remove the training-inference mismatch discussed in Section 6.
Periodic reference refresh is part of the GGPO training algorithm used in our main experiments. Every optimizer updates, we set and hold it fixed between refreshes. This resets the learner-to-reference log ratio in Eq. (10), keeping the anchor local to the current training stage (Appendix A.3). AGRO shares the same reference-dependent Gibbs target, so this motivation applies to its reference updates as well.
Algorithm 1 gives the original, unclipped training procedure. The optional token-clipping variant is described below. The reference schedule uses the global optimizer-update counter, independently of collection boundaries. If a refresh occurs within a collection, the remaining responses stay fixed and the next minibatch uses the new reference. Collection allows at most 32 generation batches, including the initial batch, and stops with an error if the target cannot be filled (Appendix C.1).
Here is the valid-response-token mask. Rewards, sampled tokens, reference probabilities, and masks are held fixed in differentiation; gradients flow directly through the learner probabilities in the log-mean-exp loss. The weights explain this gradient but need not be constructed as a separate policy-gradient surrogate. We evaluate the log-mean-exp stably, and compute across the complete learner minibatch, including all devices and microbatches.
Optional token clipping. The main experiments use the original update in Algorithm 1. The clipping experiment in Section 6.6 replaces the adjusted reward in line 16 by
Here is the token log-ratio clipping radius; the experiment uses . These adjusted rewards determine detached response coefficients for the surrogate in Eq. (65), replacing the loss construction in lines 17–19. Line 20 then updates with this surrogate. The coefficients are clipped
Algorithm 1 Gibbs-Gap Policy Optimization with periodic reference refresh
Input: Initial policy , training prompts , binary verifier ; group size , groups per minibatch , synchronization delay ; temperature , reference interval , total optimizer updates .
Output: Final learner .
1: Initialize , , and .
2: while do
3: Synchronize rollout parameters with ; freeze the resulting .
4: Initialize the ordered collection .
5: while do
6: Take the next prompt batch from the shuffled dataloader of .
7: Sample responses per prompt under .
8: Evaluate ; append complete groups with to .
9: end while
10: Keep the first groups; partition into disjoint minibatches.
11: for each minibatch of groups do
12: if then return .
13: For every response, compute masked sequence log probabilities:
14: ;
15: .
16: Form .
17: For each group, .
18: Compute .
19: Set .
20: Take one AdamW update using ; set .
21: if then
22: Copy the current learner parameters to .
23: end if
24: end for
25: end while
26: return .
Optional token clipping: replace the adjusted reward in line 16 by Eq. (12) and the loss in lines 17–19 by the detached-coefficient surrogate in Eq. (65).
through their adjusted rewards, but the surrogate is differentiated using unclipped learner log probabilities. Consequently, saturated tokens retain their score gradients. Direct differentiation through a clipped log-mean-exp loss would give a different update. The appendix specifies the coefficients and normalization.
The default setting uses , , , , and . Appendices C.1 and C.4 specify the refill budget, masking, EOS, padding, and truncation details. Fixed-pool offline training replaces behavior collection with successive minibatches from a precollected pool; each is still consumed once, and reference refresh follows the same optimizer-update schedule.
4.4 Best-of-K reward and the finite-group loss
For each prompt, best-of-K sampling draws K independent responses from a policy and returns the one with the highest verifier reward. Its expected reward, averaged over the prompt distribution , is
The comparison of interest is between this selection procedure and drawing a single response from the learner. A single response from a policy has expected reward ; in particular, . The selection budget is distinct from the synchronization delay (Section 4.3). For rewards in , Proposition 6 (Appendix A.2) gives the bound
Here bounds the spread (maximum minus minimum) of across responses to a fixed prompt and vanishes when , while uniformly bounds over the hypothesis class. For the individual candidate , the ratio is one; a class-wide bound may still exceed one. The tail-comparison multiplier , defined in Appendix A.2, satisfies . In particular, gives . Theorem 7 in Appendix A.3 converts it into an empirical bound based on raw loss evaluated on i.i.d. unfiltered groups.
4.5 Reference refresh guarantees
A fixed reference defines a single KL-regularized Gibbs target in Eq. (2), independent of group size. Reference refresh changes this target by using the current learner as the next reference. Exact target composition makes this effect explicit: successive refreshes increase the effective reward tilt.
Refresh composes temperatures. Let be the initial policy and the output of reference-update round t. If each round exactly attains its Gibbs target relative to the previous output, Eq. (2) gives
Thus T exact rounds at temperature implement one Gibbs update at temperature . The following result extends the best-of-K comparison to reference refresh when the round losses are nonzero.
Proposition 2 (Reference refresh with imperfect rounds, informal). For rewards in [0, 1], consider T reference-update rounds with group size . Assume positive policies, uniform behavior coverage of both the round outputs and the best-of-K comparator, and bounded regularized residual range, as specified in Proposition 11, Appendix A.5. Let be the uniform mixture of the round outputs and their average population raw GGPO loss. Then
where the hidden constant depends only on the coverage and residual-range bounds and the group size.
The mixture selects a round uniformly and samples one response from its output policy. The loss averages the population group loss in Eq. (7) across rounds, using behavior and reference in round . Here counts reference updates, while is the number of initial-policy responses used by the best-of- comparator. More refresh rounds reduce the initial-reference penalty , while accurate fitting controls the remaining error. The regularized residual is reward minus times the log ratio of the round output to its reference. Its range is the spread of these values across responses to a fixed prompt; bounding that range and the coverage ratios controls the constant hidden in the loss term. Appendix A.5 gives the precise statement and proof.
The distinction between the mixture and the final policy matters for deployment. At zero loss, exact composition gives the same bound for the final output . For imperfect updates, the next section gives a final-policy guarantee under binary rewards and aggregate tokenwise mismatch control.
5 Final-policy reward under reference refresh
Reference refresh changes the Gibbs target as training progresses. With binary rewards, each exact update multiplies the odds of a correct response by . Thus a correct response that already has positive probability under the initial policy can receive progressively more probability over successive rounds. In practice, each round only approximates its Gibbs target, so the question is whether these fitting errors allow the improvement to continue. The result below connects the accuracy of individual updates to the final policy's single-response reward.
This requires relating two distributions: GGPO's loss is measured on responses from the behavior policy, while reward is evaluated under the returned learner. The bounds in Eqs. (5) and (14) use worst-case sequence coverage to make this connection. Here we use moments of the learner-to-behavior response likelihood ratio to relate the two distributions. Small conditional token log ratios can keep these moments moderate even when the worst-case sequence ratio is large. The guarantee accounts for imperfect fitting and finite data.
Analyzed procedure. Start from . In round , freeze reference , behavior , and candidate class before sampling. Draw fresh, independent prompts from . With group size , sample independent responses under for each prompt draw, without filtering. Let be the average raw GGPO loss in Eq. (6) over these groups. Fit this loss over , assuming the returned policy satisfies
Here bounds the achieved empirical optimization error in each round, as specified in Eq. (42). Use as the next reference. Data may be reused within a round. Let denote the total number of reference rounds.
Theorem 3 (Final-policy reward guarantee, informal). Consider the reference-update procedure above with binary rewards and responses of at most H tokens. Assume common positive support, a sufficiently large temperature of order H, and small conditional token log ratios relative to each reference. Let be a comparator whose success probability at each prompt is at most times that of the initial policy . Assume a uniform bound on a moment of order at least two of the learner-to-behavior response ratio, or on the ratio itself. Assume the representation, achieved optimization accuracy, and loss-cover conditions of Theorem 13.
For any target error and failure probability , suitable numbers of reference rounds and fresh prompt draws give, with probability at least over the sampled prompts and responses,
Here is the fitting residual in Eq. (51) or (53), according to the coverage condition. For fixed moment order and coverage coefficient, sufficient prompt and response counts are polynomial in , , and , with logarithmic dependence on the loss-cover size and .
Theorem 13 in Appendix B.1 gives the full finite-moment statement, including the assumptions, sample budget, and fitting residual. Remark 14 gives the bounded-coverage case.
Interpretation of the theorem. The guarantee concerns the expected reward of a single response from the final policy . This expected reward is at least the comparator's reward minus . The coverage constant describes how much improvement is requested relative to initialization. For example, oracle best-of-K sampling from satisfies the coverage condition with , because the probability of finding a correct response in K draws is at most K times the single-draw success probability. Thus the expected reward of one response from the trained policy can approach that of selecting the best of K responses from the initial policy. The training cost is accounted for separately.
The target error is controlled by the number of reference rounds and fresh prompt draws. The residual captures representation error, achieved empirical optimization error, and loss-cover approximation error, whose combined size is in Eq. (43). Increasing the sample size alone does not remove persistent fitting error. For fixed temperature and coverage, the bound multiplies fitting error by a factor quadratic in . Longer runs therefore require more accurate fits to keep the same reward bound. Under bounded coverage, the residual is linear in . At finite order , it also includes a term proportional to , whose coefficient decreases as the learner-to-behavior coverage moment approaches one. The residual vanishes when the three fitting errors are zero.
The sample bound counts independent prompt draws per round, each with responses, giving prompt groups and scored responses. Prompts may repeat under independent sampling, but additional groups on a fixed prompt pool do not supply fresh prompt draws. Loss-class complexity enters because the learner is chosen using the data: the loss cover approximates all candidate policies' group-loss functions uniformly, and its size measures how many functions are needed at the chosen accuracy. Under these sampling and policy constraints, the guarantee applies to any solver attaining the stated empirical accuracy; it does not establish convergence of AdamW. Under the token conditions in Appendix B.1, the moment coefficient is bounded by for , where bounds the sum of conditional token log-ratio second moments along each response path. The statistical group budget has accuracy dependence , apart from round and problem factors. Bounded full-response coverage gives the direct dependence. A smaller reduces the accuracy exponent but can increase and requires tighter token ratios. The benefit therefore depends on both the token mismatch and the chosen moment order.
Behavior lag and practical clipping. If behavior is a stored policy at most reference rounds old, local reference control gives and allows . This supplies the stated log-moment coefficient when . The same lag bound also gives direct sequence coverage , which can be used in the bounded-coverage branch without this token cap. In particular, sampling from the current reference has and under the stated temperature condition, so its group budget has linear accuracy dependence apart from round and problem factors. The lag counts reference rounds rather than the experimental synchronization delay . Appendix B.6 gives the relaxed constraint and an alternative bound from token spans.
The theorem’s small token log ratios keep every candidate policy close to its frozen reference at each response prefix. The precise constraint in Eq. (40) bounds the actual conditional probabilities and permits the exact Gibbs target, as shown in Appendix B.1. This motivates practical token clipping, which instead limits log-ratio contributions to response coefficients, with some bias, and does not enforce the same policy constraint. Section 6.6 evaluates this stabilization, and Appendix E specifies its implementation. The theorem analyzes constrained fitting of the raw loss.
6 Experiments
We compare GRPO, AGRO, and GGPO in default training (N = 8), including pass@K and sampling cost, then examine reference refresh, controlled policy staleness (N = 8 to 128), offline training on fixed data, and optional token clipping. These settings examine how the methods respond to behavior–learner mismatch. Training–inference mismatch remains present even immediately after the rollout parameters are synchronized with the learner. Appendices D and C give additional results and implementation details.
6.1 Experimental setup
Models, data, and evaluation. We evaluate mathematical reasoning with Qwen3-1.7B-Base and Qwen3-4B-Base (Yang et al., 2025). Training uses ALP-Math, which merges a difficulty-filtered OpenR1-derived corpus (2025) with the math split of Guru-RL (Cheng et al., 2025). Following standard RLVR protocols (Guo et al., 2025), rewards are binary and verified by symbolic equivalence with Math-Verify (Kydliček, 2025). Under the inherited training configuration described below, progress is monitored on MATH-500 (Hendrycks et al., 2021; Lightman et al., 2024). Monitoring results were not used for hyperparameter or checkpoint selection. For the final comparison, we report mean@32, the mean accuracy over 32 newly sampled responses per problem, on MATH-500, AIME 2024, AIME 2025, OlympiadBench (He et al., 2024), and Minerva Math (Lewkowycz et al., 2022). Mean@32 estimates single-response mean reward under the evaluation rollout policy. Training curves also report MATH-500 best@32, the fraction of problems with at least one correct response among the 32 samples, equivalent to pass@32 for binary rewards (Appendix C.1). The problem-weighted average over the five benchmarks gives every evaluated problem equal weight (counts in Appendix C.1).
Seeds and checkpoint reporting. All five-benchmark tables report final checkpoints; default and controlled staleness runs use 8,000 optimizer updates. Each checkpoint is evaluated once with 32 responses per problem. We report means and sample standard deviations over training seeds 42, 1234, and 2027 for the Qwen3-1.7B-Base default comparison (Table 1, Figure 1), offline accuracy (Table 5, Figure 4, left), and N = 128 staleness, including GRPO+TIS (Table 4). Curves summarize each logged or evaluated update. Other conditions and offline diagnostics use seed 42. When a comparison reuses default results, those results retain their three-seed means, as noted in table captions.
Baselines. AGRO (Tang et al., 2026) is our direct objective-level comparator: it shares GGPO's KL-adjusted reward, Gibbs target, and independently controlled reference schedule. OAPL (Ritter et al., 2026) ties its KL anchor and value target to the rollout policy, coupling target refresh to behavior synchronization. Matching our independent reference schedule would therefore require modifying its target estimator. We discuss OAPL as related work and focus the controlled objective comparison on AGRO, with GRPO (Shao et al., 2024) and GRPO+TIS providing policy-gradient baselines. In the default runs, GRPO uses token-level learner-to-behavior PPO ratios with the log probabilities recorded during rollout as the denominator and no additional off-policy correction. We include GRPO+TIS (Zhong et al., 2026) under the largest synchronization delay, N = 128, and in fixed-data offline training to evaluate importance-corrected policy-gradient updates in these settings. It uses token-level truncated importance sampling with a cap of 2 (Appendix C.2).
Hyperparameters. By default, we set for all methods, following the offline experiments of AGRO (Tang et al., 2026), and draw m = 8 responses per prompt. Appendix D.6 also evaluates , used in AGRO's on-policy experiments. The methods share the same batch geometry and prompt order, and reuse the learning rate and optimizer settings of our GRPO baseline. They also use the same dynamic difficulty-filtering rule (Yu et al., 2025; Bae et al., 2026). By default, our GRPO implementation keeps its initial reference fixed, while AGRO and GGPO refresh the reference every optimizer updates, matching our checkpointing cadence (Section 4.3). Appendices D.5 and D.6 compare reference cadences and group weights. The complete reference, batch, decoding, refill, and optimizer settings are given in Appendix C.
Training budget. Method comparisons match optimizer update counts and retained responses
Table 1: Comparison under the default training setting (). Final-checkpoint mean@32 accuracy after 8,000 optimizer updates on five mathematical-reasoning benchmarks (%). The final column is the problem-weighted average over the five benchmarks, which gives every evaluated problem equal weight. For Qwen3-1.7B-Base, values are the mean sample standard deviation across training seeds 42, 1234, and 2027. For Avg., these statistics are computed across the per-seed problem-weighted averages. Qwen3-4B-Base uses seed 42. Bold marks the best value in each model-size block.
| Model and method | MATH-500 | AIME 2024 | AIME 2025 | OlympiadBench | Minerva Math | Avg. |
|---|---|---|---|---|---|---|
| Qwen3-1.7B-Base + GRPO | ||||||
| + AGRO | ||||||
| + GGPO | ||||||
| Qwen3-4B-Base + GRPO | ||||||
| + AGRO | ||||||
| + GGPO |
per update. Mixed-reward filtering and refill can nevertheless require different numbers of generated responses across methods. Figure 2 reports this sampling demand. Response counts do not equalize generated tokens or GPU-hours, since those costs also depend on response length and execution costs.
6.2 Default training setting
Under default training (; Section 4.3), all three methods' token-mean K3 stays on the order of throughout training (Figure 1, panel 1). Table 1 compares their final checkpoints at both model sizes.
Results. GGPO achieves the highest problem-weighted average at both model sizes (Table 1). On Qwen3-1.7B-Base, it exceeds AGRO by 1.5 points and GRPO by 3.9 points. The single-seed Qwen3-4B-Base comparison shows the same ordering of problem-weighted accuracy at the larger model size. Figure 1 shows that GGPO initially improves more slowly on MATH-500 mean@32, but overtakes both baselines later in training. GGPO maintains higher policy entropy, while its best@32 continues to improve later in training. Appendix D.1 reports performance stratified by the base model's per-problem success rate.
Pass@K and best-of-K comparison. On Qwen3-1.7B-Base, GGPO leads in problem-weighted five-benchmark pass@K for every evaluated with training seed 42 (Table 3). At , it reaches , compared with for the strongest baseline and for the base model. Its seed-42 pass@1 () exceeds the base model's pass@4 () and approaches its pass@8 (). Thus, in this comparison, a single GGPO response succeeds more often than best-of-four sampling from the base model, illustrating the comparison in Section 5. Pass@1 equals mean@32 under our estimator; the value uses seed 42, whereas Table 1 reports the three-seed mean of . Appendix D.2 gives the full pass@K results.
Sampling cost. GGPO reaches higher final MATH-500 mean@32 with fewer generated training responses than either baseline in the reported default-setting comparison (Figure 2). This complements the comparison at matched optimizer updates and retained responses; token and computation costs also depend on response lengths and execution costs (Appendix D.8).

— GRPO — AGRO — GGPO
Figure 1: Training dynamics under the default training setting (N = 8) on Qwen3-1.7B-Base. From left to right: the token-mean K3 diagnostic of behavior–learner mismatch (Schulman, 2020) ( ), policy entropy, MATH-500 best@32 (%), and MATH-500 mean@32 (%), each against optimizer updates (GRPO orange, AGRO green, GGPO blue). K3 is computed on mixed-reward-filtered training minibatches. In the first two panels, faint lines are the logged series (one point per eight updates) and solid lines a nine-point moving average. At each reported update, curves summarize seeds 42, 1234, and 2027 by their mean, with shaded bands spanning one sample standard deviation across seeds; MATH-500 is evaluated every 160 optimizer updates.
(a) Sampling budget

(b) Accuracy versus sampling budget
GRPO
AGRO
GGPO
Figure 2: Sampling budget under the default training setting on Qwen3-1.7B-Base. Left: cumulative generated training responses, in millions, against optimizer updates. Right: MATH-500 mean@32 accuracy against the same cumulative response count. Each curve ends at 8,000 optimizer updates (GRPO orange squares, AGRO green triangles, GGPO blue circles). Counts include responses discarded by mixed-reward filtering and generated during refill. GGPO finishes with the highest accuracy and the lowest response count.
6.3 Reference refresh
The default comparison uses a fixed reference for GRPO and refresh every updates for AGRO and GGPO. Table 2 compares all three methods across these reference schedules at . GGPO's problem-weighted average is 32.96% with a fixed reference (seed 42), compared with 46.58% with refresh every 160 updates (three-seed mean); refresh every 320 updates reaches 44.96% (seed 42). AGRO also benefits from refresh, while refreshing GRPO does not close the accuracy gap. GGPO's weaker fixed-reference result shows that reference refresh is an important part of the complete method. Appendix D.5 gives per-benchmark results, the conditions, and reference-drift diagnostics.
Table 2: Reference refresh on Qwen3-1.7B-Base. Problem-weighted five-benchmark mean@32 (%) after 8,000 updates, with . A dagger marks default settings reported as means over seeds 42, 1234, and 2027; other cells use seed 42. Table 6 gives the full results.
| Method | Fixed reference | ||
|---|---|---|---|
| GRPO | |||
| AGRO | |||
| GGPO |
6.4 Controlled policy staleness
With synchronization delay , each frozen behavior collection of 32N prompts is split into disjoint 32-prompt minibatches, each used for one optimizer update before the behavior policy is synchronized. Sample age is therefore optimizer updates. Training–inference mismatch remains present as a fixed background. Following controlled asynchronous RLHF evaluations (Noukhovitch et al., 2025; Huang et al., 2026), we vary over the staleness ladder with method-specific hyperparameters fixed; the condition reuses the Qwen3-1.7B-Base default-setting run. This varies the age of the sampled responses without changing the method-specific hyperparameters. Reference handling is unchanged from the default setting at every delay; Appendix C.4 states how a refresh boundary inside a collection is handled.
Figure 3 summarizes performance with the problem-weighted average of Section 6.1; Appendix D.3 gives the per-benchmark table and the training-time diagnostics against .

Figure 3: Controlled policy staleness on Qwen3-1.7B-Base. Problem-weighted final-checkpoint mean@32 accuracy over the five benchmarks after 8,000 optimizer updates, against synchronization delay (equally spaced positions; values in Table 4). GRPO+TIS is evaluated at . Results at are three-seed means, with error bars showing sample standard deviation; use seed 42.
Results. GGPO maintains stable performance as policy staleness increases from to , with problem-weighted accuracy of . AGRO loses 4.2 points from to , while GRPO is essentially unchanged through before declining at . At the largest synchronization delay, , token-level TIS raises GRPO's problem-weighted accuracy from to , while GGPO reaches under the same delay (Figure 3 and Table 4). The training-time diagnostics show increasing behavior-learner mismatch for GGPO from to : its K3 rises and normalized effective sample size (ESS) falls, while both diagnostics remain nearly unchanged for uncorrected GRPO (Figure 7).
GRPO's nearly constant K3 is consistent with the PPO surrogate suppressing updates that would move learner-to-behavior ratios farther beyond its clipping interval. This clipping changes the objective but imposes no hard constraint on the policy ratios. GGPO uses no learner-to-behavior importance weights (Section 4.2); its rising K3 and stable accuracy are consistent with learning as the learner departs from the collection's behavior policy. AGRO also avoids learner-to-behavior importance weights, but its accuracy declines at larger delays. These comparisons still allow the behavior policy to catch up with the learner every N updates. The offline setting in Section 6.5 removes this resynchronization, allowing us to examine learning from a single fixed behavior pool.
6.5 Offline training on fixed data
In the offline setting, GRPO, GRPO+TIS, AGRO, and GGPO perform 400 optimizer updates on the same fixed rollout pool within each seed without generating new responses. This setting tests learning from fixed data as behavior-learner mismatch accumulates without behavior resynchronization. Appendix C.3 gives the protocol and Table 5 the accuracy at every evaluated checkpoint.
MATH-500 mean@32 (%)

Drift: token-mean
Normalized ESS
Gradient norm

GRPO — AGRO — GGPO --- GRPO+TIS
Figure 4: Offline training on Qwen3-1.7B-Base. Within each seed, all methods use the same fixed rollout pool, batch geometry, prompt order, and 400-update budget (GRPO orange, GRPO+TIS purple dashed, AGRO green, GGPO blue). From left: MATH-500 mean@32 (%), with the reported mean accuracy and bands spanning one reported sample standard deviation (Table 5); then, for seed 42, the token-mean absolute learner-to-behavior log ratio (log scale), the normalized ESS of the diagnostic sequence-level learner-to-behavior importance weights over each logged block of 2,048 responses (log scale), and the actor gradient norm (Appendix C.1). The mismatch diagnostics use mixed-reward-filtered training responses.
Results. GGPO improves MATH-500 accuracy from 32.96% to 59.79% within 240 optimizer updates, leading the baselines at every evaluated checkpoint from 160 updates onward (Figure 4; Table 5). GGPO, AGRO, and GRPO+TIS all peak at 240 updates and decline thereafter, alongside increasing divergence from the fixed behavior policy.
The diagnostic panels show increasing drift and declining normalized ESS for GRPO+TIS, AGRO, and GGPO, while uncorrected GRPO's drift stays near the level set by the initial training-inference mismatch. For GGPO, normalized ESS is already below by 160 updates. This diagnostic indicates that sequence-level importance weights on the filtered training responses are highly concentrated at that point.
6.6 Token clipping
The local reference constraint in Section 5 motivates limiting individual token log-ratio contributions in practice. In the default Qwen3-1.7B-Base setting, the optional clipped variant of Algorithm 1, with radius , yields higher early training rewards than the original update, with a smaller gap later (Figure 10, Appendix D.9). This single-seed comparison measures reward on mixed-reward-filtered training responses, so it does not establish improved held-out accuracy or verify the theorem's uniform local reference constraint. All other experiments use the original, unclipped update; Appendix E gives implementation details.
7 Conclusion
GGPO learns from contrasts in KL-adjusted rewards among behavior-policy responses without learner-to-behavior importance weights. Under suitable coverage, its finite-group loss controls the gap between the learner's single-response expected reward and the behavior policy's best-of-K reward. Reference refresh lets successive rounds build on earlier progress by changing the Gibbs target as the learner improves.
Our experiments examine this approach on mathematical reasoning, where GGPO outperforms GRPO and AGRO under training-inference mismatch while maintaining performance as policy staleness grows. At N = 128, GGPO also outperforms GRPO+TIS under the same synchronization delay. On fixed offline data, it leads GRPO, GRPO+TIS, and AGRO at every evaluated checkpoint from 160 updates onward.
The theory motivates the algorithm by explaining how small group loss and repeated reference updates improve reward, and how tokenwise mismatch can give a more favorable dependence than sequence coverage. The theorem provides sufficient conditions for convergence and explains how errors in individual updates affect the final reward. Its parameter settings need not coincide with those that work best in practice. The experiments complement this analysis by evaluating GGPO under practical training settings and substantial behavior mismatch.
Our results on mathematical reasoning with binary verifier rewards motivate further study of richer reward signals and multi-turn tasks. Extending the analysis to practical training choices and testing GGPO across these settings are natural directions for future work.
Acknowledgments
This work was supported in part by NSF grants 2416897, 2505932, and 2601666 and ONR grant N000142512318. Computing resources were provided by the National Center for Supercomputing Applications (NCSA) through Delta (NSF OAC-2005572) and DeltaAI (NSF OAC-2320345), as well as Illinois Computes and the NAIRR Pilot (NAIRR250157).
Generative AI tools were used under the authors' direction for assistance with literature searches, coding, conducting and analyzing experiments, deriving theoretical results and proofs, and polishing the manuscript.
References
Hugging Face dataset, 2025. URL https://huggingface.co/datasets/weqweasdas/from_default_filtered_openr1_with_scores.
Alekh Agarwal, Sham M. Kakade, Jason D. Lee, and Gaurav Mahajan. On the Theory of Policy Gradient Methods: Optimality, Approximation, and Distribution Shift. Journal of Machine Learning Research, 22(98):1–76, 2021.
Charles Arnal, Gaëtan Narozniak, Vivien Cabannes, Yunhao Tang, Julia Kempe, and Rémi Munos. Asymmetric REINFORCE for off-policy reinforcement learning: Balancing positive and negative rewards. In Advances in Neural Information Processing Systems, 2025.
Sanghwan Bae, Jiwoo Hong, Min Young Lee, Hanbyul Kim, Jeongyeon Nam, and Donghyun Kwak. Online difficulty filtering for reasoning oriented reinforcement learning. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 700–719, 2026.
Hao Bai, Jiarui Yao, and Tong Zhang. Enabling token-wise importance sampling in off-policy RLVR with proximal KL regularization. arXiv preprint arXiv:2610.18738, 2026.
Jalaj Bhandari and Daniel Russo. Global optimality guarantees for policy gradient methods. Operations Research, 72(5):1906–1927, 2024.
Kianté Brantley, Mingyu Chen, Zhaolin Gao, Jason D. Lee, Wen Sun, Wenhao Zhan, and Xuezhou Zhang. Accelerating RL for LLM reasoning with optimal advantage regression. In Advances in Neural Information Processing Systems, volume 38, pages 151492–151531, 2025.
Huayu Chen, Guande He, Lifan Yuan, Ganqu Cui, Hang Su, and Jun Zhu. Noise contrastive alignment of language models with explicit rewards. In Advances in Neural Information Processing Systems, 2024.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Jorge (Zhoujun) Cheng, Shibo Hao, Tianyang Liu, Fan Zhou, Yutao Xie, Feng Yao, Yuexin Bian, Nilabjo Dey, Yonghao Zhuang, Yuheng Zha, Yi Gu, Kun Zhou, Yuqi Wang, Yuan Li, Richard Fan, Jianshu She, Chengqian Gao, Abulhair Saparov, Taylor W. Killian, Haonan Li, Mikhail Yurochkin, Eric Xing, Zhengzhong Liu, and Zhiting Hu. Revisiting reinforcement learning for LLM reasoning from a cross-domain perspective. In Advances in Neural Information Processing Systems, volume 38, 2025.
Hanze Dong, Wei Xiong, Deepanshu Goyal, Yihan Zhang, Winnie Chow, Rui Pan, Shizhe Diao, Jipeng Zhang, KaShun SHUM, and Tong Zhang. RAFT: Reward ranked finetuning for generative foundation model alignment. Transactions on Machine Learning Research, 2023. ISSN 2835-8856.
Lasse Espeholt, Hubert Soyer, Rémi Munos, Karen Simonyan, Volodymir Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, Shane Legg, and Koray Kavukcuoglu. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 1407–1416, 2018.
Yannis Flet-Berliac, Nathan Grinsztajn, Florian Strub, Bill Wu, Eugene Choi, Chris Cremer, Arash Ahmadian, Yash Chandak, Mohammad Gheshlaghi Azar, Olivier Pietquin, and Matthieu Geist. Contrastive policy gradient: Aligning LLMs on sequence-level scores in a supervised-friendly fashion. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 21353–21370, 2024.
Zhaolin Gao, Jonathan D. Chang, Wenhao Zhan, Owen Oertell, Gokul Swamy, Kianté Brantley, Thorsten Joachims, J. Andrew Bagnell, Jason D. Lee, and Wen Sun. REBEL: Reinforcement learning via regressing relative rewards. In Advances in Neural Information Processing Systems, volume 37, pages 52354–52400, 2024.
Matthieu Geist, Bruno Scherrer, and Olivier Pietquin. A theory of regularized Markov decision processes. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2160–2169, 2019.
Daya Guo, Dejian Yang, Haowei Zhang, et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Leng Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. Olympiad-Bench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 2024.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1, 2021.
Luke J. Huang, Zhuoyang Zhang, Qinghao Hu, Shang Yang, and Song Han. Stable asynchrony: Variance-controlled off-policy RL for LLMs. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 48293–48311. PMLR, 2026.
Kimi Team et al. Kimi k1.5: Scaling reinforcement learning with LLMs. arXiv preprint arXiv:2501.12599, 2025.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, 2023.
Hynek Kydliček. Math-Verify: Math verification library. Software repository, Hugging Face, 2025. URL https://github.com/huggingface/Math-Verify.
Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. Solving quantitative reasoning problems with language models. In Advances in Neural Information Processing Systems, volume 35, 2022.
Yingru Li, Jiacai Liu, Jiawei Xu, Yuxuan Tong, Ziniu Li, and Baoxiang Wang. Trust region masking for long-horizon LLM reinforcement learning. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 68742–68754. PMLR, 2026.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations, 2024.
Ling Team, Anqi Shen, Baihui Li, et al. Every step evolves: Scaling reinforcement learning for trillion-scale thinking model. arXiv preprint arXiv:2510.18855, 2025.
Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding R1-zero-like training: A critical perspective. arXiv preprint arXiv:2503.20783, 2025.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
Martin Marek and Max Ryabinin. Score centering stabilizes off-policy reinforcement learning. arXiv preprint arXiv:2609.20807, 2026.
MiniMax, Aili Chen, Aonian Li, Bangwei Gong, et al. MiniMax-M1: Scaling test-time compute efficiently with lightning attention. arXiv preprint arXiv:2506.13585, 2025.
Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. In Advances in Neural Information Processing Systems, volume 30, 2017.
Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Trust-PCL: An off-policy trust region method for continuous control. In International Conference on Learning Representations, 2018.
Michael Noukhovitch, Shengyi Huang, Sophie Xhonneux, Arian Hosseini, Rishabh Agarwal, and Aaron Courville. Asynchronous RLHF: Faster and more efficient off-policy RL for language models. In International Conference on Learning Representations, 2025.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems, volume 36, 2023.
Pierre H. Richemond and Brendan Maginnis. A short variational proof of equivalence between policy gradients and soft Q learning. arXiv preprint arXiv:1712.08650, 2017.
Pierre Harvey Richemond, Yunhao Tang, Daniel Guo, Daniele Calandriello, Mohammad Gheshlaghi Azar, Rafael Rafailov, Bernardo Avila Pires, Eugene Tarassov, Lucas Spangher, Will Ellsworth, Aliaksei Severyn, Jonathan Mallinson, Lior Shani, Gil Shamir, Rishabh Joshi, Tianqi Liu, Remi Munos, and Bilal Piot. Offline regularised reinforcement learning for large language models alignment. arXiv preprint arXiv:2405.19107, 2024.
Daniel Ritter, Owen Oertell, Bradley Guo, Jonathan Chang, Kianté Brantley, and Wen Sun. LLMs can learn to reason via off-policy RL. arXiv preprint arXiv:2602.19362, 2026.
John Schulman. Approximating KL divergence. Blog post, 2020. URL http://joschu.net/blog/kl-approx.html.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297. ACM, 2025.
Fahim Tajwar, Guanning Zeng, Yueer Zhou, Yuda Song, Daman Arora, Yiding Jiang, Jeff Schneider, Ruslan Salakhutdinov, Haiwen Feng, and Andrea Zanette. Maximum likelihood reinforcement learning. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 118190–118245. PMLR, 2026.
Yunhao Tang, Taco Cohen, David W. Zhang, Michal Valko, and Rémi Munos. RL-finetuning LLMs from on- and off-policy data with a single algorithm. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 415–423. PMLR, 2026.
Tim van Erven and Peter Harremoës. Rényi divergence and Kullback–Leibler divergence. IEEE Transactions on Information Theory, 60(7):3797–3820, 2014.
Wei Xiong, Jiarui Yao, Yuhui Xu, Bo Pang, Lei Wang, Doyen Sahoo, Junnan Li, Nan Jiang, Tong Zhang, Caiming Xiong, and Hanze Dong. A minimalist approach to LLM reasoning: from rejection sampling to reinforce. arXiv preprint arXiv:2504.11343, 2025.
An Yang et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems, volume 38, pages 113222–113244, 2025.
Rui Yuan, Simon S. Du, Robert M. Gower, Alessandro Lazaric, and Lin Xiao. Linear convergence of natural policy gradient methods with log-linear policies. In International Conference on Learning Representations, 2023.
Feng Zhang, Xinhong Ma, Ziqiang Dong, Xi Leng, Jianfei Zhao, Xin Sun, Yang Yang, and Guanjun Jiang. Revisiting reinforcement learning with verifiable rewards from a contrastive perspective. arXiv preprint arXiv:2605.12969, 2026a.
Yuheng Zhang, Chenlu Ye, Shuowei Jin, Changlong Yu, Wei Xiong, Saurabh Sahu, and Nan Jiang. Rethinking importance sampling in LLM policy optimization: A cumulative token perspective. arXiv preprint arXiv:2605.07331, 2026b.
Chujie Zheng, Kai Dang, Bowen Yu, Mingze Li, Huiqiang Jiang, Junrong Lin, Yuqiong Liu, Hao Lin, Chencan Wu, Feng Hu, An Yang, Jingren Zhou, and Junyang Lin. Stabilizing reinforcement learning with LLMs: Formulation and practices. arXiv preprint arXiv:2512.01374, 2025a.
Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025b.
Tianle Zhong, Neiwen Ling, Yifan Pi, Zijun Wei, Tianshu Yu, Geoffrey Fox, Peng Wu, and Xiao Yu. Diagnosing training inference mismatch in LLM reinforcement learning. arXiv preprint arXiv:2605.14220, 2026.
A Proofs and extensions
The proofs below explain the connections used in the main text, from the population optimality condition to finite-group reward guarantees. We work with a finite action space , with policies positive on and finite displayed expectations. In particular, . We suppress fixed prompts in pointwise derivations and write prompt averages explicitly. Loss notation suppresses a fixed temperature and reference; specifies the reference when it varies.
A.1 Proof of population duality and coverage
This proves Proposition 1, explaining both the loss construction in Section 3 and the coverage condition in its regularized-gap guarantee. The argument begins with the scalar dual, whose residual provides a measure of departure from the Gibbs optimum. Profiling this residual gives the contrastive loss, and coverage then connects the behavior-policy expectation to the learner's regularized gap.
Lemma 4 (Scalar duality and primal-dual gap). Fix a prompt , temperature , reward , and positive reference policy . Define , , and . For a positive candidate , define , , and
(16)
Then , , and
Proof. The Gibbs policy satisfies
Hence and is its unique maximizer. Moreover, and , so its minimum is . Hence upper-bounds the primal optimum for every , so is a nonnegative primal-dual gap, and . Finally, and . Expanding proves Eq. (17).
Proof of Proposition 1. Fix and use the quantities defined in Lemma 4. Replacing the learner expectation by and minimizing over gives : the first derivative is and the second is strictly positive. Substitution gives , the loss in Eq. (3). Define
Expanding its KL divergence gives , proving Eq. (4). Nonnegativity of and now imply
When , profiling the same learner residual gives equality with the regularized gap. Under positive support, zero loss forces constant, so and hence . Conversely, this Gibbs policy has constant adjusted reward and zero loss.
Averaging the coverage bound over prompts gives ; moving coverage outside the expectation requires a uniform bound. Appendix B.5 compares sequence coverage with aggregate tokenwise mismatch.
A.2 Finite-group guarantees
We establish the common zero set and population limit used by the population and reference-refresh results, then state and prove the best-of-K bound of Section 4.4.
Proposition 5 (Finite-group target). Suppose that is bounded on the support of and that are sampled independently from . Then, for every integer ,
For every , if and only if is constant on the support of , equivalently if and only if . If , , and are positive on , this zero condition also implies .
Proof. Let and for i.i.d. copies . Then
Jensen gives . Given samples, the leave-one-out means average to . Thus ; taking expectations gives , since each is distributed as the size-m sample mean . The bounded i.i.d. sample average converges to , and boundedness of bounds , so dominated convergence gives .
For , equality in the group Jensen inequality requires all sampled to agree. Hence implies two independent copies always agree on the sampled support, so and are constant there. The converse is immediate; the population Jensen equality gives the same zero set for . Under positivity on , constancy gives , proving the final claim.
Best-of-K reward bound. Write and for the expected best-of-K and single-response rewards of a policy conditional on prompt , so in Eq. (13), and let . For , define
The inequality follows because decreases in . When , the upper bound is approached as a relevant behavior-policy upper-tail probability tends to zero, but the actual multiplier can be smaller.
Proposition 6 (Best-of-K and the GGPO minimizer). Let , fix positive behavior and reference policies with at every prompt, where is the oscillation of , and suppose every policy in a positive hypothesis class satisfies uniformly. For and ,
In particular, with , a population minimizer, if one exists, satisfies this bound with replaced by ; an approximate minimizer with loss at most incurs an additional .
Proof. Fix a prompt and write . We first prove the prompt-level inequality
The multiplier defined in Eq. (21) satisfies the required tail comparison at every prompt. Suppress the prompt. Put , , , and . Let and . With uniform on sample indices, , and , one has . Define and . Since ,
The bound therefore gives . The finite Gibbs identity yields . Indeed, expanding , using , and lower-bounding the log-partition by gives this inequality. The oscillation of is at most , hence . Multiplying by and using together with the preceding KL bound gives
For , symmetry and importance weighting give , while and . At a threshold , write , , and . By the defining tail comparison,
The layer-cake identities here are
and, because the mixed maximum has tail ,
Integrating the threshold inequality therefore bounds by . Take expectations in Eq. (24) and use . Averaging Eq. (23) over prompts, with and , proves the proposition. The minimizer statements follow by substituting the corresponding population losses.
On policy, and at every prompt; with , . The class-wide coverage bound can still exceed one for other candidates. The minimum loss is zero when the Gibbs policy belongs to the admissible class; a restricted class or coverage cap may prevent this, and the regularization term in the reward bound remains even at zero loss.
A.3 Generalization and an oracle inequality
Theorem 7 below converts expected group loss into an observed-loss bound. The oracle inequality then states what approximate empirical minimization achieves in a restricted hypothesis class. Fix a prompt distribution , behavior , reference , temperature , and hypothesis class before collecting i.i.d. unfiltered groups. For , write and let and . Assume and that the induced loss family admits a finite uniform -cover in the distance of Eq. (41), with centers in the family: each loss is within of a center on every possible group. Write
A sufficient envelope is when uniformly, since adjusted rewards then have range at most . These assumptions apply to all possible groups, not only observed responses. Coverage remains separate.
Theorem 7 (Empirical GGPO bound). Under Proposition 6's assumptions and the sampling and cover conditions above, with probability at least , every data-selected satisfies
The bound applies to the output of GGPO; it requires no convexity or successful empirical minimization. The reported loss uses unfiltered groups in the original units, rather than the filtered, normalized training log.
Proposition 8 (Raw-loss oracle inequality and reward consequence). Fix the behavior and reference policies and candidate class before drawing n independent unfiltered groups, with raw losses in and the uniform loss cover specified above. Suppose the returned policy satisfies
Write for the best population raw loss in the class. With probability at least ,
If the reward-comparison assumptions of Proposition 6 also hold, then on the same event,
Proof. We first compare population and empirical raw losses uniformly over the candidate policies. A cover center is itself the raw loss of a candidate policy, say . Its loss on one random group Z is nonnegative and bounded by , so its variance satisfies
Thus policies with small population loss also have small loss variance. Bernstein’s inequality gives, with failure probability at most ,
The last inequality absorbs the square-root term into half of the population loss and a term of order 1/n. Rearranging and rounding 10/3 up to 4 gives both
The definition assigns failure probability to each center. A union bound therefore makes these inequalities hold for every center with probability at least .
To extend them to a candidate , choose a center whose raw loss differs by at most on every possible group. Both their population and empirical losses then differ by at most . Consequently,
The reverse direction has the same approximation cost. Recalling , we obtain, simultaneously for all ,
This event depends only on the sampled groups and holds regardless of which policy the solver returns.
We now compare the returned policy with any candidate . The first inequality bounds the returned policy's population loss by its empirical loss. The assumed solver accuracy compares that empirical loss with the candidate's, and the second inequality returns to population loss:
Taking the infimum over candidates proves Eq. (26); no attained minimizer is needed. Substituting this raw-loss bound into Proposition 6 gives the reward consequence in Eq. (27).
Proof of Theorem 7. Use the uniform concentration bound in Eq. (28), proved above before applying any solver-accuracy assumption. Substitute its first inequality into Proposition 6. Uniformity permits any data-selected output in the fixed class.
The raw-loss conclusion of Proposition 8 also applies within each refresh round, conditional on the preceding rounds. Lemma 18 uses this conclusion with the local loss bound and makes it simultaneous across rounds.
Prompt count and optimization setting. The oracle terms separate approximation, empirical optimization, and statistics. These errors play different roles: optimizing the empirical loss accurately cannot compensate for a class that cannot fit the target. In particular, small alone is insufficient if the minimum loss is large. For an statistical contribution in the observed-loss bound, choose and . The oracle remainder has the same rate up to constants. These are conditional small-loss rates; entropy is evaluated at the chosen accuracy, and coverage or boundedness may depend on response length. The analysis covers a fixed offline collection or a stage with fixed behavior and reference policies, not arbitrary behavior and reference changes over a full run. Additional response groups on a fixed set of sampled prompts do not supply additional independent prompt draws from . Independent prompt draws count toward even when their values repeat.
Group size. With , the multiplier is at most two; with , it is one. Thus groups of order K directly support the best-of-K target and can reduce the required number of fresh prompt groups. The loss, its complexity, and the temperature bias can also change with m, so monotone improvement is not guaranteed. Total responses are nm. Appendix D.7 studies group size empirically.
A.4 GGPO gradient, normalization, and filtering
Off-policy tilt and on-policy limit. By Eq. (2), is proportional to . Because responses are sampled from , their normalized weighted empirical distribution converges to
the induced tilt in Eq. (18). Holding fixed gives
When , and the second expectation vanishes. The objective value then equals the reverse-KL regularized gap, while the frozen- derivative is the forward-KL/cross-entropy gradient toward . Weight concentration is summarized by .
Let , with , be the loss of group , and let be the mean response length in the learner minibatch. The implemented loss is given in Eq. (11). If is the sequence log likelihood of response , then . After applying the normalization above, its derivative is . Writing the usual token-mean policy-gradient form as therefore gives the group coefficient
The factors and remove the raw prefactor and convert the group average to a token mean; the factor keeps the coefficient scale similar to GRPO's standardized advantages. Thus affects the implemented update through , not through a remaining global multiplier.
Binary-reward limit and weight concentration. Let be the responses of a mixed-reward group with verifier reward one, and write . For fixed finite , as the inter-class logit gap in Eq. (10) dominates, so concentrates on with and otherwise. By Eq. (29), every response outside then has , and the signed sum over correct responses is
For GRPO's reward advantages standardized using the sample standard deviation with variance denominator , and omitting the stabilizer, the corresponding advantage sum is . For AGRO, equal learner-to-reference log ratios within the group cancel in leave-one-out centering, giving an advantage sum of . Normalizing each curve to its value at gives Figure 6.
Because allocation inside follows rather than being uniform, a correct response can receive . In this limit that happens exactly when ; equivalently, writing
, when . A lone correct response can never be penalized this way.
If the learner-to-reference log ratios are equal across the successful responses S, the binary-reward limit above yields
The expression in parentheses is the centered success-normalized advantage of MaxRL (Tajwar et al., 2026). MaxRL derives this update from an on-policy maximum-likelihood formulation, whereas GGPO derives its log-mean-exp loss from KL-regularized duality and permits behavior-learner mismatch without learner-to-behavior importance weights. For equally rewarded responses,
at every . Thus, reference-dependent weighting persists even at small temperatures when these log ratios differ.
Reference anchoring and refresh. The log-ratio difference controls the relative weights of equally rewarded responses without attenuation by . At an exact policy-copy boundary, , all vanish, so these responses receive equal weights. Subsequent learner updates change the log ratios and favor responses with smaller . This explains how reference refresh resets the within-class weighting.
The reward-only ablation sets in Eq. (29), retaining the score-gradient update and normalization. For mixed binary-reward groups, its coefficients approach the MaxRL form above as , without requiring equal . This removes the reference-dependent weighting that persists in full GGPO at small temperatures.
Mixed-group filtering and normalization. The batch-dependent normalization in Eq. (11) changes the expected training loss, but its positive multiplier preserves zeros. For a fixed prompt with , define and
Proposition 9 (Zero set under mixed-group filtering). Suppose , is finite, the verifier reward is deterministic and binary, and . Then if and only if is constant on the support of . Hence, for each such prompt, the filtered loss has the same zero set on behavior support as the unfiltered target and the population objective . Positive batch-dependent normalization preserves this zero set over the retained prompt distribution.
Proof. The empirical loss is nonnegative and is zero exactly when all adjusted rewards in the group agree. Any behavior-supported reward-zero action and reward-one action can co-occur in a mixed group with positive probability, so a zero conditional expectation forces their adjusted rewards to agree. Two supported actions with the same reward can each be connected through any supported action of the opposite reward. Hence all supported actions have the same adjusted reward. The converse is immediate. Finally, a positive batch-dependent multiplier cannot create or remove zeros of a nonnegative minibatch loss.
A.5 Reference refresh: exact and imperfect updates
We first show how exact Gibbs targets compose across reference updates. We then prove Proposition 11 by accounting for the residual error in each round and summing the resulting reward comparisons.
Fixed-reference bias and exact composition. For binary reward with reference success probability , the zero-loss Gibbs policy succeeds with probability . Best-of-K from the same reference succeeds with probability , which can be strictly larger. This gap remains at zero loss for every group size, including the infinite-group limit. Reference refresh changes the target itself.
Lemma 10 (Exact reference composition). Suppose the learner, reference, and behavior policies are positive on . In every round , suppose has zero population finite-group loss for independent responses from , relative to reference . Then temperatures compose as . In particular, for constant and the best-of-K selection policy from ,
Proof. Under positivity on , Proposition 5 identifies zero population finite-group loss with the Gibbs policy. With reference in round , Eq. (2) therefore gives . For constant temperature, iterating yields Eq. (15). More generally, temperatures give effective temperature . Write . For constant , the final policy maximizes , so for every comparator ,
Let be the distribution of the selected response among independent draws from , using a fixed tie-breaking rule. Selection of action requires at least one draw of , hence . Consequently and , which proves the reward bound.
Imperfect reference updates
Proposition 11 (Reference refresh with imperfect rounds). Let , , and be the best-of-K selection policy from a positive initial policy . For each positive round output and positive behavior , assume uniformly over prompts and actions that
Here denotes maximum minus minimum over responses a at a fixed prompt. Define the average output policy and average population loss by
Then
For round , let and . Use the common coverage, residual-range, and group-size bounds , , and from the proposition.
Proof of Proposition 11. First, an adjusted reward with obeys the finite-group variance bound
For a realized group, set and . For , the normalized weight of every group member is at least . The minimum-mean-square characterization of variance therefore gives . Integrating with weight bounds the group loss below by . Its expectation is Eq. (33), since empirical variance with denominator has expectation .
Let . Since both density ratios have -mean one,
Cauchy–Schwarz and the coverage assumptions in Proposition 11 then give pointwise
Indeed, , because both densities integrate to one and their cross product is nonnegative. Using Eq. (33) and Jensen over prompts bounds this residual difference by . The exact identity
then telescopes over rounds. Dropping nonnegative terminal and step KL terms and using yields the population inequality
Finally, gives Eq. (32).
A.6 Relation to AGRO: approximation and weighting
This calculation supports the comparison in Section 2: AGRO is the local quadratic approximation to the population contrastive loss when adjusted rewards have small spread. The finite-group comparison below also explains the role of exponential weighting and the slack in a uniform variance upper bound. Neither comparison globally orders the unscaled losses.
For the local relation to AGRO (Tang et al., 2026), let and . The population contrastive loss can be written as the centered log moment
Because , Taylor expansion as gives
AGRO’s off-policy population loss is , so locally up to higher-order terms. Equation (4) of Tang et al. (2026) gives the leave-one-out finite-group stochastic gradient of this variance objective. Our implementation divides out its exterior factor and averages over response tokens (Eq. (62)). The corresponding coefficient relation follows by defining the exponentially tilted distribution
Thus the raw GGPO coefficient multiplying the policy score is
The leading term is exactly the score-function coefficient obtained by differentiating the normalized AGRO loss , holding the behavior distribution fixed. Hence the scaled AGRO loss is the local quadratic approximation to the raw population GGPO loss, and its centered linear coefficient is the first-order approximation to the raw GGPO coefficient when . Our default training setting uses a smaller temperature relative to verifier-reward differences, so we treat AGRO as a distinct objective rather than an approximation along the observed training trajectory.
Remark 12 (Finite-group weighting and a variance upper bound). For a fixed group of size , write and , the half-variance with denominator . Define for . The raw GGPO loss has the exact representation and conservative bound
Indeed, for , ; Taylor's integral formula gives the equality. Also , which gives the inequality. Locally, as adjusted-reward spread divided by vanishes, for nonconstant groups. Thus discarding the adaptive weights yields an upper bound whose ratio to the local loss approaches . This is slack in this particular bound, not an unavoidable factor for every variance-based analysis or a global ordering of and . For the unbiased half-variance , the same bound reads . These are raw objective comparisons, separate from the normalization of the implemented updates.
Let be the prompt-averaged population half-variance. Taking expectations gives . Proposition 6 therefore yields, under its conditions,
(39)
B Formal final-policy guarantee and proof
B.1 Formal setup and final-policy guarantee
The population and finite-group bounds in Eqs. (5) and (14) use sequence coverage, which can grow rapidly with response length. We relate behavior and learner distributions through moments of their response likelihood ratio. Conditional token log moments provide a sufficient bound on these coverage moments. Together with local reference control, this yields a finite-group loss calibration and, after repeated reference updates, a finite-data guarantee for the final policy.
Proposition 11 controls an average output using population losses and behavior coverage of the learner and best-of-K comparator. Here we assume binary rewards and initial correct-response coverage. Each exact Gibbs update multiplies correct-response odds by ; the theorem quantifies how errors in fitting these updates affect the final reward.
Reference-update rounds. Responses have at most tokens (pad with a deterministic terminal token when necessary). Write for a complete response and for a token. For a policy , is its token conditional at position , where a legal history consists of a prompt and an allowed response prefix. Each round holds the reference fixed while fitting a new policy. In round , set the reference to and freeze behavior and a candidate class before drawing data. Draw independent prompt groups from , each with independent responses under . Minimize the raw loss in Eq. (6), with reference , over to the empirical accuracy specified below. Denote the output by and use it as the next reference. Groups are unfiltered and fresh across rounds; data may be reused within a round.
Assumption 1 (Local reference control). Rewards satisfy , and all policies are positive on the same finite response support. The temperature satisfies , and every candidate in satisfies
at every legal history s and token a, in every round t.
The local bound limits variation in adjusted rewards. Together with , it keeps the group loss in , allowing us to estimate its expectation from finitely many groups.
The exact KL-regularized optimum for reference is . Its conditional normalizer lies in because rewards are binary. Hence
Thus each round’s optimum satisfies the constraint; the final comparator need not, since repeated updates can move far from the initial policy. The errors below allow approximate fitting within the constrained class. We can also relax the token bound to for if ; Appendix B.6 gives the details, including the revised behavior-lag bound.
The local constraint also motivates the practical token clipping in Eq. (12). That variant limits token log-ratio contributions to the response coefficients, with some bias, but leaves the policy class unconstrained. The theorem therefore analyzes the raw loss under Eq. (40), whereas Section 6.6 evaluates clipping and Appendix E specifies its implementation.
Definition 1 (Round losses). For reference and a group , let be the raw group loss in Eq. (6). Define its population and empirical averages by
where are the sampled groups in round t.
Estimating the loss of a single fixed policy is not enough, because the returned policy is chosen using the same data. The finite-data guarantees therefore depend on the complexity of the group-loss functions. We measure this complexity using the following uniform covering number.
Definition 2 (Uniform loss covering number). For a family F of real-valued functions on prompt-response groups, define
The uniform covering number is the smallest cardinality of a subset such that, for every , some satisfies . Set if no finite cover exists. The supremum ranges over all possible groups.
A uniform cover therefore controls approximation even on groups absent from the sampled data, which allows us to bound finite-data error.
Assumption 2 (Representation, optimization, and loss complexity). Fix nonnegative bounds , , and , and an integer . In every round,
(42)
The candidate class and cover are chosen before sampling in each round.
Relation to approximation assumptions in prior work. Bounds on approximation and estimation errors also appear in compatible function-approximation analyses of policy gradients (Agarwal et al., 2021, Section 6) and inexact policy mirror descent (Yuan et al., 2023, Section 3). Closure under policy improvement is another related structural condition (Bhandari and Russo, 2024). Here we bound population raw-loss representation error and achieved empirical optimization error; these are distinct from the loss-cover condition used for generalization. The Gibbs target satisfying the token constraint does not by itself place it in a chosen model class. For a tabular class containing that target, is constant over responses, so every group loss is zero and the representation bound can use . Loss complexity and achieved empirical accuracy remain separate requirements. Agarwal et al. (2021, Remark 24) give linear-MDP examples of zero transfer bias for their compatible approximation error; that statement alone does not establish zero raw-loss representation error here.
Definition 3 (Combined approximation error). Define
The three components describe different sources of error. Here describes how well the candidate class can fit the Gibbs target in population loss, and describes the accuracy of empirical minimization. The cover error allows the finite-data argument to apply to an infinite class. For a finite class, use all its loss functions as centers, set , and let M bound its cardinality.
Increasing the sample size alone does not remove these errors. The case requires arbitrarily small attainable population loss, exact empirical minimization, and no loss-cover error.
Behavior mismatch. The loss is measured under behavior, whereas reward is evaluated under the returned learner. Define the full-response ratio and the uniform coefficients
(44)
The supremum includes all training randomness and the data-dependent returned policy. A uniform bound over the candidate class before sampling is sufficient but stronger than necessary. These coefficients describe distributional coverage, separately from the loss-cover size ; is the uniform order-p Rényi divergence (van Erven and Harremoës, 2014).
A tokenwise sufficient condition uses and , where . Let be a deterministic bound such that
The sum follows one supported response path before taking the worst case over paths, prompts, rounds, and training randomness. For a chosen , the additional bound
uniformly over rounds, legal histories, actions, and training randomness implies, by Lemma 15,
This bound holds for any finite , with its size entering through . The learner-to-behavior token condition is separate from the learner-to-reference constraint in Assumption 1. Both conditions are used in the analysis; the loss contains no learner-to-behavior importance weights.
Finally, the initial policy needs to assign enough probability to correct responses for repeated Gibbs updates to reach the desired reward. Fix a comparator policy and use the following coverage condition.
Assumption 3 (Initial correct-response coverage). There is a constant such that
Thus bounds how much more often the comparator can succeed than the initialization. Best-of-K sampling from satisfies this condition with : the probability of at least one correct response among K independent draws is at most K times the single-response success probability.
Theorem 13 (Final reward and finite-data convergence). Suppose Assumptions 1, 2, and 3 hold, and use the sampling procedure above. Fix and set
For a fixed real with , let and choose
With probability at least over the sampled training groups,
Here is defined in Eq. (43), and is expected single-response reward. Under Eqs. (45) and (46), one may replace by in both the budget and fitting residual. Choosing the smallest permitted integer gives
with absolute constants uniformly in : the two terms can use and , respectively.
Each run uses Tn fresh prompt groups and mTn scored responses. The scalar in the constants is the circle constant.
Remark 14 (Fourth moments and bounded coverage). Under the same local reference, sampling, approximation, and initial coverage conditions, retain T, z, and X from Theorem 13.
Fourth moments . Here . The budget in Eq. (50) gives and, with probability at least ,
Under the pathwise budget in Eq. (45) and , one may use . Thus the additional accuracy exponent is 1/3, with the coverage coefficient and fitting residual still explicit.
Bounded coverage . If , the alternative choice
gives, with probability at least ,
This branch has linear dependence on , corresponding to in the accuracy exponent; is defined only for . When each behavior policy is the current frozen reference, by Assumption 1, giving .
Interpretation. The budgets control statistical reward error by . Prompt draws may repeat, but additional groups on a fixed prompt pool do not supply fresh independent draws from . The fitting residual retains representation, achieved empirical optimization, and loss-cover errors; increasing n alone does not remove them. When , it vanishes. Applying the result to a chosen model requires these error bounds as well as the actual policy constraints. The proof in Appendix B.5 combines raw-loss calibration, finite-data concentration, and relative angular transfer.
We first relate group loss to the error in one Gibbs update. We then track how errors in these updates affect the final success probability. For a reference policy , define using in place of in Eq. (1). Let be its Gibbs maximizer and write . Write . The Gibbs identity gives . Throughout, osc means maximum minus minimum over responses.
B.2 Probability transfer and raw-loss calibration
The next two lemmas restate the probability results of Bai et al. (2026, Lemmas F.1 and F.2) in our notation. Their proofs are given there.
Lemma 15 (Sequential log moments). Fix a prompt and realized positive learner and behavior policies on a common finite autoregressive support of at most H tokens. At each history, let . Pad terminated paths with ratio one. Write and . Suppose the sum of along each supported path is at most , , and at every history for a deterministic . Then for every ,
For , the right side is at most . The same bounds hold for every prefix ratio. Under Eq. (46), take and to obtain Eq. (47).
The conditional mean is a nonnegative KL divergence, so an upper bound on also bounds its centered value. These statements are conditional on the realized policies; the deterministic uniform budget in Eq. (45) covers prompts, rounds, and training randomness. See Bai et al. (2026, Lemma F.1, proof).
Lemma 16 (Bounded-function moment transfer). For distributions P, Q on a common finite support, let , , and . For every real ,
If almost surely, then .
See Bai et al. (2026, Lemma F.2, proof) for both inequalities.
Lemma 17 (Raw-loss calibration). Let learner and behavior b be positive on a common support, and let the response score satisfy at every prompt. For independent responses from b, let L be the expected raw group loss, averaged over prompts, and define
If for , then
If instead uniformly, then . For , .
Proof. Fix a prompt and any response distribution . For and , tilting changes densities by factors between and . The minimum-over-centers formula for variance gives . Integrating with weight yields
For the uniform distribution on a sampled group, the expected empirical variance is . Hence the conditional loss satisfies . Put , so . Apply Lemma 16 with , , , , and :
The upper curvature bound now gives
Both coefficients are below 4. Average over prompts and use concavity of . Under bounded coverage the same local transfer lemma gives , proving the second conclusion.
B.3 Oracle inequality for each refresh round
The next lemma compares the population raw loss of each returned policy with the best population loss in that round's candidate class. Its probability statement holds simultaneously over all refresh rounds, so it applies to the entire sequence used in the final-reward analysis.
Lemma 18 (Per-refresh oracle inequality). Suppose Assumptions 1 and 2 hold. In each of T rounds, freeze the reference, behavior policy, candidate class, and loss cover before sampling n fresh independent prompt groups as in Appendix B.1. Each group contains independent behavior-policy responses and is unfiltered. Let be the returned policy with empirical suboptimality at most , as specified in Eq. (42). Fix and set . With probability at least , simultaneously for every ,
In particular, with ,
Proof. Condition on all data and policies from the preceding rounds. The current reference, behavior, candidate class, and loss cover are then fixed, and the new groups are independent. Assumption 1 bounds the adjusted-reward range by , so every candidate's raw group loss lies in .
Apply the raw-loss oracle inequality in Proposition 8, Eq. (26), with , candidate class , and failure probability . Its population and empirical losses are now and . The round's loss-cover size is at most , so the logarithmic term in that proposition is at most
The proposition therefore gives, with conditional probability at least ,
Here the statistical term is with . This application uses only the raw-loss conclusion of the proposition; its best-of-K reward assumptions are not needed.
The conditional failure bound holds for every preceding history. Averaging over that history gives unconditional failure probability at most for each round. A union bound over the rounds then gives one event of probability at least on which all the round-wise oracle inequalities hold. Loosening 12 to 24 gives Eq. (57). Finally, the representation bound and the definition give Eq. (58).
B.4 Reference refresh and final reward
We use the relative angular transfer bound of Bai et al. (2026, Lemma F.9), restated below in our notation. It converts the per-round Gibbs gaps into a final-policy reward bound.
Lemma 19 (Polynomial angular propagation). Suppose rewards are binary, the KL coefficient in (1) is , and the comparator has coverage constant as defined in Appendix B.1. For a positive reference policy , recall the prompt-averaged regularized objective and its optimal value:
where the maximum is over all response policies on the common support. Fix and . For any positive policy sequence , set . Then
In particular,
Here controls initial correct-solution coverage and the scalar is the circle constant. The error coefficient grows polynomially with T.
The cited result assumes binary rewards, positive policies, and the initial correct-response coverage in Assumption 3. Its round count is our , and its proximal gap equals by the Gibbs identity above. This is a deterministic result for the realized policy sequence; its proof is given in the cited lemma. Substituting gives Eq. (59); Cauchy–Schwarz gives Eq. (60).
B.5 Proof of Theorem 13
Proof of Theorem 13 and Remark 14.
Step 1: Bound the population raw loss in every round. Apply Lemma 18 with as in Eq. (49). With probability at least , the population-loss bound in Eq. (58) holds for every round. Work on this simultaneous event for the remainder of the proof. The moment bound is uniform over training randomness and therefore applies to every realized returned policy.
Step 2: Convert raw loss into a per-refresh optimality gap. Apply Lemma 17 to , whose score range is bounded by the local reference and temperature conditions. For finite , put and . Lemma 17 and give
Set . The first statistical term is at most when . The second is at most when ; use to obtain Eq. (50). Under bounded coverage, Lemma 17 gives . Its statistical term is at most under Eq. (52).
Step 3: Propagate the gaps to the final reward. Apply Lemma 19, using Eq. (60) with , on the simultaneous event from Step 1. The finite-moment gap bound gives Eq. (51), and the bounded-coverage gap bound gives Eq. (53). This proves the bounded-coverage case of Remark 14; its fourth-moment case follows by setting in the finite-moment bound. Finally, Lemma 15 supplies under the stated token conditions, and for gives the absolute order constants. Only groups count as independent prompt observations.
Token moments and sequence coverage. The coefficient controls a full-response ratio, whereas aggregates conditional token second moments along a path. For example, allows and the sequence-ratio envelope . When the token cap also holds, the Bernstein coefficient is at most . The representation and achieved optimization errors remain separate conditions on the model class and solver. Uniform coverage is the infinite-order branch because . If a returned learner equals behavior, its response ratio is one and the direct calibration reduces to . In the analyzed procedure behavior is frozen before fitting, so sampling from the current reference generally still produces learner-behavior mismatch.
B.6 The Gibbs target and behavior lag
The conditional-normalizer calculation after Assumption 1 shows that the exact Gibbs target satisfies the local constraint. Under its relaxed version for , the score range is at most . Thus preserves the calibration and concentration arguments, provided representation and loss complexity hold for the relaxed class.
For stored-policy behavior with , telescoping gives and one may take . This supplies the Bernstein token condition when . Independently of this cap, multiplying token ratios gives , so the direct branch has a sufficient budget . For behavior equal to the current reference, ; the relaxed temperature condition makes this coverage coefficient smaller than . The moment branch instead uses with an term. Which budget is smaller depends on both these coefficients and the target accuracy. The lag counts reference rounds, separately from experimental synchronization delay. Additional training-inference mismatch requires bounds on the actual learner-to-behavior ratios in Eqs. (45) and (46).
Alternative bound from token spans. Let be deterministic bounds, uniform over histories, prompts, rounds, and training randomness, on the span across actions of . Put . At each history write . Normalization and Hoeffding's lemma give and . Successive conditioning gives . This bound applies without the lower-ratio condition of Lemma 15. For stored-policy lag, . Use as an upper bound on in Theorem 13.
C Experimental details
C.1 Data and evaluation
Training data. We describe the data construction and evaluation protocol here so that the reported comparisons can be reproduced. ALP-Math combines the mathematics split of Guru-RL (Cheng et al., 2025) with an OpenR1-derived dataset (2025). We use the 54,404 problems in train/math__combined_54.4k.parquet from LLM360/guru-RL-92k. From weqweasdas/from_default_filtered_openr1_with_scores, we retain the 23,036 examples whose upstream mean verifier score lies strictly between 0.2 and 0.8. We merge the two sources and deduplicate by exact user-content string after applying the common prompt format, within and across sources. For each duplicated prompt, we keep the first occurrence, processing Guru-RL before OpenR1. This reduces 77,440 records to 73,293 unique prompts. Length filtering retains 73,290 prompts: each input has at most 2,048 tokens after applying the chat template, including system and user instructions and the generation prompt. We independently checked the training data against all five evaluation benchmarks and found no overlapping problems. The Qwen3-1.7B-Base default-setting dataloaders shuffle with seeds 42, 1234, and 2027. The N = 128 condition also uses three training seeds; other settings with periodic behavior synchronization use seed 42.
Training-time evaluation uses MATH-500 from PRM800K. Final evaluation additionally uses AIME 2024, AIME 2025, OlympiadBench and Minerva Math (Lewkowycz et al., 2022). MATH-500 is the PRM800K subset of MATH (Hendrycks et al., 2021; Lightman et al., 2024), and OlympiadBench is the text-only mathematics split (He et al., 2024). Ground truths are their boxed answers.
Dataset revisions: Guru-RL, da327b36b4dc077240aa8efd7f25c4017cd74ef4.
2e2790a962a3c099bfb5ea61389cbf98a5ea439b;
OpenR1,
The evaluation sets contain 500 MATH-500 problems, 30 AIME 2024 problems, 30 AIME 2025 problems, 674 OlympiadBench problems, and 272 Minerva Math problems, for 1,506 problems in total. Every problem-weighted average we report uses these dataset sizes as weights. The accompanying preprocessing code pins these evaluation datasets to fixed revisions.
Models and prompts. We use Qwen3-1.7B-Base and Qwen3-4B-Base with their corresponding tokenizers. The exact system prompt is “Please reason step by step, and put your final answer within \boxed{}.” Each user problem is followed by “Let’s think step by step and output the final answer within \boxed{}.”
Reward and decoding. The binary reward uses Math-Verify (Kydliček, 2025) to verify answers against the ground truth. We use no separate format bonus or length penalty.
Training rollouts use vLLM (Kwon et al., 2023) at sampling temperature 1.0, top-p = 1.0, top-k disabled, 2,048-token prompt and response maxima, and m = 8 responses per prompt. Training-time and final evaluation use the same sampling temperature, top-p, top-k, and length settings. Each checkpoint is evaluated once, drawing 32 responses per problem. The end-of-sequence (EOS) token is included in the response probability, and the response mask includes generated tokens through the first EOS token while excluding subsequent padding. If generation reaches the 2,048-token response maximum without EOS, all generated tokens define the maximum-length-truncated prefix; no unobserved EOS factor is included.
Trainer and evaluation policies. The bounds use , the policy defined by the trainer likelihoods. Evaluation samples from , the rollout implementation of the same checkpoint; mean@32 estimates . For a common prompt distribution and reward function ,
where compares distributions over complete responses. Subtracting this term transfers a learner reward lower bound to the evaluation policy.
Best-of-K evaluation. For binary rewards, best@K and pass@K both estimate in Eq. (13). Given correct responses out of 32, the unbiased estimator is for (Chen et al., 2021), with when . It averages the maximum reward over all size-K subsets: at , it equals (mean@32); at , it equals . Reported scores average these values over problems.
Mixed-reward filtering and refill. In the default setting (N = 8), each behavior collection draws the next 256 prompts from the shuffled dataloader and generates m responses per prompt under one frozen pre-update policy. We retain groups containing at least one correct and one incorrect response and continue sampling until the collection is full. Each collection allows at most 32 generation batches, including the initial batch; training stops with an error if the target batch cannot be filled. For a prompt with success probability p, the probability that a sampled group is retained is . The procedure therefore changes the training distribution by favoring prompts that produce mixed-reward groups. Groups with equal rewards carry no verifier signal for GRPO, AGRO, or GGPO, although reference regularization can still contribute an update. Within
MATH-500: 6e4ed1a; AIME 2024: 83a7f38; AIME 2025: 563bb84; OlympiadBench: 4faaf1e; Minerva Math: ee46ddc.
each matched comparison, methods use the same filtering rule, refill budget, batch geometry, and prompt order.
Mismatch diagnostics. K3 and ESS are computed on learner minibatches retained after mixed-reward filtering. The behavior–learner mismatch curve reports token-mean K3 (Schulman, 2020), , for , averaged over the logged response tokens. For the responses in a logged batch, the learner-to-behavior sequence importance weight is , and the reported normalized effective sample size is . These sequence-level weights provide a mismatch diagnostic for all methods. For Figure 4, drift is the token mean of over response tokens selected by the mask . Its ESS uses the responses of each logged block of eight learner minibatches, so the minimum normalized ESS is 1/2,048. Gradient norms use each method's native actor-loss normalization and are therefore interpreted only within a method over training.
C.2 Training setup
Training uses AdamW (Loshchilov and Hutter, 2019): learning rate , betas (0.9, 0.999), weight decay 0.01, constant schedule, no warmup, and gradient clip 1. We use one actor epoch per collection and no entropy bonus. In the default setting (N = 8), each 256-prompt collection contains m = 8 responses per prompt and is divided into 32-prompt minibatches, giving N = 8 optimizer updates. Unless stated otherwise, every method uses , and neither AGRO nor GGPO applies a token-level current-to-pre-update ratio, clipping, learner-to-behavior importance weights, or an additive KL term.
Objectives and reference policies. GGPO optimizes the loss in Eq. (11). In every main comparison, AGRO and GGPO refresh every optimizer updates, because their regularized targets depend on the active reference, whereas our GRPO implementation retains its initial reference. Appendix D.5 compares a fixed reference, , and for all three methods.
Default GRPO. GRPO standardizes rewards within each group of m = 8 responses by subtracting the group mean and dividing by the sample standard deviation plus ; the resulting advantages are held fixed during differentiation. The token-level PPO ratio (Schulman et al., 2017) divides the current learner probability by the behavior probability recorded during rollout. The surrogate clips this ratio to [0.8, 1.2], applies dual clipping with c = 10 for negative advantages, and averages over response tokens selected by the mask. It uses the recorded rollout denominator directly, with no old-trainer recomputation or additional off-policy correction. A K3 KL penalty (low_var_kl) with coefficient 0.01 regularizes the learner toward the fixed initial reference; the entropy coefficient is zero.
GRPO with token-level truncated importance sampling. GRPO+TIS uses a token-level importance-weight cap of 2 in the N = 128 staleness comparison and offline training. Let be the behavior policy that generated the data and the trainer policy at the start of an update block. At N = 128, each update block consists of 8 optimizer updates. Offline training uses blocks of 8 optimizer updates, refreshing at each block boundary while keeping and its stored token log probabilities fixed throughout training. We compute each block's old-trainer token log probabilities once under its . For token with prompt-and-response-prefix context , the TIS weight and
PPO ratio are
(61)
The TIS weight multiplies the token-level PPO clipped surrogate. The old-trainer log probabilities, TIS weights, and PPO denominator remain fixed within each block; the current-policy numerator changes with each learner update. Weights above 2 are capped at 2, without batch normalization or rejection sampling. All other settings match the GRPO baseline in the corresponding setting.
Default AGRO. AGRO (Tang et al., 2026) uses leave-one-out centered adjusted rewards. For response i in group g, let
With , the leave-one-out advantage is
We remove the exterior factor from AGRO's gradient and use token-mean aggregation to reuse GRPO's training hyperparameters. For a global learner minibatch containing G groups with mean response length , the optimized surrogate is
where remains in the adjusted reward and is the total number of valid response tokens selected by the mask. The operator sg stops gradients through the entire advantage, including its current-policy log ratio; only the final factor receives gradients. Rewards, reference log probabilities, and response masks are held fixed. The surrogate uses no PPO ratio, clipping, additional importance correction, additive KL loss, or entropy bonus. The reference is refreshed every 160 optimizer updates.
Numerical precision. The default GRPO, AGRO, and GGPO runs, as well as the N = 128 GRPO+TIS runs, store actor parameters in FP32, execute the forward pass with BF16 mixed precision, and reduce gradients in FP32. Rollout uses BF16; quantization and quantization-aware training are disabled.
Implementation and seeds. All three objectives are implemented in one fork of verl (Sheng et al., 2025) (version 0.9.0.dev) with FSDP actor sharding and vLLM (Kwon et al., 2023) rollout, so they share the data pipeline, verifier, refill logic, and evaluation code; their objectives and reference-policy handling follow the complete configurations above. Seeds and checkpoint reporting follow Section 6.1.
C.3 Experimental protocols
Default training and policy staleness. The default and controlled policy staleness runs use 8,000 optimizer updates. Each behavior collection supplies N distinct learner minibatches, with one update per minibatch and behavior synchronization after the collection; Section 6.4 states the minibatch partition and sample ages. For N = 128, the final collection is generated in full, and 64 of its minibatches are used to complete the 8,000-update budget.
Evaluation and checkpointing occur every 160 optimizer updates in every run, independently of .
Offline setting. The fixed rollout pool contains only mixed-reward groups generated once by Qwen3-1.7B-Base, which is also the initial reference policy. At generation time, we store each response's behavior token log probabilities and reuse them throughout training. Current learner token log probabilities are evaluated on the stored responses for the K3, drift, and ESS measurements; GRPO's learner-to-behavior ratios are formed against the stored behavior values. Methods share the same groups and order without new generation. For each seed, we prepare 400 fixed learner minibatches and perform one optimizer update on each, with evaluation every 80 updates and no response revisited. GRPO+TIS refreshes its old-trainer policy every 8 updates as specified in Appendix C.2. AGRO and GGPO use , while GRPO and GRPO+TIS keep the initial reference fixed.
C.4 GGPO implementation
Differentiation semantics. For response , the learner log likelihood is , with the response mask selecting the valid generated tokens; the reference log likelihood is formed over the same masked sequence. Sampled tokens, verifier rewards, reference log likelihoods, and masks are held fixed during the actor update. We form the adjusted rewards and directly differentiate the log-mean-exp loss in Eq. (11) with respect to the learner log probabilities. A detached copy of is used only to report the resulting coefficients and diagnostics, not as a separately optimized surrogate. Autograd therefore produces the gradient in Eq. (9) exactly, followed by the external normalization in Eq. (11).
End-to-end GGPO update. The update follows Algorithm 1. Refill continues until there are enough mixed-reward groups for N distinct 32-prompt learner minibatches; the loss is evaluated with a stable log-sum-exp, and each minibatch receives one AdamW update.
When N does not divide , as at N = 64 and N = 128, a refresh boundary can fall between two minibatches from the same behavior collection. Algorithm 1 refreshes the reference at that exact boundary; the already sampled behavior data remain unchanged, and subsequent learner updates evaluate their minibatches under the active reference.
Weight-concentration diagnostics. With S and k as in Appendix A.4, over the diagnostic subset of the staleness ladder, the logged within-class normalized effective sample size—the ESS of q restricted to S, divided by k, over groups with —has medians of 0.77–0.80, while the whole-group has medians of 1.96–2.28 out of m = 8. The whole-group concentration reflects separation between reward classes.
D Additional experiments
D.1 Learning by problem difficulty
To examine where learning occurs, Figure 5 splits MATH-500 by the base model's empirical success rate over 32 responses per problem, into the 410 problems with and the 63 with no correct response ( ), and tracks the three default-setting runs on each subset. The remaining 27 problems reach above 95% mean@32 for every method within 640 optimizer updates. This division concerns the difficulty of the problems under the base model. Figure 6 separately compares the methods' analytic per-group coefficients.

GRPO AGRO GGPO
Figure 5: MATH-500 learning curves by base-model difficulty on Qwen3-1.7B-Base. Left: mean@32 on the 410 problems the base model solves part of the time ( ). Right: fraction of the 63 initially unsolved problems (no correct response among the base model's 32 samples, ) with at least one correct response among 32 samples. Both panels plot GRPO, AGRO, and GGPO in the default setting with seed 42 against optimizer updates.

Figure 6: Analytic coefficient sum for correct responses in a mixed-reward group. For , curves show the signed sum , normalized to its value at for each method. GRPO uses standardized reward advantages, ; AGRO uses leave-one-out advantages with equal learner-to-reference log ratios within the group, ; GGPO uses Eq. (29) in the binary-reward limit at fixed finite log ratios, .
D.2 Pass@K evaluation
For each problem, pass@K is the probability that at least one of K independently sampled responses is correct, estimated per problem from the 32 evaluation samples using the unbiased estimator in Appendix C.1. For binary rewards, pass@K and best@K coincide; the estimated pass@1 equals mean@32. The training curves report MATH-500 best@32, while Table 3 reports problem-weighted pass@K over all five benchmarks at each method's final 8,000-update checkpoint.
Table 3: Pass@K across five benchmarks on Qwen3-1.7B-Base. Problem-weighted pass@K (%) at the final 8,000-update checkpoint for training seed 42. The base model is evaluated under the same protocol. Bold marks the best method at each K.
| Method | K = 1 | K = 4 | K = 8 | K = 16 | K = 32 |
|---|---|---|---|---|---|
| Base model | 19.24 | 38.57 | 47.43 | 55.43 | 62.68 |
| GRPO | 42.55 | 56.10 | 61.38 | 65.74 | 69.39 |
| AGRO | 45.06 | 57.41 | 61.96 | 65.85 | 69.19 |
| GGPO | 46.60 | 60.91 | 66.22 | 70.46 | 73.90 |
Results. All three methods raise pass@K above the base model at every K, and GGPO has the highest value at every K (Table 3). Its margin over the strongest baseline grows from 1.5 points at K = 1 to about 4.5 points at , while AGRO's advantage over GRPO disappears at larger sampling budgets. GGPO's advantage also appears in the MATH-500 best@32 curves and the fraction of initially unsolved problems it solves within 32 samples (Figures 1 and 5). For a rarely solved problem with success probability p and , the contribution to pass@K is approximately Kp, compared with p to pass@1. Improvements on such problems can therefore produce larger gains at higher sampling budgets, consistent with the difficulty analysis.
D.3 Full results under controlled policy staleness
Table 4 gives the per-benchmark final-checkpoint results across synchronization delays.
Results. At , GRPO+TIS improves on GRPO across all five benchmarks, while GGPO achieves higher accuracy than GRPO+TIS on each benchmark (Table 4). GGPO also retains higher entropy than GRPO at every delay, as in the default setting (Figure 7).
D.4 Offline training details
Appendix C.3 gives the generation, logging, and refresh protocol. Table 5 reports the mean and sample standard deviation of MATH-500 accuracy across the three seeds; Figure 4 provides the corresponding curves and seed-42 diagnostics.
D.5 Reference-refresh cadence and regularization
All three methods regularize toward a reference policy; the main comparisons use the settings of Section 6.1. We compare each method under a fixed reference, , and , and evaluate GGPO at with a fixed reference and . Table 6 reports the eleven-condition grid across all five benchmarks at the final checkpoint.
Table 4: Full evaluation across controlled policy staleness on Qwen3-1.7B-Base. Final-checkpoint mean@32 accuracy after 8,000 optimizer updates on five benchmarks (%), by synchronization delay . Results at are three-seed means; reuses Table 1, and use seed 42. The final column gives the problem-weighted average. Sample standard deviations across seeds are reported for all columns at .
| Method () | MATH-500 | AIME 2024 | AIME 2025 | OlympiadBench | Minerva Math | Avg. |
|---|---|---|---|---|---|---|
| GRPO () | ||||||
| GRPO () | ||||||
| GRPO () | ||||||
| GRPO () | ||||||
| GRPO () | ||||||
| GRPO+TIS () | ||||||
| AGRO () | ||||||
| AGRO () | ||||||
| AGRO () | ||||||
| AGRO () | ||||||
| AGRO () | ||||||
| GGPO () | ||||||
| GGPO () | ||||||
| GGPO () | ||||||
| GGPO () | ||||||
| GGPO () |
Table 5: Offline MATH-500 accuracy across three seeds on Qwen3-1.7B-Base. Mean@32 accuracy (%) at each evaluated optimizer update, reported as the mean sample standard deviation across training seeds 42, 1234, and 2027. Update 0 is the base model.
| Optimizer updates | GRPO | GRPO+TIS | AGRO | GGPO |
|---|---|---|---|---|
| 0 | ||||
| 80 | ||||
| 160 | ||||
| 240 | ||||
| 320 | ||||
| 400 |
Results. The ablation shows that periodic reference refresh is an empirically important part of GGPO, rather than only a theoretical extension. At , the problem-weighted average rises from 32.96 with a fixed reference to 46.58 with the default schedule; reaches 44.96 (Table 6). Thus a fixed reference costs GGPO 13.6 points and leaves it below fixed-reference GRPO. AGRO also performs best with , but its fixed-reference penalty is smaller at 3.6 points, while GRPO is essentially unchanged across the three conditions.
Figure 8 shows that fixed-reference GGPO levels off after its early gains, with a lower plateau at . With reference refresh, accuracy continues to improve through 8,000 optimizer updates at both temperatures.
The reference shapes AGRO's and GGPO's training targets, whereas GRPO uses it only in an additive KL penalty (Appendix C). This distinction is consistent with GRPO's small accuracy changes across refresh cadences. GGPO shows a larger accuracy improvement from reference refresh than AGRO and GRPO in this comparison. The following diagnostics examine the associated reference drift and changes in response weights.

GRPO AGRO GGPO
Figure 7: Training-time diagnostics across the staleness ladder on Qwen3-1.7B-Base. Each panel plots one metric against synchronization delay N (equally spaced positions), averaged over the last 800 optimizer updates of each run: the token-mean K3 diagnostic of behavior–learner mismatch ( ), the normalized ESS of the diagnostic sequence-level learner-to-behavior importance weights (Appendix C.1), policy entropy, and mean response length in tokens (GRPO orange squares, AGRO green triangles, GGPO blue circles). All diagnostics use seed 42; K3 and ESS are computed on mixed-reward-filtered training responses. K3 and ESS use logarithmic vertical axes. Corresponding accuracies are in Table 4.
GGPO: MATH-500 mean@32 (%)

Figure 8: GGPO training under different reference-refresh cadences and regularization strengths on Qwen3-1.7B-Base. MATH-500 mean@32 accuracy against optimizer updates for with a fixed reference or refresh every 160 updates, and for with refresh every 320 updates. All curves use seed 42. Final results across all five benchmarks are reported in Table 6.
Reference-drift diagnostics. Table 7 provides complementary empirical evidence. With the common fixed reference, GGPO's mean sequence log ratio is 6.0 nats, compared with AGRO's 19.2. The same ordering holds with (0.6 versus 3.8) and (0.7 versus 6.6). GGPO's consistently lower log ratios on the retained training responses are consistent with stronger effective
Table 6: Reference-refresh cadence and regularization on Qwen3-1.7B-Base. Final-checkpoint mean@32 accuracy after 8,000 optimizer updates on five benchmarks (%). “Fixed” keeps the initial reference throughout training; is the refresh cadence in optimizer updates. The rows at each method’s default cadence reuse the three-seed means from Table 1; the remaining conditions use seed 42. The final column uses the problem-weighted average of Table 1. The compact main-text summary in Table 2 retains this seed convention.
| Method, , reference | MATH-500 | AIME 2024 | AIME 2025 | OlympiadBench | Minerva Math | Avg. |
|---|---|---|---|---|---|---|
| GRPO, , fixed | 68.86 | 9.03 | 5.14 | 32.13 | 28.33 | 42.64 |
| GRPO, , | 68.45 | 9.27 | 4.90 | 31.79 | 28.57 | 42.40 |
| GRPO, , | 68.36 | 9.06 | 4.69 | 32.29 | 27.99 | 42.48 |
| AGRO, , fixed | 66.61 | 8.13 | 4.06 | 31.64 | 27.48 | 41.48 |
| AGRO, , | 70.68 | 9.27 | 6.56 | 35.73 | 29.30 | 45.07 |
| AGRO, , | 69.94 | 8.13 | 4.58 | 34.07 | 28.47 | 43.86 |
| GGPO, , fixed | 56.52 | 4.79 | 2.92 | 23.26 | 20.11 | 32.96 |
| GGPO, , | 72.43 | 11.11 | 8.30 | 37.11 | 30.64 | 46.58 |
| GGPO, , | 70.13 | 9.69 | 6.98 | 35.73 | 29.62 | 44.96 |
| GGPO, , fixed | 54.09 | 3.44 | 2.08 | 20.98 | 19.49 | 30.98 |
| GGPO, , | 72.04 | 9.69 | 6.88 | 35.48 | 29.73 | 45.50 |
Table 7: Learner-to-reference log-ratio and entropy diagnostics on Qwen3-1.7B-Base. Mean sequence log ratio over the responses in the training batch, and policy entropy, each averaged over the last 800 optimizer updates of the seed-42 run.
| Method | Metric | Fixed | ||
|---|---|---|---|---|
| AGRO | Log ratio (nats) | 19.2 | 3.8 | 6.6 |
| Entropy | 0.19 | 0.07 | 0.10 | |
| GGPO | Log ratio (nats) | 6.0 | 0.6 | 0.7 |
| Entropy | 0.35 | 0.19 | 0.18 |
reference anchoring under the implemented updates. The fixed-reference comparison is especially informative because both methods use the same initial anchor. These means are computed on each method’s behavior-policy samples after mixed-reward filtering.
Weight concentration among successful responses. Figure 9 compares the distribution of GGPO’s weights among successful responses with a fixed reference and with at . For groups with successful responses, let for , where is the successful subset. The within-success normalized ESS is ; one denotes uniform weights, and smaller values indicate greater concentration. Because these responses have equal rewards, Eq. (10) gives , where . Thus this diagnostic isolates how learner-to-reference log-ratio differences redistribute weight within the successful subset.
After the initial decline, the refreshed-reference curve remains above the fixed-reference curve, although both decrease over training. The higher ESS with refresh is consistent with limiting accumulated log-ratio differences among successful responses, as described in Appendix A.3. This provides a weight-level view of the reference dependence accompanying the accuracy trends in Figure 8.
Averaging over the final five recorded refresh windows and the matching fixed-reference interval gives normalized ESS values of 0.582 with a fixed reference and 0.690 with refresh; the corresponding fractions of groups with are 0.758 and 0.839. The raw group loss remains nonzero, averaging

Figure 9: Within-success weight concentration for GGPO on Qwen3-1.7B-Base. Normalized ESS of the weights restricted to successful responses, for groups with at least two successes, at with seed 42. Blue uses a fixed reference; orange refreshes every 160 optimizer updates. Higher values indicate more uniform weights among successful responses.
0.619 and 0.531, respectively. These diagnostics establish the presence of reference-dependent reweighting during finite-loss training but do not isolate its contribution to the accuracy gain.
D.6 Ablations on GGPO's group weights
GGPO's weights are , where . We vary the reward temperature and remove the reference-dependent term under the default Qwen3-1.7B-Base configuration with .
Temperature choice. Reducing from 0.01 to 0.001 changes GGPO's problem-weighted average from 46.58 to 46.78, while AGRO decreases from 45.07 to 44.37. We use in the main comparisons.
Removing the reference-dependent term. Under the default setting, we isolate the contribution of reference-dependent weighting by replacing with at , while retaining the remaining GGPO update. The reward-only variant scores 45.12 with seed 42, compared with the full method's three-seed mean of 46.58. For mixed binary-reward groups, the resulting update coefficients approach the success-normalized form of MaxRL (Tajwar et al., 2026) at small , up to GGPO's normalization (Appendix A.4). This component ablation supports reference-dependent weighting in the default setting.
D.7 Finite group size
We study the effect of group size at a fixed optimizer-update budget by varying the number of responses per prompt over for Qwen3-1.7B-Base under the default GGPO configuration. Every run uses 32 groups per learner minibatch and 8,000 optimizer updates; the condition reuses the default-setting run. Each update uses 32m retained responses, and raw generation cost also depends on mixed-group acceptance and refill.
Table 8: Evaluation across GGPO group sizes on Qwen3-1.7B-Base. Problem-weighted best@K (%) over the five benchmarks at the final 8,000-update checkpoint for training seed 42. For binary rewards, best@K equals pass@K. The row reuses the GGPO results in Table 3. All runs use 32 groups per learner minibatch.
| Group size | |||||
|---|---|---|---|---|---|
| 46.51 | 60.73 | 65.97 | 70.12 | 73.17 | |
| 46.60 | 60.91 | 66.22 | 70.46 | 73.90 | |
| 46.88 | 61.43 | 66.80 | 71.25 | 75.10 |
Results. Increasing from 4 to 16 improves best@ at every reported , with gains growing from 0.37 points at to 1.93 points at (Table 8). Larger groups are more likely to contain a correct response on difficult prompts, providing a mixed-reward training signal that smaller groups may miss. The larger gains at higher sampling budgets are consistent with improvements on problems that the learner solves infrequently.
D.8 Sampling budget
Figure 2 complements the update-based comparison in Section 6.2 with cumulative generated training responses for Qwen3-1.7B-Base under the default setting (, ). Counts include all generated candidate responses, including those discarded by mixed-reward filtering and those generated during refill (Appendix C.1).
D.9 Token-clipping training rewards
Figure 10 gives the single-seed training-reward comparison discussed in Section 6.6. The rewards are measured on mixed-reward-filtered training responses; Appendix E gives the implementation.

Figure 10: Token clipping improves early training progress. Mean training reward (higher is better) on Qwen3-1.7B-Base against optimizer updates, with , , , , and seed 42. Blue shows the original GGPO update; orange shows the detached-coefficient variant with token log-ratio clipping at . Rewards are measured on mixed-reward-filtered training data. Faint lines show values aggregated over eight updates; bold lines show trailing 160-update means. Clipping raises early training reward, with a smaller difference later in training.
E Token-clipping implementation
This appendix explains how the clipped adjusted rewards determine response coefficients and how those coefficients enter the detached-gradient surrogate used in Section 6.6. The original GGPO algorithm uses no token log-ratio clipping.
Clipped reference correction. For response in group , let and let be the valid-token mask. We clip each learner-to-reference token log ratio before summing it:
We use , equivalent to clipping the token probability ratio to . The denominator is the reference policy; this is not a learner-to-behavior importance weight.
Objective and stop-gradient. Let be the total valid-token count in the learner minibatch, and let denote the parameters at which the response coefficients are computed for the current update. We minimize the local surrogate
where sg holds its entire argument constant during differentiation. Clipping changes the coefficients, while differentiation uses the original, unclipped token log probabilities. Tokens outside the clipping interval still contribute their score gradients, and all valid tokens remain in . Coefficients are recomputed for each update; rewards, sampled tokens, reference probabilities, and masks are held fixed. The normalization matches Eq. (11), with no additional exterior factor of .
For logging, the implementation retains the clipped log-mean-exp statistic
The update is the gradient of Eq. (65) at , rather than ordinary differentiation through Eq. (66). The latter would introduce a clamp derivative that suppresses gradients at saturated tokens. Removing clipping recovers the normalized original GGPO gradient on the same minibatch.