Cost-Aware SGD: Theory and Applications to LLM Policy Optimization
Clara Mohri, Amir Globerson, Haim Kaplan, Tomer Koren, Yishay Mansour
NeurIPS 2026
TL;DR. Stochastic optimization when different samples have different costs, with applications to LLM post-training.
Abstract. We consider the problem of Cost-Aware Learning, where sampling different components of a finite-sum objective incurs different costs. The objective is to reach a target error while minimizing the total cost. We propose Cost-Aware SGD, which uses a distribution based on gradient norms and costs to sample components. We provide a thorough analysis of this algorithm, including cost-improvement bounds over baselines, a characterization of distribution proxy sub-optimality, and a lower bound. We apply our theoretical insights to reinforcement learning with language models, where the cost of including a sequence in a policy-gradient update scales with its length. We find that advantage magnitude is a high-fidelity proxy for sequence-level gradient norms, motivating Cost-Aware GRPO. Across 1.5B, 4B, and 8B LLMs, Cost-Aware GRPO matches or exceeds baseline accuracy while using up to 33% fewer policy-optimization FLOPs and 33% fewer total FLOPs.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The authors study cost-aware stochastic optimization with applications in LLM post training. The theoretical contributions are sound, and the experiments are comprehensive. That said, theoretical results and proofs are rather standard. I am not too concerned about the theory to practice gap. Overall, the paper makes important contributions both in theory and practice.
If accepted, please incorporate reviewers' feedback in the final version.
A minor comment: I think Figure 1's argument (2) is a stretch, unless the authors show confidence bounds over multiple runs and the different being shown is statistically meaningful. The performance of GRPO goes up and down after ~250M tokens, meaning that it is probably not improving. it is just showing random fluctuations. We cannot reject the possibility that the location of the peak performance of GRPO would be very different if the experiments were run many many more times. The difference between GRPO at ~250M vs ~420M in the plot is not significant enough to care about anyways..
Final justification
see above
- Final justification
- see above
Read meta-review
Meta-review
The authors study cost-aware stochastic optimization with applications in LLM post training. The theoretical contributions are sound, and the experiments are comprehensive. That said, theoretical results and proofs are rather standard. I am not too concerned about the theory to practice gap. Overall, the paper makes important contributions both in theory and practice.
If accepted, please incorporate reviewers' feedback in the final version.
A minor comment: I think Figure 1's argument (2) is a stretch, unless the authors show confidence bounds over multiple runs and the different being shown is statistically meaningful. The performance of GRPO goes up and down after ~250M tokens, meaning that it is probably not improving. it is just showing random fluctuations. We cannot reject the possibility that the location of the peak performance of GRPO would be very different if the experiments were run many many more times. The difference between GRPO at ~250M vs ~420M in the plot is not significant enough to care about anyways..
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies a cost-aware version of finite-sum stochastic optimization. The problem is to minimize ,where each component has a different evaluation cost . Querying the gradient of a long or expensive component may therefore be much more costly than querying the gradient of a short or cheap component. The goal is not only to minimize the number of stochastic-gradient steps, but rather to minimize the total computational cost required to find a point such that
In this setting, the authors analyze stochastic-gradient methods that sample component according to a distribution . For convex and strongly convex objectives, they derive an optimal cost-aware sampling distribution of the form
where is the Lipschitz constant of component / The paper compares this rule with uniform sampling and variance-based sampling, studies the effect of using proxy distributions, and proves a lower bound showing that the proposed dependence on the costs is essentially unavoidable.
The second part of the paper applies these ideas to policy optimization for language models, specifically GRPO. In this setting, each sample corresponds to a prompt-response pair, and its cost is related to the total token length of the prompt and the generated response. Since computing the true gradient norm of each sample would be expensive, the authors use the magnitude of the advantage, , as a proxy for This leads to a Cost-Aware GRPO algorithm that samples examples according to a distribution proportional to
with importance weighting to correct for the sampling bias. Experiments on mathematical reasoning benchmarks with several Qwen models suggest that this approach can substantially reduce the number of policy-optimization tokens while matching or sometimes improving the accuracy of standard GRPO. The paper also includes ablations on noisy proxies, alternative objectives, and smoothed sampling variants.
Strengths and weaknesses
Strengths
S1- The paper addresses a practically important issue. In LLM post-training, computational cost is not uniform across samples: long responses are much more expensive than short ones. Standard SGD theory usually counts iterations and ignores this heterogeneity. The paper’s formulation is therefore well motivated and relevant to modern RLHF/RLVR-style training.
S2- The link to GRPO is interesting. The observation that can serve as a proxy for the importance of a sample is natural, and the empirical correlation plots suggest that this proxy is meaningful in the tested settings. This makes the method simple and potentially easy to implement in existing GRPO pipelines.
S3- The experiments are promising. The paper reports improvements across several settings: Qwen2.5-Math-1.5B, Qwen3-4B, and Qwen3-8B. The reported reductions in policy-optimization tokens are substantial, while the final accuracy is preserved or slightly improved. The ablations on noisy proxies and on CISPO also strengthen the empirical story
Weaknesses
W1- The main theoretical analysis is for convex or strongly convex finite-sum optimization, while the main application is GRPO training for language models, which is highly non-convex, non-stationary, and involves on-policy data generation. The paper acknowledges this gap, but the connection between the theory and the GRPO algorithm remains somewhat informal.
W2- A natural question is whether is the best proxy for the sample importance . In policy-gradient methods, the norm of the sample gradient is closer to
rather than alone. This quantity would provide a more faithful proxy for , since it accounts not only for the advantage magnitude but also for the sensitivity of the policy to the sampled response. Of course, computing per-sample gradient norms may be expensive and could reduce the practical benefit of the method. Still, it would be useful for the paper to discuss this alternative proxy, or to empirically compare with on a small-scale setting.
W3- The evaluation focuses mainly on math reasoning benchmarks, especially AIME, AMC, MATH, and GSM8K. This is a reasonable setting for GRPO, but it leaves open whether the method generalizes to broader RLHF/RLVR tasks. Since the paper presents Cost-Aware GRPO as a general approach, broader experiments would strengthen the claim.
Questions
Q1- The theoretical analysis is developed for convex or strongly convex finite-sum optimization, while the main application is GRPO for language models, which is non-convex, non-stationary, and on-policy. Do the authors see a possible path to extending the analysis to this more realistic setting?
Q2- The paper uses |A_i| as a proxy for . However, in policy-gradient methods, the norm of the sample gradient is more directly related to
Did the authors consider using this quantity, or an approximation of it, as a proxy for ? If not, could they explain why alone is sufficient in practice?
Q3- The empirical evaluation focuses mainly on mathematical reasoning benchmarks such as AIME, AMC, MATH, and GSM8K. Do the authors expect Cost-Aware GRPO to generalize to broader RLHF/RLVR tasks, such as instruction following, coding, preference optimization, or safety alignment? Additional experiments beyond math reasoning would help support the generality of the method.
Limitations
yes
Final justification
The rebuttal and subsequent discussion addressed some of my initial concerns, in particular through the additional TACO experiment and the clarification regarding the use of the advantage magnitude as a proxy for the per-sample gradient norm. These additions strengthen the empirical case and provide useful evidence that the method may extend beyond mathematical reasoning.
However, my main concern remains only partially resolved. The theoretical analysis is developed in a substantially simpler optimization setting, and the connection to the non-convex, non-stationary GRPO setting remains heuristic. The authors provide useful arguments for why the same sampling principle may remain relevant, but they do not establish a convincing theoretical bridge to the actual algorithmic setting. As a result, I still view the theoretical contribution as somewhat disconnected from the empirical contribution of the paper.
Overall, I find this submission interesting and practically promising, but with a noticeable gap between the theory and the main application. The rebuttal improved my view of the empirical contribution but did not fully resolve my central theoretical concern. I therefore maintain my score of 4.
Formatting concerns
No formatting concern
4 comments
Rebuttal
Thank you to the reviewer for the thorough and constructive comments.
W1 — Connection between the convex theory and the GRPO setting
While our analysis is focused on the convex setting, Appendix F provides insight into how and why we believe the theory extends to the more realistic, non-convex, setting. Crucially, the term to minimize remains regardless of the setting, which is why we hypothesize that cost-aware learning is empirically effective in the context of GRPO. Thus, although our analysis begins in the convex setting, these insights suggest why it translates to non-convex settings in practice. We will emphasize these findings in the main text of the final manuscript.
W2 — Alternative proxy
The reviewer is correct that a better proxy than may exist, and that the true gradient magnitude would be even better. The reviewer's suggestion makes explicit that the proxy for omits the term . However, that term is precisely the gradient-norm computation whose cost we aim to avoid. Computing it prior to sampling would defeat the purpose of cost-aware learning. is sufficient in practice because it is an extremely cheap proxy in our setting and because of its strong sub-optimality metrics.
Regardless, this comment is addressed in the paper in two ways:
- We report sub-optimality metrics (Theorem 4.2) showing the cost-biased -divergence between and the true gradient norm is low across all experiments, implying that our experiments incur cost close to the cost one would incur using the oracle-optimal sampling distribution.
- Fig. 2 is an oracle setting in which we use the true gradient norm on a synthetic task. The figure shows the desirable properties of using the exact gradient norm in order to maximally reduce cost.
Due to time constraints, we cannot perform a full LLM training run using the suggested proxy within the rebuttal window, but we will do this for the 1.5B model in the final manuscript to show the comparison. This would be purely for research purposes; we would not suggest it as a practical method.
W3 — Generalization beyond math reasoning
We see no reason cost-aware learning should not extend beyond math reasoning. To this end, we present new results for the rebuttal, where we trained the 1.5B model on the TACO dataset. This is an interesting setting because (1) it is a different task (code generation) and (2) the rewards are not 0/1 (reward is the fraction of test cases passed). Thus it tests the generality of cost-aware learning in two different ways.
We see strong indications that cost-aware learning generalizes to other tasks:
- Low sub-optimality under a new reward signal. The sub-optimality of using as a proxy averages 0.06 throughout training, indicating low sub-optimality in a different task and a different reward signal.
- Consistent efficiency gains. We report the reduction in resources to reach the baseline's peak reward below, using training reward as a proxy for held-out accuracy (due to time constraints). We will complete these with mean@32 evaluations on the held-out TACO test set in the final manuscript.
Percent reductions vs. baseline to reach the baseline's peak reward:
| Metric | CA-GRPO () | CA-GRPO () |
|---|---|---|
| Policy-optimization FLOPs | 21.9% | 13.4% |
| End-to-end FLOPs | 21.3% | 12.6% |
| Training steps | 15.2% | 10.1% |
Overall, cost-aware learning appears similarly effective in reducing FLOPs to reach peak reward on this new task. Due to this result, we conclude there exists empirical evidence that cost-aware learning would generalize to other tasks and reward structures.
In light of the above, we kindly request that the reviewer consider raising their score.
Dear reviewer,
We are reaching out to gently remind you that our discussion period is ending in four days. We would be appreciative of your response. If you have any further questions or concerns, we would like the time and opportunity to address them prior to the end of the discussion period. Thank you.
I thank the authors for the effort invested in the rebuttal and for conducting the additional TACO experiment, which strengthens the empirical section. However, I remain unconvinced by the theoretical contribution. The analysis derives by optimizing the product of a convergence upper bound and the expected per-iteration cost for a convex finite-sum problem. This rule is then transferred to the substantially different GRPO setting, where the unavailable is replaced by . The rebuttal provides useful empirical evidence that this heuristic works, but does not establish a convincing theoretical bridge between the analyzed problem and the proposed algorithm. The theory therefore still feels post hoc, and I maintain my current score.
Thank you for the considered reply, and for recognizing that the TACO experiment strengthens the empirical section. We think your reading of the theory-to-algorithm step is largely fair and we would like to address it more fully here. We separate the concern into its parts, because we want to be precise about what does and does not transfer.
Where convexity is and is not used in the sampling rule
The derivation of the sampling rule has two parts, and it is worth separating where convexity enters. In the convex setting, standard SGD results (Nemirovsky, Bubeck) give the convergence bound whose iteration complexity is governed by the estimator's second moment S(p); combined with the expected per-step cost C(p), this identifies the objective to minimize as J(p) = S(p)·C(p). Given that objective, the minimizer p* ∝ G_i/√c_i follows from a Cauchy-Schwarz argument (Theorem 4.1) that uses no convexity at all. Convexity therefore enters only in establishing that S(p)·C(p) is the quantity to minimize.
However, this quantity remains the right target beyond the convex case: both non-convex SGD (Ghadimi & Lan) and the generalized-smoothness regime relevant to LLM losses (Zhang et al.) retain the T ∝ S(p)/ε² dependence, so the objective is again S(p)·C(p) and the same Cauchy-Schwarz step yields the same rule p* ∝ G_i/√c_i (Appendix F.2). We analyze the convex case first because it is where this principle admits the cleanest provable statements, including a near-matching lower bound. The analysis also makes testable predictions: it requires both factors, so sampling by 1/√c_i alone should underperform, and it does (Sec. 5.5, App. G.6). The rule is thus optimal wherever iteration complexity is linearly variance-limited rather than specific to convexity, and while a full theoretical guarantee for GRPO remains open, its relevance there is strongly supported empirically.
Why |A_i| can replace G_i
Two questions arise about the proxy: why |A_i| should track G_i, and what is lost if it does so imperfectly.
On the first: the per-sample policy gradient factors as approximately |A_i|·‖∇log π‖, so |A_i| is not an arbitrary proxy but one of the two multiplicative factors of the true gradient norm. We therefore expect it to carry some part of the sample-to-sample variation in G_i, at no additional cost. This motivates the choice and is what we intended in lines 214-215; we will clarify it in the final manuscript.
On the second: we have both empirical evidence that |A_i| is close to G_i and a theorem quantifying what closeness implies. Empirically, the Pearson correlation between |A_i| and the true gradient norm is near 1 throughout training (Figure 3, and the new TACO experiment), so the proxy tracks G_i closely in practice. As for what this closeness implies: given that the objective takes the form S(p)·C(p), Theorem 4.2 characterizes the sub-optimality of any proxy exactly. The cost-biased χ²-divergence is small throughout our GRPO runs. Together these establish not only that a good proxy suffices, but that |A_i| is in fact a good proxy in practice.
Non-stationarity across rounds
Within a round, rollouts are generated by a frozen π_old, and the sampling distribution is computed over that fixed pool. Only the first gradient step taken is on-policy, and the subsequent gradient steps taken on these samples are off-policy with respect to the current policy, exactly as in standard GRPO. Our cost-aware sampling operates on top of this existing machinery, and within each round applies the cost-minimizing rule by construction. So per round, the method is doing what the analysis prescribes.
What the analysis does not model is how these per-round problems compose across rounds, as the objective is non-stationary. This across-round non-stationarity is intrinsic to GRPO, not introduced by our method, and it is the ordinary situation in deep RL. Methods such as PPO and REINFORCE apply stochastic gradient-based optimization to such objectives without a full convergence guarantee, but are justified by the soundness of the per-step principle together with empirical validation. We view closing this across-round gap as an interesting open problem, and we now flag it explicitly.
We are grateful for the exchange, which has helped us sharpen both the contribution and its boundary.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the problem of optimal (effective) importance sampling for SGD in a cost-aware setting. This setting assumes that, for each component of the loss function (or, equivalently, each sample in machine learning context), there is known computational cost c of gradient g, and this cost varies among samples. The goal is to optimize the cost-efficiency of the optimization process. Authors theoretically derive that sampling probability proportional to |g|/\sqrt{c} minimizes the variance of the gradient estimation and optimizes the guaranteed convergence rate. This result is a direct generalization of the classical importance sampling approach for SGD with (implicitly assumed) uniform sample costs.
In the second part of the paper, authors apply the proposed cost-aware importance sampling for learning reasoning LLMs via GRPO, where the cost is proportional to the length of the text. Empirical results show reasonable improvement in terms of convergence rate.
Strengths and weaknesses
Strengths:
- A novel optimization setting
- A reasonable in-demand task
- Theoretical guarantees and a transparent application
Weaknesses:
- Theoretical analysis is an incremental development of widely-known results
- Empirical improvements are rather limited (up to 50% of saved computations).
Questions
No questions
Limitations
No
Formatting concerns
No
2 comments
Thank you to the reviewer for the thorough and constructive comments. We appreciate the positive feedback and respond to the two stated weaknesses below.
W1 — “Theoretical analysis is an incremental development of widely-known results.”
While we respectfully disagree with this comment and believe the theoretical analysis is far from incremental (we provide nearly-matching upper and lower bounds, proxy sub-optimality theorems, and an extension to subset selection), we emphasize that in our view, the primary novelty of this work lies not in theory alone, but rather in capturing a pressing challenge in contemporary ML through a rigorous optimization lens and using it to propose a new, simple algorithmic approach that yields significant practical gains.
W2 — "Empirical improvements are rather limited (up to 50% of saved computations)."
- The absolute scale of savings: On our largest model, Qwen3-8B (Fig. 1), Cost-Aware GRPO requires 51% fewer tokens to strictly match baseline peak accuracy, and 17% fewer tokens to reach its peak than standard GRPO requires to get within 2% of it. Generally speaking, across models (1.5B, 4B, 8B) and objectives (GRPO, CISPO), our method reduces policy optimization FLOPs by 20–35% while matching or outperforming baseline accuracy. We have also shown in the rebuttal that cost-aware learning reduces overall wall-clock time, training steps, and end-to-end FLOPs of training by a similar magnitude.
- Rigorous validation: Our empirical gains are validated across three model scales (1.5B, 4B, 8B), four benchmarks (AIME, AMC, MATH500, GSM8K), extensive ablations (proxy noise, smoothing parameters, and training objectives), and most recently in response to Reviewer yQ41, a different task with different reward structure.
- Concrete impact: RL post-training for LLMs is computationally expensive. By reducing the total required FLOPs, typically by 20–35%, our method frees up a large absolute amount of computational resources.
- Literature context: In general ML literature, resource improvements of this magnitude are routinely celebrated as breakthroughs. For context, the foundational FlashAttention paper achieved a 15% end-to-end wall-clock speedup on BERT-large, and the recent Muon optimizer achieved a ~35% improvement in training speed. Achieving 20–35% savings without compromising downstream performance sits in this range of major efficiency milestones.
Dear reviewer,
We are reaching out to gently remind you that our discussion period is ending in four days. We would be appreciative of your response. If you have any further questions or concerns, we would like the time and opportunity to address them prior to the end of the discussion period. Thank you.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
After generating rollouts in GRPO, this paper subsamples the rollouts (preferring those with large advantage magnitude and short length, via p_i ∝ |A_i|/√c_i with importance reweighting) so that fewer tokens enter the policy-gradient step, aiming to improve training efficiency. The choice is backed by a cost-aware SGD analysis (optimal sampling ∝ G_i/√c_i, with |A_i| used as a proxy for the gradient norm). Experiments on Qwen2.5-Math-1.5B and Qwen3-4B/8B (DAPO; AIME/AMC/MATH500/GSM8K) report reaching matched accuracy with substantially fewer policy-optimization tokens.
Strengths and weaknesses
Strengths
-
Thorough and well-rounded experiments. The evaluation spans three model scales (1.5B/4B/8B) and four benchmarks (AIME/AMC/MATH500/GSM8K), and is complemented by ablations on proxy noise, hyperparameter choices, the smoothed sampling variant, and generalization to a different objective (CISPO). The empirical study is more complete than is typical for a method paper of this scope.
-
Sound and self-contained theory. The cost-aware SGD analysis is not just a heuristic: it provides expected-total-cost upper bounds (convex and strongly convex), explicit cost-improvement ratios over uniform and pure variance-reduction baselines, a χ²-divergence characterization of proxy sub-optimality, and a matching information-theoretic lower bound. The proxy is also validated empirically (near-1 Pearson correlation, near-0 cost-biased χ²-divergence between |A_i| and the true gradient norm).
-
Some novelty, though moderate. Casting sampling as a cost-vs-information tradeoff and deriving
∝ G_i/√c_iis a clean reframing, and the practical insight that the advantage magnitude |A_i| serves as a near-free proxy for the gradient norm in GRPO is the most original and useful contribution. That said, the underlying machinery (importance sampling for variance reduction, gradient-norm-proportional sampling) is classical, so the novelty is incremental rather than fundamental — the main step is extending known tools to the heterogeneous-cost setting and connecting them to LLM RL.
Weaknesses
-
No end-to-end efficiency evidence; the expensive stage (rollout generation) is excluded from the metric. The paper's headline savings ("up to 51% fewer tokens") are measured solely as tokens used in policy optimization (a backward-pass FLOPs proxy). But all rollouts are still fully generated — generation is not reduced at all — and in RL training for LLMs rollout/inference is often the dominant cost. The paper reports no wall-clock time, no throughput, and no end-to-end FLOPs comparison between Cost-Aware GRPO and the baselines (only absolute per-run durations are disclosed). As a result, the central "efficiency" claim is established only on one component of the pipeline, and the practically relevant question — how much faster is training overall — is left unanswered.
-
The sampler is structurally biased toward short responses, and the debiasing only holds in the mean. Since
c_iis the token count andp_i ∝ |A_i|/√c_i, shorter responses are systematically more likely to be selected into the gradient step. The importance weight1/p_iis constructed to cancel this bias in expectation (Eq. 22 is an unbiased estimator of the full GRPO objective, and sampling is with replacement, so the construction is correct). However, the cancellation holds only for the mean gradient: long responses are sampled rarely but with large1/p_iweights, so their signal arrives in high-variance bursts. This interacts badly with two mechanisms the paper does use — PPO-style clipping and the "re-center importance weights around 1" step (App. G.2), both of which can cap or mute those rare large contributions — leaving a plausible residual shortening pressure on the policy. Crucially, no output-length drift over training is reported, which is exactly where this effect would surface. -
Higher gradient variance by construction, with no diagnostic. The authors' own analysis notes the variance-optimal sampler is
p ∝ G_i, whereas the cost-aware samplerp ∝ G_i/√c_ideliberately trades variance for cost. The paper provides no gradient-variance or training-stability diagnostic to confirm this trade is benign, relying solely on end-task accuracy. -
The re-centering normalization is under-specified. App. G.2 claims re-centering the importance weights "simply multiplies the objective by a constant." This is true only if the normalizer is the population mean weight (θ-independent, since
pis computed from the frozenπ_old). If instead it is the per-mini-batch empirical mean, the estimator becomes self-normalized importance sampling, which is biased (consistent only as batch size → ∞). The paper does not state which is used.
Questions
see weakness
Limitations
see weakness
Final justification
According to the response, I decided to raise my score to 4 as the end to end Flops is of advantages to baseline, which answer my core question of the paper
Formatting concerns
no
2 comments
Rebuttal
Thank you to the reviewer for the thorough and constructive comments.
W1 — "No end-to-end efficiency evidence; the expensive stage (rollout generation) is excluded from the metric."
Wall-clock time
We report below the cumulative wall-clock time of training steps here and are happy to update the paper with this information as well.
We did not focus on wall-clock time in the paper mainly because wall-clock time is not always a stable metric across nodes, and depends on various hyperparameters that could change based on implementation.
End-to-end FLOPs comparison
While the focus of this paper is on policy-optimization FLOPs, we agree with the reviewer that end-to-end FLOPs are relevant given that generation is a computational burden of RL for LLMs. We provide a high-level description here and plan to update the final manuscript with detailed plots.
We compute FLOPs for each training step as follows. Generation FLOPs are estimated as
2P × (L_prompt + L_resp) × B × M
where:
- P — number of parameters
- L_prompt — mean prompt length of the batch
- L_resp — mean response length of the batch
- B — batch size
- M — number of rollouts per prompt
This reflects the cost of a single autoregressive forward pass per generated token. Training FLOPs are estimated as 6PT, where T is the number of tokens trained on in the backward pass, using the standard 6× factor to account for both forward and backward passes. Cumulative FLOPs are summed over all steps.
Summary of reductions to reach the baseline's peak accuracy
In the following table, we report reductions in terms of wall-clock time, end-to-end FLOPs, and training steps achieved by running cost-aware learning over the baseline. We will add this information in plot format in the final manuscript. We find cost-aware sampling to be highly favorable across metrics.
| Setting | Wall-clock | End-to-end FLOPs | Training steps |
|---|---|---|---|
| 1.5B GRPO | 27% | 28% | 29% |
| 1.5B ZVF () | 10% | 11% | 9% |
| 4B GRPO | 29% | 32% | 35% |
| 8B GRPO¹ | 28% | 24% | 25% |
¹ Relaxed peak accuracy as in Fig. 1.
W2 — "The sampler is structurally biased toward short responses."
The sampler is only biased toward shorter responses if they also have high advantage magnitude. If they do not, shorter responses would not be sampled as much. We respond by reporting 1) average generated response lengths, and 2) average response length trained on per step. Below, we report the average response length generated by the model at baseline peak accuracy.
Average generated response length in tokens (cost-aware vs. baseline):
| Setting | Cost-aware | Baseline | Note |
|---|---|---|---|
| 1.5B GRPO | 913 | 888 | CA longer at baseline's peak accuracy |
| 1.5B ZVF | ~920–944 | ~920–944 | Nearly identical across methods |
| 4B GRPO | 3108 | 3179 | CA slightly shorter |
| 8B GRPO | 2932 | 3117 | CA slightly shorter |
Average response length selected per step
Next, we examined the average number of tokens trained on per step to understand whether cost-aware sampling is structurally biased toward shorter responses. We found that cost-aware sampling selects slightly longer responses on average: for example, on the 8B run, the average tokens trained on per step is 14% more than the baseline (the largest difference we observed). This indicates that cost-aware sampling makes the tradeoff between cost and advantage magnitude by slightly favoring high advantage magnitude — explained in part by cost appearing in the denominator of the sampling distribution with a square-root factor. Despite spending slightly more FLOPs per backward pass, it remains the more FLOP-efficient choice overall.
We will update the final manuscript with plots presenting the above information.
Stress test: doubling the response budget
To test whether longer response budgets amplify the effect the reviewer describes, we present results from an additional experiment with the 8B model, where we double the maximum response length during generation. We also report resource consumption reductions achieved by cost-aware sampling for completeness.
| Metric | Result |
|---|---|
| Avg. generated response length (CA vs. baseline) | 5% shorter |
| Avg. tokens in backward pass per step (CA vs. baseline) | 12% more |
| Total training FLOPs reduction | 30% |
| Wall-clock reduction | 29% |
| Training-step reduction | 31% |
| Baseline peak accuracy (mean@32, AIME) | 68.90% |
| Cost-aware peak accuracy (mean@32, AIME) | 68.93% |
Based on these findings, the sampler is selecting slightly longer responses on average. Meanwhile, at peak accuracy, the average generated response length is marginally shorter when the model was trained with cost-aware sampling as compared to the baseline. Thus, we conclude that, in practice, cost-aware sampling does not bias toward shorter responses during sampling and that generated response length differences are negligible.
On the two mechanisms
Regarding the point that this "interacts badly with two mechanisms the paper does use":
- We do not apply clipping to the importance weights pertaining to sequence-level inclusion (see G.3 for the detailed expression).
- The importance weights are re-centered around 1 at the population level.
W3 — "Higher gradient variance by construction, with no diagnostic."
We agree that a more comprehensive picture of training stability and gradient variance strengthens the paper. To this end, we provide analysis on saved checkpoints for the 1.5B and 8B runs. We compute the gradient variance of one training step under (a) uniform sampling, (b) cost-aware sampling, and (c) oracle variance-reduction sampling (, the variance-optimal distribution the reviewer notes). We report ratios of gradient variance (mean and standard deviation) across all checkpoints below.
| Ratio | 1.5B GRPO | 1.5B ZVF | 8B |
|---|---|---|---|
| Uniform ÷ cost-aware | 3.4436 ± 1.263 | 3.5066 ± 1.3680 | 4.6933 ± 1.3736 |
| Cost-aware ÷ oracle variance-reduction | 1.1374 ± 0.0347 | 1.1980 ± 0.1790 | 1.0252 ± 0.0105 |
Cost-aware sampling yields a significant reduction in gradient variance over uniform sampling (more than 3.4×). Relative to the oracle variance-reduction sampler, additional variance reduction would be 1.03×–1.14×. This shows the variance-for-cost trade-off is close to the variance-optimal sampler despite also reducing cost.
“Training-stability diagnostic”
In order to provide training stability diagnostics, we also describe training reward and entropy (we cannot share plots in the rebuttal). Training reward curves are very stable (in the sense of no spikes, but still increasing throughout) for the cost-aware method, tracking the baseline but slightly above due to improved performance. Response entropy is also stable throughout. We will add these plots to the final manuscript for all runs to improve transparency on the influence of cost-aware sampling on training dynamics and stability. Overall, we find cost-aware training to be a stable training procedure.
W4 — "The re-centering normalization is under-specified."
To reiterate for completeness: re-centering normalization is done at the population level, using weights computed from the frozen , which makes the normalizer θ-independent. It therefore multiplies the objective by a constant and the estimator remains unbiased. We will specify this thoroughly in the final manuscript.
Summary
| Weakness | What we provide |
|---|---|
| W1 | End-to-end FLOPs and wall-clock time at all scales. |
| W2 | Evidence that the sampler does not, in practice, bias toward shorter responses (generated response length analysis + tokens-per-step analysis + doubled-budget stress test). |
| W3 | Gradient variance diagnostics. |
| W4 | Clarification of the population-level, θ-independent re-centering. |
In light of the above, we kindly request that the reviewer consider raising their score.
Dear reviewer,
We are reaching out to gently remind you that our discussion period is ending in four days. We would be appreciative of your response. If you have any further questions or concerns, we would like the time and opportunity to address them prior to the end of the discussion period. Thank you.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you to the AC for the feedback. We address the weaknesses pointed out by the AC below:
W1 – Connection between the theory and the GRPO setting
This is a good question, and it relates to a broader contemporary challenge: we currently lack basic tools to analyze general policy optimization algorithms and their convergence properties, already in the standard, non-cost-aware setting. While our analysis is focused on the convex setting, Appendix F provides insight into how and why we believe the theory extends to the more realistic, non-convex, setting. Crucially, the term to minimize for the optimal distribution p remains S(p)C(p) in the settings we discuss, which is why we hypothesize that cost-aware learning is empirically effective in the context of GRPO. Thus, although our analysis begins in the convex setting, these insights suggest why it translates to non-convex settings in practice. We will emphasize these findings in the main text of the final manuscript.
W2 – “Theoretical analysis is an incremental development of widely-known results.”
While we respectfully disagree with this comment and believe the theoretical analysis is far from incremental (we provide nearly-matching upper and lower bounds, proxy sub-optimality theorems, and an extension to subset selection), we emphasize that in our view, the primary novelty of this work lies not in theory alone, but rather in capturing a pressing challenge in contemporary ML through a rigorous optimization lens and using it to propose a new, simple algorithmic approach that yields significant practical gains.
W3 – Fig. 1
We will re-frame our presentation of Figure 1 so as to give the most comparable assessment of both algorithms. Our motivation for annotating 51% was to plot both methods at their peak accuracy. Regardless of whether 51% is a stretch, we believe that Figure 1 makes it clear that our algorithm enjoys significant efficiency gains.
Summary of weaknesses addressed
We believe that we have thoroughly addressed all the weaknesses that reviewers brought up. To summarize:
We hope the AC and reviewers will agree that we have thoroughly addressed the weaknesses.