Deep dive: detecting and debugging trainer-generator mismatch in LLM RL training

heghbalz · x · 2026-11-20

Yihua Zhang publishes an 82-minute, 18k-word industrial-grade guide on trainer-generator mismatch in modern LLM RL (PPO/GRPO). Even with identical weights, token log-probs computed at generation can differ from trainer-recomputed values, pushing tokens outside the clipping range before the first update and contaminating observed KL/ratio/clip fraction — a root cause of KL spikes. The post covers mismatch sources (fp rounding, prefill/decode path differences), monitoring, zero-difference tests, and debugging from both infra and practitioner perspectives.

Original post →

More from Infra

Infra channel →