跳到正文
arXiv (AI + Vision + Imaging)· Harshit Samrat, Ramakrishna Paramahamsa Kompella·· 7 天前AI 评分48

研究揭示MoE扩散解码隐藏开销:采样管线成最大耗时来源

The Hidden Cost of MoE Diffusion Decoding: Profiling and Fixing the Sampler

AI 导读

研究者在NVIDIA GB10上剖析26B参数扩散MoE模型的单用户解码,发现权重量化后logits采样与停止管线而非专家GEMM成为解码耗时最大来源。作者以比特一致和精度对齐两级无损方案移除该管线,结合W4A16专家内核在GSM8K、HumanEval、MATH上保持精度不变,实现2.4-2.7倍端到端加速。

正文 · 原文

arXiv:2611.21852v1 Announce Type: new Abstract: Masked diffusion language models (dLLMs) decode by iteratively denoising a full canvas of tokens, so every forward pass runs a per-token sampling and stopping pipeline over the entire canvas-by-vocabulary logits tensor. We profile single-user decoding of a 26B-parameter diffusion Mixture-of-Experts model on a bandwidth-bound edge accelerator (NVIDIA GB10) and report a result that is easy to miss: after weight quantisation, this logits pipeline, not the expert GEMMs, is the single largest consumer of decode time. Unlike autoregressive decoding, where sampling touches one position's logits per committed token, diffusion decoding processes S times as many logit entries per output token, where S is the number of denoising steps. We show this pipeline is largely redundant or fusable and remove it in two lossless tiers: a bit-exact tier whose output is byte-identical to the reference decoder, and an accuracy-parity tier using a fused single-pass entropy kernel and Gumbel-max sampling. Combined with a W4A16 expert kernel, the full stack reaches 2.4-2.7 times end-to-end speedup over bf16 at unchanged benchmark accuracy on GSM8K, HumanEval, and MATH, on a single 273 GB/s device. We confirm the finding on a second, independently built diffusion MoE (LLaDA2.0-mini: pipeline 28.8% of decode, fused W4A16 3.3 times at accuracy parity) and show it disappears on a dense diffusion model (3.6%). The cost is specific to MoE diffusion, where quantisation makes the backbone cheap. Code and quantised weights are released.

来源:arXiv (AI + Vision + Imaging) · arxiv.org