arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02237cs.LG
收藏

Opportunistic Expert Activation:无需重训练即可加速解码的批感知专家路由

Opportunistic Expert Activation: Batch-Aware Expert Routing for Faster Decode Without Retraining

Costin-Andrei Oncescu, Qingyang Wu, Wai Tong Chung, Robert Wu, Bryan Gopal, Junxiong Wang, Tri Dao, Ben Athiwaratkun

AI总结:

针对 MoE 模型解码延迟受激活专家数制约的问题,提出动态重路由框架,通过批感知路由让 token 搭乘已加载专家,在无精度损失下显著降低解码延迟。

摘要:

越来越多的 LLM 采用 Mixture-of-Experts (MoE) 架构,其中前馈层被专家池取代,每个 token 仅激活其中一小部分。在自回归生成中,这些模型即使在中等 batch size 下也常进入内存受限状态,因为平均专家负载增长速度慢于等效的 dense feedforward 层。因此,MoE 延迟由激活专家数量决定。我们提出一个动态重新路由 token-to-expert 映射的框架,以降低该数量(从而降低解码延迟)同时保持可比质量。最佳结果采用 batch-aware routing,通过让 token 搭乘已因对同一 batch 内其他 token 至关重要而被载入内存的专家来实现。实验中,我们在 Qwen3-30B 和 Qwen3-235B 模型上以 batch size 为 $16$ 评估该方法。在无统计显著精度损失下,我们的方法分别在 MoE 层解码延迟上实现 $39\%$ 和 $15\%$ 的降低。

英文摘要:

An increasing number of LLMs employ Mixture-of-Experts (MoE) architectures where the feed-forward layer is replaced by a pool of experts and each token only activates a small subset of them. During autoregressive generation, these models often enter a memory-bound regime even for moderate batch sizes because the average expert load grows more slowly than in an equivalent dense feedforward layer. Consequently, MoE latency is governed by the number of activated experts. We introduce a framework for dynamically re-routing token-to-expert mapping to lower this number (and thus, the decode latency) while preserving a comparable quality. Our best results use a batch-aware routing that works by having tokens piggyback experts that have already been loaded into memory due to being crucial to other tokens within the same batch. Empirically, we evaluate our method on the Qwen3-30B and Qwen3-235B models with a batch size of $16$. Without any statistically significant loss in accuracy, our approach achieves latency reductions of $39\%$ and $15\%$ in the MoE layer decode latency, respectively.

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

↑