DeRS:迈向极其高效的升级回收混合专家模型
DeRS: Towards Extremely Efficient Upcycled Mixture-of-Experts Models
AI总结:
本文提出DeRS(分解、替换和合成)范式,通过将专家分解为共享基础权重和轻量级特定增量权重,有效解决了升级回收MoE模型的参数低效问题,在推理压缩和训练升级两种场景下均实现了极高的参数效率并保持了模型性能。
摘要:
升级回收混合专家(MoE)模型通过将预训练稠密模型中的原始前馈网络(FFN)层转换为MoE层,在各种任务中展现了巨大潜力。然而,由于引入了多个专家,这些模型仍存在显著的参数低效问题。在本研究中,我们提出了一种新颖的DeRS(分解、替换和合成)范式来克服这一缺陷,该范式源于我们对升级回收MoE专家独特冗余机制的观察。具体而言,DeRS将专家分解为一个专家共享的基础权重和多个专家特定的增量权重,随后将这些增量权重表示为轻量级形式。我们提出的DeRS范式可应用于两种不同场景以提升参数效率:1)推理阶段的DeRS Compression,使用稀疏化或量化来压缩普通的升级回收MoE模型;2)训练阶段的DeRS Upcycling,采用轻量级稀疏或低秩矩阵将稠密模型高效升级回收为MoE模型。在三个不同任务上的大量实验表明,所提方法在维持升级回收MoE模型训练和压缩性能的同时,能够实现极高的参数效率。
英文摘要:
Upcycled Mixture-of-Experts (MoE) models have shown great potential in various tasks by converting the original Feed-Forward Network (FFN) layers in pre-trained dense models into MoE layers. However, these models still suffer from significant parameter inefficiency due to the introduction of multiple experts. In this work, we propose a novel DeRS (Decompose, Replace, and Synthesis) paradigm to overcome this shortcoming, which is motivated by our observations about the unique redundancy mechanisms of upcycled MoE experts. Specifically, DeRS decomposes the experts into one expert-shared base weight and multiple expert-specific delta weights, and subsequently represents these delta weights in lightweight forms. Our proposed DeRS paradigm can be applied to enhance parameter efficiency in two different scenarios, including: 1) DeRS Compression for inference stage, using sparsification or quantization to compress vanilla upcycled MoE models; and 2) DeRS Upcycling for training stage, employing lightweight sparse or low-rank matrixes to efficiently upcycle dense models into MoE models. Extensive experiments across three different tasks show that the proposed methods can achieve extreme parameter efficiency while maintaining the performance for both training and compression of upcycled MoE models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。