Skip to content

GRPO or Distill? What the FLOP Numbers Actually Say

#reinforcement-learning #grpo #on-policy-distillation #lora #agentic-rl #post-training

GRPO or Distill? What the FLOP Numbers Actually Say ​

The pitch, and the first crack in it ​

On-policy distillation has an easy sales pitch. GRPO hands the student one scalar per rollout. Distillation hands it a full probability distribution per token, from a teacher that already knows the answer. Dense supervision, fewer samples, less compute to hit a target accuracy.

A recent comparison puts that pitch under a FLOP meter. It runs vanilla reverse-KL on-policy distillation (OPD) against GRPO across task difficulty, student size, teacher size, domain, and optimizer settings, then plots held-out accuracy against training FLOPs, which is the only currency that matters if you're paying for the run.

With an external post-trained teacher, OPD generally loses to GRPO in accuracy per training FLOP at matched settings. Training the teacher further with GRPO doesn't rescue it. You pay more compute per point of accuracy, not less.

Matched settings here means the same student checkpoint, the same task, the same eval, compared at equal FLOP budgets rather than equal gradient steps. That distinction matters, because a dense per-token signal makes every step more informative while also making every step more expensive to compute. When you normalize by FLOPs instead of steps, the dense-signal advantage evaporates.

There's a second symptom that shows up in the prose of the paper almost as an aside: response-length inflation. Distilled students learn to write longer answers. That cost doesn't stay in training. It follows you into serving, where output tokens dominate the bill. A 20% length increase on a chat product can cost more over a year than the entire fine-tuning run.

Teacher settingDomainAccuracy per training FLOP vs GRPOWhat it means for your budget
External post-trained teacherMath, matched settingsLosesDense supervision is not a discount
External teacher further trained with GRPOMathStill losesA better teacher alone doesn't flip the sign
Student's own GRPO checkpointMathSame accuracy, 50x fewer distillation FLOPsDistillation works as consolidation
Student's own GRPO checkpoint, larger studentMathHolds at 50xThe efficiency survives scale-up
Student's own GRPO checkpointCodeHoldsNot math-specific
Per-domain GRPO experts, 2 domainsMixedMatches each expert, distillation at 5.2% of specialist FLOPsOne model to serve instead of two
Per-domain GRPO experts, 4 domainsMixedMatches each expert, distillation at 8.0%Cost grows slower than domain count

The teacher swap that flips the sign ​

Change one variable and the result inverts. Set the teacher to the student's own GRPO checkpoint and OPD recovers that checkpoint's accuracy on math with 50x fewer distillation FLOPs than GRPO needed to reach the same accuracy.

50x is the number I would put on a slide. A GRPO run that burns 50,000 A100-hours to converge needs roughly 1,000 A100-hours of distillation to reproduce the same weights' behavior. Forward passes only, no rollouts, no environment, no reward plumbing. If your cluster queue is the bottleneck on your roadmap, that is the difference between shipping this quarter and shipping next.

The efficiency holds when you scale the student up, holds on code, and holds in a second model family. That last one matters most to me, because single-family results are usually a story about one tokenizer.

Quick take: distillation is not a cheaper substitute for RL. It's a cheaper way to copy what RL already produced, and it only pays when you have something worth copying and a reason to copy it.

Here's the catch that kills naive use. On a single domain, the GRPO checkpoint already is the model you want. Distilling it produces a copy. You spent the specialist training FLOPs and then spent more to duplicate them, and total compute goes up. Distillation is a consolidation step, not a training shortcut. Treat it as the second half of a pipeline, never as a replacement for the first half.

The consolidation math, stated plainly ​

Across domains, separate GRPO checkpoints hold different capabilities, and no single checkpoint covers every domain. Train on math and you get a math model that has quietly drifted on code. Train on code and the reverse happens.

Multi-teacher OPD consolidates per-domain GRPO experts into one student that matches each expert's accuracy. The distillation stage costs 5.2% of the specialist training FLOPs on a 2-domain mix and 8.0% on a 4-domain mix.

Read 5.2% as: two specialists plus consolidation costs about 1.05x what the two specialists cost on their own, and you end up serving one model instead of two. The serving saving usually dwarfs the training saving. Doubling your GPU fleet to host two checkpoints is a permanent tax; a 5% training surcharge is a one-time fee.

Now count both halves. Specialist training plus distillation reaches joint GRPO's performance on the 2-domain mix with 42.0% fewer total FLOPs. A campaign that would have needed 100,000 GPU-hours lands near 58,000. Joint GRPO on a mixed dataset is paying for one model to learn two behaviors at once and doing neither as sharply as a specialist.

LoRA is not one optimization problem ​

Most codebases I've looked at ship a single LoRA config: same rank, same learning rate, same target modules, one YAML block reused for SFT and for RL. The optimizer and schedule get copied along with it.

The dynamics say that's wrong. Track the singular spectrum and the singular subspaces of the LoRA increment on math reasoning tasks and the two stages diverge in a specific, predictable way. RL concentrates the spectrum at every learning rate tested. SFT expands it at moderate learning rates.

The spectrum tells you how much of the rank you're using. A concentrated spectrum means a handful of directions carry almost all of the update, and the rest of your rank-32 adapter is dead weight you allocated but never occupied. RL does that at every learning rate. SFT does the opposite at moderate learning rates, spreading adaptation across directions.

Subspace rotation is the second difference. RL rotates the singular subspaces much faster than SFT at small learning rates, which means the direction the adapter is editing changes quickly from step to step. An SFT-style learning rate applied to RL keeps pushing along directions the update already left.

Interpolating between SFT and RL one ingredient at a time pins the cause to group-mean baseline subtraction. That's precisely the ingredient GRPO adds and SFT lacks, so the difference isn't an artifact of the task or the data mixture, it's the baseline.

A quadratic multi-index model updated through LoRA explains the mechanism. Baseline subtraction tilts the balance between two competing forces, coherent fitting and gradient noise, toward spectral concentration and faster subspace rotation. It also forces the risk-favorable learning rate to be low. Your SFT learning rate is probably too high for RL, and the reason isn't intuition about variance, it's that the baseline changed where the risk sits.

SFTRL
Singular spectrumExpands at moderate learning ratesConcentrates at every learning rate
Subspace rotation at small LRSlowFast
What drives the differenceNot applicableGroup-mean baseline subtraction
Useful adjustmentFlatten the spectrum of the full updateFlatten the update outside the current increment span

The fixes follow from the diagnosis. For SFT, flatten the spectrum of the full update so adaptation spreads across singular directions. For RL, flatten the part of the update outside the current LoRA increment span, which gives the adapter room to rotate into new directions instead of reinforcing the ones it already found. Applied across multiple models on math reasoning, the stage-specific configurations beat the compared alternatives in most settings.

My team ran into the practical version of this without knowing the theory. We reused an SFT-tuned LR of 1e-4 for a GRPO run, saw the adapter saturate within a few hundred steps, and concluded the data was bad. Dropping the LR and raising the rank changed the picture. The adapter hadn't stopped learning, it had collapsed onto a few directions and stayed there.

Step rewards from attention, no reward model required ​

Long-horizon agents make twenty to forty decisions per episode and get one bit of feedback at the end. Outcome-only RL has nothing to say about step 7. Every step gets the same credit, so a correct final answer rewards a sloppy path, and a wrong one punishes a path that was fine until the last move.

AttnSR derives step-level rewards from the policy's own attention during training replay. No separately trained reward model, no additional rollouts. It traces backward through the attention graph to estimate how much each earlier step contributed to the final response, then uses the terminal step, measured against a running baseline, to decide whether those allocations reinforce or penalize.

In a controlled study with Qwen2.5-7B-Instruct, a 7B policy that fits comfortably on a single 80GB card in bf16, AttnSR beats the PPO baseline at every evaluated checkpoint on ALFWorld and raises final held-out success from 91.2% to 97.1%. That's an error rate drop from 8.8% to 2.9%, roughly a two-thirds cut in failures.

ScienceWorld improves at every checkpoint too, with 29.9% fewer environment interactions. Three in ten rollouts you no longer have to run. On ALFWorld and ScienceWorld, where each episode is a live simulator session, that's the number that decides whether an experiment fits in your week.

The ablation is the part worth internalizing. The gain depends on how intermediate rewards are assigned, not on accumulating step rewards over time. More step signal isn't better step signal.

Key numbers50x fewer distillation FLOPs when the teacher is the student's own GRPO checkpoint. 5.2% and 8.0% of specialist training FLOPs for multi-teacher consolidation on 2 and 4 domains. 42.0% total FLOP savings versus joint GRPO on a 2-domain mix. 91.2% → 97.1% ALFWorld held-out success with 29.9% fewer environment interactions. Rank 32 adapters that use far fewer than 32 effective directions under RL.

Common pitfalls ​

  1. Distilling from an external teacher to save compute. This is the failure mode the comparison paper documents: at matched settings OPD loses to GRPO on accuracy per training FLOP, and training the teacher harder doesn't change the ordering. If the teacher isn't your own checkpoint, plan for the distillation stage to be a cost center, not a saving.

  2. Reusing your SFT LoRA config for RL. Same rank, same learning rate, same targets. RL concentrates the spectrum and rotates subspaces faster at small learning rates, so the configuration that worked for SFT over-allocates rank and over-steps the learning rate. Lower the LR first, then think about rank.

  3. Summing step rewards and calling it progress. The ablation shows the benefit comes from assignment, not accumulation. Bolting an accumulator onto your reward doesn't reproduce the gain, and it can push the policy toward whatever step pattern accumulated the most bonus.

  4. Budgeting only the distillation stage. On a single domain the GRPO checkpoint is already the model you want, so distillation adds compute with no capability gain. The 50x number applies to reproducing something you already trained, and the 42.0% total saving applies only when you count specialist training and consolidation together.

  5. Measuring accuracy without measuring response length. Length inflation shows up in distillation runs and quietly raises inference cost per request. Put mean output tokens in the same dashboard as accuracy, or you'll ship a model that's better on paper and more expensive to run.

One thing to remember ​

Every one of these results is a statement about where compute goes, not about which method is better in the abstract. Distillation from your own checkpoint is cheap because the hard work already happened. Baseline subtraction changes LoRA dynamics because it changes what the gradient is optimizing. Attention-derived step rewards work because the policy already encodes a notion of relevance that outcome rewards throw away. When a training technique underperforms for you, check which of those three you're actually measuring before you change the method.

The bottom line ​

If you already have a GRPO checkpoint for the domain you care about and you need a second copy, for a smaller student or a second serving target, distill from that checkpoint. It costs about 2% of what the GRPO run cost, and it holds across model sizes, on code, and in a second model family.

If you're trying to cover three or four domains with one model, train per-domain GRPO specialists first and consolidate with multi-teacher OPD. On a 2-domain mix the whole pipeline lands 42.0% under joint GRPO in total FLOPs, with the distillation stage alone at 5.2%, and you serve one checkpoint instead of four.

If you're training a long-horizon agent and your only signal is task success, add attention-derived step rewards before you add parameters. Going from 91.2% to 97.1% on ALFWorld while cutting environment interactions by 29.9% is a cheaper win than a bigger policy, and a 7B model already fits on one GPU.