arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.26730cs.DCcs.AIcs.PF
收藏

ExpertFlow:面向高效MoE推理的自适应专家调度与内存协同

ExpertFlow: Adaptive Expert Scheduling and Memory Coordination for Efficient MoE Inference

Zixu Shen, Kexin Chu, Yifan Zhang, Dawei Xiang, Runxin Wu, Wei Zhang

AI总结:

本文提出ExpertFlow,一种结合自适应专家预取和缓存感知路由的MoE推理运行时系统,通过动态调整预测范围与混合跨层预测方案,有效减少缓存未命中与专家换入延迟,将模型停滞时间降至基线的0.1%以下。

摘要:

大语言模型的扩展日益受到现代GPU有限内存容量的制约。为缓解这一问题,Mixture-of-Experts (MoE) 架构在推理期间仅激活一小部分参数,显著降低了内存需求和计算开销。然而,传统的MoE推理方法在每一层独立选择激活的专家,由于主机和GPU内存之间频繁的参数传输,往往会引入相当大的延迟。此外,当前基于固定步长的跨层预测策略,缺乏对不同硬件平台和工作负载的适应性,从而降低了其鲁棒性和有效性。为了应对这些挑战,我们提出了ExpertFlow,一个结合了自适应专家预取和缓存感知路由的MoE推理运行时系统。ExpertFlow利用传输带宽、参数维度和模型反馈信号等运行时统计信息,持续调整其专家激活的预测范围。此外,它采用了一种混合跨层预测方案,将pregating信息与中间计算状态相融合,以预测未来的专家需求。通过自适应地优化预取决策并使其与实际使用行为对齐,ExpertFlow有效减少了缓存未命中,并消除了由专家换入引起的延迟。评估表明,ExpertFlow将模型停滞时间减少至基线的0.1%以下,凸显了其在严格内存约束下优化MoE推理的能力。

英文摘要:

The expansion of large language models is increasingly limited by the constrained memory capacity of modern GPUs. To mitigate this, Mixture-of-Experts (MoE) architectures activate only a small portion of parameters during inference, significantly lowering both memory demand and computational overhead. However, conventional MoE inference approaches, which select active experts independently at each layer, often introduce considerable latency because of frequent parameter transfers between host and GPU memory. In addition, current cross-layer prediction strategies, which are typically based on fixed steps, lack adaptability across different hardware platforms and workloads, thereby reducing their robustness and effectiveness. To address these challenges, we present ExpertFlow, a runtime system for MoE inference that combines adaptive expert prefetching and cache-aware routing. ExpertFlow continuously adjusts its prediction horizon for expert activation by leveraging runtime statistics such as transfer bandwidth, parameter dimensionality, and model feedback signals. Furthermore, it incorporates a hybrid cross-layer prediction scheme that fuses pregating information with intermediate computational states to anticipate future expert needs. By adaptively refining prefetching decisions and aligning them with actual usage behavior, ExpertFlow effectively decreases cache misses and removes latency caused by expert swap-ins. Our evaluation demonstrates that ExpertFlow reduces model stall time to less than 0.1% of the baseline, highlighting its capability to optimize MoE inference under stringent memory constraints.

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

↑