Token processing is the largest measured cost in a tested diffusion model
The Hidden Cost of MoE Diffusion Decoding: Profiling and Fixing the Sampler · arXiv:2611.21852
In plain words
Masked diffusion language models make text by repeatedly updating a whole canvas of token positions. That means their token-choice calculations run across the canvas at every update, and can take substantial time after the model’s expert computations are made cheaper.
The study profiles three such models and speeds up parts of that work. In one model on one device, the full optimized setup produced more than twice as many output tokens per second as a bfloat16 reference on three question sets; their measured answer scores stayed close, within sampling uncertainty.
The research
When a model’s main computations become cheaper, repeated token calculations can become a large part of the time needed to produce text.
This study’s profile changes what the measured bottleneck looks like in one quantized diffusion model: speeding up its main computations alone leaves substantial time in token processing, which the tested optimizations reduce.
The study profiles masked diffusion decoding and streamlines its repeated token calculations, finding substantial speed gains in tested models with bounded score comparisons.
The authors profiled quantized DiffusionGemma decoding on an NVIDIA GB10, timing the token-scoring and sampling pipeline against expert computations across 40 queries. The pipeline took a larger share of decode time on every query, identifying work that the optimized decoder could target.
Against a bfloat16 reference in the same decoding loop, the full setup increased decoded tokens per second across three benchmark question sets: GSM8K, HumanEval and MATH. Their reported scores count exact answers or questions passed on the first attempt.
Scores differed by at most one point per set, within the authors’ stated sampling uncertainty; a separate bit-exact tier matched all checked outputs.
The evaluations cover three models on one NVIDIA GB10 device, using single-user, batch-size-1 decoding. The reported speedups compare different expert precision and pipeline implementations with a bfloat16 reference; the cross-model profile also varies in vocabulary size and sampling method.
What the evidence shows
- Repeated work adds up
Masked diffusion language models repeatedly update a canvas of text positions, so their token-scoring and sampling work runs over that canvas at every denoising step. The study argues this creates roughly S times as many logit entries per output token as autoregressive decoding, where S is the number of steps.
This count explains why the pipeline can matter, but profiling is needed to see how much time it takes in an actual model.
- The profile finds a bottleneck
In this quantized DiffusionGemma setup, the logits and sampling pipeline, including host-side work, averaged 37% of decode time, while expert matrix multiplications averaged 26%.
Because the pipeline share was larger on every measured query, these results identify token processing as a substantial cost in this model and setting.
- The optimized stack is faster
The authors then reduce repeated entropy calculations and fuse entropy and sampling operations. Their full turbo setup also fuses normalization.
Against a bfloat16 reference using the same decoding loop, it produced 2.42–2.67 times as many decoded tokens per second across three benchmark question sets: GSM8K, HumanEval and MATH. Their scores count exact answers or questions passed on the first attempt; scores differed by only one point in either direction, within the authors’ stated sampling uncertainty. A separate bit-exact tier preserved checked outputs.
- Transfer has boundaries
The pattern is not uniform across models or sampling procedures. The pipeline accounted for 28.8% of per-forward time in a second mixture-of-experts model but 3.6% in a dense model; the comparison also changes vocabulary size and sampling algorithm.
In the second mixture-of-experts model, the fused expert kernel was faster, but replacing multinomial sampling while keeping top-p filtering showed no reliable speed gain across two runs.
Deep
- Original paper authors
- Harshit Samrat, Ramakrishna Paramahamsa Kompella
- Submitted to arXiv
- License
- CC BY 4.0