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
PPOestimates per-token advantages via a learned critic network and Generalized Advantage Estimation (GAE), howGRPOreplaces the critic by normalizing scores acrossGsampled completions per prompt, and what occurs mathematically and empirically when allGsamples earn the exact same score. - Memory & throughput trade-offs: Contrast GPU memory requirements across active and frozen models in
PPOversusGRPO, and evaluate the runtime trade-off between critic forward/backward passes and decodingGrollouts 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 msdeterministic simulation grader at scale.
Step-by-step walkthrough
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 promptxconcatenated with the tokens generated so fary_<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 snapshotpi_oldthat generated the rollout:L_clip(t) = min( ratio_t * A_t, clip(ratio_t, 1 - eps, 1 + eps) * A_t )Here advantage
A_tanswers a single question: "Did choosing tokeny_tlead to a better outcome than expected (A_t > 0), or worse (A_t < 0)?" Clippingratio_twithin[1 - eps, 1 + eps](typicallyeps = 0.2) stops a single batch from changing token probabilities too aggressively. The core architectural difference between PPO and GRPO is how they estimateA_t.- State
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 prefixs_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 scoreR(x, y)onto the last tokenr_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)(withV(s_{T+1}) = 0after the end-of-sequence token), measuring how much that single token surprised the critic. 2. Smooth those surprises exponentially forward withgamma(discount factor, usually1.0for finite text) andlambda(bias-variance trade-off, usually0.95):A_t = delta_t + (gamma * lambda) * delta_{t+1} + (gamma * lambda)^2 * delta_{t+2} + ...Settinglambda = 1recovers unbiased Monte Carlo returns minusV(s_t)(high variance); settinglambda = 0uses onlydelta_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 predictionsV = [0.5, 0.6, 0.4](plus terminal0.0),gamma = 1.0, andlambda = 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.4515Notice how each token gets its own credit: the critic judged that token
t=1hurt our chances (0.6 -> 0.4), soA_1(0.37) is smaller thanA_0(0.4515) andA_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]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
xis, GRPO samples a group ofGindependent full completions(o_1, o_2, ..., o_G)for the same promptxfrompi_old, grades each completionr_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
tinside completiono_ireceives the exact same scalar advantageA_{i,t} = A_i.Two design details distinguish GRPO from PPO beyond dropping the critic: 1. Prompt-specific empirical baseline:
mean_rdirectly measures the current policy's expected reward on promptxvia Monte Carlo sampling—no value-head warm-up, no critic overfitting, and zero bias from an inaccurate critic. (Without thestd_rdenominator,r_i - mean_requals(G - 1) / Gtimes 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) - 1Becauseu - log(u) - 1 >= 0for everyu > 0, every single token's KL penalty is non-negative and equalsKL(pi_theta || pi_ref)in expectation.Trace GRPO on
G = 4binary 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.73boost while the common failures get gentle-0.58nudges.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]Analyze degenerate groups when all G outputs score identically
What happens in GRPO when all
Gcompletions 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_ris identically0.0, andstd_r = 0.0. Thanks to+ epsin the denominator,A_i = 0.0 / (0.0 + eps) = 0.0cleanly withoutNaNdivision-by-zero. InsideL_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 * KLregularizer pullingpi_thetaslightly back towardpi_ref. - How often it strikes: For a binary task where the policy solves prompt
xwith probabilityp, a group of sizeGhas identical outcomes with probabilityp^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:
- Wasted rollout compute & shrinking effective batch size: As the model improves and
p -> 0.9+, nearly half ofG = 8groups contribute zero learning signal, starving the optimizer of informative prompts and diluting batch-averaged gradients. - Dead zone on ultra-hard tasks: Prompts with
p ~ 0produce[0, ..., 0]every step and never improve without curriculum staging or partial credit. - Noise amplification on continuous rewards: If all
Goutputs fail similarly on a continuous metric—say[0.800, 0.802]withstd = 0.001—dividing bystdstretches 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 with0.1 <= p <= 0.9, and omitstddivision (or floorstd) when rewards carry continuous magnitude meaning.
- Wasted rollout compute & shrinking effective batch size: As the model improves and
- Mathematically: Every numerator
Compare GPU memory footprints and rollout throughput
GPU memory footprint (concrete 7B-parameter example)
Under mixed-precision AdamW (
bf16weights2 B+bf16gradients2 B+fp32master weights4 B+ twofp32Adam states8 B=16 bytes/parameter) and frozenbf16inference 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 GBSharding 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: GeneratingB * Gcompletions instead ofB * 1multiplies output token generationG-fold, and because each group waits for its slowest sample, tail latency grows withmax_{1..G}(length_i). However, prefix KV-cache sharing computes the prompt encoding once per group ofG. - Fixed total rollout budget (say512sequences/step:512 x 1in PPO vs.64 x 8in 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 (64vs.512unique prompts) for critic-free stability and memory headroom.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.0if synthesized actuator control code compiles and keeps temperature and torque within safety bounds across all test cases,0.0otherwise). - 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 requires10sequential reasoning steps, and our model executes each step validly with probability0.90: - Whole-chain success probability is0.90^10 = 0.349(34.9%), so65.1%of chains fail. - Across all chains, the average number of faulty steps is10 * 0.10 = 1.0, and every faulty step lives inside that65.1%failure pool—meaning an average failed solution has only1.0 / 0.651 = 1.54wrong steps and8.46completely valid engineering steps! - Sparse outcome RL pushes down all8.46good steps alongside the1.54bad 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 lengthKgrows,0.90^Kshrinks exponentially and gradient variance explodes.- Outcome supervision (
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 outcomeLearned 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.
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:
- 200 ms grading makes multi-sample rollouts practically free: For a batch of
64 prompts x G = 8 = 512completions, running the simulator takes512 * 0.2 s = 102.4 CPU-seconds—just1.6 secondswall-clock across a single 64-core CPU node, easily hidden asynchronously behind GPU generation! - Deterministic resettable physics fits group baselines natively: Every engineering specification
xcan be evaluatedGindependent times from scratch, giving GRPO an exact, zero-bias prompt baseline while saving ~50% of model-state VRAM (126 GBvs.252 GBat 7B) so GPUs can hold long chain-of-thought KV caches. - 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.
- Practical safeguards to make sparse GRPO scale:
- Programmatic partial credit (gated or small-weight): Award small deterministic milestones—
+0.05compiles cleanly,+0.10passes dimensional/unit check,+0.85passes 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
Grollouts all get identical scores, and normalize token loss by a fixed constant or batch token count (Dr. GRPO / DAPO style) rather than1 / |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.
- Programmatic partial credit (gated or small-weight): Award small deterministic milestones—
- 200 ms grading makes multi-sample rollouts practically free: For a batch of
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, standardizesGterminal rewards per prompt via(r_i - mean) / (std + eps), assignsA_iacross completioni, and adds Schulman's non-negative per-token KL penalty directly in the loss. - Degenerate groups (
all-passorall-fail): Identical rewards yieldA_i = 0, zeroing out the policy gradient and leaving only KL pull towardpi_ref. At success ratep = 0.9andG = 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/paramtrainable,2 B/paramfrozen), 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, with112 GBfrom the critic alone), freeing KV cache (cached attention keys and values needed during token-by-token decoding). In exchange, GRPO generatesGcompletions per prompt (amortizing prompt KV cache via prefix sharing) or seesGtimes 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.46valid steps that still get penalized alongside1.54faulty steps. Process supervision (PRM) scores intermediate steps directly, tightening credit assignment when step labels are trustworthy. - Verifiable engineering domain recommendation: With a
<200 msdeterministic simulator (512rollouts graded in~1.6 son 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 fromGsamples instead of learning a parametric value network. - Overlooking
stdnoise amplification on continuous rewards: Dividing(r_i - mean)bystdrescales[0.800, 0.802]into[-1, +1], turning simulator floating-point jitter into huge gradient updates unlessstdis floored or omitted. - Putting the KL penalty inside
r_ibefore group standardization in GRPO: Standardizingr_i - beta * KLlets 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 remaining14 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 amongGsamples (E[max_{1..G} L_i]grows withG). On the statistical side, the Monte Carlo baseline errorVar(r) / Gshrinks rapidly up toG = 8or16and hits diminishing returns afterward, though largerGsubstantially cuts the degenerate-group rate on skewed tasks (forp = 0.05, the probability of seeing at least one passing solution1 - 0.95^Gjumps from33.7%atG = 8to56.0%atG = 16). At a fixed total rollout budget per step, doublingGhalves the number of unique prompts per batch, increasing cross-prompt gradient variance—so scalingGadaptively on harder prompts beats setting a huge globalG. - 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.9per step sums to5.4, tacking on 6 useless"let's verify"filler steps at0.8inflates the sum to10.2! Instead, aggregate step scores withmin_k(score_k)or potential-based reward shaping—defining step rewardkasPhi(step_k) - Phi(step_{k-1})so intermediate bonuses telescope toPhi(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 theGcompletions 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 stepmthe return-to-go sum of standardized rewards from stepmto the end (A_{i,t} = sum_{k >= m} r_hat_{i,k}). For example, ifo_1has step scores[1, 1, 0]ando_2has[1, 0, 0](pooled mean0.5, std0.5-> normalized[+1, +1, -1]and[+1, -1, -1]), step-level advantages become[+1, 0, -1]foro_1versus[-1, -2, -1]foro_2, pinpointing step 2 ofo_2for 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): branchMshort continuations from intermediate step boundaries to estimateV(step_k)by simulator pass rate, then take differencesV(step_k) - V(step_{k-1}).
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?
- 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?
- How would you extend GRPO to incorporate step-level process supervision, and how should the group baseline and token advantages be computed?
Similar questions
- SFT, DPO, PPO, and KL Regularization in LLM Post-Training
- Siemens Technical Program Manager Behavioral Loop
- Batching and Right-Padding Variable-Length Sequences
- Model Post-Training Scenarios: End-to-End Delivery, Alignment Regressions, and Empirical Debate
- Low-Latency Tree Ensemble Inference
- Select Score Cutoff for Target Precision