arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.02410cs.LGcs.CL

混合量化专家(MoQE):低比特量化与鲁棒性的互补效应

Mixture of Quantized Experts (MoQE): Complementary Effect of Low-bit Quantization and Robustness

Microsoft(微软)

Young Jin Kim, Raffy Fahim, Hany Hassan Awadalla

AI总结:

针对大型MoE模型部署时内存消耗大、带宽瓶颈突出的问题,提出仅对专家权重做2比特超低比特量化的MoQE方法,无需额外训练即可大幅缩减内存、提升推理速度,且性能优于同数据集训练的稠密模型。

摘要:

大型混合专家(Mixture of Experts, MoE)模型凭借专家并行带来的高效模型扩展能力,能够在包括机器翻译任务在内的各类语言任务上达到最优性能。然而,这也带来了一个根本性问题:部署阶段内存消耗更大,内存带宽瓶颈加剧。本文提出混合量化专家(Mixture of Quantized Experts, MoQE),这是一种仅对权重进行量化的简单方法,仅将低至2比特的超低比特量化应用于专家权重,以缓解MoE模型日益增长的内存和延迟问题。我们证明,低比特量化与MoE架构相结合,即使在大多数情况下无需任何额外训练,也能在大幅缩减内存占用的同时保证可靠的模型性能。尤其值得注意的是,MoE模型中的专家层对量化的鲁棒性远强于传统前馈网络(feedforward networks, FFN)层。在我们的综合分析中,我们证明专家权重为2比特的MoE模型,其性能优于在相同数据集上训练的稠密模型。低比特量化的结果显示,模型尺寸可缩减至原始半精度浮点(fp16)MoE模型的79.6%以下(即减少79.6%)。结合优化的GPU运行时实现,该方法在A100 GPU上还能实现1.24倍的速度提升。

英文摘要:

Large Mixture of Experts (MoE) models could achieve state-of-the-art quality on various language tasks, including machine translation task, thanks to the efficient model scaling capability with expert parallelism. However, it has brought a fundamental issue of larger memory consumption and increased memory bandwidth bottleneck at deployment time. In this paper, we propose Mixture of Quantized Experts (MoQE) which is a simple weight-only quantization method applying ultra low-bit down to 2-bit quantizations only to expert weights for mitigating the increased memory and latency issues of MoE models. We show that low-bit quantization together with the MoE architecture delivers a reliable model performance while reducing the memory size significantly even without any additional training in most cases. In particular, expert layers in MoE models are much more robust to the quantization than conventional feedforward networks (FFN) layers. In our comprehensive analysis, we show that MoE models with 2-bit expert weights can deliver better model performance than the dense model trained on the same dataset. As a result of low-bit quantization, we show the model size can be reduced by 79.6% of the original half precision floating point (fp16) MoE model. Combined with an optimized GPU runtime implementation, it also achieves 1.24X speed-up on A100 GPUs.

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

↑