You are running GRPO with a verifier reward on a code task. Reward climbs steadily, but outputs get shorter and more repetitive and held-out pass rate drops. What is happening?
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
Entropy collapse plus verifier hacking, and the reward curve is why you did not notice.
Full worked answer with diagram
Entropy collapse plus verifier hacking, and the reward curve is why you did not notice.
Diagnose in this order:
-
Plot policy entropy per step. Steady collapse means the model concentrated on one mode. Once entropy is near zero, GRPO has no signal at all: all G samples in a group become identical, advantages go to zero, the gradient vanishes, and you are just sharpening whatever it converged to. Log the fraction of degenerate groups (all-pass or all-fail). If most groups are degenerate you are burning compute and learning nothing.
-
Read the samples. Not the reward curve. The samples. Reward-up-quality-down almost always means an exploitable verifier: passing on a trivial special case, matching stdout format only, hard-coding expected outputs,
exit(0), reading the test file. Verifier hacking is unit-test hacking, and models are very good at it. -
Decompose the reward. If you added shaping terms (format reward, length penalty) they usually dominate, because format is trivially satisfiable, so the model maxes it and stops improving correctness. Log every component separately. Almost everyone learns this the expensive way.
-
Prompt set difficulty. If train prompts get solved but held-out drops, your prompts are too narrow or too easy. Drop prompts where all G rollouts pass (no gradient) and where none pass (no signal, unless you are building a curriculum), and re-filter as the policy improves.
-
KL coefficient. Too small lets the policy run away; too large pins it to the reference. Some verifier-reward recipes (DAPO, for one) drop KL entirely, which works only when the verifier is airtight.
Fixes: raise sampling temperature or add an entropy bonus, filter degenerate groups, harden the verifier (sandbox with no network, no test-file access, and hold out tests the model never optimises against), separate reward components, and gate on held-out pass rate as the ship metric rather than train reward. Two known biases worth mentioning: dividing advantages by the group standard deviation over-weights low-variance prompts (nearly always solved or nearly never), and normalising each response's loss by its own length favours short correct answers while under-penalising long wrong ones (the Dr. GRPO analysis). If your symptoms match, try removing them.
Worth sketching. it gives a diagnosis order that deliberately does not start at the reward curve.
flowchart TD
A["Reward climbing,<br/>held-out dropping"] --> B{"Policy entropy<br/>still healthy?"}
B -->|"no"| C["All G samples identical,<br/>advantages go to zero"]
B -->|"yes"| D{"Read samples: does<br/>passing mean solving?"}
D -->|"no"| E["Verifier hacking:<br/>hidden tests, harden sandbox"]
D -->|"yes"| F{"Reward components<br/>logged separately?"}
F -->|"no"| G["Format or length term<br/>is dominating"]
F -->|"yes"| H["Refilter prompts: drop<br/>all-pass and all-fail"]
What a good answer covers
- Entropy collapse plus verifier hacking, and the reward curve is why you did not notice
- Plot policy entropy per step
- Read the samples
- Decompose the reward
- Prompt set difficulty
Key terms: Diagnose in this order · Plot policy entropy per step · Read the samples · Decompose the reward · Prompt set difficulty · KL coefficient · Fixes
In the glossary: GRPO · Temperature
Interviewer follow-ups to expect
How would you design a verifier that is genuinely hard to hack for a code task?
Why does entropy collapse specifically kill GRPO harder than it kills PPO?
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