WorksComputer Science
Target-ESS Tempered Policy Optimization (TETPO): Smooth Variance Control via Bridge Importance Sampling
Abstract
Asynchronous reinforcement-learning post-training of large language models is computationally efficient but inherently off-policy: the learner updates on rollouts generated by a stale policy, while correcting this mismatch requires importance weights that can be extremely heavy-tailed. A small number of trajectories may then dominate an update, collapsing the effective sample size (ESS) and increasing the variance and instability of the resulting gradient estimates. Existing stabilizers apply fixed interventions regardless of the realized severity of weight concentration, either discarding selected samples or reweighting them without adapting the correction strength. We introduce Target–ESS Tempered Policy Optimization (TETPO), which replaces each importance weight by for a data-adaptive exponent : preserves the original importance weights, whereas assigns uniform coefficients. For each prompt group, TETPO selects the largest whose tempered weights satisfy a target ESS fraction , applying little tempering to healthy groups and stronger tempering when weight degeneracy is severe. At the population level, the tempered coefficients are exact importance weights for a geometric bridge between the sampler and learner policies. The exponent is efficiently found by one-dimensional bisection, while the resulting weights satisfy deterministic bounds on normalized-weight dispersion and weighted-gradient norm that are independent of policy drift, together with a fixed- bound on bridge-target discrepancy. Power tempering also introduces no explicit zero-weight mask. On mathematical-reasoning benchmarks under high staleness, TETPO outperforms strong on- and off-policy baselines.
Introduction and Motivation
Modern reinforcement-learning (RL) post-training of large language models (LLMs) is dominated by the cost of rollout generation: producing several long completions per prompt , scoring them, and taking policy-gradient steps on the resulting triples. In strictly synchronous schedules the learner sits idle during sampling. Asynchronous schedules [2, 7, 8, 10] break this coupling: a sampler generates from a policy snapshot several gradient steps in the past while the learner trains on rollouts as they arrive, giving end-to-end speedups of 2–3× over synchronous training [8]. The cost is that training becomes off-policy. Let be the learner at step and , a sampler snapshot at step . Assuming and -independent , importance sampling (IS) yields the gradient identity
for any -independent baseline . The group-relative advantages used in the practical surrogate are finite-sample variance-reduction terms; our results below concern the tempered weights conditional on the realised advantages, not unbiasedness of the full clipped update. But is a product of per-token ratios, with in the thousands. Even small per-token shifts compound multiplicatively, so is extremely heavy-tailed: the curse of the horizon [5, 6]. In practice a few trajectories dominate each update, and the effective sample size
collapses below the batch size . When ESS collapses, weight concentration can sharply increase the variance and instability of the resulting gradient estimates, the learner-to-sampler KL spikes, and reward can collapse. The central question is therefore: how do we control the dispersion of heavy-tailed IS weights without losing so much information that learning stalls?
Existing stabilizers. Two recent methods take complementary approaches. [13] works per token: with ratio and second-moment proxy , it greedily zeroes the highest- tokens in a trust region until the mean falls below a threshold , yielding a masked surrogate with . [11] works at the sequence level and never masks: rather than normalizing each likelihood ratio by the sum of the ratios in the batch, it divides the learner sequence-likelihood by a group-expectation denominator, i.e. an estimate of the expected learner likelihood over the group, giving a group-expectation-normalized weight (computed in log space for stability), so every sample contributes and nothing is discarded.
Failure modes. Each buys stability at a cost that becomes acute as lag grows. (i) M2PO collapses under heterogeneous staleness. The mask is discontinuous in ; when prompts in a batch are sampled at different lags, the statistic is dominated by high-lag tokens and the greedy mask zeroes a large fraction of the trust region, sometimes entirely, so that under mixed-staleness queues M2PO’s trusted-token fraction becomes erratic and the run can crash. In our runs M2PO peaks early then declines on every benchmark. (ii) GEPO has no variance-control knob. Its group-expectation normalization is fixed and has no tunable strength, so when a batch is dominated by a few heavy sequences it passes through highly concentrated weights without an explicit ESS constraint; at GEPO suffers a catastrophic reward drop near step 200.
Our Approach. We want an estimator that (a) adapts its correction strength to the groupwise ESS: aggressive when ESS is collapsing, dormant when healthy; (b) is smooth in the IS ratios (no discrete masking); *(c) provides a bound on the fixed- bridge-target discrepancy; and (d) cannot collapse, so weights stay strictly positive even under an adversarial batch which motivate TETPO.
Methodology: Target–ESS Tempered Policy Optimization
We follow the off-policy LLM-RL setting of M2PO [13]. A minibatch contains prompts with completions each; for prompt the completions are drawn from the recorded behaviour policy , and the sequence-level ratio is
Because the bridge normaliser (Theorem 1) is prompt-dependent, we normalise and select the tempering exponent within each prompt group, not across the pooled minibatch (which would implicitly reweight the prompt distribution).
Definition 1 (Groupwise tempered weights and ESS). For and each group ,
so , and the groupwise effective sample size is
Definition 2 (Groupwise target-ESS exponent). Given a target ESS fraction ,
Since gives , the feasible set is non-empty; as is continuous and non-increasing (Theorem 2) the maximum exists with for every group. We search all of (no floor ) by 1-D bisection.
Stop-gradient surrogate. Let and let be the stop-gradient operator. The exponent and weights are computed from detached ratios. Define the straight-through surrogate ratio
whose forward value is and whose gradient is ; at the method reduces to a uniform-coefficient, GRPO-style score update on the stale samples (not an on-policy update, since the samples still come from ). With group-relative advantage ,
with and all ESS-selection quantities treated as constants w.r.t. the learner gradient. This is a bridge-weighted PPO surrogate, not the exact gradient of the bridge objective: since depends on , , which (7) does not reproduce.
Two regimes. Per group, (7) interpolates between two ends. Healthy (): and the group uses groupwise SNIS coefficients inside the clipped surrogate. Degenerate: the bisection returns , tempering toward the uniform-weights limit (), which is always feasible. No group ever produces a zero tempering weight (Proposition 2), distinguishing TETPO from M2PO’s hard masking.
Theoretical Guarantees
TETPO’s tempering enjoys four guarantees, stated and proved in Appendix A; we summarise them here.
Exact bridge target (Thm. 1). Per prompt, the tempered coefficient , with , is the exact importance ratio of a geometric-bridge policy against ; recovers and recovers . Because is prompt-dependent it cancels within a group but not across prompts, which is why normalisation is groupwise. This characterises the population target, not the finite-sample estimator (which is biased; see below).
Well-posed selection (Thm. 2). is continuous and non-increasing with , so for every the target-ESS exponent exists (uniquely in the degenerate case) and is found by bisection on ; there is no need for a floor .
ESS-controlled dispersion (Thm. 3). The self-normalised weights obey , independent of the -to- divergence, giving a weighted-gradient-norm bound . This is a deterministic realised-batch bound, not a bound on the estimator’s stochastic variance; in contrast, ordinary IS has , which grows with the drift ( the order-two Rényi divergence).
Bounded discrepancy (Thm. 4). For fixed and , the bridge objective differs from the on-policy objective by at most . As is non-increasing in (Prop. 1) while dispersion is non-decreasing, is the least-tempered exponent meeting the ESS target, i.e. it minimises this bound among feasible exponents. The finite-sample and adaptation bias of the self-normalised estimator is not characterised.
No masking (Prop. 2). All tempered weights are strictly positive, so tempering adds no explicit zero-weight mask, unlike M2PO, whose greedy mask can zero an entire trust region (the instability observed at high staleness). Positivity alone does not force a nonzero final PPO gradient when the advantage is zero or the clip is active.
Complexity. Beyond a vanilla GRPO step, TETPO adds only work: the log are already available, and the 24-iteration per-group bisections plus self-normalisation are negligible next to the per-token forward/backward passes. Table 2 (Appendix A) contrasts TETPO with prior stabilizers.
Table 2: TETPO is the only method that (i) operates smoothly, (ii) achieves a divergence-free (ESS-controlled) weight-dispersion bound, and (iii) provably adds no explicit zero-weight mask. Second-moment entries use the order-two Rényi divergence ().
Table 2.
Experiments
We evaluate TETPO against GRPO [9], GSPO [12], GEPO [11], and M2PO [13] on math-reasoning benchmarks under high staleness (). Table 1 reports avg@16 accuracy (%): TETPO attains the best average on both models, improving over the strongest baseline by +2.1 points on Qwen3-Base-1.7B and +2.3 on Llama-3.2-3B-Instruct, and, consistent with the no-collapse guarantee, avoids the mid-training reward drop seen for GEPO and M2PO. Figure 1 shows the Math 500 trajectories at : GEPO collapses sharply (steps 200, 450) as low-ESS batches pass through highly concentrated weights, M2PO peaks then declines as its mask grows aggressive, and the on-policy baselines GRPO/GSPO plateau lower, whereas TETPO rises smoothly to the highest reward. Full details are in Appendix B.
Figure 1. Math 500 avg@16 evaluation accuracy versus training step at staleness , for GRPO, GSPO, GEPO, M2PO, and TETPO (ours). GEPO collapses intermittently and M2PO peaks then declines, whereas TETPO rises smoothly and remains stable.
| Method | AIME24 | AIME25 | AMC23 | AMC24 | Math500 | Avg. |
| Qwen3-Base-1.7B | ||||||
| GRPO [9] | 15.6 1.1 | 17.5 1.4 | 42.1 0.8 | 21.2 1.0 | 74.6 0.5 | 34.2 0.6 |
| GSPO [12] | 23.0 0.9 | 18.7 1.2 | 48.0 0.7 | 25.6 0.9 | 79.6 0.4 | 39.0 0.5 |
| GEPO [11] | 19.5 1.6 | 17.9 1.7 | 43.4 1.2 | 23.1 1.3 | 77.1 0.8 | 36.2 0.9 |
| M2PO [13] | 24.1 0.7 | 24.2 1.0 | 53.1 0.6 | 27.5 0.8 | 82.5 0.4 | 42.3 0.5 |
| TETPO (Ours) | 26.6 0.6 | 24.6 0.8 | 54.3 0.5 | 32.8 0.7 | 83.8 0.3 | 44.4 0.4 |
| Llama-3.2-3B-Instruct | ||||||
| GRPO [9] | 1.5 0.7 | 0.0 0.0 | 15.5 1.1 | 5.8 0.9 | 40.2 0.6 | 12.6 0.5 |
| GSPO [12] | 5.4 0.8 | 0.6 0.5 | 20.3 0.9 | 9.8 1.0 | 44.6 0.5 | 16.1 0.4 |
| GEPO [11] | 2.8 0.9 | 0.0 0.0 | 22.1 1.3 | 10.2 1.1 | 45.9 0.7 | 16.2 0.6 |
| M2PO [13] | 6.6 0.6 | 0.3 0.4 | 19.1 0.8 | 8.7 0.7 | 43.5 0.5 | 15.6 0.4 |
| TETPO (Ours) | 8.2 0.7 | 1.6 0.6 | 21.4 0.6 | 14.9 0.9 | 46.2 0.4 | 18.5 0.3 |
Table 1. Accuracy (%) across mathematical-reasoning benchmarks, comparing GRPO, GSPO, GEPO, M2PO, and TETPO. Values are avg@16 accuracy under stochastic sampling, reported as mean std over three seeds. Within each model block, the best result per column is in bold and the second best is underlined.
Limitations
Tempering rescales all group weights uniformly; Theorem 4 bounds the fixed- target discrepancy, but the finite-sample and adaptation bias of the estimator is not yet characterised. TETPO also uses sequence-level ratios; combining it with a per-token mask is future work.
Theoretical results and proofs
Theorem 1 (Geometric-bridge importance identity). Fix a prompt with on a common support . For let and define the geometric-bridge policy . Then , so for every integrable ,
with endpoints and .
Proof of Theorem 1 By the definition of ,
Hence, for any integrable ,
Taking gives , so
which is the stated ratio-of-expectations identity. The endpoints follow from and . Finally, depends on , so it cancels between numerator and denominator only within a fixed prompt and not under pooled cross-prompt normalisation.
Theorem 2 (Existence, monotonicity, uniqueness, bisection). Fix a group with and set on . Then is continuous, , , and is non-increasing (strictly decreasing on when the are not all equal). Hence for every the feasible set is a non-empty closed interval : if then ; if and then is the unique root of ; and if with non-constant ratios then . Bisection on brackets to width .
Proof of Theorem 2 Write and
Then is continuous on , and
Introduce the exponentially tilted law . Since ,
and, moreover,
Thus is non-decreasing, so and is non-increasing; it is strictly decreasing on whenever the are not all equal, since then for finite . Because , the feasible set is non-empty; by continuity it is closed, and by monotonicity it is an interval . The stated cases follow: (i) if then ; (ii) if and , the intermediate value theorem yields a unique root of in ; (iii) if with non-constant ratios, for all , forcing ; (iv) if all ratios are equal, and . Bisection halves the bracket at each iteration.
Theorem 3 (ESS-controlled dispersion and weighted-gradient norm).** For each group the self-normalised weights (empirical mean 1) satisfy the deterministic dispersion bound
independent of any -to- divergence. Consequently, for arbitrary vectors , the weighted group mean obeys , and the minibatch mean obeys .
Proof of Theorem 3 Fix a group and abbreviate . Self-normalisation gives , i.e. . As ESS is invariant to a common positive rescaling of the weights,
Therefore, using and ,
For the gradient bound, the Cauchy–Schwarz inequality gives
Averaging over groups and applying Jensen’s inequality,
Theorem 4 (Fixed- bridge-target discrepancy) Fix a prompt and with , and suppose . Then
where is the Pearson divergence.
Proof of Theorem 4 Let , which is well defined because , and note . Then
By the Cauchy–Schwarz inequality and ,
where the last step uses . The bound concerns the population objective only; it does not assert unbiasedness of the finite-sample self-normalised estimator, nor account for the data-adaptive selection of .
Proposition 1 (Monotonicity of the bridge discrepancy) Fix a prompt with and mutually absolutely continuous. Let with , and suppose for . Then is non-increasing on , and strictly decreasing on unless almost surely.
Proof Set and . The bridge density relative to is
so
Differentiating,
because is a cumulant generating function and hence convex, so is non-decreasing. Thus is non-decreasing in , i.e. non-increasing in , and strictly so when is non-degenerate.
Proposition 2 (No hard masking by power tempering) For every and strictly positive , the normalised tempered weights satisfy . Thus power tempering never assigns an exactly zero coefficient to a sampled trajectory. (Strict positivity does not by itself imply a nonzero final PPO gradient: a sample still contributes zero when its advantage is zero or the clip is active.)
Proof of Proposition 2 Fix . If , then implies ; if , then . In either case the group denominator , so
Experimental Details and Reproducibility
Models and data. We post-train Qwen3-Base-1.7B (and, in the second block, Llama3.2-3B-Instruct) with RL. Training prompts are the SimpleRL-Zoo competition-math split SimpleLR/simplelr_qwen_level3to5 (difficulty levels 3–5), loaded from the released train.parquet and filtered to prompts of at most 768 tokens; we use the entire filtered split without subsampling. Evaluation uses five separate public benchmarks: MATH-500 (HuggingFaceH4/MATH-500), AMC23 (HanlardResearch/amc23), AMC24 (rawsh/2024_AMC12), AIME24 (HanlardResearch/aime_2024), and AIME25 (HanlardResearch/aime_2025), which come from sources disjoint from the training corpus, so evaluation items are excluded from training by construction; we did not run an additional -gram decontamination pass. The reward is binary correctness computed by math-verify (v0.5.2): the gold answer is wrapped in \boxed{} and parsed, the completion is parsed with boxed-answer priority, and the reward is , with no learned reward model. Rewards are not scaled (scale_rewards=False); advantages are the within-group mean-subtracted rewards (GRPO-style).
Optimisation hyperparameters. All methods share: optimiser AdamW, learning rate with cosine schedule and warmup ratio 0.05, gradient clipping 1.0, KL coefficient , and 3 epochs with evaluation/checkpointing every 64 steps. Rollouts use completions per prompt with prompts per optimisation step (effective batch sequences; realised as per-device batch 8 × gradient accumulation 8 across 4 GPUs), max prompt length 768 and max completion length 4096. Decoding for rollouts uses temperature 0.6, top- 0.95, top- 20, min- 0. The PPO clip bounds are . For TETPO we use target ESS fraction , floor , and a 24-iteration bisection over ( precision).
Staleness protocol. We use a PipelineRL-style schedule (uniform_stale_k): the sampler serves from a pool of recent learner snapshots, and each rollout’s policy lag is drawn independently as with . Thus is the maximum lag and the realised lag is random (not fixed or averaged); the snapshot pool holds up to 256 checkpoints. This produces the heterogeneous staleness that TETPO’s per-group adaptation targets.
Importance ratios under truncated decoding. Our rollout sampler applies temperature scaling followed by hard top-/top- truncation. Let denote the token support retained by this decoding rule at history . The resulting behaviour distribution is
where denotes the temperature-scaled distribution before top-/top- truncation. Because outside while the learner generally assigns positive probability there, trajectories generated by cannot provide an exact importance-sampling estimator for the unrestricted learner policy. An exact change-of-measure identity is obtained instead for the learner restricted to the same behaviour support,
for which
satisfies and .
In the experiments reported here, however, we do not retain or the corresponding truncation normalisers. We record the log-probability of the sampled token under the pre-truncation, temperature-scaled behaviour distribution and form the sequence-level proxy
Consequently, whenever top-/top- truncation is active, is not the exact importance ratio for either the unrestricted learner policy or the support-restricted policy . TETPO’s empirical ESS and the selected exponent are therefore computed from and should be viewed as using an approximate likelihood-ratio proxy.
This distinction affects the interpretation of our theoretical results. The ESS monotonicity, target-ESS feasibility, deterministic weight-dispersion bound, and positivity results (Theorems 2–3 and Proposition 2) hold for any strictly positive input ratios and therefore continue to hold exactly when TETPO is applied to . In contrast, the exact geometric-bridge identity and the associated bridge-target discrepancy results (Theorems 1 and 4 and Proposition 1) apply to the exact support-restricted ratio and do not constitute guarantees for the approximate ratios used in the present experiments. Logging the retained support (or otherwise evaluating the post-truncation normalisers) would permit exact computation of ; we leave this implementation and a direct comparison between exact and approximate ratios to future work.
Evaluation and overhead. Reported numbers are avg@16 accuracy (%) on the five benchmarks above: for each prompt we draw 16 independent samples with stochastic decoding (temperature 0.6, top- 0.95, top- 20, matching the rollout settings) and average the binary correctness over those samples. We use avg@16 rather than single-sample greedy accuracy because several of these benchmarks are small (AIME24/AIME25 contain 30 problems each), so a single greedy decode per prompt gives a very coarse, high-variance estimate. Each configuration is run with three training seeds, and Table 1 reports mean standard deviation over those seeds; per-seed results accompany the code. The only computation TETPO adds to a GRPO step is the per-group 24-iteration bisection on already-computed log-ratios ( elementwise operations) and the groupwise self-normalisation; these introduce no additional stored activations, and we observed no measurable change in per-step wall-clock relative to GRPO.
Additional Related Work
RL post-training and LLM agents. TETPO targets the off-policy correction that arises in asynchronous RL post-training of LLMs [2, 7, 8, 10], where group-relative objectives such as GRPO [9] and its sequence-level variants [12] are trained on stale rollouts. Beyond single-turn reasoning, RL is increasingly used to train multi-step LLM agents, where unstable updates are a central difficulty: hierarchical RL with stable temporal abstraction [3] stabilizes agent training by structuring decisions over temporally extended actions, and offline imagination with uncertainty-guided planning [4] reduces reliance on costly online interaction by planning over imagined trajectories. Both settings reuse data generated under a policy other than the current learner, so the weight-degeneracy problem studied here also arises there, and TETPO’s group-wise ESS control is complementary to these designs. A related line of work studies preference-based post-training and distillation, e.g. how the choice of models used to generate rejected responses affects preference distillation at scale [1]; such pipelines likewise train on samples drawn from a distribution that differs from the learner’s, which motivates distribution-mismatch corrections of the kind TETPO provides.
References
- [1]Rui Cai, Wenhui Zhu, Xiwen Chen, Jincheng Cao, Han Yu, Shayan Mohajer Hamidi, Zelin He, Qiyao Ma, Daiwei Chen, Xuanzhao Dong, et al. Smaller models, better rejects: Preference distillation scaling. arXiv preprint arXiv:2609.38987, 2026.arxiv.org/abs/2609.38987
- [2]Wei Fu, Jiaxuan Gao, Xujie Shen, Chen Zhu, Zhiyu Mei, Chuyi He, Shusheng Xu, Guo Wei, Jun Mei, Jiacai Wang, Tingxun Yang, Binxing Yuan, and Yi Wu. AReaL: A large-scale asynchronous reinforcement learning system for language reasoning. arXiv preprint arXiv:2505.24298, 2025.arxiv.org/abs/2505.24298
- [3]Shayan Mohajer Hamidi, Yize Cheng, Yuanda Xu, Zhengze Zhou, and Alborz Geramifard. Hierarchical reinforcement learning with stable temporal abstraction for language model agents. In SLM-Agents: 1st NeurIPS Workshop on SLMs for Agentic Systems, 2026. URL https://openreview.net/forum?id=XYhgl4F1U2.arxiv.org/abs/2610.05473
- [4]Shayan Mohajer Hamidi, Linfeng Ye, and Konstantinos N. Plataniotis. Dreamphase: Of-fline imagination and uncertainty-guided planning for large-language-model agents. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=81PJ2KPnmK.
- [5]Qiang Liu, Lihong Li, Ziyang Tang, and Dengyong Zhou. Breaking the curse of horizon: Infinite-horizon off-policy estimation. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1810.12429
- [6]Yao Liu, Pierre-Luc Bacon, and Emma Brunskill. Understanding the curse of horizon in off-policy evaluation via conditional importance sampling. In International Conference on Machine Learning, pages 6184–6193. PMLR, 2020.arxiv.org/abs/1910.06508
- [7]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. arXiv preprint arXiv:2410.18252, 2024.arxiv.org/abs/2410.18252
- [8]Alexandre Piché, Ehsan Kamaloo, Rafael Pardinas, and Dzmitry Bahdanau. PipelineRL: Faster on-policy reinforcement learning for long sequence generation. arXiv preprint arXiv:2509.19128, 2025.arxiv.org/abs/2509.19128
- [9]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.arxiv.org/abs/2402.03300
- [10]Bo Wu, Sid Wang, Yu Tang, Jay Ding, Eric Helenowski, Liang Tan, Tao Xu, Thamme Gowda, Zhuokai Chen, Chen Zhu, Xin Tang, Yongqiang Qian, Bin Zhu, and Rui Hou. LlamaRL: A distributed asynchronous reinforcement learning framework for efficient large-scale LLM training. arXiv preprint arXiv:2505.24034, 2025.arxiv.org/abs/2505.24034
- [11]Han Zhang, RuibinZheng, ZEXUAN Yi, Zhuo Zhang, Hanyang Peng, Hui Wang, Jiayin Qi, Binxing Fang, Ruifeng Xu, and Yue Yu. GEPO: Group expectation policy optimization for stable heterogeneous reinforcement learning. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=movNwgQtDt.
- [12]Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, et al. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025.arxiv.org/abs/2507.18071
- [13]Haizhong Zheng, Jiawei Zhao, and Beidi Chen. Prosperity before collapse: How far can off-policy RL reach with stale data on LLMs? In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=IIgl5MWelz.arxiv.org/abs/2510.01161
AI tools statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.
