Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Cross-lingual Language Model Pretraining

Cross-lingual pretraining improves machine translation

  • Problem Sentence representations have mostly been built for English, and cross-lingual methods have relied on parallel data. Unsupervised machine translation started from aligned word embeddings, whose quality limits the result.
  • Method XLM pretrains a Transformer on monolingual text with a causal or masked objective. Its translation objective instead of word embeddings masks words in concatenated parallel sentences, and the pretrained weights initialise translation and classification systems.
  • Results XLM reached 34.3 BLEU on unsupervised WMT'16 German-English, more than 9 BLEU above the previous state of the art. It also reached 38.5 BLEU on supervised WMT'16 Romanian-English.

Why sentence encoders still lean on parallel data

Pretraining a Transformer on unlabelled text and then fine-tuning it has improved many English understanding tasks, but general-purpose sentence representations have been studied mostly in English. Cross-lingual sentence representations were built in several ways, including zero-shot classification trained on parallel data and a single multilingual translation model that shares one encoder and decoder across language pairs.

The strongest of these sentence-embedding approaches drew on more than 200 million parallel sentences.

Unsupervised machine translation avoids parallel data, but earlier systems began from aligned word representations, and the quality of those embeddings strongly affects the result. Lample et al. (2018b) reached 25.2 BLEU on WMT’16 German-English without parallel sentences, which sets the baseline this study measures against. The study proposes pretraining the whole encoder and decoder with a cross-lingual language model, so that the iterative translation procedure starts from a model that already covers both languages.

One vocabulary and how languages are sampled

All languages share one subword vocabulary built with Byte Pair Encoding on sentences sampled across the monolingual corpora. Sharing the vocabulary helps embeddings line up across languages that use the same alphabet or share anchor tokens such as digits and proper nouns.

Sentences are drawn from language i with probability q_i, computed from each corpus share p_i, where n_i is the number of sentences in corpus i. \[ q_i = \frac{p_i^{\alpha}}{\sum_{j=1}^{N} p_j^{\alpha}}, \qquad p_i = \frac{n_i}{\sum_{k=1}^{N} n_k} \] For the BPE learning sample the exponent is 0.5, which raises the token share of low-resource languages and keeps their words from being split into characters.

Batches for the causal and masked objectives use a different exponent, 0.7, to choose the language of each batch.

Causal and masked objectives on monolingual text

The causal objective trains a Transformer to predict each word from the words before it, as \( P(w_t \mid w_1, \dots, w_{t-1}, \theta) \). Hidden states are not carried across batches, because that recurrence does not extend to the cross-lingual setting, so the first words in each batch have no earlier context.

The masked objective selects 15% of the BPE tokens in a stream. Of the selected tokens, 80% are replaced by a mask token, 10% by a random token and 10% are left unchanged. Unlike the masked setup of Devlin et al. (2018), the streams here contain an arbitrary number of sentences truncated at 256 tokens, not sentence pairs. Frequent tokens are subsampled with weights proportional to the square root of their inverse frequencies, so that punctuation and stop words do not dominate the loss.

Adding a translation objective over parallel sentences

The translation objective extends the masked objective to a concatenation of two parallel sentences instead of a monolingual stream. Words are masked in both the source and the target sentence, so a masked English word can be predicted from its English neighbours or from the French translation, which pushes the two languages toward a shared representation.

The position indices of the target sentence are reset, which makes the alignment between the two halves easier to learn.

The monolingual objectives need only monolingual data, so neither can use parallel sentences when they exist. In the supervised setting the masked and translation objectives are alternated, and language pairs are sampled with a similar scheme.

Architecture and training settings

All models use a Transformer with 1024 hidden units, 8 heads, GELU activations, a dropout rate of 0.1 and learned positional embeddings, trained with Adam and a linear warm-up. For the causal and masked objectives, batches hold 64 streams of 256 tokens, and training stops when the average perplexity across languages stops improving. Translation-objective batches hold 4000 tokens of sentences with similar lengths.

Machine translation models use 6 layers and mini-batches of 2000 tokens. The XNLI classifier is fine-tuned on a 12-layer model with 80k BPE splits and a vocabulary of 95k, with mini-batches of 8 or 16 and the sentence length clipped at 256 words. The classifier reads the first hidden state of the last layer, and max-pooling or mean-pooling did not do better in the authors' experiments.

Monolingual data is extracted from Wikipedia dumps, while parallel data always involves English and comes from sources such as MultiUN, the IIT Bombay corpus and several OPUS collections.

Zero-shot classification on XNLI

A linear classifier sits on the first hidden state, and all parameters are fine-tuned on the English NLI training data. The model is then evaluated on the 15 XNLI languages, with TRANSLATE-TRAIN and TRANSLATE-TEST baselines from Conneau et al. (2018b).

The MLM-only model reaches 71.5% average accuracy in the zero-shot setting. Artetxe and Schwenk (2018) reached 70.2% using 223 million parallel sentences, so the comparison is between different training data and not a controlled test of the objective. Adding the translation objective (MLM+TLM) raises the average to 75.1%, a gain of 3.6% accuracy, and English rises from 83.2% to 85%.

With the English training data machine-translated into each XNLI language, the supervised model reaches 76.7% average accuracy, 1.6% above its zero-shot result. Its average gain over the previous supervised state of the art on XNLI is 4.9% accuracy.

Unsupervised machine translation with pretrained encoders and decoders

The setup follows Lample et al. (2018b), except that the whole model is initialised with cross-lingual language modelling instead of only the lookup table. Each of the encoder and decoder is initialised with CLM, MLM or random weights, which gives 9 settings, and training combines denoising auto-encoding with online back-translation.

The best system, with MLM on both encoder and decoder, reaches 34.3 BLEU on German-English. That is more than 9.1 BLEU above the previous unsupervised approach, or 13.3 BLEU above it when only neural unsupervised systems are compared. Compared with pretraining only the lookup table, pretraining both the encoder and decoder with MLM brings gains of up to 7 BLEU on German-English.

With pretraining on both sides, MLM beats CLM on English-French, 33.4 against 30.4 BLEU. On Romanian-English the comparison in the table is 31.8 for MLM on both sides against 28.0 for CLM on the encoder with a randomly initialised decoder, so the two settings differ in more than the objective. Pretraining only the decoder drops performance noticeably, while pretraining only the encoder has a small effect, so the encoder matters most.

The authors re-implemented the embedding-only baseline and got higher numbers than reported before, which they attribute to their multi-GPU setup with larger batches.

Supervised translation on Romanian-English

Three configurations are compared: mono-directional Romanian to English, a bidirectional multilingual model trained on both directions, and the bidirectional model with back-translation. Each is trained without pretraining, with CLM pretraining or with MLM pretraining.

Back-translation models use the same monolingual data as the pretrained models, yet the authors find they generalise less well on the evaluation sets.

Nepali language modelling with related languages

Nepali has about 100k sentences on Wikipedia, while Hindi has about six times as many, and more than 80% of their tokens are shared in a 100k-unit BPE vocabulary. A Nepali model trained on Nepali alone is compared with models that add English, Hindi, or both.

Nepali-only perplexity is 157.2. Adding English data lowers it to 140.1, a reduction of 17.1 points, while adding Hindi data lowers it to 115.6, a reduction of 41.6 points. Using both English and Hindi gives 109.3, the lowest value in the table. The authors attribute part of the gain to n-gram anchor points shared across languages, for example in Wikipedia articles.

Word embeddings compared with MUSE and Concat

MUSE aligns separately trained monolingual embedding spaces with adversarial training, Concat applies fastText to the concatenated corpora of two languages, and XLM takes its vectors from the lookup table of the cross-lingual language model. The three are compared on cosine similarity and L2 distance between translation pairs from MUSE dictionaries, and on the Pearson correlation of SemEval’17 cross-lingual word similarity.

XLM reaches a Pearson correlation of 0.69 on SemEval’17, above MUSE at 0.65 and Concat at 0.52. For translation pairs, XLM has a cosine similarity of 0.55 and an L2 distance of 2.64, while MUSE gives 0.38 and 5.13 and Concat gives 0.36 and 4.89.

The authors conjecture that the closer alignment comes from training the embeddings jointly with a sentence encoder, since MUSE and Concat are built on fastText word vectors; this is not tested directly.

Limitations

CLM and MLM use only monolingual data, so they cannot exploit parallel data when it is available. The translation objective is the only route in the study that uses parallel data, and its gains are reported only in the MLM+TLM settings.

Unsupervised translation is evaluated on three language pairs, supervised translation only on Romanian-English, and the low-resource modelling only on Nepali. The XNLI comparison with Artetxe and Schwenk (2018) uses a different training corpus of 223 million parallel sentences, and the multilingual BERT figures are those reported by Devlin et al.

(2018).

Whether the alignment of word embeddings holds when the embeddings are trained without a sentence encoder was not tested.

Paper info

Authors
Guillaume Lample, Alexis Conneau
Venue
arXiv · Preprint
First published
2019-1-22
Added
2026-11-12
Updated
2019-1-22
Version
v1
arXiv
1901.07291
Category
cs.CL
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Guillaume Lample, Alexis Conneau (2019). Cross-lingual Language Model Pretraining. arXiv:1901.07291v1. https://arxiv.org/abs/1901.07291v1

BibTeX
@misc{lample2019cross,
  title = {{Cross-lingual Language Model Pretraining}},
  author = {Guillaume Lample and Alexis Conneau},
  year = {2019},
  eprint = {1901.07291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.07291v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up