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

面向高效MoE大语言模型推理的时空专家预取框架

A Spatio-Temporal Expert Prefetching Framework for Efficient MoE-based LLM Inference

George Washington University(乔治华盛顿大学);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校);Ohio University(俄亥俄大学)

Yingnan Zhao, Razvan Bunescu, Ahmed Louri, Avinash Karanth, Ke Wang

AI总结:

针对MoE大模型推理中专家加载延迟问题,通过分析专家选择行为的时空相关性,提出ST-MoE框架,结合轻量级运行时预测和可重构硬件设计,实现专家预取以重叠计算与加载,提升性能与能效。

摘要:

基于混合专家(MoE)的大语言模型(LLM),如Qwen和DeepSeek,最近成为一种有效的方法,可以在不按比例增加计算成本的情况下提高模型容量。通过用一组专家替换密集LLM中的传统前馈网络,并为每个输入令牌仅激活其中一部分专家,MoE模型显著增加了总参数数量,同时保持每个令牌的计算相对可控。然而,这种动态且不规则的专家激活模式在推理过程中也引入了大量的专家加载开销,因为所需的专家必须根据令牌相关的路由结果按需获取。因此,专家加载延迟成为性能和能效低下的主要来源。为此,我们首先对多种基于MoE的LLM及应用(包括语言理解和代码生成)中的专家选择行为进行了全面分析。我们的分析揭示,在每个应用领域内,专家请求在相邻的MoE层和连续的解码令牌之间表现出强相关性,使得未来的专家激活可预测。基于这一洞察,我们提出了ST-MoE,一种时空专家预取框架,它主动提前准备专家,以将专家加载与正在进行的计算重叠。ST-MoE结合了一种轻量级的运行时预测机制(保持原始路由行为)和一种可重构的硬件设计(有效支持动态专家预取)。预测机制与支持硬件的结合效果显著提高了MoE推理性能和能效,同时保持了模型推理精度。

英文摘要:

Mixture-of-Experts (MoE) based large language models (LLMs), such as Qwen and DeepSeek, have recently emerged as an effective approach to improving model capacity without proportionally increasing computational cost. By replacing the conventional feed-forward network in dense LLMs with a set of experts and activating only a subset of them for each input token, MoE models significantly increase the total number of parameters while keeping the per-token computation relatively manageable. However, this dynamic and irregular expert activation pattern also introduces substantial expert loading overhead during inference, since the required experts must be fetched on demand according to token-dependent routing results. As a result, expert loading latency becomes a major source of performance and energy inefficiency. To this end, we first perform a comprehensive analysis of expert selection behavior in various MoE-based LLMs and applications, including language understanding and code generation. Our analysis reveals that, within each application domain, expert requests exhibit strong correlation across both adjacent MoE layers and consecutive decoding tokens, making future expert activations predictable. Based on this insight, we propose ST-MoE, a spatio-temporal expert prefetching framework that proactively stages experts ahead of use to overlap expert loading with ongoing computation. ST-MoE combines a lightweight runtime prediction mechanism that preserves the original routing behavior with a reconfigurable hardware design that efficiently supports dynamic expert prefetching. The combined effect of the prediction mechanism with the supporting hardware significantly improves MoE inference performance and energy efficiency while preserving model inference accuracy.

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

↑