arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.10715cs.CL
收藏

CPM-2:大规模经济高效的预训练语言模型

CPM-2: Large-scale Cost-effective Pre-trained Language Models

Tsinghua University(清华大学);BAAI(北京智源人工智能研究院)
Zhengyan Zhang, Yuxian Gu, Xu Han, Shengqi Chen, Chaojun Xiao, Zhenbo Sun, Yuan Yao, Fanchao Qi, Jian Guan, Pei Ke, Yanzheng Cai, Guoyang Zeng, Zhixing Tan, Zhi… 展开作者

Zhengyan Zhang, Yuxian Gu, Xu Han, Shengqi Chen, Chaojun Xiao, Zhenbo Sun, Yuan Yao, Fanchao Qi, Jian Guan, Pei Ke, Yanzheng Cai, Guoyang Zeng, Zhixing Tan, Zhiyuan Liu, Minlie Huang, Wentao Han, Yang Liu, Xiaoyan Zhu, Maosong Sun

摘要:

近年来,预训练的语言模型(PLM)的规模突飞猛进。然而,这些大型PLM的效率问题限制了它们在现实世界中的应用。我们提出了一套具有成本效益的技术,使用PLM来处理预训练,微调和推理的效率问题。(1)我们引入知识继承,通过利用现有的PLM而不是从头开始的训练模型来加速预训练过程。(2)我们将探索大规模PLM的提示微调最佳实践。与常规微调相比,提示微调显著减少了任务特定参数的数量。(3)我们实现了一个新的推理工具包,即InfMoE,使用大规模的PLM有限的计算资源。基于我们具有成本效益的管道,我们预训练了两个模型:具有110亿个参数的编码器-解码器双语模型(CPM-2)及其相应的具有1980亿个参数的MoE版本。在我们的实验中,我们比较CPM-2与mT5的下游任务。实验结果表明,CPM-2具有良好的一般语言智能。此外,我们还验证了InfMoE在单个GPU上进行具有数百亿参数的大规模模型推理时的效率。所有源代码和模型参数都可以在https://github.com/TsinghuaAI/CPM上找到。

英文摘要:

In recent years, the size of pre-trained language models (PLMs) has grown by leaps and bounds. However, efficiency issues of these large-scale PLMs limit their utilization in real-world scenarios. We present a suite of cost-effective techniques for the use of PLMs to deal with the efficiency issues of pre-training, fine-tuning, and inference. (1) We introduce knowledge inheritance to accelerate the pre-training process by exploiting existing PLMs instead of training models from scratch. (2) We explore the best practice of prompt tuning with large-scale PLMs. Compared with conventional fine-tuning, prompt tuning significantly reduces the number of task-specific parameters. (3) We implement a new inference toolkit, namely InfMoE, for using large-scale PLMs with limited computational resources. Based on our cost-effective pipeline, we pre-train two models: an encoder-decoder bilingual model with 11 billion parameters (CPM-2) and its corresponding MoE version with 198 billion parameters. In our experiments, we compare CPM-2 with mT5 on downstream tasks. Experimental results show that CPM-2 has excellent general language intelligence. Moreover, we validate the efficiency of InfMoE when conducting inference of large-scale models having tens of billions of parameters on a single GPU. All source code and model parameters are available at https://github.com/TsinghuaAI/CPM.

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

↑