跳到正文
Baseten Base Labs:模型研究·· 2 小時前AI 評分43

Base Labs 研究:強化學習中價值函數的計算效率

01Understanding the compute efficiency of value functions in RLResearch·OCT 2026

AI 導讀

Base Labs 研究在強化學習中訓練價值函數是否值得額外計算成本,發現以相同步數比較,PPO 的 critic 表現與 GRPO 相若或較差。在兩項單輪任務中,即使是「完美 critic」也最多隻能消除 40-60% 的優勢估計方差;小型 value head 可能有幫助,但效益有限。

正文

Overview

The starting of a research lab often involves revisiting the eminent literature and understanding why something worked (or why it did not). A theme of this week at Base Labs has been thoroughly understanding and internalizing the historical canon of the post-training field. One canonical example (that is very front of mind) is the introduction of GRPO [1] and correspondingly, the decline of PPO.

Before GRPO was introduced, doing RL on a language model meant doing PPO [2]. In brief, PPO involves some policy and a value model (a ‘critic’ of this policy) that attempts to predict how well the answer will score at each token [3]. The creation of GRPO meant removing the critic in place of scoring each answer against the mean reward of a group of completions sampled for the same prompt. The theoretical argument here was that instantiating and training a second network is basically the same number of parameters as the policy, and perhaps more importantly, must try to make accurate per-token predictions from a single scalar reward given at end. The month that GRPO was released RLOO [4] also outperformed PPO on summarisation and dialogue tasks using REINFORCE with a leave-one-out baseline (e.g. the mean reward of the prompt’s other answers).

With the release of DeepSeek-R1-Zero [5] in January 2025 GRPO “officially” replaced PPO as the default for reasoning RL. But has the tide turned? Indeed, many of the recent ICLR submissions we have read (these of course remain anonymous) return to retraining a critic!

We decided to run some toy experiments to investigate when a critic is actually worth the extra compute required to train it. Theoretically, a value function should only be “worth it” if it removes more gradient noise than what it costs to run (in opportunity cost to more rollouts). This is not usually the case. Most papers that swap the group mean for a PPO critic or a proxy thereof perform equally at equal steps.

A more interesting question one may then ask is: what about adding a critic on top of the group itself? We find that this helps even less than we hoped. For example, a “perfect critic” removes at most 40-60% of the advantage variance that we test on two single-turn tasks. The only area that we find a critic may help is the use of a small value head, and even then this benefit may be marginal.

Computational tradeoff for including a learned value function in RL.

Figure 1

computational tradeoff for including a learned value function in RL. Derivation of the tradeoff curve is in Section 4, and numerical details of the experimental points plotted can be found in Table 2.

Getting a baseline for PPO and GRPO

As a starting point we decided to get our hands dirty with the latest value function literature. In those published (but not necessarily peer reviewed, we make no claims about their holistic quality), we found that PPO critics tied or lost to GRPO at equal steps (Table 1). An intuition for understanding this result is that for a baseline (as common across every policy-gradient method) GRPO uses the group mean and PPO the learned critic. At equal steps, the baseline requires the “value” of the prompt, which is neat in GRPO where it is a fresh Monte Carlo estimate but poor for PPO that must rather learn this value.

Table 1. Standard PPO critic vs GRPO compared at equal steps

Paper and context (brackets)PPOGRPO
GAVE [6] (ALFWorld / maths)63.9 / 36.864.1 / 44.4
PACT [7] (agentic maths)59.764.1
GenAC [8] (maths, 3 seeds)50.8549.96

Many of these papers do however report large wins over GRPO! These gains come from a variety of mechanisms. For instance, TCG-GRPO [9] keeps GRPO’s group and uses its critic to assign credit between turns whilst AC2 [10] uses its critic to stop generating early, matching GRPO with less decoding compute.

The central theme running through many of these papers, at least to us, appears to be what a value function can add on top of a group.

Squeezing out “extra juice” with a critic and a group

An important point to make at this stage is that group-relative rewards and learned value functions do not have to be mutually exclusive; indeed, we can learn a value function to estimate the expected difference between the finite group estimate and the true value function. We formalize this below.

For a fixed prompt and policy, sample G≥2 independent answers with rewards Ri, mean μ, and variance σR2. Define the leave-one-out baseline and advantage, without division by the group reward standard deviation [11], as

Bi=1G−1∑j≠iRj,Ai(0)=Ri−Bi.

Since Ri and Bi are independent,

Var⁡(Ai(0))=σR2+σR2G−1.

The second term is noise introduced by estimating the prompt’s mean reward from only G−1 other answers.

Now let Si,t be the prefix before token t, and define the ideal value function Vi,t=E[Ri∣Si,t]. By the law of total variance,

σR2=Var⁡(Vi,t)+E[Var⁡(Ri∣Si,t)].

An early, irreversible sign error may make failure predictable; an error in the final digit may leave success uncertain until the end.

A prefix-only residual critic trained to predict Ri−Bi has ideal prediction

vi,t∗=E[Ri−Bi∣Si,t]=Vi,t−μ.

Subtracting it gives

Ai,t(∗)=(Ri−Vi,t)−(Bi−μ),

with variance

Var⁡(Ai,t(∗))=(1−ft)σR2+σR2G−1,

where ft=Var⁡(Vi,t)/σR2 is the fraction of reward variance predictable from the prefix. Note that this is a sum of the standard optimal value function variance (first summand) with the group reward variance (second summand). The critic removes predictable reward variation, but cannot predict the independently sampled baseline noise. This information-based distinction is central to interpreting critic variance reductions [7, 12, 13, 14].

Finally, define explained variance as the fraction of original advantage variance removed (higher means lower remaining variance):

EVt=1−Var⁡(Ri−Bi−vi,t)Var⁡(Ri−Bi).

The preceding formulas give the ceiling

EVt≤(1−1G)ft.

If the residual predictor also receives the realized baseline Bi, its ideal prediction can subtract that baseline explicitly. Denote this baseline-aware predictor and advantage by v~ and A~:

v~i,t∗=E[Ri−Bi∣Si,t,Bi]=Vi,t−Bi,A~i,t(∗)=Ri−Bi−v~i,t∗=Ri−Vi,t.

The group-baseline noise now cancels, leaving only the reward variation that is unpredictable from the prefix:

Var⁡(A~i,t(∗))=(1−ft)σR2.

Relative to the same group-only advantage, this gives the higher explained-variance ceiling:

EVt≤1−(1−ft)σR2σR2+σR2/(G−1)=1G+(1−1G)ft.

The extra 1/G is exactly the fraction of original advantage variance contributed by group-baseline noise. This higher ceiling requires access to Bi; with a perfect predictor, the resulting advantage is identical to that of an ordinary value function.

We estimated prefix values on two single-turn tasks (the maths dataset from DAPO and an internal dataset we called register-tracking) with Qwen3-4B. We sampled 16 fresh continuations at eight positions along each of eight answers for 64 prompts. These averages estimate conditional expected rewards, with finite-sample uncertainty. Our estimated f values of 0.31–0.54 imply prefix-only ceilings of approximately 27–47% for G=8. This gives us a baseline cancellation of approximately 40–60%.

Is this removal of variance enough?

While a learned value function can reduce variance, this comes with physical constraints, namely the following:

  1. The Carnot-style maximum efficiencies established in the EV bounds above, and

  2. The opportunity cost in extra compute for evaluating the learned value function.

The relevant comparison is therefore reward-derived advantage variance per unit of compute. The critic does not change the reward variance σR2 itself; it reduces the variance of the residual used as an advantage. Let A(0)=R−B, A(v)=R−B−vt, and σA2=Var⁡(A(0)). By the definition of EV,

Var⁡(A(v))=(1−EV)Var⁡(A(0))=(1−EV)σA2.

For K independent groups, take one designated answer at a fixed token position from each group. The mean of these independent advantage samples has variance σA2/K without the critic and (1−EV)σA2/K with it. Here G counts answers per prompt, while K counts independent groups; this avoids treating advantages that share a group baseline as independent.

Suppose the critic adds a fraction c to total compute per group, including its evaluation and training. Assuming linear cost scaling, this compute could instead process (1+c)K groups without a critic. The critic yields lower variance at equal compute when

(1−EV)σA2K<σA2(1+c)K,

or equivalently,

EV>c1+c.

The implied compute-efficiency multiplier is 1/[(1+c)(1−EV)]. This is the standard cost–variance comparison for Monte Carlo estimators [15].

This calculation uses the advantage EV measured in our experiments. Interpreting its efficiency multiplier as policy-gradient efficiency additionally assumes that gradient variance falls proportionally to advantage variance. The values in Table 2 are therefore EV-based compute-efficiency estimates.

Table 2. Additional critic compute c and advantage EV measured offline on reasoning-gym rollouts from Qwen3-4B. This uses critics that also receive the group baseline. Required EV is the break-even threshold c/(1+c). The multipliers here are EV-based estimates.

Critic typecRequired EVAdvantage EVCompute efficiency multiplier
Value head (last 3 of 36 layers)0.0830.080.2481.23x
Value head (last 6 of 36 layers)0.170.150.2861.20x
Separate critic (trained once per batch)0.750.430.3540.88x
Our critic (trained twice per batch)1.830.650.3540.55x

Conclusion

Amidst a resurgence in papers revisiting the tradeoffs of learned value functions and group estimates, we conduct some analysis in the combined regime of the two to see how much we can push efficiency of the variance reduction. Theoretically, and to some extent empirically, we find that even a perfect critic only removes at most 40-60% of advantage variance, and to be compute efficient it must remove more of this variance than the proportional compute used to train it. As seen in recent ICLR submissions, and by our positive results for a cheaper critic on an easier-to-learn function (residuals to held-out group reward means), critics are better suited to more specialized tasks that require less predictive power, such as providing intermediate credit assignment (e.g. between turns) [9] or stopping rollout generation early [10].

References

  1. Zhihong Shao, Peiyi Wang, Qihao Zhu et al. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv:2402.03300, 2024.

  2. John Schulman, Filip Wolski, Prafulla Dhariwal et al. Proximal Policy Optimization Algorithms. arXiv:1707.06347, 2017.

  3. John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, Pieter Abbeel. High-Dimensional Continuous Control Using Generalized Advantage Estimation. ICLR 2016; arXiv:1506.02438.

  4. Arash Ahmadian, Chris Cremer, Matthias Gallé et al. Back to Basics: Revisiting REINFORCE Style Optimization for Learning from Human Feedback in LLMs. ACL 2024; arXiv:2402.14740.

  5. DeepSeek-AI. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv:2501.12948, 2025.

  6. Anonymous. Learning What the Group Cannot Tell: Decomposed Critics for LLM Reinforcement Learning (GAVE). ICLR 2027 submission #40160 (under review), openreview.net/forum?id=Mar13jaBrq, 2026.

  7. Anonymous. PACT: From Credit Assignment to Critic Alignment. ICLR 2027 submission #30208 (under review), openreview.net/forum?id=4TBXSf38jT, 2026.

  8. Anonymous. Bringing Value Models Back: Generative Critics for LLM Reinforcement Learning (GenAC). ICLR 2027 submission #9841 (under review), openreview.net/forum?id=fLtvoMCPTj, 2026.

  9. Anonymous. Turn-Level Critic Guidance for Training and Inference in Terminal Agents (TCG-GRPO). ICLR 2027 submission #45676 (under review), openreview.net/forum?id=6LRYa55PMD, 2026.

  10. Anonymous. Trust the Critic More (AC2: Actor-Critic with Action Chunking). ICLR 2027 submission #34211 (under review), openreview.net/forum?id=bUk8OiOoR9, 2026.

  11. Zichen Liu, Changyu Chen, Wenjun Li et al. Understanding R1-Zero-Like Training: A Critical Perspective (Dr. GRPO). arXiv:2503.20783, 2025.

  12. Anonymous. When Does Branching Pay? An Exact Variance Analysis of Tree-Structured Policy Gradients. ICLR 2027 submission #47574 (under review), openreview.net/forum?id=Rq6wikzBdc, 2026.

  13. George Tucker, Surya Bhupatiraju, Shixiang Gu, Richard E. Turner, Zoubin Ghahramani, Sergey Levine. The Mirage of Action-Dependent Baselines in Reinforcement Learning. ICML 2018; arXiv:1802.10031.

  14. Siddarth Venkatraman, Matthieu Dinot, Laurence Aitchison. Le Critique: Privileged Value Functions for LLM Reinforcement Learning. arXiv:2608.16739, 2026.

  15. J. M. Hammersley, D. C. Handscomb. Monte Carlo Methods. Methuen, 1964; doi:10.1007/978-94-009-5819-7.

來源:Baseten Base Labs:模型研究 · labs.baseten.co