GEPO: Group Expectation Policy Optimization
- GEPO is an off-policy correction method that replaces token-level importance sampling with group-wise expected proposal probabilities to reduce variance in asynchronous RL settings.
- The approach aggregates probabilities over mini-groups and incorporates a defensive smoothing term to stabilize updates under high network delays.
- Experiments on MATH-500 with Qwen3-1.7B demonstrate that GEPO maintains less than 3% performance degradation compared to synchronous baselines in severe delay conditions.
Group Expectation Policy Optimization (GEPO) is an off-policy correction method for asynchronous policy-gradient training in geographically distributed, high-latency environments. In the HeteroRL architecture, rollout actors sample trajectories under a stale policy while a learner updates a more recent policy ; as network delay increases, the resulting policy mismatch raises the KL divergence and can cause standard importance sampling to fail through high-variance weights. GEPO addresses this by moving from token-level to full-sample importance ratios and replacing each sample’s proposal probability in the denominator with a group-wise expected proposal probability, together with a defensive smoothing term. On MATH-500 with Qwen3-1.7B, the reported implementation maintains superior stability over methods such as GRPO and shows less than performance degradation under $1800$-second delays (Zhang et al., 25 Aug 2025).
1. Distributed RL setting and motivation
GEPO was introduced for heterogeneous distributed reinforcement learning in LLMs, where rollout sampling and parameter learning are decoupled. In HeteroRL, rollout actors generate trajectories under the behavior policy , but the learner performs updates using the newer policy . The paper identifies latency-induced KL divergence between these policies as the central cause of instability: when network delay grows, the conventional importance ratio becomes increasingly variable, and importance sampling can fail (Zhang et al., 25 Aug 2025).
The standard clipped sequence-level importance weight is
In the formulation used for GEPO, this failure mode is tied not merely to off-policy training in the abstract, but specifically to asynchronous rollout collection under stale sampler parameters. The method therefore targets a narrower problem than generic PPO-style stabilization: it is designed for settings in which the behavior policy is delayed, geographically distributed, and potentially far from the learner’s current policy.
2. Group-expectation importance weighting
The core construction in GEPO is the Group Expectation Importance Weight (GEIW). For each input , the sampler generates a mini-group of responses 0. Their proposal probabilities under the stale policy are defined as
1
These values are normalized within the group as
2
and the expected proposal probability under 3 is then estimated by
4
GEPO replaces the per-sample denominator 5 with this group-wise expectation, producing the unclipped weight
6
To guard against bias when the group estimate is poor, the paper introduces a defensive-sampling variant,
7
where 8 is a smoothing coefficient and 9 prevents gradients from flowing through 0. The paper states that this smoothing coefficient is set proportional to 1 in experiments (Zhang et al., 25 Aug 2025).
This construction differs materially from standard importance sampling. Rather than correcting each trajectory with its own proposal probability, GEPO uses a shared denominator estimated from a local response group. A plausible implication is that variance control is transferred from trajectory-specific correction to group-level estimation.
3. Objective and algorithmic structure
GEPO is embedded in a CPPO-KL-style update. With advantage 2, the learner optimizes
3
The paper’s pseudocode specifies the following loop. For each learner iteration, a batch of prompts 4 is collected. For each prompt 5, the stale sampler policy 6 generates 7 trajectories 8. The learner then computes 9 and 0, forms the group denominator
1
sets a prompt-specific smoothing coefficient 2, and computes
3
Advantages are estimated by group-centered rewards,
4
and the policy is updated with the clipped surrogate plus the KL penalty. After the update, the new parameters are broadcast back to samplers, again with network delay (Zhang et al., 25 Aug 2025).
The published complexity discussion attributes the extra cost primarily to 5 additional forward-probability evaluations per prompt and two small reductions, 6 and 7. Compared with token-level importance sampling, GEPO avoids per-token clipping and gradients; compared with vanilla PPO or GRPO, the main overhead is the 8-fold sequence probability computation, which the paper characterizes as minor when 9 batch size and sequence length (Zhang et al., 25 Aug 2025).
4. Theoretical variance reduction
The main theoretical claim is an exponential variance reduction theorem. The paper states that there exists a constant $1800$0 such that
$1800$1
In particular, if
$1800$2
then the variance of the standard weight is larger than the variance of the group-expectation weight (Zhang et al., 25 Aug 2025).
The proof sketch in the paper proceeds through auxiliary quantities including $1800$3, the relation $1800$4, and a bound from Pinsker’s or Csiszár’s inequality yielding $1800$5. It then defines $1800$6, $1800$7, and $1800$8, and derives a lower bound on the variance difference of the form $1800$9, from which one can set 0 (Zhang et al., 25 Aug 2025).
The same section also records the method’s limitations. GEPO assumes that group size 1 is sufficient to approximate 2; in very small-3 regimes the variance reduction is smaller. The estimator introduces a small bias because the denominator no longer exactly normalizes. The smoothing coefficient must be tuned. In low-KL, low-delay settings, GEPO’s variance can sometimes slightly exceed standard importance sampling, although the reported overall stability gains still dominate. Proposed extensions include adaptive group sizes, alternative estimators of 4, and dynamic 5 schedules (Zhang et al., 25 Aug 2025).
5. Experimental behavior under delay
The reported experiments use MATH-500 with Pass@1 on Qwen3-1.7B. Delays are simulated up to 6 seconds, corresponding to approximately 7 update steps of staleness. Baselines are GRPO, described as token-level importance sampling, and GSPO, described as sequence-level importance sampling; all methods use CPPO-KL regularization (Zhang et al., 25 Aug 2025).
| Method | Delay | Best / Last |
|---|---|---|
| GRPO | 0 steps | 77.1 / 41.2 |
| GRPO | 8 steps | 73.3 / 44.6 |
| GRPO | 64 steps | 70.2 / 27.3 |
| GSPO | 0 steps | 78.2 / 31.6 |
| GSPO | 8 steps | 74.5 / 60.4 |
| GSPO | 64 steps | 71.8 / 58.7 |
| GEPO | 0 steps | 78.5 / 77.3 |
| GEPO | 8 steps | 75.8 / 75.7 |
| GEPO | 64 steps | 75.3 / 74.4 |
Under the most severe delay regime, GEPO’s final accuracy of approximately 8 is reported as only 9 below the zero-delay synchronous baseline of 0. The accompanying figures are described as showing low variance of 1, stable gradient norms, and no collapse in training reward for GEPO, while GRPO and GSPO suffer catastrophic divergence under high delay (Zhang et al., 25 Aug 2025).
Within the scope of these experiments, GEPO’s empirical contribution is therefore not simply higher peak performance, but the preservation of final performance as rollout staleness grows. This suggests that the method is primarily a stability mechanism for asynchronous large-scale RL rather than a generic reward-optimization heuristic.
6. Related methods and nomenclature
The term “group” appears in several nearby LLM-RL methods, but the aggregated quantity differs across papers. In Group-Relative Policy Optimization (GRPO), as summarized in “BiasGRPO: Stabilizing Bias Mitigation in High-Variance Reward Landscapes via Group-Relative Policy Optimization” (Reddy et al., 3 Jun 2026), the group statistic is a reward baseline: for each prompt, 2 completions are sampled, scalar rewards 3 are scored, the group mean 4 and often the group standard deviation 5 are computed, and the advantage becomes either 6 or 7. GRPO thus removes the learned critic from PPO and replaces it with a group-relative baseline. On BOLD, RealToxicityPrompts, BBQ, and TruthfulQA, the reported table shows GRPO outperforming DPO and PPO on the listed bias metrics while preserving TruthfulQA accuracy (Reddy et al., 3 Jun 2026).
A separate nomenclature issue arises from “On-Policy Optimization with Group Equivalent Preference for Multi-Programming Language Understanding” (Wu et al., 19 May 2025), where the acronym GEPO denotes Group Equivalent Preference Optimization, not Group Expectation Policy Optimization. That method is an off-policy preference-optimization loss defined over groups of equivalent and inequivalent compiler IRs. Its objective combines a group-wise Bradley–Terry term, which raises the average log-probability ratio of winner IRs above that of loser IRs, with a variance penalty over the winner group to enforce similar scores among equivalent IRs. It is integrated into the OORL framework alongside on-policy RL for code translation, with reported settings 8, 9, winner-group size 0, loser-group size 1, and weight 2 (Wu et al., 19 May 2025).
Accordingly, “GEPO” is not a univocal acronym in the 2025–2026 LLM-RL literature. Group Expectation Policy Optimization aggregates proposal probabilities for off-policy correction under stale-policy mismatch (Zhang et al., 25 Aug 2025); GRPO aggregates rewards to form a baseline (Reddy et al., 3 Jun 2026); Group Equivalent Preference Optimization aggregates preference signals over IR groups in code translation (Wu et al., 19 May 2025). The expansion and training context therefore determine which method is being referenced.