arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.38981cs.LGcs.AI
收藏

为何推测解码在稀疏MoE模型上的表现优于预测

Why Speculative Decoding Works Better Than Predicted on Sparse MoE Models

Cohere(Cohere公司)

Ekagra Ranjan, Komal K. Teru, Bharat Venkitesh, Acyr Locatelli

AI总结:

该研究针对10种稀疏MoE模型,发现推测解码在低批大小下加速比更高,通过IPF框架建模路由重叠效应,解释了细粒度MoE模型打破传统加速比趋势的原因。

摘要:

推测解码(SD)利用解码的内存受限特性,通过单次前向传播验证多个草稿token,从而加速自回归推理。对于混合专家(MoE)模型,先前研究预测了凹形的加速比-批大小关系,由于专家饱和,加速比在中等批大小时达到峰值。我们在10个稀疏MoE模型(参数规模30B至1T,专家数8至512)上对此进行评估,发现近期的细粒度模型打破了这一趋势,在低批大小下表现出更高的加速比。我们发现验证成本不仅受激活的专家字节数控制,还受草稿token间的时间重叠和GPU执行动态的影响。在低批大小下,细粒度模型中的MoE层在运行时中所占的份额远小于其权重所占的份额;在H100上,内核分析将此主要归因于MoE内核相对于注意力机制的更高带宽利用率,L2缓存吸收了对共路由专家的重复读取。在草稿token之间,路由重叠进一步减少了验证期间激活的独特专家数量,这与独立假设相比有所不同。我们使用最大熵迭代比例拟合(IPF)框架对这一效应进行建模,该框架可根据路由重叠统计预测独特专家数量,误差小于4%,并大幅缩小了与真实模型曲线的差距,从合成路由中捕捉到了低批大小的定性趋势。

英文摘要:

Speculative decoding (SD) accelerates autoregressive inference by leveraging the memory bound nature of decoding, verifying multiple draft tokens in a single forward pass. For mixture-of-experts (MoE) models, prior work predicts a concave speedup-batch size relationship, with gains peaking at intermediate batch sizes due to expert saturation. We evaluate this across 10 sparse MoE models (30B--1T parameters, 8--512 experts) and find recent fine-grained models break this trend, showing higher speedup at low batch size. We find verification cost is governed not only by activated-expert bytes, but also by temporal overlap across draft tokens and GPU execution dynamics. At low batch size, MoE layers in fine-grained models account for a much smaller share of runtime than of weights; on H100, kernel profiling attributes this mainly to higher bandwidth utilization of MoE kernels relative to attention, with L2 absorbing repeated reads of co-routed experts. Across draft tokens, routing overlap further reduces the unique experts activated during verification relative to independence assumptions. We model this effect using a maximum-entropy Iterative Proportional Fitting (IPF) framework that predicts unique expert counts from routing-overlap statistics with less than 4\% error, and substantially narrows the gap to real-model curves and captures the qualitative low-batch trend from synthetic routing.

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

↑