[Paper Review] MPNet: Masked and Permuted Pre-training for Language Understanding
MPNet unifies MLM (BERT) and PLM (XLNet) by modeling dependency among predicted tokens and using full-sentence position information, achieving strong gains on GLUE, SQuAD, and other benchmarks.
BERT adopts masked language modeling (MLM) for pre-training and is one of the most successful pre-training models. Since BERT neglects dependency among predicted tokens, XLNet introduces permuted language modeling (PLM) for pre-training to address this problem. However, XLNet does not leverage the full position information of a sentence and thus suffers from position discrepancy between pre-training and fine-tuning. In this paper, we propose MPNet, a novel pre-training method that inherits the advantages of BERT and XLNet and avoids their limitations. MPNet leverages the dependency among predicted tokens through permuted language modeling (vs. MLM in BERT), and takes auxiliary position information as input to make the model see a full sentence and thus reducing the position discrepancy (vs. PLM in XLNet). We pre-train MPNet on a large-scale dataset (over 160GB text corpora) and fine-tune on a variety of down-streaming tasks (GLUE, SQuAD, etc). Experimental results show that MPNet outperforms MLM and PLM by a large margin, and achieves better results on these tasks compared with previous state-of-the-art pre-trained methods (e.g., BERT, XLNet, RoBERTa) under the same model setting. The code and the pre-trained models are available at: https://github.com/microsoft/MPNet.
Motivation & Objective
- Motivate improving pre-training by addressing MLM limitations (independent token prediction) and PLM limitations (lack of full sentence position information).
- Develop a pre-training objective that leverages dependencies among predicted tokens while incorporating full sentence position information.
- Demonstrate that MPNet yields substantial improvements over BERT, XLNet, RoBERTa, and ELECTRA on diverse NLP benchmarks.
Proposed method
- Introduce MPNet objective: maximize P(x_z_t | x_z_<t, M_z>c; θ) for permuted sequences.
- Use a two-stream self-attention mechanism to model output dependency among predicted tokens.
- Apply position compensation so the query/content streams see full sentence information during pre-training.
- Input design: concatenate non-predicted tokens and mask tokens (for the predicted part) with a permutation of the original sequence.
- Train on a large-scale corpus (~160GB) and fine-tune on downstream tasks (GLUE, SQuAD, RACE, IMDB).
- Compare MPNet to MLM and PLM, and to strong baselines (BERT, XLNet, RoBERTa) under the same model settings.
Experimental results
Research questions
- RQ1Can dependency among predicted tokens (output dependency) be leveraged during pre-training to improve representations beyond MLM?
- RQ2Does incorporating full-sentence position information reduce pre-training and fine-tuning discrepancy relative to PLM?
- RQ3How does MPNet perform on standard benchmarks (GLUE, SQuAD, RACE, IMDB) compared to prior pre-training methods?
- RQ4What is the empirical impact of position compensation and the permutation mechanism in MPNet?
Key findings
- MPNet outperforms MLM and PLM by a large margin on GLUE dev sets under the same base model setting.
- MPNet achieves better results than BERT, XLNet, and RoBERTa on GLUE benchmarks in the reported experiments.
- On SQuAD v1.1 and v2.0, MPNet surpasses BERT, XLNet, and RoBERTa in reported metrics.
- MPNet shows strong results on RACE and IMDB when pre-trained on 16GB data, with larger gains when pre-training on 160GB.
- Ablation studies confirm the importance of position compensation and output dependency for MPNet’s performance.
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.