GRPO vs. PPO and Reward Granularity for Reasoning LLMs

Medium · Machine Learning · Machine Learning Engineer · Technical Screen

Prompt

You are architecting the reinforcement learning post-training stage for a language model that tackles multi-step quantitative engineering tasks—such as synthesizing robotic actuator control scripts or deriving thermal heat-transfer bounds. Your production cluster includes a deterministic physics and code execution sandbox capable of running and scoring any final candidate solution in under 200 ms.

You must select a policy optimizer—comparing Group Relative Policy Optimization (GRPO) against Proximal Policy Optimization (PPO)—as well as a reward granularity—contrasting terminal Outcome Reward Models (ORMs) against step-by-step Process Reward Models (PRMs).

Scope & Expectations

  • Advantage computation & zero-variance groups: Explain how PPO estimates per-token advantages via a learned critic network and Generalized Advantage Estimation (GAE), how GRPO replaces the critic by normalizing scores across G sampled completions per prompt, and what occurs mathematically and empirically when all G samples earn the exact same score.
  • Memory & throughput trade-offs: Contrast GPU memory requirements across active and frozen models in PPO versus GRPO, and evaluate the runtime trade-off between critic forward/backward passes and decoding G rollouts per prompt.
  • Sparse terminal vs. dense step-level signals: Distinguish outcome-level (ORM) from step-level (PRM) supervision on long derivations, covering temporal credit assignment, human/compute annotation cost, exact verifiability, and susceptibility to reward exploitation in engineering tasks.
  • End-to-end architecture recommendation: Propose and defend a concrete pairing of RL optimizer and reward strategy suited to a < 200 ms deterministic simulation grader at scale.

Step-by-step walkthrough

  1. Frame LLM post-training and the shared clipped objective

    In reinforcement learning (RL) post-training for an engineering LLM—such as synthesizing robotic actuator control scripts or multi-step thermal heat-transfer derivations—text generation is framed token by token:

    • State s_t: The engineering prompt x concatenated with the tokens generated so far y_<t.
    • Action y_t: The next token chosen from the vocabulary.
    • Policy pi_theta(y_t | s_t) (the actor): The trainable LLM we are improving.
    • Reference policy pi_ref(y_t | s_t): A frozen snapshot of the initial supervised fine-tuned (SFT) model, kept to prevent the policy from drifting into unreadable text.

    Both GRPO (Group Relative Policy Optimization) and PPO (Proximal Policy Optimization) update the actor using the same clipped probability-ratio surrogate objective. Let ratio_t = pi_theta(y_t | s_t) / pi_old(y_t | s_t) compare the current policy against the snapshot pi_old that generated the rollout:

    L_clip(t) = min( ratio_t * A_t,  clip(ratio_t, 1 - eps, 1 + eps) * A_t )
    

    Here advantage A_t answers a single question: "Did choosing token y_t lead to a better outcome than expected (A_t > 0), or worse (A_t < 0)?" Clipping ratio_t within [1 - eps, 1 + eps] (typically eps = 0.2) stops a single batch from changing token probabilities too aggressively. The core architectural difference between PPO and GRPO is how they estimate A_t.

  2. Compute per-token advantages in PPO with a critic and GAE

    Standard RLHF-style PPO trains a second neural network—a value model (critic) V_phi(s_t)—usually a transformer of comparable size to the actor with a scalar linear head on top. At every token prefix s_t, V_phi(s_t) predicts the expected total future return from that point onward.

    Typically, PPO folds a per-token Kullback–Leibler (KL) divergence penalty directly into the token rewards r_t = -beta * (log pi_old(y_t | s_t) - log pi_ref(y_t | s_t)), and adds the final verifier or reward-model score R(x, y) onto the last token r_T.

    PPO then computes per-token advantages backward from the end of the sequence using Generalized Advantage Estimation (GAE): 1. Compute each step's temporal-difference (TD) error delta_t = r_t + gamma * V(s_{t+1}) - V(s_t) (with V(s_{T+1}) = 0 after the end-of-sequence token), measuring how much that single token surprised the critic. 2. Smooth those surprises exponentially forward with gamma (discount factor, usually 1.0 for finite text) and lambda (bias-variance trade-off, usually 0.95): A_t = delta_t + (gamma * lambda) * delta_{t+1} + (gamma * lambda)^2 * delta_{t+2} + ... Setting lambda = 1 recovers unbiased Monte Carlo returns minus V(s_t) (high variance); setting lambda = 0 uses only delta_t (low variance, but inherits every critic prediction error).

    Trace a concrete 3-token response with zero KL penalty (r = [0.0, 0.0, 1.0]), critic predictions V = [0.5, 0.6, 0.4] (plus terminal 0.0), gamma = 1.0, and lambda = 0.95:

    Step t=2 (last):   delta_2 = 1.0 + 0.0 - 0.4 = +0.60   ->  A_2 = +0.6000
    Step t=1 (middle): delta_1 = 0.0 + 0.4 - 0.6 = -0.20   ->  A_1 = -0.20 + 0.95 * 0.6000 = +0.3700
    Step t=0 (first):  delta_0 = 0.0 + 0.6 - 0.5 = +0.10   ->  A_0 = +0.10 + 0.95 * 0.3700 = +0.4515
    

    Notice how each token gets its own credit: the critic judged that token t=1 hurt our chances (0.6 -> 0.4), so A_1 (0.37) is smaller than A_0 (0.4515) and A_2 (0.60).

    from typing import List
    
    
    def compute_gae(
        rewards: List[float],
        values: List[float],
        gamma: float = 1.0,
        lam: float = 0.95,
    ) -> List[float]:
        """Compute per-token GAE advantages; `values` has len(rewards) + 1 entries (last is 0.0)."""
        num_tokens = len(rewards)
        advantages = [0.0] * num_tokens
        running_gae = 0.0
    
        # Sweep backward from the final token so each step accumulates discounted future TD errors
        for t in range(num_tokens - 1, -1, -1):
            td_error = rewards[t] + gamma * values[t + 1] - values[t]
            running_gae = td_error + (gamma * lam) * running_gae
            advantages[t] = running_gae
    
        return advantages
    
    
    demo_adv = compute_gae([0.0, 0.0, 1.0], [0.5, 0.6, 0.4, 0.0])  # [0.4515, 0.37, 0.6]
    
  3. Compute group-relative advantages in GRPO without a critic

    GRPO removes the separate value critic completely. Instead of training a second transformer to guess how hard prompt x is, GRPO samples a group of G independent full completions (o_1, o_2, ..., o_G) for the same prompt x from pi_old, grades each completion r_i, and normalizes across the group:

    mean_r = (r_1 + r_2 + ... + r_G) / G
    std_r  = sqrt( (1 / G) * sum_{i=1..G} (r_i - mean_r)^2 )
    A_i    = (r_i - mean_r) / (std_r + eps)
    

    Under outcome supervision, every token t inside completion o_i receives the exact same scalar advantage A_{i,t} = A_i.

    Two design details distinguish GRPO from PPO beyond dropping the critic: 1. Prompt-specific empirical baseline: mean_r directly measures the current policy's expected reward on prompt x via Monte Carlo sampling—no value-head warm-up, no critic overfitting, and zero bias from an inaccurate critic. (Without the std_r denominator, r_i - mean_r equals (G - 1) / G times the unbiased Leave-One-Out RLOO estimator.) 2. Separate non-negative KL penalty: Rather than subtracting KL inside the reward before normalization (which would distort group standardization), GRPO subtracts -beta * KL_{i,t} directly in the loss using Schulman's unbiased estimator: KL_{i,t} = (pi_ref / pi_theta) - log(pi_ref / pi_theta) - 1 Because u - log(u) - 1 >= 0 for every u > 0, every single token's KL penalty is non-negative and equals KL(pi_theta || pi_ref) in expectation.

    Trace GRPO on G = 4 binary pass/fail rollouts (population std):

    Medium prompt: rewards = [1, 0, 0, 1]  -> mean = 0.50, std = 0.500 -> A = [+1.00, -1.00, -1.00, +1.00]
    Hard prompt:   rewards = [1, 0, 0, 0]  -> mean = 0.25, std = 0.433 -> A = [+1.73, -0.58, -0.58, -0.58]
    

    On the hard prompt where only 1 of 4 attempts passed, that lone breakthrough gets a strong +1.73 boost while the common failures get gentle -0.58 nudges.

    from typing import List
    
    
    def compute_grpo_advantages(group_rewards: List[float], eps: float = 1e-6) -> List[float]:
        """Standardize terminal rewards across `G` completions of the same prompt."""
        group_size = len(group_rewards)
        mean_reward = sum(group_rewards) / group_size
    
        # Compute population variance and standard deviation across the G rollouts
        variance = 0.0
        for reward in group_rewards:
            diff = reward - mean_reward
            variance += diff * diff
        std_reward = (variance / group_size) ** 0.5
    
        # Standardize each completion; `eps` prevents 0/0 when all G rewards match
        advantages = []
        for reward in group_rewards:
            advantages.append((reward - mean_reward) / (std_reward + eps))
        return advantages
    
    
    hard_group_adv = compute_grpo_advantages([1.0, 0.0, 0.0, 0.0])  # [+1.732, -0.577, -0.577, -0.577]
    
  4. Analyze degenerate groups when all G outputs score identically

    What happens in GRPO when all G completions for a prompt receive the exact same reward (for instance [1, 1, 1, 1] on an easy prompt or [0, 0, 0, 0] on an impossible one)?

    • Mathematically: Every numerator r_i - mean_r is identically 0.0, and std_r = 0.0. Thanks to + eps in the denominator, A_i = 0.0 / (0.0 + eps) = 0.0 cleanly without NaN division-by-zero. Inside L_clip, ratio_{i,t} * 0 = 0, so the policy-gradient signal from that prompt vanishes completely. The only non-zero gradient left on those tokens comes from the -beta * KL regularizer pulling pi_theta slightly back toward pi_ref.
    • How often it strikes: For a binary task where the policy solves prompt x with probability p, a group of size G has identical outcomes with probability p^G + (1 - p)^G:
    Prompt pass rate p        G = 4          G = 8          G = 16
    ---------------------------------------------------------------------
    p = 0.50 (medium)        12.5%           0.78%          0.003%
    p = 0.90 (easy)          65.6%          43.0%          18.5%
    p = 0.05 (very hard)     81.5%          66.3%          44.0%
    
    • Empirical consequences in training:
      1. Wasted rollout compute & shrinking effective batch size: As the model improves and p -> 0.9+, nearly half of G = 8 groups contribute zero learning signal, starving the optimizer of informative prompts and diluting batch-averaged gradients.
      2. Dead zone on ultra-hard tasks: Prompts with p ~ 0 produce [0, ..., 0] every step and never improve without curriculum staging or partial credit.
      3. Noise amplification on continuous rewards: If all G outputs fail similarly on a continuous metric—say [0.800, 0.802] with std = 0.001—dividing by std stretches tiny numerical noise into full [-1, +1] updates! - Standard fixes: Filter out zero-variance groups dynamically until the batch is full (dynamic sampling, used in DAPO), curate prompts with 0.1 <= p <= 0.9, and omit std division (or floor std) when rewards carry continuous magnitude meaning.
  5. Compare GPU memory footprints and rollout throughput

    GPU memory footprint (concrete 7B-parameter example)

    Under mixed-precision AdamW (bf16 weights 2 B + bf16 gradients 2 B + fp32 master weights 4 B + two fp32 Adam states 8 B = 16 bytes/parameter) and frozen bf16 inference models (2 bytes/parameter), model-state memory before activations and KV cache compares as follows:

    Component                 Standard PPO (4 models)   PPO + CPU Sim   GRPO + CPU Sim
    -----------------------------------------------------------------------------------
    Actor (7B, trainable)      7B * 16 B = 112 GB          112 GB          112 GB
    Critic (7B, trainable)     7B * 16 B = 112 GB          112 GB           --
    Reference (7B, frozen)     7B *  2 B =  14 GB           14 GB           14 GB
    Reward model (7B, frozen)  7B *  2 B =  14 GB           -- (CPU)        -- (CPU)
    -----------------------------------------------------------------------------------
    Total model-state VRAM               252 GB          238 GB          126 GB
    

    Sharding across GPUs with FSDP or ZeRO-3 divides these totals per GPU, but dropping a full-size critic saves 112 GB (~44–47% of model-state VRAM), freeing massive GPU memory for longer reasoning contexts and larger vLLM/SGLang rollout batches.

    Training throughput trade-offs

    Each RL step runs two bottlenecks: autoregressive rollout generation (memory-bandwidth bound) and forward/backward training passes (compute bound). - Fixed prompt batch B: Generating B * G completions instead of B * 1 multiplies output token generation G-fold, and because each group waits for its slowest sample, tail latency grows with max_{1..G}(length_i). However, prefix KV-cache sharing computes the prompt encoding once per group of G. - Fixed total rollout budget (say 512 sequences/step: 512 x 1 in PPO vs. 64 x 8 in GRPO): Generation token volume is roughly matched, while GRPO eliminates the critic's forward value pass and full backward optimizer step (~35–45% less training FLOPs per token), trading prompt diversity per batch (64 vs. 512 unique prompts) for critic-free stability and memory headroom.

  6. Contrast sparse outcome rewards with dense process rewards

    • Outcome supervision (ORM, sparse final-answer scoring): Grades only the final answer or artifact at the end of a reasoning chain (for example, 1.0 if synthesized actuator control code compiles and keeps temperature and torque within safety bounds across all test cases, 0.0 otherwise).
    • Process supervision (PRM, dense per-step scoring): Scores each intermediate reasoning step (s_1, s_2, ..., s_K) along the derivation (for example, checking steady-state heat balance at step 2, actuator torque saturation at step 4, and SI unit conversion at step 6).

    The credit assignment problem on long chains

    With sparse outcome rewards in GRPO, every token in a 2,000-token derivation receives the exact same scalar A_i. Suppose an engineering problem requires 10 sequential reasoning steps, and our model executes each step validly with probability 0.90: - Whole-chain success probability is 0.90^10 = 0.349 (34.9%), so 65.1% of chains fail. - Across all chains, the average number of faulty steps is 10 * 0.10 = 1.0, and every faulty step lives inside that 65.1% failure pool—meaning an average failed solution has only 1.0 / 0.651 = 1.54 wrong steps and 8.46 completely valid engineering steps! - Sparse outcome RL pushes down all 8.46 good steps alongside the 1.54 bad ones, relying on those good steps appearing slightly more often in passing rollouts for the noise to cancel out over thousands of samples. As chain length K grows, 0.90^K shrinks exponentially and gradient variance explodes.

  7. Compare labeling cost, verifiability, and reward hacking in engineering

    Crucially, in physical and software engineering, "dense" does not automatically mean "learned neural PRM":

    Dimension        Verifiable Outcome (Simulator)   Learned Neural PRM             Programmatic Step Checks
    -------------------------------------------------------------------------------------------------------------
    Labeling cost    Near-zero marginal cost          Very high: PhD human labels    Low engineering setup
                     (one 200 ms CPU run/rollout)     or K*G Monte Carlo rollouts    (AST / unit / compiler checks)
    Verifiability    100% exact on tested cases       Approximate neural proxy;      100% exact on syntax, units,
                     (thermal bounds, safety checks)  hallucinates on novel math     and intermediate assertions
    Reward hacking   Low: limited to test-suite gaps  High: verbose filler steps,    Low if combined via potential
                     or hardcoded edge cases          confident formatting tricks    shaping or gated by outcome
    

    Learned neural PRMs shine for best-of-N reranking at inference time (where a frozen policy cannot adapt to trick the scorer), but during online RL training, gradient ascent actively hunts for inputs where the neural PRM outputs high scores without solving the physics—producing repetitive "Let us carefully double-check the units..." filler steps.

  8. Recommend a pipeline for a 200 ms deterministic physical simulator

    Recommendation: Use GRPO (with dynamic degenerate-group filtering) driven primarily by sparse deterministic simulator outcome rewards, augmented only by lightweight, code-verified milestones—not a learned neural PRM.

    Here is why every constraint of the scenario points to this design:

    1. 200 ms grading makes multi-sample rollouts practically free: For a batch of 64 prompts x G = 8 = 512 completions, running the simulator takes 512 * 0.2 s = 102.4 CPU-seconds—just 1.6 seconds wall-clock across a single 64-core CPU node, easily hidden asynchronously behind GPU generation!
    2. Deterministic resettable physics fits group baselines natively: Every engineering specification x can be evaluated G independent times from scratch, giving GRPO an exact, zero-bias prompt baseline while saving ~50% of model-state VRAM (126 GB vs. 252 GB at 7B) so GPUs can hold long chain-of-thought KV caches.
    3. Zero neural reward hacking: Ground-truth thermal verification and actuator test suites remain accurate even after 10,000 RL steps, whereas a learned PRM would rapidly degrade out-of-distribution and require expensive PhD relabeling.
    4. Practical safeguards to make sparse GRPO scale:
      • Programmatic partial credit (gated or small-weight): Award small deterministic milestones—+0.05 compiles cleanly, +0.10 passes dimensional/unit check, +0.85 passes all thermal & actuator safety test cases—so ultra-hard prompts don't produce all-zero groups, while ensuring a broken program can never outscore a passing one.
      • Dynamic sampling & length-unbiased loss: Resample prompts whose G rollouts all get identical scores, and normalize token loss by a fixed constant or batch token count (Dr. GRPO / DAPO style) rather than 1 / |o_i| so the policy isn't rewarded for stretching wrong derivations longer.
      • Hardened simulator tests: Randomize physical boundary parameters (loads, geometries, disturbance profiles) inside the 200 ms test harness so synthesized code cannot hardcode lookup constants.

Intuition & how it works

Picture coaching an LLM to write a 10-step thermal dissipation derivation and robotic actuator control script. To know whether a step helped or hurt, RL needs a baseline expectation—otherwise every positive reward blindly boosts lucky guesses on trivial problems. PPO hires a second full-sized neural network—a value model (critic)—that reads every partial sentence and predicts expected final score token by token. GRPO fires the critic: instead, it asks the LLM to solve the same engineering prompt G independent times (say G = 8), grades all 8 attempts on the physical simulator, and compares each attempt directly against the group's own average!

Trying to use standard 4-model PPO with a learned step-by-step Process Reward Model (PRM) falls short here for two practical reasons. First, keeping an actor, critic, reference model, and reward model in GPU memory roughly doubles VRAM overhead while introducing critic warm-up instability. Second, when an RL policy optimizes thousands of updates against a learned step scorer, it discovers reward hacking—generating confident-sounding formatting or redundant unit-check paragraphs that rack up step points while failing the actual physics test.

Trace a concrete G = 4 GRPO update on a hard actuator control problem where 1 rollout passes the 200 ms simulator and 3 fail (rewards = [1, 0, 0, 0]): 1. Group baseline: The group mean is 0.25 and population standard deviation is 0.433. 2. Standardized advantage: The passing rollout gets advantage (1 - 0.25) / 0.433 = +1.73 applied to every token it generated, while each failed rollout gets (0 - 0.25) / 0.433 = -0.58. 3. Degenerate edge case: If an easy prompt gets [1, 1, 1, 1], r_i - mean = 0 for all four—producing 0.0 policy gradient so we skip or resample it rather than wasting optimizer steps.

Key points

  • PPO vs. GRPO advantage estimation: Both optimize the clipped probability-ratio surrogate over rollouts (sampled prompt-completion trajectories) regularized against a frozen reference model (the initial SFT checkpoint). PPO learns per-token values via a critic and Generalized Advantage Estimation (GAE)—an exponentially weighted sum of one-step temporal-difference (TD) errors r_t + gamma * V(s_{t+1}) - V(s_t) ([0.4515, 0.37, 0.60] in the 3-token trace). GRPO drops the critic, standardizes G terminal rewards per prompt via (r_i - mean) / (std + eps), assigns A_i across completion i, and adds Schulman's non-negative per-token KL penalty directly in the loss.
  • Degenerate groups (all-pass or all-fail): Identical rewards yield A_i = 0, zeroing out the policy gradient and leaving only KL pull toward pi_ref. At success rate p = 0.9 and G = 8, p^8 + (1 - p)^8 = 43% of groups carry zero signal—mitigated via dynamic group filtering and difficulty curricula.
  • GPU memory vs. rollout generation trade-off: For a 7B model under mixed-precision AdamW (16 B/param trainable, 2 B/param frozen), dropping the 7B critic plus replacing a learned 7B reward model with a CPU simulator cuts model-state VRAM in half (252 GB -> 126 GB, with 112 GB from the critic alone), freeing KV cache (cached attention keys and values needed during token-by-token decoding). In exchange, GRPO generates G completions per prompt (amortizing prompt KV cache via prefix sharing) or sees G times fewer distinct prompts at a fixed rollout budget.
  • Sparse outcome vs. dense process credit assignment: Outcome supervision (ORM) grades only the final output, creating a credit assignment bottleneck (knowing which token caused failure): in a 10-step chain with 90% per-step accuracy, failed rollouts average 8.46 valid steps that still get penalized alongside 1.54 faulty steps. Process supervision (PRM) scores intermediate steps directly, tightening credit assignment when step labels are trustworthy.
  • Verifiable engineering domain recommendation: With a <200 ms deterministic simulator (512 rollouts graded in ~1.6 s on 64 CPU cores), use GRPO + verifiable outcome rewards plus small, code-checked partial milestones (syntax/compilation/unit consistency) and randomized test parameters—avoiding expensive PhD step-labeling and neural PRM exploitation.

Common mistakes

  • Claiming GRPO has "no baseline": GRPO has a strong, prompt-specific Monte Carlo baseline (mean(r_1..r_G)); it simply estimates that baseline on the fly from G samples instead of learning a parametric value network.
  • Overlooking std noise amplification on continuous rewards: Dividing (r_i - mean) by std rescales [0.800, 0.802] into [-1, +1], turning simulator floating-point jitter into huge gradient updates unless std is floored or omitted.
  • Putting the KL penalty inside r_i before group standardization in GRPO: Standardizing r_i - beta * KL lets variance in KL rescale task rewards unpredictably; GRPO adds per-token KL outside the advantage term.
  • Equating "dense rewards" with "neural PRM": Deterministic step checks (compiler AST checks, unit-dimensionality checks) give dense signal with zero neural hallucination, whereas a learned PRM under RL optimization pressure invites verbose style hacking.
  • Ignoring length bias from 1 / |o_i| token averaging: Averaging loss per response divides a negative advantage across more tokens when a wrong answer is longer, inadvertently encouraging verbose wrong reasoning unless replaced by constant-divisor normalization (Dr. GRPO) or batch-token normalization (DAPO).
  • Crediting all 126 GB of VRAM savings to GRPO alone: Removing the critic saves 112 GB; swapping a 7B neural reward model for the CPU physics simulator saves the remaining 14 GB, an optimization PPO can use too (238 GB).

Follow-up questions

  • What trade-off arises between generation wall-clock latency and policy-gradient variance as you scale up the group size G in GRPO? Completion tokens generated per prompt grow linearly with G (though prompt encoding is shared once via prefix KV caching), and wall-clock rollout latency increases even on wide GPU batches because each group is bottlenecked by the longest completion among G samples (E[max_{1..G} L_i] grows with G). On the statistical side, the Monte Carlo baseline error Var(r) / G shrinks rapidly up to G = 8 or 16 and hits diminishing returns afterward, though larger G substantially cuts the degenerate-group rate on skewed tasks (for p = 0.05, the probability of seeing at least one passing solution 1 - 0.95^G jumps from 33.7% at G = 8 to 56.0% at G = 16). At a fixed total rollout budget per step, doubling G halves the number of unique prompts per batch, increasing cross-prompt gradient variance—so scaling G adaptively on harder prompts beats setting a huge global G.
  • When training against a learned Process Reward Model (PRM), how can you stop the model from inflating its total score with verbose filler steps or superficial formatting tricks? Never sum raw positive step scores directly: if a 6-step solution scoring 0.9 per step sums to 5.4, tacking on 6 useless "let's verify" filler steps at 0.8 inflates the sum to 10.2! Instead, aggregate step scores with min_k(score_k) or potential-based reward shaping—defining step reward k as Phi(step_k) - Phi(step_{k-1}) so intermediate bonuses telescope to Phi(final) - Phi(start) and extra filler steps net out to zero. Always gate process bonuses on deterministic outcome validity (or weight the simulator's pass/fail outcome 5–10x higher than total step shaping), penalize excess token length, and track simulator pass rate alongside PRM score so divergence immediately flags reward hacking.
  • How would you extend GRPO to incorporate step-level process supervision, and how should the group baseline and token advantages be computed? DeepSeekMath's process-supervision GRPO pools all step scores {r_{i,1}, ..., r_{i,K_i}} across the G completions of a prompt, standardizes every step score using the group's pooled step mean and standard deviation (r_hat_{i,k} = (r_{i,k} - mean_pool) / (std_pool + eps)), and assigns each token in step m the return-to-go sum of standardized rewards from step m to the end (A_{i,t} = sum_{k >= m} r_hat_{i,k}). For example, if o_1 has step scores [1, 1, 0] and o_2 has [1, 0, 0] (pooled mean 0.5, std 0.5 -> normalized [+1, +1, -1] and [+1, -1, -1]), step-level advantages become [+1, 0, -1] for o_1 versus [-1, -2, -1] for o_2, pinpointing step 2 of o_2 for the sharpest penalty. If you only have an outcome simulator and no PRM, you can also achieve critic-free step credit via tree/vine rollouts (VinePPO / MC-GRPO): branch M short continuations from intermediate step boundaries to estimate V(step_k) by simulator pass rate, then take differences V(step_k) - V(step_{k-1}).

Follow-up questions

Similar questions

More Siemens interview questions

All 5 Siemens questions →