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

SEER-MoE:通过正则化实现混合专家模型的稀疏专家效率

SEER-MoE: Sparse Expert Efficiency through Regularization for Mixture-of-Experts

Stanford University(斯坦福大学);Google(谷歌);NVIDIA(英伟达)

Alexandre Muzio, Alex Sun, Churan He

AI总结:

本文提出 SEER-MoE 两阶段框架,通过 heavy-hitters 计数引导裁剪专家并结合正则化微调,降低预训练 MoE 的内存、计算与激活专家数,且几乎不损失精度。

摘要:

深度学习的发展催生了混合专家模型(Mixture-of-Experts,MoEs),这类模型以根据输入动态分配计算资源而著称。尽管 MoE 前景广阔,但它们面临诸多挑战,尤其是在内存需求方面。为解决这一问题,我们的工作提出了 SEER-MoE,这是一种新颖的两阶段框架,用于同时降低预训练 MoE 模型的内存占用和计算需求。第一阶段利用 heavy-hitters(重击者)计数引导来裁剪专家总数;第二阶段采用基于正则化的微调策略,以恢复精度损失并减少推理期间激活的专家数量。我们的实证研究证明了该方法的有效性,得到了一个面向推理效率优化、且精度折衷极小的稀疏 MoEs 模型。

英文摘要:

The advancement of deep learning has led to the emergence of Mixture-of-Experts (MoEs) models, known for their dynamic allocation of computational resources based on input. Despite their promise, MoEs face challenges, particularly in terms of memory requirements. To address this, our work introduces SEER-MoE, a novel two-stage framework for reducing both the memory footprint and compute requirements of pre-trained MoE models. The first stage involves pruning the total number of experts using a heavy-hitters counting guidance, while the second stage employs a regularization-based fine-tuning strategy to recover accuracy loss and reduce the number of activated experts during inference. Our empirical studies demonstrate the effectiveness of our method, resulting in a sparse MoEs model optimized for inference efficiency with minimal accuracy trade-offs.

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

↑