Elegant proof in Sampler Replay paper: Full-vocab Score Centering equals Logits Replay
apsarathchandar · x · 2026-12-03
A highlighted proof from the Sampler Replay paper: in Full-vocab Score Centering, subtracting E{pμ}[∇log pπ] makes the trainer's distribution pπ cancel cleanly, leaving A(ey − pμ) — exactly the same upstream gradient obtained by replaying sampler logits via STE, proving the two techniques mathematically equivalent.
The original post notes SC only fixes the output layer, while Sampler Replay extends the idea to hidden states and MoE routing. The attached figure walks through the full derivation: under train-inference mismatch the trainer's score function has non-zero expectation under the sampler's distribution, and subtracting it yields the corrected loss whose logit gradient proves the equivalence.
Related event: Mila's Sampler Replay: Train the Sampler, Not the Trainer in RLVR(6 posts)→
More from Models
- Google's New TOS Loosens Gemini Access Rules, But Users Still Report Bans — hyperparticle · 2026-12-04
- Frontier LLMs are terrible at writing cryptic crossword clues — humor breaks prediction machines — var_epsilon · 2026-12-04
- Dev says Google quietly relaxed TOS to allow Antigravity in third-party harnesses, bans still reported — hyperparticle · 2026-12-04
- Amazon launches Ergo, a 1.1T-parameter open-weight model positioned against Chinese models — emmanuelvivier · 2026-12-04
- "Freed from a prison of Claude slop": prominent account hails Gemini 4 as simply better — beffjezos · 2026-12-04
- Harvey fine-tunes NVIDIA Nemotron retrieval models on case law — NVIDIAAI · 2026-12-04