Walk me through training a reasoning model with RLVR. Why GRPO instead of PPO, and what breaks in practice?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
RLVR is RL where reward comes from a programmatic verifier rather than a learned reward model: does the answer match, do the tests pass, does the proof check. That removes RLHF's central weakness, a learned reward model being an approximation the policy can hack, and gives you a signal that is cheap, plentiful and much harder to hack, though not impossible, as the failure list below shows.
Full worked answer with diagram
RLVR is RL where reward comes from a programmatic verifier rather than a learned reward model: does the answer match, do the tests pass, does the proof check. That removes RLHF's central weakness, a learned reward model being an approximation the policy can hack, and gives you a signal that is cheap, plentiful and much harder to hack, though not impossible, as the failure list below shows.
The loop: sample G completions per prompt from the current policy, verify each, compute advantages, take a policy-gradient step with a KL penalty toward a reference model.
GRPO over PPO: PPO needs a critic to estimate advantages, which is a second network of comparable size, trained jointly, and it is notoriously hard to fit under long-horizon sparse reward, where a single scalar arrives after thousands of tokens. GRPO deletes the critic and uses the group as its own baseline: advantage = (r_i - mean(r_group)) / std(r_group). It is a variance-reduction trick, not a new objective. You remove an entire model from memory and the most fragile component of the pipeline, and you pay for it with G rollouts per prompt. DeepSeek used it for R1 and it became the default.
What actually breaks:
- Length hacking. Longer chains correlate with reward, so the policy inflates length without accuracy. Dr. GRPO identified bias terms in the original objective that push this: per-response length normalisation penalises long wrong answers less than short ones, and dividing by the group std adds a separate question-difficulty bias.
- Entropy collapse. The policy sharpens, sampling diversity dies, all G rollouts become identical, advantages go to zero, learning stalls. Countered with entropy and KL terms, asymmetric clipping, temperature.
- Degenerate groups. All-correct or all-wrong groups give zero advantage and burn compute for nothing. You need curriculum and filtering to keep prompts near the capability frontier, and that data engineering is most of the real work.
- Verifier gaming: passing tests without solving the problem, exploiting the checker, finding answer leakage.
- The elicitation question. Pass@k analyses suggest RLVR sharpens what the base model can already sometimes do more than it adds new capability. Practically: base quality caps your ceiling, and no RL budget rescues a weak base.
- Transfer beyond verifiable domains is the live open question.
Worth sketching. The loop plus the degenerate-group branch shows where the compute actually leaks.
flowchart LR
P["prompt"] --> G["sample G completions from the policy"]
G --> V["verifier: tests pass, answer matches, proof checks"]
V --> A["advantage = r minus group mean,<br/>divided by group std, no critic network"]
A --> U["policy-gradient step, KL leash<br/>to the reference model"]
U --> P
V --> DEG{"all correct or all wrong?"}
DEG -->|"yes"| ZERO["advantage is zero, rollouts wasted:<br/>fix with curriculum and filtering"]
What a good answer covers
- RLVR is RL where reward comes from a programmatic verifier rather than a learned reward model
- That removes RLHF's central weakness, a learned reward model being an approximation the policy can hack,…
- The loop: sample G completions per prompt from the current policy, verify each, compute advantages, take…
- GRPO over PPO: PPO needs a critic to estimate advantages, which is a second network of comparable size,…
- GRPO deletes the critic and uses the group as its own baseline
In the glossary: RLVR · KL penalty · GRPO · PPO · Elicitation · pass@k
Interviewer follow-ups to expect
How would you construct the prompt curriculum to avoid degenerate groups?
If RLVR mostly elicits, what does that imply about where to spend your next dollar?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep