[Paper Review] All NLP Tasks Are Generation Tasks: A General Pretraining Framework
This paper proposes GLM, a unified pretraining framework that treats all NLP tasks—classification, unconditional generation, and conditional generation—as text generation tasks using a single architecture. GLM achieves state-of-the-art performance across diverse NLP tasks, outperforming BERT on SuperGLUE with the same pretraining data and matching or exceeding BERT-Large's performance across all task types with 1.25x parameters.
There have been various types of pretraining architectures including autoregressive models (e.g., GPT), autoencoding models (e.g., BERT), and encoder-decoder models (e.g., T5). On the other hand, NLP tasks are different in nature, with three main categories being classification, unconditional generation, and conditional generation. However, none of the pretraining frameworks performs the best for all tasks, which introduces inconvenience for model development and selection. We propose a novel pretraining framework GLM (General Language Model) to address this challenge. Compared to previous work, our architecture has three major benefits: (1) it performs well on classification, unconditional generation, and conditional generation tasks with one single pretrained model; (2) it outperforms BERT-like models on classification due to improved pretrain-finetune consistency; (3) it naturally handles variable-length blank filling which is crucial for many downstream tasks. Empirically, GLM substantially outperforms BERT on the SuperGLUE natural language understanding benchmark with the same amount of pre-training data. Moreover, GLM with 1.25x parameters of BERT-Large achieves the best performance in NLU, conditional and unconditional generation at the same time, which demonstrates its generalizability to different downstream tasks.
Motivation & Objective
- To address the challenge of using different pretraining frameworks for different NLP tasks, which complicates model development and selection.
- To improve pretrain-finetune consistency for classification tasks, where BERT-like models often underperform.
- To enable a single pretrained model to effectively handle classification, unconditional generation, and conditional generation tasks.
- To naturally support variable-length blank filling, a critical capability for many downstream NLP applications.
Proposed method
- GLM employs a causal attention mask to enable autoregressive generation while maintaining encoder-like representations for classification.
- It uses a unified objective that treats all NLP tasks as text generation, including masked span prediction for blank-filling.
- The model architecture integrates both decoder and encoder capabilities within a single transformer-based framework.
- It applies a shared vocabulary and tokenization across all tasks, enabling consistent representation learning.
- The pretraining objective combines autoregressive language modeling with span masking to support diverse downstream tasks.
- The framework supports dynamic sequence length and variable-length span prediction during fine-tuning.
Experimental results
Research questions
- RQ1Can a single pretraining framework effectively handle classification, unconditional generation, and conditional generation tasks?
- RQ2Does a unified generation-based approach improve pretrain-finetune consistency compared to BERT-like models?
- RQ3Can the model generalize across tasks without task-specific architectural modifications?
- RQ4How does the model perform on variable-length blank-filling tasks compared to existing architectures?
Key findings
- GLM outperforms BERT on the SuperGLUE benchmark using the same amount of pretraining data.
- With 1.25x the parameters of BERT-Large, GLM achieves state-of-the-art performance across all NLU, conditional, and unconditional generation tasks.
- The model demonstrates improved pretrain-finetune consistency, leading to better performance on classification tasks than BERT-like models.
- GLM naturally handles variable-length blank filling, a capability crucial for tasks such as cloze-style question answering.
- The unified framework eliminates the need for multiple specialized architectures, simplifying model development and deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.