Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training

About

We propose to pre-train a unified language model for both autoencoding and partially autoregressive language modeling tasks using a novel training procedure, referred to as a pseudo-masked language model (PMLM). Given an input text with masked tokens, we rely on conventional masks to learn inter-relations between corrupted tokens and context via autoencoding, and pseudo masks to learn intra-relations between masked spans via partially autoregressive modeling. With well-designed position embeddings and self-attention masks, the context encodings are reused to avoid redundant computation. Moreover, conventional masks used for autoencoding provide global masking information, so that all the position embeddings are accessible in partially autoregressive language modeling. In addition, the two tasks pre-train a unified language model as a bidirectional encoder and a sequence-to-sequence decoder, respectively. Our experiments show that the unified language models pre-trained using PMLM achieve new state-of-the-art results on a wide range of natural language understanding and generation tasks across several widely used benchmarks.

Hangbo Bao, Li Dong, Furu Wei, Wenhui Wang, Nan Yang, Xiaodong Liu, Yu Wang, Songhao Piao, Jianfeng Gao, Ming Zhou, Hsiao-Wuen Hon• 2020

Related benchmarks

TaskDatasetResultRank
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)95.1
504
Question AnsweringSQuAD v1.1 (dev)
F1 Score93.1
375
Document ClassificationRVL-CDIP (test)
Accuracy90.2
306
SummarizationXSum (test)
ROUGE-221.11
231
Document Visual Question AnsweringDocVQA (test)
ANLS77.09
192
Abstractive Text SummarizationCNN/Daily Mail (test)
ROUGE-L40.14
169
Information ExtractionCORD (test)
F1 Score92.05
133
Entity extractionFUNSD (test)
Entity F1 Score72.57
104
Form UnderstandingFUNSD (test)
F1 Score70.72
73
Information ExtractionSROIE (test)
F1 Score94.88
58
Showing 10 of 25 rows

Other info

Code

Follow for update