Skip to main content
QUICK REVIEW

[Paper Review] CPM: A Large-scale Generative Chinese Pre-trained Language Model

Zhengyan Zhang, Xu Han|arXiv (Cornell University)|Dec 1, 2020
Topic ModelingComputer Science39 references22 citations
TL;DR

CPM is a 2.6-billion-parameter, autoregressive Transformer-based language model pre-trained on 100GB of large-scale Chinese text, designed for few-shot and zero-shot generation tasks. It achieves strong performance in Chinese NLP tasks such as dialogue, essay generation, cloze tests, and knowledge prompting, outperforming smaller models and demonstrating robust few-shot generalization with optimized subword vocabulary and large-batch training.

ABSTRACT

Pre-trained Language Models (PLMs) have proven to be beneficial for various downstream NLP tasks. Recently, GPT-3, with 175 billion parameters and 570GB training data, drew a lot of attention due to the capacity of few-shot (even zero-shot) learning. However, applying GPT-3 to address Chinese NLP tasks is still challenging, as the training corpus of GPT-3 is primarily English, and the parameters are not publicly available. In this technical report, we release the Chinese Pre-trained Language Model (CPM) with generative pre-training on large-scale Chinese training data. To the best of our knowledge, CPM, with 2.6 billion parameters and 100GB Chinese training data, is the largest Chinese pre-trained language model, which could facilitate several downstream Chinese NLP tasks, such as conversation, essay generation, cloze test, and language understanding. Extensive experiments demonstrate that CPM achieves strong performance on many NLP tasks in the settings of few-shot (even zero-shot) learning. The code and parameters are available at https://github.com/TsinghuaAI/CPM-Generate.

Motivation & Objective

  • To address the lack of large-scale, publicly available pre-trained language models for Chinese NLP tasks.
  • To improve few-shot and zero-shot performance in Chinese text generation and understanding by scaling model size and training data.
  • To develop a subword vocabulary tailored for Chinese that preserves word-level semantics better than character-level tokenization.
  • To stabilize training of large-scale Chinese models through increased batch size and optimized data processing.
  • To release a high-capacity, open-source Chinese language model to support downstream applications in dialogue, generation, and knowledge probing.

Proposed method

  • Pre-trains a left-to-right Transformer decoder architecture on 100GB of diverse Chinese text using autoregressive language modeling.
  • Constructs a custom subword vocabulary that includes both Chinese characters and common words to improve semantic representation.
  • Employs a large training batch size of 3 million tokens (twice that of GPT-3 2.7B) to stabilize training on sparse Chinese word distributions.
  • Trains three variants: CPM-Small (109M), CPM-Medium (334M), and CPM-Large (2.6B) parameters, with increasing depth and width.
  • Uses few-shot prompting with few-shot examples (N=2 or N=4) to evaluate zero-shot and few-shot generalization on downstream tasks.
  • Evaluates performance on benchmarks including XLORE (knowledge prompting), Cloze tests, and dialogue generation using BLEU-1 and exact match metrics.

Experimental results

Research questions

  • RQ1Can a large-scale, autoregressive Chinese language model achieve strong few-shot and zero-shot performance on diverse NLP tasks?
  • RQ2How does model size affect few-shot generation and understanding capabilities in Chinese language models?
  • RQ3Does a custom subword vocabulary that includes word-level units improve performance over character-level tokenization in Chinese PLMs?
  • RQ4Can large-batch training stabilize training of large-scale Chinese language models with sparse word distributions?
  • RQ5To what extent can a single generative model like CPM generalize across diverse Chinese NLP tasks without fine-tuning?

Key findings

  • CPM-Large (2.6B parameters) achieves the highest performance across all evaluated tasks, demonstrating that larger model size improves few-shot and zero-shot generalization in Chinese NLP.
  • With only two few-shot examples (N=2), CPM-Large achieves a BLEU-1 score of 0.400 on the XLORE entity generation task, comparable to results with four examples (N=4), indicating strong few-shot generalization.
  • On the XLORE dataset, CPM-Large achieves a BLEU-1 score of 0.450 with four few-shot examples, significantly outperforming smaller variants and showing strong factual knowledge probing ability.
  • CPM-Large successfully generates correct entities in 37% of cases for the 'Pathogen Type' relation and 48.3% for 'Brand' with four-shot prompting, demonstrating robust factual generation.
  • The model generates coherent and contextually relevant responses in dialogue and essay generation tasks, even without fine-tuning, indicating strong zero-shot generation capability.
  • The custom subword vocabulary improves semantic representation over character-level tokenization, as evidenced by better performance on word-level tasks like cloze and entity generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.