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

Abstract

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 language understanding and generation tasks across several widely used benchmarks. The code and pre-trained models are available at https://github.com/microsoft/unilm.

Cite

Text

Bao et al. "UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training." International Conference on Machine Learning, 2020.

Markdown

[Bao et al. "UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training." International Conference on Machine Learning, 2020.](https://mlanthology.org/icml/2020/bao2020icml-unilmv2/)

BibTeX

@inproceedings{bao2020icml-unilmv2,
  title     = {{UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Training}},
  author    = {Bao, Hangbo and Dong, Li and Wei, Furu and Wang, Wenhui and Yang, Nan and Liu, Xiaodong and Wang, Yu and Gao, Jianfeng and Piao, Songhao and Zhou, Ming and Hon, Hsiao-Wuen},
  booktitle = {International Conference on Machine Learning},
  year      = {2020},
  pages     = {642-652},
  volume    = {119},
  url       = {https://mlanthology.org/icml/2020/bao2020icml-unilmv2/}
}