Unsupervised Cross-lingual Representation Learning at Scale
About
This paper shows that pretraining multilingual language models at scale leads to significant performance gains for a wide range of cross-lingual transfer tasks. We train a Transformer-based masked language model on one hundred languages, using more than two terabytes of filtered CommonCrawl data. Our model, dubbed XLM-R, significantly outperforms multilingual BERT (mBERT) on a variety of cross-lingual benchmarks, including +14.6% average accuracy on XNLI, +13% average F1 score on MLQA, and +2.4% F1 score on NER. XLM-R performs particularly well on low-resource languages, improving 15.7% in XNLI accuracy for Swahili and 11.4% for Urdu over previous XLM models. We also present a detailed empirical analysis of the key factors that are required to achieve these gains, including the trade-offs between (1) positive transfer and capacity dilution and (2) the performance of high and low resource languages at scale. Finally, we show, for the first time, the possibility of multilingual modeling without sacrificing per-language performance; XLM-R is very competitive with strong monolingual models on the GLUE and XNLI benchmarks. We will make our code, data and models publicly available.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Natural Language Understanding | GLUE (val) | SST-295 | 170 | |
| Natural Language Inference | XNLI (test) | Average Accuracy80.9 | 167 | |
| Named Entity Recognition | CoNLL English 2003 (test) | F1 Score94.1 | 135 | |
| Natural Language Inference | XNLI | Accuracy77.13 | 111 | |
| Named Entity Recognition | CoNLL Spanish NER 2002 (test) | F1 Score89.3 | 98 | |
| Named Entity Recognition | CoNLL Dutch 2002 (test) | F1 Score95.3 | 87 | |
| Named Entity Recognition | CoNLL German 2003 (test) | F1 Score87.7 | 78 | |
| Named Entity Recognition | WNUT 2017 (test) | -- | 63 | |
| Named Entity Recognition | CoNLL NER 2002/2003 (test) | German F1 Score84.6 | 59 | |
| Named Entity Recognition | WikiAnn (test) | Average Accuracy54.08 | 58 |