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

AquilaMoE:结合Scale-Up与Scale-Out策略的MoE模型高效训练

AquilaMoE: Efficient Training for MoE Models with Scale-Up and Scale-Out Strategies

Beijing Academy of Artificial Intelligence (BAAI)(北京人工智能研究院(BAAI));School of Computer Science, Peking University(北京大学计算机学院);MetaX-Tech
Bo-Wen Zhang, Liangdong Wang, Ye Yuan, Jijie Li, Shuhao Gu, Mengdi Zhao, Xinya Wu, Guang Liu, Chengwei Wu, Hanyu Zhao, Li Du, Yiming Ju, Quanyue Ma, Yulong Ao, … 展开作者

Bo-Wen Zhang, Liangdong Wang, Ye Yuan, Jijie Li, Shuhao Gu, Mengdi Zhao, Xinya Wu, Guang Liu, Chengwei Wu, Hanyu Zhao, Li Du, Yiming Ju, Quanyue Ma, Yulong Ao, Yingli Zhao, Songhe Zhu, Zhou Cao, Dong Liang, Yonghua Lin, Ming Zhang, Shunfei Wang, Yanxin Zhou, Min Ye, Xuekai Chen, Xinyang Yu, Xiangjun Huang, Jian Yang

AI总结:

针对大语言模型预训练资源消耗大的问题,提出采用EfficientScale两阶段训练法的AquilaMoE双语8*16B MoE模型,经实验验证可提升性能与训练效率。

摘要:

近年来,随着大语言模型在各领域的快速应用,模型规模逐渐增大,其预训练所需资源呈指数级增长。从零训练一个大语言模型会消耗大量计算资源,而从更小的模型进行规模扩展是一种更高效的方法,因此受到广泛关注。本文提出AquilaMoE,这是一款前沿的双语8*16B混合专家(Mixture of Experts,MoE)语言模型,包含8个专家、每个专家有160亿参数,采用名为EfficientScale的创新训练方法开发。该方法通过两阶段流程在优化性能的同时最大限度降低数据需求。第一阶段称为Scale-Up(规模放大),使用预训练小模型的权重初始化更大的模型,实现大量知识迁移,且仅需显著更少的数据即可进行持续预训练。第二阶段称为Scale-Out(规模扩展),使用预训练稠密模型初始化MoE专家,进一步增强知识迁移与性能。我们在1.8B和7B模型上开展了大量验证实验,对比了多种初始化方案,得到的模型在持续预训练过程中能够维持并降低损失。利用最优方案,我们成功训练了16B模型,随后又训练了8*16B的AquilaMoE模型,证明其在性能与训练效率上均有显著提升。

英文摘要:

In recent years, with the rapid application of large language models across various fields, the scale of these models has gradually increased, and the resources required for their pre-training have grown exponentially. Training an LLM from scratch will cost a lot of computation resources while scaling up from a smaller model is a more efficient approach and has thus attracted significant attention. In this paper, we present AquilaMoE, a cutting-edge bilingual 8*16B Mixture of Experts (MoE) language model that has 8 experts with 16 billion parameters each and is developed using an innovative training methodology called EfficientScale. This approach optimizes performance while minimizing data requirements through a two-stage process. The first stage, termed Scale-Up, initializes the larger model with weights from a pre-trained smaller model, enabling substantial knowledge transfer and continuous pretraining with significantly less data. The second stage, Scale-Out, uses a pre-trained dense model to initialize the MoE experts, further enhancing knowledge transfer and performance. Extensive validation experiments on 1.8B and 7B models compared various initialization schemes, achieving models that maintain and reduce loss during continuous pretraining. Utilizing the optimal scheme, we successfully trained a 16B model and subsequently the 8*16B AquilaMoE model, demonstrating significant improvements in performance and training efficiency.

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

↑