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

XLNet: Generalized Autoregressive Pretraining for Language Understanding

About

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.

Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, Quoc V. Le• 2019

Related benchmarks

TaskDatasetResultRank
Natural Language InferenceSNLI (test)
Accuracy91.6
681
Named Entity RecognitionCoNLL 2003 (test)
F1 Score93.67
539
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)97
504
Natural Language UnderstandingGLUE
SST-297
452
Natural Language UnderstandingGLUE (test)
SST-2 Accuracy97.1
416
Question AnsweringSQuAD v1.1 (dev)
F1 Score95.1
375
Question AnsweringSQuAD v1.1 (test)
F1 Score95
260
Question AnsweringSQuAD 2.0
F188.8
190
Natural Language InferenceSNLI
Accuracy91.6
174
Question AnsweringSQuAD v2.0 (dev)
F190.6
158
Showing 10 of 118 rows
...

Other info

Code

Follow for update