---
title: "Multilingual Alignment of Contextual Word Representations (2020)"
description: "How aligning words in translated sentences improves multilingual BERT’s ability to transfer English training to other languages."
canonical: "https://research.elamur.ai/free/en/papers/cao-2020-multilingual-alignment-contextual-word-representations/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cao-2020-multilingual-alignment-contextual-word-representations/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Multilingual Alignment of Contextual Word Representations

# Multilingual Alignment of Contextual Word Representations

Paper · 2020 · Steven Cao, Nikita Kitaev and Dan Klein

**Authors:** [Steven Cao](https://md.research.elamur.ai/free/en/authors/steven-cao/), [Nikita Kitaev](https://md.research.elamur.ai/free/en/authors/nikita-kitaev/) and [Dan Klein](https://md.research.elamur.ai/free/en/authors/dan-klein/) · **Year:** 2020 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**137** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2995118574) · [Cited by **122** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/cao-2020-multilingual-alignment-contextual-word-representations/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2002.03518)
- [arXiv 2002.03518](https://arxiv.org/abs/2002.03518)
- [OpenAlex](https://openalex.org/W2995118574)

Citations: OpenAlex, 2026-10-14.

## Summary

A system trained to recognize when one sentence follows from another can sometimes do the same job in a language it has never seen in that task’s training data. Multilingual BERT already has this ability, but its success varies by language. The paper asks whether part of the difference lies in how BERT represents individual words. When two sentences are translations, do corresponding words have similar numerical representations? And can bringing those representations closer together help a classifier trained in English operate in another language? [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

The authors develop a test called contextual word retrieval. Starting with a particular word in a particular sentence, the test searches a collection of translated sentences for its counterpart. Success requires finding both the right word and the right sentence. This matters because a word can recur with the same meaning across sentences or take on several meanings. A system that knows a standard translation still has to identify the intended occurrence. A second version of the test keeps only the first occurrence of each word type, reducing the need to distinguish contexts. Together, the two versions help separate evidence about individual occurrences from evidence about vocabulary.

The authors then use translated sentences to adjust BERT. They automatically identify corresponding words and update the encoder so the vectors of those occurrences come closer together. A penalty discourages the English representations from moving far from their original values. With English as the common reference, the procedure aligns several languages during the same training run. On XNLI, a test of sentence inference, the aligned encoder improves average zero-shot test accuracy by 2.78% over the original BERT. Bulgarian and Greek reach the reported accuracies of systems trained on machine-translated task examples in those languages. The authors also report a transfer improvement with as little as 10K parallel sentences per language. [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/)

The retrieval results help explain where the gains appear. Before alignment, Bulgarian and Greek are particularly difficult, and the strength of retrieval across languages tracks the strength of zero-shot inference. The original encoder also retrieves grammatical words more reliably than content words in the paper’s word-type analysis, and it struggles with translation pairs whose frequency ranks are far apart. Alignment reduces these weaknesses. It also beats the tested rotation-based methods on contextual retrieval, where different occurrences compete. The evidence connects the geometry of word representations to transfer on a downstream task, while leaving open how much of that transfer is explained by word alignment alone.

## Deep dive: Multilingual Alignment of Contextual Word Representations

How aligning words in translated sentences improves multilingual BERT’s ability to transfer English training to other languages. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a shared representation has to accomplish

In cross-lingual transfer, supervision available in one language is used to perform a task in another. Consider a classifier taught in English to distinguish an entailment from a contradiction. Its training examples show the relationship between pairs of English sentences and the corresponding labels. At evaluation, the corresponding task is posed in a different language. For the English training to carry over, the information the classifier relies on must still be recognizable when the words and sentences change. The paper investigates this condition at the level of word occurrences. [Multilingual & cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/)

A word representation is a vector, a collection of numerical coordinates that an encoder assigns to a word. Earlier work studied how to arrange vectors from different languages so that translations occupy nearby positions. In a static representation, the same word has the same vector whenever it occurs. A contextual encoder can assign it a different vector in each sentence. This makes it possible to represent distinctions that a single entry would collapse, such as the difference between *close* in a description of physical proximity and *close* as an action taken by a business. It also changes what it means for two languages to align. A single cross-language match for each vocabulary entry leaves open whether the encoder handles those distinctions consistently. [Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) · [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/)

The paper uses translated sentences to give the comparison a specific meaning. If an English word has a particular counterpart in the translation of its sentence, the authors can compare the vectors assigned to those occurrences. This lets the evaluation ask about the word and its use together. Averaging across many occurrences would make the vectors easier to compare, but it could conceal a mismatch in an individual context. For instance, an average could put the two languages’ representations for a noun near each other while leaving their representations for its less common uses far apart.

Multilingual BERT makes the question especially interesting because its original training does not supply explicit word correspondences across languages. The multilingual version shares parameters and uses a vocabulary built from the combined Wikipedia corpora of 104 languages. Its training batches draw from those languages. In masked word prediction, the encoder uses surrounding text to predict what was hidden. It also learns to distinguish whether a sentence follows another. Neither task has to identify the counterpart of a particular word in a translated sentence. The paper asks what kind of cross-language organization can arise from this setup and what explicit translation evidence can add.

Earlier probing work discussed in the paper found that multilingual BERT can transfer between dissimilar languages, with stronger transfer between languages that are typologically similar. That finding poses a question about the shared vocabulary. Some written forms, including names or numbers, can occur in several languages. Such forms might give the encoder common reference points. The earlier work proposes that words appearing around those shared forms can acquire similar representations through masked prediction. The authors take up that hypothesis because it gives them something specific to examine across language pairs and lexical categories. [How Multilingual Is Multilingual BERT?](https://md.research.elamur.ai/free/en/papers/pires-2019-how-multilingual-is-multilingual-bert/)

#### What earlier alignment methods could compare

One established approach starts with word vectors learned independently in each language. A dictionary supplies examples of translations, and a mapping is fitted so that a source word vector moves close to the vector of its target word. Distributional training approaches such as skip-gram can provide the original vectors. The dictionary pairs then define which points should correspond when fitting the map. At evaluation, a typical question is whether the transformed vector leads to the correct translation in the target vocabulary. [Exploiting Similarities among Languages for Machine Translation](https://md.research.elamur.ai/free/en/papers/mikolov-2013-similarities-languages/) · [Distributed Representations of Words and Phrases and their Compositionality](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/)

The paper highlights orthogonal mappings, which preserve the distances among the source vectors. Rotating an arrangement of points can change which target points they are near while keeping their internal arrangement intact. This is attractive when the original distances convey useful distinctions. It also imposes a condition. If the source and target spaces arrange corresponding words very differently, a distance-preserving transformation can make some pairs closer only while leaving other discrepancies unresolved. Prior work discussed by the authors also reduces the need for an initial dictionary by alternating between finding likely translation pairs and updating the map. [Learning principled bilingual mappings of word embeddings while preserving monolingual invariance](https://md.research.elamur.ai/free/en/papers/artetxe-2016-learning-principled-bilingual-mappings-word/) · [VecMap](https://md.research.elamur.ai/free/en/papers/artetxe-2018-vecmap-unsupervised/)

Retrieval itself introduces a difficulty. Some target vectors become nearest neighbors of many queries, a problem called hubness. If a target vector is already close to many other points, a high similarity to a given query can be weak evidence that it is the intended translation. The alignment literature cited in the paper proposes adjusting similarity scores to account for the density of the surrounding neighborhoods. The present study carries that idea over to a search in which the target candidates are word occurrences. [Word Translation Without Parallel Data](https://md.research.elamur.ai/free/en/papers/conneau-2018-word-translation-muse/)

Earlier work had several ways of handling context. One approach averaged the representations of a word across sentences to obtain a single point for fitting a rotation. The paper cites an application of this approach to ELMo representations for cross-language transfer in [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/). Another approach fitted a rotation using sentence vectors constructed from word-vector averages and assessed whether it also helped at the word level. A contemporaneous BERT approach used correspondences between individual words in translated sentences, so the context of each word was already present in the data for learning a linear map. The present paper shares that last choice of evidence and changes which parameters the evidence can update. [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/) · [Cross-Lingual Alignment of Contextual Word Embeddings](https://md.research.elamur.ai/free/en/papers/schuster-2019-cross-lingual-alignment-contextual-word/)

The paper also discusses research that incorporated translations during pretraining. In one example, translation pairs supplied evidence about which sentence representations should be similar, with negative examples helping distinguish them. Another added parallel text to the objectives of cross-lingual pretraining and evaluated the resulting transfer. The authors of the present study begin with an existing multilingual encoder. That choice lets them ask how far the representations acquired in pretraining can be changed using a separate alignment stage and a smaller supply of parallel data. It also separates the use of translations for representation learning from the use of labeled examples for the downstream task.

### The method, step by step

#### Turn sentence translations into word correspondences

A parallel corpus contains pairs of sentences that translate one another. Those pairings tell the authors where to look for correspondences, but they leave the word positions to be determined. A translation may change word order, introduce an auxiliary, or express with a phrase what the original expresses with a single word. The authors tokenize the Europarl text with the Moses tools and use fastAlign to propose pairs of word positions. They run fastAlign in both directions and keep one-to-one pairs on which the runs agree. Agreement is a way to favor precision at the cost of leaving some words unpaired. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) · [A Systematic Comparison of Various Statistical Alignment Models](https://md.research.elamur.ai/free/en/papers/och-2003-systematic-comparison-various-statistical-alignment/)

The data used in the main study put English on one side of each corpus. The other side is Bulgarian, German, or Greek in some corpora and Spanish or French in the others. The authors chose these pairs because they occur in both Europarl and the downstream inference benchmark. For each pair, the most recent 1024 sentences form the test split. The previous 1024 sentences form the development split, and the next 250K sentences in the authors’ ordering form the training split. They also study training with 10K and 50K parallel sentences per language pair. [English](https://md.research.elamur.ai/free/en/topics/english/) · [French](https://md.research.elamur.ai/free/en/topics/french/)

The word correspondences use whole words, while BERT operates on units that can be smaller than words. Its WordPiece vocabulary was built by pooling the 104 Wikipedias used for pretraining. If a word is split into pieces, the authors take BERT’s vector at the final piece as the vector for the word. They can then compare the outputs at paired word positions even if the two words split differently. The selected vector still comes from encoding the sentence and can reflect its surroundings. [Subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/)

For example, the paper pairs *ate* with *gegessen* in an English–German sentence pair. The German sentence uses an auxiliary and places the main verb later. A pairing records the positions of *ate* and *gegessen* in their respective sentences, so the difference in order causes no difficulty for the representation of the supervision. The auxiliary *habe* has no retained partner in the example. These position pairs are corpus annotations. The encoder’s alignment is the separate question of whether its numerical outputs agree with them.

Contextual alignment from parallel sentences to transfer The steps in order.

The retrieval and inference steps both use the aligned encoder. Retrieval evaluates its word vectors directly, while inference adds task training. Correct retrievals are therefore evidence about the intermediate representation. They are not fed to the inference classifier as additional examples.

#### Define the retrieval test

The paper writes the parallel corpus as a collection of paired sentences.

```
C = {(s¹, t¹), …, (sᴺ, tᴺ)}
```

Here C is a corpus for a source language and a target language, and N is the number of sentence pairs in the corpus. Each s denotes a source sentence and each t its translation on the target side. Superscripts identify corresponding entries in the corpus. The braces collect the pairs, and the ellipsis indicates the intervening entries.

```
a(s, t) = {(i₁, j₁), …, (iₘ, jₘ)}
```

The function a gives the retained word correspondences for the paired sentences s and t. The index i denotes a position in s, and j denotes a position in t. The subscripts identify the correspondences, and m is their number in this sentence pair. Each ordered pair gives the source position first. The encoder is written f, so f(i, s) is the vector for the word at position i after encoding sentence s, and f(j, t) is the corresponding notation for a target occurrence.

For the English–German example, the paper gives the following links.

```
a(s, t) = {(0, 0), (1, 4), (2, 2), (3, 3), (4, 5)}
```

Here s is the English sentence about eating an apple and t is its German translation. The integers are word positions within the respective sentences, with 0 denoting the first position. The pair (1, 4) links *ate* with *gegessen*. The absence of a pair whose target position is 1 leaves *habe* unlinked. The remaining entries pair the pronouns, articles, nouns, and sentence-final punctuation in this illustration of the notation.

The retrieval test gives the system a source occurrence and searches the target side of the corpus. The search includes other sentences as well as the translation of the query sentence. Every competing occurrence has its own sentence and position. An occurrence in the wrong sentence can be a plausible translation in the dictionary sense and still fail the test. Using admissible word positions as the search range, the nearest-neighbor rule is:

```
neighbor(i, s; f, C) = arg max₍ⱼ,ₜ₎ sim(f(i, s), f(j, t))
```

The function neighbor returns the winning pair of target position j and target sentence t. Its inputs i and s specify the source occurrence, f is the encoder, and C determines the target sentences being searched. The subscript of arg max ranges over target sentences in C and their valid word positions. The function sim scores the similarity of the query vector f(i, s) to each candidate vector f(j, t). The operation arg max returns the candidate that produces the highest score.

For sim, the authors use cross-domain similarity local scaling, or CSLS. Cosine similarity compares the directions of vectors. CSLS adjusts that comparison using the similarity of each vector to its local neighbors across the language boundary. A high score relative to the competing neighbors is stronger evidence than a similarly high raw cosine score in a crowded part of the space. The study uses a neighborhood size of 10 for this adjustment. The metric therefore depends on the distribution of candidate vectors as well as on the vectors of a given pair. [Word Translation Without Parallel Data](https://md.research.elamur.ai/free/en/papers/conneau-2018-word-translation-muse/)

The paper gives the following expression for the retrieval score in one direction.

```
A(f; C) = (1/N) Σ₍ₛ,ₜ₎ ∈ C Σ₍ᵢ,ⱼ₎ ∈ a(s,t) 𝕀(neighbor(i, s; f, C) = (j, t))
```

A is the score assigned to encoder f on corpus C. The outer sum, written with Σ, visits every sentence pair (s, t) in C. The inner sum visits the word links (i, j) in a(s, t). The indicator 𝕀 counts a success if neighbor returns exactly the annotated pair (j, t), including both its sentence and position. The prefactor divides by N, which the corpus definition gives as the number of sentence pairs. There is a mismatch here between the displayed formula and the prose description of percentage accuracy. Since a sentence pair can contribute several word links, a percentage of correct word queries would use the number of eligible queries as its denominator. The same search can run in reverse, changing which side provides the query. The reported procedure averages the scores from the two directions.

The authors make contextual retrieval more demanding by retaining multiple instances of a word type in the candidate data. A word type is the distinct lexical item counted for this purpose, while an occurrence is a particular instance in a sentence. If the target word appears repeatedly, its type alone cannot identify which occurrence should win. The paper’s non-contextual variant keeps only the first instance of each type. BERT still encodes sentences in this variant. The difference is that the search makes fewer demands on its ability to distinguish occurrences of the same word.

The main Europarl retrieval test also excludes word pairs seen in the training split from the accuracy calculation. This makes a correct answer evidence about a held-out correspondence under the evaluation filter. It does not require that each individual word be absent from training. The data procedure also removes exact matches, with punctuation and numbers given as examples. The authors want the main comparison to concentrate on correspondences for which the shared vocabulary gives less direct help. Their separate part-of-speech analysis has a different coverage goal and explicitly keeps pairs seen in training.

#### Bring corresponding occurrences together

The training procedure starts with pretrained BERT and treats retained translation pairs as examples of vectors that should be similar. Its general alignment objective sums a penalty across those pairs.

```
L(f; C) = −Σ₍ₛ,ₜ₎ ∈ C Σ₍ᵢ,ⱼ₎ ∈ a(s,t) sim(f(i, s), f(j, t))
```

L is the alignment loss of encoder f on corpus C. The sums range over sentence pairs (s, t) and their retained word links (i, j), as given by a(s, t). The terms f(i, s) and f(j, t) denote the two word vectors. The minus sign turns higher similarity into lower loss, which is what the optimizer seeks. This expression describes the objective in terms of a general similarity function.

For optimization, the authors use squared distance. The choice avoids having to optimize the neighborhood-based retrieval score directly.

```
sim(f(i, s), f(j, t)) = −‖f(i, s) − f(j, t)‖₂²
```

The two f terms are the source and target vectors for positions i and j in sentences s and t. Their subtraction gives a vector of coordinate differences. The double bars with subscript 2 give its Euclidean norm, and the superscript 2 squares the norm. With the leading minus sign, sim increases as the difference shrinks. Substituting this term into L makes the loss a sum of squared distances between linked vectors.

There is a simple way for an encoder to make those distances vanish: output the same vector for every word. Such an encoder would supply little information to a classifier or a retrieval system. The authors address this by storing the original encoder as a reference and penalizing changes to its target-language outputs. In the multilingual experiments the target language is English. The regularizer uses all word positions in the target sentences of the training batch, including positions for which there is no retained cross-language link.

```
R(f; C) = Σₜ ∈ C Σⱼ ‖f(j, t) − f₀(j, t)‖₂²
```

R is the regularization loss for the current encoder f. The outer sum visits target sentences t on the target side of C, and the inner sum visits each word position j in t. The same position index runs over the words and appears inside both vector terms. The original, fixed encoder is f₀, and f₀(j, t) is the vector it produces for the same occurrence as f(j, t). The squared Euclidean distance measures how much that output has changed. The constraint acts through an added cost, so English outputs can still move if that helps reduce the overall training loss.

```
L(f; B) + λ R(f; B)
```

This is the loss for a minibatch B, a subset of the sentence pairs in C used for a gradient update. The first term pulls linked word vectors together. The second charges for movement away from the original target vectors. The scalar λ controls the penalty’s weight, and the paper sets λ to 1. The gradients update the weights of f itself. Because the same f encodes both sides, the English reference penalty gives direction to an update that can affect the outputs in either language.

For multilingual alignment, the authors sample equally sized minibatches from the different corpora and combine their losses in a joint update.

```
Σᵏᵢ₌₁ [L(f; Bⁱ) + λ R(f; Bⁱ)]
```

Here k is the number of parallel corpora, with each corpus Cⁱ pairing a different source language with English. The index i selects a corpus in this expression, and Bⁱ is the batch sampled from it. The summation starts at 1 and includes each of the k batches. L and R have the same meanings as in the bilingual objective, λ gives the weight of the penalty, and f is shared across all the terms. Reusing one encoder means that an update learned from one pair can affect how it encodes another. The batches give each participating language pair a place in each update.

#### Fit the alternatives and train for inference

The rotation baseline has access to word correspondences too. It uses them to fit a matrix that acts on the source-language output vectors, leaving the encoder’s weights as they were. The paper describes the fitting problem as:

```
min_W Σ₍ₛ,ₜ₎ ∈ C Σ₍ᵢ,ⱼ₎ ∈ a(s,t) ‖W f(i, s) − f(j, t)‖₂²   subject to WᵀW = I
```

Here W is the source-side transformation matrix, and min_W selects the matrix that minimizes the sum. The corpus C supplies sentence pairs (s, t), and a(s, t) supplies links (i, j). The vectors again come from f, with W applied to f(i, s). The norm gives squared Euclidean distance to f(j, t). The transpose Wᵀ multiplied by W must equal I, the identity matrix, which is the orthogonality constraint. The resulting Procrustes problem has a closed-form solution. The constraint preserves distances within the transformed source set, whereas updating f can change those distances and can change occurrences of the same word in different ways. [Offline bilingual word vectors, orthogonal transformations and the inverted softmax](https://md.research.elamur.ai/free/en/papers/smith-2017-offline-bilingual-word-vectors-orthogonal/) · [On the Limitations of Unsupervised Bilingual Dictionary Induction](https://md.research.elamur.ai/free/en/papers/sogaard-2018-limitations-unsupervised-bilingual-dictionary-induction/)

For the static-vector comparison, the authors use fastText. They normalize the word vectors, subtract their mean, and normalize them again before fitting a rotation with the same parallel data. At retrieval time they give this baseline sentence information. For each sentence, they take the coordinatewise average, maximum, and minimum of the constituent word vectors, and concatenate these summaries. They then append that sentence representation to the candidate or query’s word vector. The resulting vectors are 1200-dimensional for fastText, while the BERT vectors are 768-dimensional. The difference in construction matters because the fastText representation has a fixed component for the word and a sentence component shared across words in that sentence. [fastText](https://md.research.elamur.ai/free/en/papers/bojanowski-2017-enriching-word-vectors-subword-information/)

For downstream evaluation, the authors use XNLI. A sentence pair is assigned one of three labels. Entailment means the first sentence implies the second, contradiction means they conflict, and neutral covers the cases in which neither of those judgments follows. XNLI supplies human translations of the English MultiNLI development and test items. The authors train on the English MultiNLI training set after choosing the initial encoder, then evaluate the classifier on XNLI. The classification layer reads BERT’s sentence-pair representation at the special `[CLS]` position. A linear layer produces label scores, softmax converts them to a distribution, and cross-entropy penalizes low probability for the annotated label. The checkpoint is chosen by average development-set accuracy across the evaluated languages. [MultiNLI](https://md.research.elamur.ai/free/en/papers/williams-2018-broad-coverage-challenge-corpus-sentence/) · [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/)

The paper uses the Adam optimizer for both stages, with a learning rate of 5 × 10⁻⁵, β values of 0.9 and 0.98, and ε of 10⁻⁹. These are the step-size setting, the parameters for Adam’s moving estimates, and its numerical stabilizer, respectively. The learning rate warms up linearly over the first 10% of the training data. Alignment runs for one epoch, with 2 sentence pairs per language in each batch. For the XNLI task, the model trains for three epochs in batches of 32 examples, with dropout set to 10% on the BERT embeddings. The settings describe two distinct training stages. The alignment pass consumes parallel sentences with word links, and the inference pass consumes sentence pairs with task labels.

### Experiments and results

#### Transferring inference from English

The XNLI test measures the fraction of sentence pairs assigned the correct inference label. The main question is whether starting task training from aligned BERT changes the test accuracy obtained after training on English. The paper compares that result with the original multilingual BERT and with BERT subjected to sentence-based and word-based rotations. It also reports XLM as a zero-shot reference. XLM gives context for the performance of a cross-lingual pretraining approach. It starts from a different training setup, so the comparison between the original and aligned BERT is the more direct measure of what happens when this alignment stage is added.

An additional comparison, translate-train, changes the source of task supervision. For each non-English test language, it uses a machine-translated version of the English MultiNLI training set and trains the classifier in the language it will be tested on. The XNLI test examples still come from the human-translated evaluation sets. This comparison asks how much of the benefit of language-matched classification training can be recovered by adjusting the encoder using parallel text and then doing the task training in English. The quality of the machine-translated training examples matters to the comparison. [Machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/)

The paper reports an average improvement of 2.78% in zero-shot XNLI test accuracy over base BERT for the main experiment. Every non-English language in that comparison gains at least 1%. For Bulgarian and Greek, the paper describes the improvements as almost 5% each, and the resulting test accuracies match their translate-train comparisons. The authors describe the gap to translate-train as narrowing by roughly one-third for German, Spanish, and French. This pattern is important because the same multilingual update improves performance across the tested set, while the size of the benefit depends on where each language starts.

The rotation comparisons give a more varied result. The paper reports small gains for Bulgarian, German, and Spanish with rotation-based alignment, while the effect across languages is less consistent than with the proposed update. From these experiments, one can compare the performance of the particular alignment recipes under the stated training and test protocol. The results also motivate looking directly at the word vectors. A rotation’s task score can depend on whether it finds a good word correspondence, whether it preserves information the classifier needs, and how those effects interact with later training. The retrieval experiment removes the inference classifier from that measurement.

To illustrate how much transfer the base encoder already offers, the introduction gives an XNLI example for Spanish. After English MultiNLI task training, multilingual BERT attains 74.3% accuracy on the Spanish test split. The paper describes that score as 7.1% below the corresponding English accuracy. This is the introductory example of transfer before the proposed intervention. The main result concerns how the existing ability changes when the encoder is first aligned using a separate set of translations.

#### Retrieving individual words

The main retrieval comparison uses held-out Europarl sentences. It compares base BERT with BERT after rotation and after alignment by fine-tuning, and includes the rotated, sentence-augmented fastText baseline. The measure is exact retrieval of the annotated occurrence, averaged over the two directions. In the contextual setting, a candidate from the correct vocabulary entry but the wrong sentence counts as an error. This puts a demand on the ordering of occurrences that word-level dictionary induction alone would not impose.

Fine-tuned BERT has the strongest contextual retrieval among these approaches. The paper places sentence-augmented fastText ahead of rotation-aligned BERT in this comparison. A useful feature of this baseline is that it can distinguish occurrences of a word in different sentences through the appended sentence vector. Its performance therefore provides a check against attributing all gains to the mere use of sentence context. The fine-tuned BERT result shows that the authors’ method can use the contextualized word outputs to do better on the same occurrence-level retrieval problem.

With only the first occurrence of each word type available, fine-tuned BERT matches the fastText baseline. A correct answer in that condition can rely more heavily on the relationship between the vocabulary items. The authors interpret the result as evidence that fine-tuning gives BERT type-level alignment comparable to a static-vector approach while also supporting stronger retrieval when the evaluation keeps repeated instances. Neither condition directly reports accuracy on a dictionary independent of the corpus. The queries and correct targets still come from word links in translated sentences.

Before the intervention, the base encoder’s retrieval scores vary considerably by language. Bulgarian and Greek begin with particularly weak accuracy on this test. After the proposed alignment procedure, the authors describe retrieval as consistently effective across the language pairs. The paper plots base BERT’s contextual retrieval accuracy against its zero-shot XNLI test accuracy for each language paired with English. Languages that are easier in retrieval tend to be easier in inference. This relationship and the XNLI improvements after alignment supply different kinds of evidence. One compares existing differences across languages, while the other measures the effect of applying a training procedure.

In the separate Europarl test by part of speech, the authors use non-contextual retrieval and retain word pairs that occurred in alignment training to obtain better coverage of word types. The chart reports the category-level values given in the paper. The unit is the accuracy as written, and the starred rows refer to the proposed fine-tuning procedure. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/)

Base and fine-tuned BERT on Europarl non-contextual retrieval by word class Fine-tuning raises retrieval accuracy for both classes and brings their scores close together.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| Base BERT, closed class | 0.70 |
| Base BERT, open class | 0.54 |
| Fine-tuned BERT, closed class (this paper) | 0.88 |
| Fine-tuned BERT, open class | 0.89 |

Closed-class words include items with grammatical functions, such as determiners and pronouns. The open-class grouping includes lexical categories such as nouns and verbs. The reported values show that the open-class group starts lower and broadly catches up after alignment. The classes are evaluated under the same diagnostic setup, making the comparison informative about which word types were harder in that setup. Comparisons with the main retrieval experiment should account for the different training-pair filter and the removal of repeated occurrences in the part-of-speech test.

#### Changing the amount and source of parallel text

The Europarl data comparison varies the amount of alignment supervision while keeping English as the source of inference training labels. The paper reports XNLI test improvement with as little as 10K parallel sentences per language and says that 50K sentences per language pair recover a large fraction of the gains. The larger training split contains 250K sentences per language pair. These quantities count parallel sentences for alignment. Each sentence pair may supply several retained word links. The data-size comparison therefore varies available sentence contexts and word correspondences together.

The appendix broadens the setting to include Chinese, Arabic, and Urdu. The authors align a single encoder for all eight languages with 20K parallel sentences per language paired with English. They draw the Chinese and Arabic data from MultiUN and the Urdu data from Tanzil. The languages from the main study continue to use Europarl. XNLI supplies the downstream test, and the authors report favorable zero-shot results for this expanded experiment as well. The corpus supplying the Urdu alignments consists of Quranic sentences, making it an example in which the alignment text and inference data come from substantially different domains. [MultiUN](https://md.research.elamur.ai/free/en/papers/eisele-2010-multiun-multilingual-corpus-united-nation/) · [OPUS](https://md.research.elamur.ai/free/en/papers/tiedemann-2012-opus/)

The appendix changes the mix of languages and data sources together. It establishes that the reported improvement can occur with the expanded mix and that the approach is applicable beyond the Europarl-only setting. A comparison designed to measure a corpus effect would have to hold the target language fixed while changing its source of parallel text. Likewise, the transferable result with 20K sentences has its own experimental conditions and should be read alongside, rather than as an extra point in, the main Europarl data-size comparison.

### What the ablations show

#### An output rotation and an encoder update solve different problems

The paper’s method comparisons test two ways of responding to the same kind of word-level evidence. A rotation changes the coordinates of a source vector by the same matrix every time. When a word’s representations in multiple contexts have an arrangement that differs substantially across languages, one matrix has to accommodate all the occurrences at once. Updating the shared encoder can change the way it processes the contexts that produced those vectors. The stronger contextual retrieval with fine-tuning is consistent with that additional flexibility being important. The authors’ argument is that context and syntax make it harder to assume that the two spaces already have the same internal geometry.

A stronger claim about which design choice matters most would require additional controls. The rotation is fitted separately for language pairs, while the fine-tuning procedure makes joint updates around English. Fine-tuning also brings in the penalty on English outputs, whose purpose is to retain information as the distances change. The benchmark compares those complete procedures. It gives evidence for the choice of procedure as a whole and leaves the contributions of parameter flexibility, joint training, and anchoring unresolved. In particular, the fact that a constant encoder would minimize the pairwise distance term establishes the need to address that failure mode in the objective. It does not measure what would happen in a training run initialized from BERT with the penalty removed.

The comparison between the two retrieval conditions is a more direct change to the evaluation. Retaining repeated occurrences makes type knowledge insufficient whenever several candidates realize the same word. Keeping only the first instance weakens that requirement. Fine-tuned BERT’s advantage over sentence-augmented fastText in the former condition, alongside their comparable performance in the latter, locates the observed advantage in the more context-demanding test. It does not require treating fastText as context-free in the full retrieval experiment. Appending the sentence vector already gives fastText an occurrence-dependent input. The distinction is in how that information enters the word representation.

The paper offers a qualitative check on this reading through English–German examples. In one translated sentence, *like* introduces a comparison near the beginning and also occurs as part of an expression of willingness. The German counterparts, *wie* and *möchte*, correspond to different positions in that same sentence. Even finding the correct sentence leaves a word-selection problem to solve. Other examples use *order* to mark purpose or to refer to an orderly state, and *close* to express proximity, the shutting of a business, a relationship, or an ending. The examples illustrate distinctions the retrieval metric can register. They are selected cases and give no estimate of how often those particular senses are handled correctly. [Word sense disambiguation](https://md.research.elamur.ai/free/en/concepts/word-sense-disambiguation/)

#### Script and word class reveal different weaknesses

The language comparison gives the authors a way to examine a hypothesis about multilingual pretraining. Bulgarian and Greek are written in scripts different from English and are the weakest pairs in the original encoder’s retrieval experiment. They also receive the largest downstream gains in the main XNLI comparison. The shared-vocabulary explanation predicts a pattern of this sort. When words with identical surface forms can use shared vocabulary entries, surrounding words may gain similar representations through the masked prediction objective. English has fewer opportunities for that particular mechanism in languages written in a different script.

The post-alignment results show that the weakness in those pairs can be reduced with explicit word links. They do not isolate script as a cause. In the language comparison, script changes together with the language and the properties of its data. There is no manipulation that rewrites the same text in a different script while preserving the examples. The evidence supports the interpretation that shared writing can contribute to the observed pattern. The alignment intervention demonstrates that the initial disparity in this experiment can be addressed even when lexical overlap is limited.

For the part-of-speech comparison, the paper applies a common tagset so the categories can be examined across languages. Polyglot supplies the Bulgarian tags and spaCy supplies the others. Numerals, punctuation, and proper nouns are grouped as categories in which written overlap is common. Closed-class tags include grammatical categories, while open-class tags encompass categories such as adjectives and adverbs. The analysis omits the particle, symbol, interjection, and other categories. The groups allow the authors to ask whether strong retrieval for forms that are frequently shared extends to the rest of the vocabulary. [A Universal Part-of-Speech Tagset](https://md.research.elamur.ai/free/en/papers/petrov-2012-universal-part-speech-tagset/) · [Polyglot](https://md.research.elamur.ai/free/en/papers/rfou-2013-polyglot-distributed-word-representations-multilingual/)

For base BERT, the reported category scores favor closed-class over open-class words. After fine-tuning, the two groups have closely similar scores in this diagnostic. That result is more specific than an overall gain. It indicates that the method disproportionately helps a category that the base encoder had found harder, under the test’s first-occurrence convention and its coverage-oriented treatment of training pairs. The authors’ proposed explanation concerns patterns of use. A word with a grammatical role may have a distribution that is recognizable across the languages in the study. Many nouns, in contrast, can occupy the same grammatical position with very different meanings, so co-occurrence can provide less distinctive evidence about which noun is the translation.

#### Frequency rank tests one prediction about usage

The authors also compare contextual retrieval accuracy with the difference between the frequency ranks of the source and target words. A rank expresses how common a word is relative to other words in the same language. Translation pairs can occupy similar places in their respective frequency orderings, or one member can rank much higher than the other. The paper uses that discrepancy as an indicator of differing usage. Base BERT’s retrieval accuracy falls as the discrepancy grows, while the reported post-alignment pattern indicates that the method alleviates that weakness.

This analysis gives the usage hypothesis a prediction beyond the distinction between grammatical and lexical words. The relevant property is now whether the two members of an annotated pair look similar on a measure of use. Frequency rank is a limited proxy. It records relative prevalence and cannot show whether two words take similar arguments, occur in the same constructions, or share the same range of meanings. The authors’ explanation invokes co-occurrence patterns, whereas the plotted measure captures one consequence that can accompany differences in those patterns. The drop in accuracy supports that prediction without identifying which feature of use produces the drop.

The language comparison, the category comparison, and the frequency analysis together show that the initial alignment is uneven in several ways. Their scope differs. The language plot relates whole-language retrieval to downstream accuracy. The category comparison looks at types with a coverage-oriented filter. The frequency plot uses contextual retrieval and examines the behavior of translation pairs at different discrepancies in rank. Keeping those distinctions in view makes it possible to say precisely what changes after alignment. The experiments support improvement on difficult parts of the observed retrieval problem and leave the underlying pretraining mechanisms as hypotheses.

### Limitations

#### Limits the authors identify

The authors explicitly treat translate-train as an approximation to training with target-language supervision. Its task examples originate in English and are machine-translated, so their quality depends on the translation system. Matching translate-train for Bulgarian and Greek means matching the outcomes of those comparison systems on the XNLI test. It cannot establish how the aligned encoder would compare with a system trained on task examples originally written and labeled in either language. The comparison is valuable because it gives the experiment a concrete language-matched reference under the available data conditions.

The paper also acknowledges noise in the word correspondences. Agreement between the two directions is intended to make retained links more reliable, at the cost of coverage. As a consequence, the training objective and retrieval evaluation favor the subset of translations that the automatic procedure can represent as agreed one-to-one pairs. A meaning expressed by several words, an omitted element, or a link proposed in only one direction can be left out. These decisions make the task feasible and define what a correct retrieval can demonstrate. They also make the results about a selected set of word correspondences rather than the entire process of translating a sentence.

The parallel-text requirement remains relevant in every training-size condition. The authors motivate their smaller experiments by noting that suitable corpora can be hard to obtain for languages with limited resources. The result with 10K sentences per language is an observed result for the tested data. The paper gives no minimum that would apply across domains or language pairs, and the number of useful links obtainable from any particular sentence collection depends on its contents and the automatic alignment. [Low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/)

#### Limits that follow from the design

The paper’s use of “zero-shot” is specific to the task-training split. The classifier is trained using English inference labels. The target languages are already present in multilingual pretraining and in the parallel supervision for alignment. Furthermore, the task model is selected by development accuracy averaged across languages, so translated evaluation data enter model selection. The experiment measures transfer without fitting the classifier on target-language training labels. A protocol with no target-language development data would answer a different question.

The chief quantitative evidence for downstream improvement comes from natural-language inference. It shows that the alignment procedure can help a classifier operating on pairs of sentences. Whether the same update preserves all the information needed for other tasks is unresolved. The English regularizer constrains the change in token vectors on the English sentences used for alignment. Its use does not mathematically guarantee preservation of every English task or every distinction that the initial encoder could express in other languages. The evaluation of such preservation would require measurements beyond the inference result.

The link between retrieval and transfer also has two levels. Applying alignment to a pretrained checkpoint and then comparing downstream results supports an effect of that training intervention under the reported conditions. Across languages, the association between retrieval and test accuracy shows that the retrieval score tracks a difference relevant to transfer. The stronger claim that exact word retrieval is itself the causal mechanism is harder to establish. Changes to the encoder can also change sentence-level representations directly, and languages may differ on several relevant dimensions at once. The experiment does not vary the measured retrieval score independently of the encoder update.

Exact occurrence retrieval has a limited interpretation even within the representation space. It measures which candidate wins under a fixed search rule and a particular corpus. It can reward information about sentence context that helps identify the correct occurrence without showing that the vector encodes a context-independent distinction between word senses. The English–German examples demonstrate plausible success on genuine ambiguities, including within a sentence. Their selection does not establish that such distinctions account for all, or most, of the aggregate improvement.

The reported part-of-speech result likewise concerns the eligible types in its diagnostic. Retaining training-seen pairs helps cover more vocabulary classes while giving the analysis less leverage to assess generalization to new translation pairs. The main retrieval test addresses part of that concern with its training-pair filter, and it measures a different candidate problem when it keeps multiple occurrences. The findings from the two protocols can be read together if each is tied to the task it actually measures.

Finally, the multilingual procedure uses English as the common target. This is well matched to downstream training in English and to the chosen corpus pairs. The study does not establish that another language would serve equally well as the reference or that improvements for English paired with several languages guarantee equivalent improvements between those other languages. The appendix extends the coverage of languages and corpora, including an evident change of domain for Urdu. Since language and data source vary together there, it provides an example of successful transfer across domains under the reported setup rather than an estimate of how much domain mismatch affects the method.

### What came after

#### Changing what gets aligned and how

The citing works approach the connection between multilingual representations and transfer at several levels. Some titles identify changes to the alignment objective itself, while others identify alternative transfer methods, benchmarks, or analyses. Those descriptions support comparisons of the questions the works ask. The citation relationships alone leave open which details of the original training loss or retrieval procedure each work reused.

[Using Optimal Transport as Alignment Objective for fine-tuning Multilingual Contextualized Embeddings](https://md.research.elamur.ai/free/en/papers/alqahtani-2021-optimal-transport-as-alignment-objective/) takes up the objective used to fine-tune contextual representations. The BERT paper specifies individual links between occurrences and pulls the linked vectors together with squared distances. The later work’s stated direction is to make optimal transport the alignment objective. It thus revisits the part of the method that tells the optimizer what agreement between languages should mean. The title establishes the change of objective. It leaves the treatment of word links, the choice of anchor, and the resulting performance unspecified.

[InstructAlign](https://md.research.elamur.ai/free/en/papers/cahyawijaya-2023-instructalign-high-low-resource-language/) pursues alignment between high- and low-resource languages through continual cross-lingual instruction tuning. The connection is the use of additional training to change cross-language behavior after an initial training stage. In the BERT study, the extra supervision consists of corresponding word occurrences in translated sentences. InstructAlign names cross-lingual instructions as the setting for its intervention. That places the alignment question at the level of following instructions and links it explicitly to differences in language resources.

[How Transliterations Improve Crosslingual Alignment](https://md.research.elamur.ai/free/en/papers/liu-2025-how-transliterations-improve-crosslingual-alignment/) examines transliteration as a route to better alignment. This takes up a factor the BERT paper could examine only indirectly. In the earlier study, a change of script accompanies a change of language, and the authors discuss shared writing as one explanation of the disparities. Transliteration presents the idea of changing the written form of text as part of studying alignment. The title supports that connection without establishing which scripts were tested or how its results compare with the Europarl experiments.

#### Moving between word geometry and task performance

[The Geometry of Multilingual Language Model Representations](https://md.research.elamur.ai/free/en/papers/chang-2022-geometry-multilingual-language-model-representations/) makes representation geometry its subject. The earlier study probes geometry through a concrete search question about which target word occurrence is nearest under a given similarity rule. It then tests an intervention meant to change those neighborhoods. The later work’s topic connects to the representational side of that argument. The title does not identify whether contextual word retrieval is its diagnostic, so the connection is at the level of studying multilingual representations and their spatial organization.

[Identifying Elements Essential for BERT’s Multilinguality](https://md.research.elamur.ai/free/en/papers/dufter-2020-identifying-elements-essential-bert-s/) addresses what enables BERT to operate across languages in the first place. The contextual-alignment paper starts with an existing multilingual ability, measures how unevenly it is realized, and shows that translation-based training can improve upon it. Identifying essential elements frames a complementary question about the conditions under which that ability arises. It relates directly to the earlier paper’s discussion of the shared vocabulary and masked prediction, while the citing work’s title leaves its findings on those factors open.

[MAD-X](https://md.research.elamur.ai/free/en/papers/pfeiffer-2020-mad-x-adapter-based-framework/) brings an adapter-based framework to transfer across tasks and languages. The point of comparison is where the intervention is made. The alignment paper takes gradient steps on the encoder’s weights and then trains for inference. MAD-X places adapters at the center of the transfer framework and explicitly takes up both task and language variation. Those are different ways to organize an intervention for transfer. A citation between the papers does not establish that the adapters implement a word-pair loss.

[XCOPA](https://md.research.elamur.ai/free/en/papers/ponti-2020-xcopa-multilingual-dataset-causal-commonsense/) supplies a multilingual dataset for causal commonsense reasoning. It belongs on the evaluation side of the story. The earlier experiments use XNLI to ask whether a representation intervention helps transfer judgments about sentence pairs. A benchmark for causal commonsense reasoning poses a different kind of language understanding problem. Its connection is that transfer can be investigated through performance on a task with multilingual evaluation data, with the task determining which information needs to survive across languages. The citation does not establish that XCOPA evaluated the exact aligned encoder.

Taken together, these directions extend different parts of the original research question. An objective can change how agreement between representations is rewarded. A training framework can change where the adjustment is made. A diagnostic or benchmark can change what counts as evidence that the adjustment helped. The BERT paper joins those parts in a particular experiment: parallel word occurrences define the supervision, retrieval measures their alignment, and English-trained inference gives the resulting representation a downstream test.

## Cite

Cite as Steven Cao, Nikita Kitaev and Dan Klein. 2020. Multilingual Alignment of Contextual Word Representations. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2002.03518](https://doi.org/10.48550/arxiv.2002.03518) · [arXiv 2002.03518](https://arxiv.org/abs/2002.03518)

```bibtex
@misc{cao2020multilingual,
  title = {{Multilingual Alignment of Contextual Word Representations}},
  author = {Steven Cao, Nikita Kitaev and Dan Klein},
  year = {2020},
  doi = {10.48550/arxiv.2002.03518},
  eprint = {2002.03518},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2002.03518}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
