HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

MPNet: Masked and Permuted Pre-training for Language Understanding

Kaitao Song; Xu Tan; Tao Qin; Jianfeng Lu; Tie-Yan Liu

MPNet: Masked and Permuted Pre-training for Language Understanding

Abstract

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.

Code Repositories

microsoft/MPNet
Official
pytorch
Mentioned in GitHub
michael-wzhu/mpnet_zh
pytorch
Mentioned in GitHub
huggingface/transformers
pytorch
Mentioned in GitHub
microsoft/MASS
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
task-1-grouping-on-ocwall-mpnet (BASE)
Wasserstein Distance (WD): 86.3 ± .4
# Correct Groups: 50 ± 4
# Solved Walls: 0 ± 0
Adjusted Mutual Information (AMI): 14.3 ± .5
Adjusted Rand Index (ARI): 11.7 ± .4
Fowlkes Mallows Score (FMS): 29.4 ± .3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp