Papers › Unsupervised Cross-lingual Representation Learning at Scale

Unsupervised Cross-lingual Representation Learning at Scale

5 Nov 2019ACL 2020 6arXiv:1911.02116archive 2025-07-28

Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, Veselin Stoyanov

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1911.02116")

Code

Syntology Ran 25 of 59 code samples harvested from 9 repositories linked to this paper; 34 have no recorded run. Of those that ran: 4 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 3 ran · fixture could not drive it; 15 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 0 ran; community (archive-listed): 40 samples from 8 repositories, 21 ran; 4 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

35 repositories listed; official and paper-mentioned ones first.

facebookresearch/cc_net officialmentioned in papermentioned on GitHubMIT report
facebookresearch/XLM officialmentioned on GitHubpytorch report
1-punchMan/CLTS mentioned on GitHubpytorch report
Stanley-Zheng/ignitionhacks mentioned on GitHubtf report
Tikquuss/meta_XLM mentioned on GitHubpytorch report
Unbabel/COMET mentioned on GitHubpytorch report
YuweiYin/HLT-MT mentioned on GitHubpytorch report
aleksac99/SQuAD-SR mentioned on GitHub report
apple/ml-mkqa mentioned on GitHubApache-2.0 report
ashwanitanwar/nmt-transfer-learning-xlm-r mentioned on GitHubpytorchNOASSERTION report
bcaitech1/p2-klue-Heeseok-Jeong mentioned on GitHubpytorch report
bitextor/bicleaner-ai mentioned on GitHubtfGPL-3.0 report
deepmind/xquad mentioned on GitHub report
deepset-ai/FARM mentioned on GitHubpytorch report
deterministic-algorithms-lab/Large-XLM mentioned on GitHubpytorch report
feyzaakyurek/XLM-LwLL mentioned on GitHubpytorchNOASSERTION report
google-deepmind/xquad mentioned on GitHub report
heraclex12/vietpunc mentioned on GitHubjax report
huggingface/transformers mentioned on GitHubpytorch report
huhailinguist/ChineseNLIProbing mentioned on GitHubpytorch report
inzva/turkish-glove mentioned on GitHubMIT report
kheeong/XLM_OWN mentioned on GitHubpytorchNOASSERTION report
lsqdecodebox/NLP-Comptition-review mentioned on GitHubApache-2.0 report
martincjespersen/DaAnonymization mentioned on GitHubApache-2.0 report
nlp-uoregon/trankit mentioned on GitHubpytorch report
sanderwood/clamp3 mentioned on GitHubpytorchMIT report
somiltg/xquad mentioned on GitHub report
stanleyjzheng/ignitionhacks mentioned on GitHubtf report
pwc-1/Paper-9 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

59 samples harvested; 25 ran; 4 honoured the contract we drafted; 34 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
3ran · fixture could not drive it
15ran
34unverified

Licence: 52 of the 59 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 9 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

as_pipe facebookresearch/cc_net/cc_net/jsonql.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · b9f2456deb48efe3 · report
avg_predict facebookresearch/cc_net/cc_net/split_by_lang.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 9a3ea499eb0114dc · report
cc_wet_paths_url facebookresearch/cc_net/cc_net/process_wet_file.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · c8b6d34869aa3762 · report
compose facebookresearch/cc_net/cc_net/jsonql.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 4bb30f62c8aa7df1 · report
encode_as_hashes facebookresearch/cc_net/cc_net/minify.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 6cb4b3cddb2b34b6 · report
encode_hashes facebookresearch/cc_net/cc_net/minify.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 78ae9912884277ad · report
fast_reshard facebookresearch/cc_net/cc_net/regroup.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 3143d897968b04d0 · report
get_hashes facebookresearch/cc_net/cc_net/minify.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1e7f7cbd3125f871 · report
get_index facebookresearch/cc_net/cc_net/regroup.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1f765197d3df9584 · report
parse_doc facebookresearch/cc_net/cc_net/process_wet_file.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · aeaad31adb65d876 · report
pp facebookresearch/cc_net/cc_net/perplexity.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 50c73a5e3a282bc8 · report
predict facebookresearch/cc_net/cc_net/split_by_lang.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 0d75948d09185811 · report
run_pipe facebookresearch/cc_net/cc_net/jsonql.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 8e7895f398977866 · report
tmp facebookresearch/cc_net/cc_net/get_wiki_cirrus.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · cda9917a1ba9c984 · report
tmp facebookresearch/cc_net/cc_net/mine.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 8e1af02efb15e082 · report
BeamHypotheses Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · ea265a8f7f9d376b · report
BottleneckResidualConv2d Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran fingerprinted licence not identified · pointer only · 2d39718257c802dc · report
GroupedLinear Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · d470784790e9dc66 · report
LabelSmoothingLoss 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 4a9d2d7dd384f8bf · report
MultiHeadAttention Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 59c6324aa51d05e7 · report
MultiHeadAttention 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 87278bd6d018466e · report
MultiHeadAttention deterministic-algorithms-lab/Large-XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 8ed44ce7206b1f24 · report
PredLayer Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · d204f4ff6c43fc6d · report
PredLayer 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · ba5fdac8a37a5455 · report
PuncXLMRModel heraclex12/vietpunc/models/xlm_roberta.py community (archive-listed) ran no licence file found · pointer only · b8082687538a83e1 · report
QueryConv Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · ddc3ebfb70be4b09 · report
QueryIdentity Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 8ba7ef0726990c84 · report
QueryIdentity 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 2c9fdf8b95e37258 · report
QueryMLP Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran fingerprinted licence not identified · pointer only · 72cc8733f4306eba · report
TransformerFFN Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran licence not identified · pointer only · 38525832e182b5f3 · report
cartesian_product Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · our draft was wrong fingerprinted licence not identified · pointer only · 424066fae6f1c350 · report
convs Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · e7bd7636a1df749c · report
get_gaussian_keys Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · honoured contract licence not identified · pointer only · 1d77d0309d035999 · report
get_slices Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · honoured contract fingerprinted licence not identified · pointer only · 91283fd5a725ec99 · report
get_uniform_keys Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · honoured contract licence not identified · pointer only · 3fa144c23db44a7e · report
mlp Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) ran · fixture could not drive it licence not identified · pointer only · a05791210b07b83d · report
BERTEncoder Unbabel/COMET/comet/encoders/xlmr.py community (archive-listed) unverified Apache-2.0 (permissive) · bee8cacb03b2b055 · report
CrossLingualTransformerModel 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 33c46f658371888d · report
Encoder Unbabel/COMET/comet/encoders/xlmr.py community (archive-listed) unverified Apache-2.0 (permissive) · ce7a4a01c9b960a2 · report
FeatureExtractor ilhamfp/indonesian-text-classification-multilingual/src/extract-feature.py community (archive-listed) unverified no licence file found · pointer only · d30d1ecf1454760e · report
HashingMemoryFlat Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 3d693a4a286601f2 · report
HashingMemoryFlat 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · c4f0cfb3b4341157 · report
HashingMemoryProductFast Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · f8da1eb21868463a · report
HashingMemoryProductFast 1-punchMan/CLTS/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 200a1dfd844a9fe4 · report
TransformerModel Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · e836ec1da3a517b3 · report
TransformerModel deterministic-algorithms-lab/Large-XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 68f606f965d049f0 · report
XLMREncoder Unbabel/COMET/comet/encoders/xlmr.py community (archive-listed) unverified Apache-2.0 (permissive) · 292808e3a5d973ed · report
XLMRoberta deepset-ai/FARM/farm/modeling/language_model.py community (archive-listed) unverified Apache-2.0 (permissive) · 12b4ab9bb368a1e8 · report
create_sinusoidal_embeddings Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 99c39b47ca18e1b5 · report
get_float martincjespersen/DaAnonymization/textprivacy/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 1e9b7714930dc642 · report
get_integer martincjespersen/DaAnonymization/textprivacy/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b2b68b9410ef8d8b · report
get_knn_faiss Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 80bf3f1cdd634770 · report
is_valid_number martincjespersen/DaAnonymization/textprivacy/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 81d3a619bdd21b88 · report
swig_ptr_from_FloatTensor Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · ded0b9ac1f3c803c · report
swig_ptr_from_LongTensor Tikquuss/meta_XLM/XLM/src/model/transformer.py community (archive-listed) unverified licence not identified · pointer only · 41f2f12e6d5e6d33 · report
Linear identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · b5254f10aa821ab8 · report
bool_flag identical code first harvested elsewhere ran · violated contract licence of this copy not recorded · cc66d68d2046d6a3 · report
gelu identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 66c21a3911091d29 · report
get_masks identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · b2470f4f0c09db41 · report

Tasks

Cross-Lingual TransferLanguage ModelingLanguage ModellingMultilingual NLPRepresentation LearningXLM-R

Datasets

Introduced by this paper, per the archive.

CC100

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: XLM-R

AdamAttentionAttention DropoutBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPieceXLMXLM-R

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections