English

XLNet: Generalized Autoregressive Pretraining for Language Understanding

Computation and Language 2020-01-03 v2 Machine Learning

Abstract

With the capability of modeling bidirectional contexts, denoising autoencoding based pretraining like BERT achieves better performance than pretraining approaches based on autoregressive language modeling. However, relying on corrupting the input with masks, BERT neglects dependency between the masked positions and suffers from a pretrain-finetune discrepancy. In light of these pros and cons, we propose XLNet, a generalized autoregressive pretraining method that (1) enables learning bidirectional contexts by maximizing the expected likelihood over all permutations of the factorization order and (2) overcomes the limitations of BERT thanks to its autoregressive formulation. Furthermore, XLNet integrates ideas from Transformer-XL, the state-of-the-art autoregressive model, into pretraining. Empirically, under comparable experiment settings, XLNet outperforms BERT on 20 tasks, often by a large margin, including question answering, natural language inference, sentiment analysis, and document ranking.

Keywords

Cite

@article{arxiv.1906.08237,
  title  = {XLNet: Generalized Autoregressive Pretraining for Language Understanding},
  author = {Zhilin Yang and Zihang Dai and Yiming Yang and Jaime Carbonell and Ruslan Salakhutdinov and Quoc V. Le},
  journal= {arXiv preprint arXiv:1906.08237},
  year   = {2020}
}

Comments

Pretrained models and code are available at https://github.com/zihangdai/xlnet

R2 v1 2026-06-23T09:58:17.654Z