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

eMoE:任务感知的内存高效混合专家(MoE)模型推理

eMoE: Task-aware Memory Efficient Mixture-of-Experts-Based (MoE) Model Inference

University of Virginia(弗吉尼亚大学);Georgia Institute of Technology(佐治亚理工学院)

Suraiya Tairin, Shohaib Mahmud, Haiying Shen, Anand Iyer

AI总结:

eMoE通过基于路由模式预测并仅加载所需专家、按提示间隔调用预测器以及任务感知调度,在保持准确性的同时显著降低MoE大语言模型推理的内存消耗和延迟,并提升吞吐量。

摘要:

近年来,混合专家(Mixture-of-Experts, MoE)已成为一种以次线性计算成本增强深度神经网络(DNN)能力的有效方法。然而,将所有专家存储在GPU上会带来显著的内存开销,从而增加基于MoE推理的金钱成本。为了解决这一问题,我们基于实验测量中的观察结果,提出了eMoE,一个面向基于MoE的大语言模型(LLM)的内存高效推理系统。eMoE通过基于专家路由中的循环模式预测并仅加载所需专家来减少内存使用。为了在保持准确性的同时降低加载延迟,我们发现对后续提示使用相同的专家对困惑度影响极小,因此eMoE每隔几个提示调用一次专家预测器,而不是对每个提示都调用。此外,对于对路由准确性不太敏感的任务,它会跳过预测。最后,eMoE具有任务感知调度能力,通过考虑服务水平目标(Service Level Objectives, SLO)、任务特定的输出长度以及专家加载延迟来最小化推理延迟。实验结果表明,与现有系统相比,eMoE在保持准确性的同时将内存消耗最多降低80%,并将推理延迟最多降低17%。它还支持处理长40倍的提示、大4.5倍的批次,并实现了1.5倍更高的吞吐量。

英文摘要:

In recent years, Mixture-of-Experts (MoE) has emerged as an effective approach for enhancing the capacity of deep neural network (DNN) with sub-linear computational costs. However, storing all experts on GPUs incurs significant memory overhead, increasing the monetary cost of MoE-based inference. To address this, we propose eMoE, a memory efficient inference system for MoE-based large language models (LLMs) by leveraging our observations from experiment measurements. eMoE reduces memory usage by predicting and loading only the required experts based on recurrent patterns in expert routing. To reduce loading latency while maintaining accuracy, as we found using the same experts for subsequent prompts has minimal impact on perplexity, eMoE invokes the expert predictor every few prompts rather than for each prompt. In addition, it skips predictions for tasks less sensitive to routing accuracy. Finally, it has task-aware scheduling to minimize inference latency by considering Service Level Objectives (SLOs), task-specific output lengths, and expert loading latencies. Experimental results show that compared to existing systems, eMoE reduces memory consumption by up to 80% while maintaining accuracy and reduces inference latency by up to 17%. It also enables processing prompts 40x longer, batches 4.5x larger, and achieves 1.5x higher throughput.

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

↑