Online Random Sampling with Real Probabilities

arXiv:2607.13828 2026 Sampling 1 ideas extracted · analyzed Aug 30, 2026

What the math gives to ML

The paper gives a constructive entropy-optimal way to generate a long sequence of nonuniform discrete random variables while retaining only a small local random state, rather than restarting an independent sampler for every draw. Its transferable asset is randomness recycling: unused fractional information from one categorical draw is converted into a discrete uniform state and reused by later draws, with expected fair-bit consumption near the sum of output entropies and only logarithmic persistent state. This is most promising for inference-time categorical generation, stochastic MoE routing, and on-device randomized training where true random-bit consumption, rather than pseudorandom arithmetic, is a resource constraint.

Ideas from this paper

Unverified 2026

Entropy-Recycling Categorical Sampler

Replace independent categorical sampling calls with a shared exact sampler carrying a reusable uniform integer state. After sampling category X from a distribution with CDF F, retain the unused portion of the underlying random interval as a new state (Z', M'), so later samples consume residual randomness instead of requesting fresh random bits. The expected random-bit cost should approach the sequence entropy rather than paying a fixed word or byte cost per sample.

Useful5/10
Difficulty6/10
Novelty8/10
Paper: Online Random Sampling with Real Probabilities arXiv:2607.13828