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

并非所有专家都是平等的:面向混合专家大语言模型的高效专家剪枝与跳过

Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Salesforce AI Research(Salesforce人工智能研究院);Shanghai Jiao Tong University(上海交通大学);CPII under InnoHK(InnoHK下属CPII);CUHK MMLab(香港中文大学MMLab)

Xudong Lu, Qi Liu, Yuhui Xu, Aojun Zhou, Siyuan Huang, Bo Zhang, Junchi Yan, Hongsheng Li

AI总结:

本文针对混合专家大语言模型部署困难的问题,首次提出了即插即用的任务无关与任务特定专家剪枝及跳过训练后方法,在不依赖特定硬件的情况下有效减小了模型规模并加快了推理速度,同时保持了模型性能。

摘要:

大语言模型(LLMs)发展的一个关键进展是混合专家(MoE)LLMs的出现。与传统LLMs相比,MoE LLMs能用更少参数达到更高性能,但由于参数规模巨大,部署仍很困难。不同于以往依赖专门设计硬件的权重剪枝方法,本文主要通过引入即插即用的专家级稀疏化技术来提升MoE LLMs的部署效率。具体而言,据我们所知,我们首次提出了针对MoE LLMs的任务无关和任务特定专家剪枝与跳过的训练后方法,旨在提升部署效率的同时,在广泛任务中保持模型性能。大量实验表明,所提方法能同时减小模型规模并加快推理速度,同时保持令人满意的性能。数据和代码将在https://github.com/Lucky-Lance/Expert_Sparsity发布。

英文摘要:

A pivotal advancement in the progress of large language models (LLMs) is the emergence of the Mixture-of-Experts (MoE) LLMs. Compared to traditional LLMs, MoE LLMs can achieve higher performance with fewer parameters, but it is still hard to deploy them due to their immense parameter sizes. Different from previous weight pruning methods that rely on specifically designed hardware, this paper mainly aims to enhance the deployment efficiency of MoE LLMs by introducing plug-and-play expert-level sparsification techniques. Specifically, we propose, for the first time to our best knowledge, post-training approaches for task-agnostic and task-specific expert pruning and skipping of MoE LLMs, tailored to improve deployment efficiency while maintaining model performance across a wide range of tasks. Extensive experiments show that our proposed methods can simultaneously reduce model sizes and increase the inference speed, while maintaining satisfactory performance. Data and code will be available at https://github.com/Lucky-Lance/Expert_Sparsity.

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

↑