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

MoBiLE:利用大小专家混合在消费级GPU上实现高效的混合专家推理

MoBiLE: Efficient Mixture-of-Experts Inference on Consumer GPU with Mixture of Big Little Experts

BNRist, Tsinghua University(北京理工大学,清华大学)

Yushu Zhao, Yubin Qin, Yang Wang, Xiaolong Yang, Huiming Han, Shaojun Wei, Yang Hu, Shouyi Yin

AI总结:

针对MoE推理中CPU-GPU带宽瓶颈,提出即插即用的MoBiLE框架,通过大小专家混合减少不重要令牌的专家数,实现1.60-1.72倍加速且精度损失极小。

摘要:

混合专家(MoE)模型最近在多种应用中展现出卓越的性能。MoE模型中的稀疏激活原理促进了卸载策略的实施,其中活跃专家保留在GPU高带宽内存(HBM)中,而非活跃专家存储在CPU动态随机存取存储器(DRAM)中。然而,这种方法的有效性从根本上受到CPU-GPU互连带宽有限的制约。为缓解这一瓶颈,现有方法采用预取技术来加速MoE推理。这些方法尝试使用专门训练的模块来预测并预取所需专家。然而,此类技术常常因显著的训练开销而受阻,并且在具有细粒度专家分割的最新MoE模型上效果减弱。在本文中,我们提出了MoBiLE,一个即插即用的基于卸载的MoE推理框架,采用“大小专家混合”策略。对于不重要的令牌,它将专家数量减半以加速,同时为重要令牌保留全部专家以保证模型质量。此外,我们设计了一个专门的回退和预取机制,用于在小专家和大专家之间切换,以提高内存效率。我们在四种典型的现代MoE架构和具有挑战性的生成任务上评估了MoBiLE。结果表明,与消费级GPU系统上的基线相比,MoBiLE实现了1.60倍至1.72倍的加速,且精度下降可忽略不计。

英文摘要:

Mixture-of-Experts (MoE) models have recently demonstrated exceptional performance across a diverse range of applications. The principle of sparse activation in MoE models facilitates an offloading strategy, wherein active experts are maintained in GPU HBM, while inactive experts are stored in CPU DRAM. The efficacy of this approach, however, is fundamentally constrained by the limited bandwidth of the CPU-GPU interconnect. To mitigate this bottleneck, existing approaches have employed prefetching to accelerate MoE inference. These methods attempt to predict and prefetch the required experts using specially trained modules. Nevertheless, such techniques are often encumbered by significant training overhead and have shown diminished effectiveness on recent MoE models with fine-grained expert segmentation. In this paper, we propose MoBiLE, a plug-and-play offloading-based MoE inference framework with \textit{mixture of big-little experts}. It reduces the number of experts for unimportant tokens to half for acceleration while maintaining full experts for important tokens to guarantee model quality. Further, a dedicated fallback and prefetching mechanism is designed for switching between little and big experts to improve memory efficiency. We evaluate MoBiLE on four typical modern MoE architectures and challenging generative tasks. Our results show that MoBiLE achieves a speedup of 1.60x to 1.72x compared to the baseline on a consumer GPU system, with negligible degradation in accuracy.

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

↑