XLNet: Generalized Autoregressive Pretraining for Language Understanding
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan, Salakhutdinov, Quoc V. Le

TL;DR
XLNet introduces a generalized autoregressive pretraining method that models bidirectional contexts without masking, outperforming BERT on multiple NLP tasks by integrating permutation-based training and Transformer-XL ideas.
Contribution
It proposes a novel permutation-based autoregressive pretraining approach that captures bidirectional context and overcomes BERT's limitations, integrating Transformer-XL techniques.
Findings
Outperforms BERT on 20 NLP tasks
Achieves significant improvements in question answering and natural language inference
Demonstrates the effectiveness of permutation-based pretraining
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗xlnet/xlnet-base-casedmodel· 520k dl· ♡ 81520k dl♡ 81
- 🤗xlnet/xlnet-large-casedmodel· 2.3k dl· ♡ 242.3k dl♡ 24
- 🤗ggoggam/xlnet-base-cased-squad-quorefmodel· 3 dl· ♡ 13 dl♡ 1
- 🤗ggoggam/xlnet-base-squadv2model· 4 dl· ♡ 24 dl♡ 2
- 🤗studio-ousia/luke-basemodel· 129k dl· ♡ 21129k dl♡ 21
- 🤗studio-ousia/luke-large-finetuned-conll-2003model· 392 dl· ♡ 4392 dl♡ 4
- 🤗studio-ousia/luke-largemodel· 638 dl· ♡ 8638 dl♡ 8
- 🤗model-attribution-challenge/xlnet-base-casedmodel· 9 dl9 dl
- 🤗AIMH/mental-xlnet-base-casedmodel
Videos
XLNet: Generalized Autoregressive Pretraining for Language Understanding· youtube
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
MethodsLinear Layer · Cosine Annealing · Variational Dropout · *Communicated@Fast*How Do I Communicate to Expedia? · Adaptive Input Representations · Adaptive Softmax · Linear Warmup With Cosine Annealing · Transformer-XL · Residual Connection · Linear Warmup With Linear Decay
