arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.21852cs.LGcs.AIcs.CL
收藏

MoE扩散解码的隐藏代价:采样器的分析与修复

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

Indian Institute of Technology Madras(马德拉斯印度理工学院)

Harshit Samrat, Ramakrishna Paramahamsa Kompella

AI总结:

该研究分析了MoE扩散解码中logits采样流程的高时间消耗问题,提出两种无损优化方法,结合W4A16专家核实现2.4-2.7倍端到端加速,且精度不变。

摘要:

掩码扩散语言模型(dLLMs)通过迭代对完整的token画布进行去噪来解码,因此每次前向传播都会在整个画布-词汇量logits张量上运行逐token采样和停止流程。我们在带宽受限的边缘加速器(NVIDIA GB10)上分析了一个260亿参数的扩散混合专家(MoE)模型的单用户解码过程,并报告了一个容易被忽视的结果:在权重量化后,这个logits流程而非专家通用矩阵乘法(GEMMs)是解码时间的最大单一消耗者。与自回归解码不同,自回归解码中每个已确定的token仅处理一个位置的logits,而扩散解码每个输出token处理的logits条目数量是S倍,其中S是去噪步骤数。我们表明该流程在很大程度上是冗余的或可融合的,并在两个无损层级中消除了它:一个比特精确层级,其输出与参考解码器字节完全相同;以及一个精度对等层级,使用融合的单遍熵核和Gumbel-max采样。结合W4A16专家核,完整堆栈在单个273 GB/s设备上,在GSM8K、HumanEval和MATH基准测试中达到了与bf16精度不变的情况下2.4-2.7倍的端到端加速。我们在第二个独立构建的扩散MoE(LLaDA2.0-mini:流程占解码的28.8%,融合W4A16在精度对等下加速3.3倍)上验证了这一发现,并表明在密集扩散模型上该代价消失(占比3.6%)。该代价是MoE扩散特有的,其中量化使骨干网络变得廉价。代码和量化权重已发布。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑