cs.LGNov 20, 2026

Gumbel Substitution: Removing Sampler Drift from RL Without Trusting the Sampler

Authors: Romain Fanucci, Malik El Hassani

Organizations: Reliquary

Abstract

When RL rollouts come from untrusted samplers on arbitrary hardware, precision and checkpoint lag, the sampling distribution qq differs from the trainer's policy pp, and training on the sampler's tokens adds a drift term equal to supervised fine-tuning toward qq. Published corrections (TIS, MIS, IcePop, score centering, GSPO, CISPO) all need q(y)q(y), which a permissionless sampler reports and can misreport. We introduce Gumbel substitution. The coordinator fixes public Gumbel noise for every token position, bit-identical across GPUs, and the sampler draws y=arg⁡max⁡(ℓq+G)y=\arg\max(\ell^q+G). The trainer recomputes v∗=arg⁡max⁡(ℓp+G)v^*=\arg\max(\ell^p+G), the token its own policy would have drawn with the same noise, and scores v∗v^* in the sampler's context. For a sampler that follows the protocol, v∗v^* is an exact sample from pp given the prefix, so the drift vanishes in expectation for any qq, without sampler-reported probabilities. We measure the residual left by the deployed heads, bound the one added by admission gates, and state what an adaptive sampler can still do. The same comparison gives a per-token match rate that admits and pays samplers. In the lab, on a 9B model with the same head on both sides, the expected drift of uncorrected training is at least 170 to 4,800 times that of substitution. On a 2B model under strong mismatch, uncorrected training collapses while substitution stays stable, comparable to MIS with score centering given the true qq. On a permissionless network, a 9B model was trained for 158 optimizer steps on 15.75B tokens from heterogeneous samplers, with no skipped step and 1.21% of tokens substituted; it improved on all eight held-out benchmarks.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rethinking Training-Inference Mismatch in LLM Reinforcement Learning: Where It Arises and How to Correct It

    Sep 26, 2026Tianrun Yu, Kaixiang Zhao, Shangzhe Li +4Training-Inference MismatchReinforcement Learning