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 +13.8% average accuracy on XNLI, +12.3% average F1 score on MLQA, and +2.1% average F1 score on NER. XLM-R performs particularly well on low-resource languages, improving 11.8% in XNLI accuracy for Swahili and 9.2% for Urdu over the previous XLM model. We also present a detailed empirical evaluation 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-Ris very competitive with strong monolingual models on the GLUE and XNLI benchmarks. We will make XLM-R code, data, and models publicly available.
翻译:本文显示,在大规模培训多语言模式之前,广泛跨语言传输任务将带来显著的业绩收益。我们用100种语言培训了以变换器为基础的面具语言模式,使用两个以上兆字节的过滤式共同法律草图数据。我们称为XLM-R的模型大大优于多种语言基准的多语言BERT(mBERT),包括XNLI平均精度+13.8%,MLQA平均F1分+12.3%,NER. XLM-R平均F1分+2.1%,低资源语言特别优异,Swahili XNLI精度提高11.8%,Urdu比前XLM模型提高9.2%。我们还详细经验评估了实现这些收益所需的关键因素,包括:(1) 积极转让和能力稀释,(2) 高低资源语言在规模上的表现。 最后,我们首次展示了在不牺牲每个语言的模型和具有竞争力的情况下进行多语言模式建模的可能性,XLM-ROM将产生非常的公开数据。