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

By Zhengyan Zhang, Yuxian Gu, Xu Han, Shengqi Chen, Chaojun Xiao, Zhenbo Sun, Yuan Yao, Fanchao Qi, Jian Guan, Pei Ke and 9 more. 2021

101 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Large Language Models, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Zhiyuan Liu
  2. Maosong Sun
  3. Minlie Huang
  4. Xu Han
  5. Xiaoyan Zhu
  6. Jie Tang
  7. Yang Liu
  8. Jianfeng Gao

In Large Language Models

  1. Zhiyuan Liu
  2. Haifeng Wang
  3. Hua Wu
  4. Jie Tang
  5. Minlie Huang
  6. Maosong Sun
  7. Xu Han
  8. Hongxia Yang

In Efficiency & Compression

  1. Shi Feng
  2. Chujie Zheng
  3. Ajit Rajasekharan
  4. Minlie Huang
  5. Maosong Sun
  6. Zhilin Yang
  7. Jie Tang
  8. Yuxian Gu

Citations in the corpus