---
title: "Continual Learning in Multilingual NMT via Language-Specific"
description: "Bérard shows how to add languages to a multilingual translation system by training new embeddings and preserving its existing translation routes."
canonical: "https://research.elamur.ai/free/en/papers/berard-2021-continual-learning-multilingual-nmt-language/"
---
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/berard-2021-continual-learning-multilingual-nmt-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Continual Learning in Multilingual NMT via Language-Specific Embeddings

# Continual Learning in Multilingual NMT via Language-Specific Embeddings

Paper · 2021 · Alexandre Berard

**Authors:** Berard, Alexandre · **Year:** 2021 · **Venue:** Proceedings of the Sixth Conference on Machine Translation · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **18** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/berard-2021-continual-learning-multilingual-nmt-language/cited-by/) · Proceedings of the Sixth Conference on Machine Translation · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.wmt-1.62/)
- [PDF](https://aclanthology.org/2021.wmt-1.62.pdf)

## Summary

Adding a language to a [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) system can mean revisiting every language it already handles. The new language may need written symbols or word pieces missing from the shared vocabulary. Continuing training on its sentences alone can also damage abilities acquired during earlier training. Alexandre Bérard asks whether a multilingual system can learn to read or write a new language from examples paired with [English](https://md.research.elamur.ai/free/en/topics/english/) while keeping its existing translations intact. The paper’s answer is to give the new language its own vocabulary and [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), the numerical representations associated with its vocabulary entries, and to leave the original parameters available for the directions that already use them.

The method makes a distinction between learning to read and learning to write. For a new input language, its embeddings feed the existing translation network. For a new output language, the adaptation changes both the vocabulary the decoder reads from as it generates and the inventory it can select its next piece of text from. It also learns a signal requesting the new output language. Embeddings alone sometimes suffice on the input side. On the output side, the strongest results generally come from [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) selected layers or adding small trainable modules called adapters. The new components are reserved for directions involving the added language, so translations among the original languages can still run through the original parameters.

In the TED Talks experiments, a Greek input vocabulary and its embeddings gave 38.9 [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/) on Greek-to-English test translation and 18.8 on average from Greek into the original non-English languages. Multilingual retraining with Greek, which had genuine training pairs for those non-English directions, scored 40.4 and 19.4. Learning the first encoder layer as well brought Greek-to-English to 40.1 but took the non-English average down to 0.7 when training used only Greek–English pairs. Supplying a little synthetic data for the other outputs recovered much of that ability. Going in the other direction, from English to Greek, adding a last decoder layer and an encoder adapter raised test BLEU from 25.7 with embeddings alone to 34.0.

A larger experiment starts from a ParaCrawl system and adds Arabic, Russian, or Chinese using United Nations data. The results reinforce the difference between input and output adaptation and show how strongly target-side training can depend on filtering the new bitext, the paired sentences used for translation training. The paper also combines separately learned input and output components to translate directly between languages added after initial training. This works well on TED Talks. On the larger experiment’s test, routing through English scores substantially higher than the direct combinations. The study shows both what can be carried forward by keeping a multilingual system fixed and where new training needs to supply evidence about the directions the adapted system will actually serve.

## Deep dive: Continual Learning in Multilingual NMT via Language-Specific Embeddings

Bérard shows how to add languages to a multilingual translation system by training new embeddings and preserving its existing translation routes. · about 36 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

#### A system trained for a known set of languages

A multilingual translation system shares part of its computation across language directions. In a many-to-many setup, a speaker can supply a sentence in one supported language and request a translation into another. A single system can then serve directions for which separate translation networks would otherwise have to be trained and maintained. The paper points to early work on sharing attention across directions and to systems that use a language signal to select the intended output. [Multi-Way, Multilingual Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/firat-2016-multi-way-multilingual-neural-machine/) and [Google’s multilingual translation system](https://md.research.elamur.ai/free/en/papers/johnson-2017-google-s-multilingual-neural-machine/) are examples in that account.

Sharing can affect the quality of translation as well as the number of systems an operator needs. The paper describes earlier work in which [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) benefit from multilingual training, sometimes at a small cost to high-resource languages. It also describes zero-shot translation, in which a system translates in a direction for which its training data contained no directly aligned sentence pairs. An English-centered collection can provide pairs involving English on every training route while leaving translation between other languages to transfer from what the network has learned across those routes. That possibility makes a shared network especially relevant to the practical question of adding one language at a time. [Massively Multilingual Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/aharoni-2019-massively-multilingual-neural-machine-translation/) and [Massively Multilingual Neural Machine Translation in the Wild](https://md.research.elamur.ai/free/en/papers/arivazhagan-2019-massively-multilingual-neural-machine-translation/) describe the multilingual setting that the paper builds on.

This kind of joint training normally assumes that the language inventory is known in advance. Vocabulary construction sees text from the languages the system will handle. Training then exposes the shared parameters to examples from those languages. An extension arrives after both choices have been made. The original network may already be expensive to train, and the original sentence pairs may be inconvenient or unavailable to use again. Rebuilding the vocabulary and repeating multilingual training makes the cost of a new language depend on the work already invested in all the others.

Two difficulties explain why simply continuing training on the new bitext is a poor substitute. The first is vocabulary mismatch. A shared vocabulary built before Greek was added, for example, has no reason to contain the Greek pieces the new training corpus needs. This is especially visible with an unfamiliar alphabet, but vocabulary mismatch also concerns how text is divided into pieces when some characters are already shared. The second is catastrophic forgetting. If updates change parts of the network used by many directions and every new example comes from one direction, there is no training evidence at that point requiring those parts to keep doing their earlier jobs. Vocabulary coverage and retention therefore pose different problems. Fixing the first by replacing a vocabulary leaves the question of what happens when the parameters serving earlier directions are updated.

The paper treats continual learning as an operational problem with several conditions. Existing directions should retain their quality. Adding a language should take relatively little training, and the extra parameters should be small enough to keep serving multiple languages practical on a single GPU. A translated sentence should ideally require the same basic amount of computation as before. Finally, new training pairs involving English should open as many directions as possible. If Greek is added as an input language, the intended benefit is the ability to translate from Greek into previously known languages beyond English. If Greek is added as an output language, the desired transfer goes the other way. These are distinct tests even when the underlying Greek–English corpus supplies both.

#### What earlier adaptation methods offered

One line of earlier work adapted a multilingual translation system to languages it had never seen. As Bérard describes it, the adaptation goal in those studies did not require retaining the quality of the original directions. That is a different starting point from expanding an existing service. An adapted system can be successful on a new direction even if it is no longer suitable for the language pairs that gave it its initial abilities. [Rapid Adaptation of Neural Machine Translation to New Languages](https://md.research.elamur.ai/free/en/papers/neubig-2018-rapid-adaptation-neural-machine-translation/) is one of the examples the paper discusses.

Vocabulary substitution, associated in the paper with Garcia and colleagues, addressed the same practical vocabulary problem more directly. It built a fresh shared vocabulary covering the added language, copied the earlier embeddings for pieces common to both vocabularies, and continued training across the whole network. The training mixture included the earlier data and either parallel or monolingual data for the addition. That procedure uses the earlier system as an initialization and can preserve much of what it learned. It still assumes access to the older data, and Bérard describes the earlier work as finding a small decline on existing languages. The central distinction in the present design is that the replacement vocabulary is local to the new route, so earlier routes can still look up their words in the earlier vocabulary.

Another option was to make the network modular at the scale of whole encoders and decoders. The encoder processes the input sentence. The decoder generates the output from the encoder’s representation and the text generated so far. In the architectures Bérard reviews, an extension can freeze the existing half of the network and train a separate encoder for the new input language or a separate decoder for the new output language. The procedure gives the new language substantial dedicated capacity. The cost is that an entire encoder or decoder can be a large addition each time a language is introduced.

Work on cross-language classification supplied a closer precedent for changing only a vocabulary interface. In the procedure the paper recounts, a system trained on one language learns an embedding table for a second language while the rest of its network is frozen. After task training in the original language, the embedding table for the other language can be inserted for classification. Variants also used language-specific adapters and position embeddings. For translation, an analogous swap must account for both the side receiving a sentence and the side producing text. The decoder also needs a way to choose pieces from a new output vocabulary. [On the Cross-lingual Transferability of Monolingual Representations](https://md.research.elamur.ai/free/en/papers/artetxe-2020-cross-lingual-transferability-monolingual-representations/) and [UNKs Everywhere](https://md.research.elamur.ai/free/en/papers/pfeiffer-2021-unks-everywhere-adapting-multilingual-language/) are the precedents the paper draws on for this approach.

Other studies examined how much work could be done by updating selected components. Thompson and colleagues froze most parameters during domain adaptation and examined updates to individual parts, including source embeddings. Adapter work had already shown how to add a compact trainable transformation to a translation network. Philip and colleagues used adapters to open directions whose languages were individually known to the system. Bérard asks a different question about those same kinds of transformations. Can a system trained on a set of languages use a new vocabulary to read or write a language outside that set, and how much extra adaptation will it require? The paper also describes denoising adapters as a related route to adding languages with monolingual data. [Simple, Scalable Adaptation for Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/bapna-2019-simple-scalable-adaptation-neural-machine/) and [Monolingual Adapters for Zero-Shot Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/philip-2020-monolingual-adapters-zero-shot-neural/) give the background for its adapter comparisons.

### The method, step by step

#### Keep the original route available

The starting point is a many-to-many [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) with a shared vocabulary. The source text is broken into vocabulary pieces and looked up in an embedding table. The encoder transforms those vectors into a representation of the sentence. The decoder uses that representation to generate the target one piece at a time. The original system receives a language code on the source side that tells it what language to generate. French requested as an output and French supplied as an input are therefore separate roles. The output code concerns the former, regardless of the language in which the source sentence is written.

The vocabulary is learned with byte pair encoding, or BPE. This is a form of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) in which repeated merges build vocabulary pieces from shorter pieces. The resulting vocabulary can represent a word through more than one entry. The paper learns a small vocabulary from text in the added language so that its pieces reflect that language’s own written material. A vocabulary entry identifies a piece of text. An embedding row supplies the numerical vector the translation network sees for that entry. These are separate objects, and the entry’s identity is what allows an embedding to be copied even when its row number changes between vocabularies. [Neural Machine Translation of Rare Words with Subword Units](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/) is the earlier BPE work the paper follows.

The original system’s vocabulary and parameters are saved as the route for its original languages. A new route loads the embeddings corresponding to the language being added. If an existing direction has neither a new source nor a new target, it continues to run with the earlier components. The protection from forgetting in that case comes from the way the computation is selected. The training process does not have to relearn or verify every earlier behavior after each update because that route still uses the original values.

Adding a language to a multilingual translation system The steps in order.

#### Teach the system to read a new language

For a new source language, the adaptation begins at the encoder’s input. Bérard builds the new vocabulary, allocates an embedding table for it, and initializes entries shared with the original vocabulary from their previous vectors. The experiment with random initialization changes how these vocabulary entries start. It is separate from the need to retain the original target-language codes for outputs the adaptation data never requests. An ordinary word piece helps represent the input sentence. The output code gives the shared system a direction to follow.

The smallest Greek source experiment learns the Greek embedding table from Greek sentences paired with English translations. The encoder and decoder remain fixed. The embedding rows receive updates from the translation task because their vectors are the input through which the loss reaches the new parameters. For Greek-to-English translation, the route uses the Greek input table and the original English output machinery. For Greek-to-French, the same Greek table can be used with the original request to translate into French and the original multilingual decoder. The paper tests whether the representation learned with English supervision works when that request changes. [French](https://md.research.elamur.ai/free/en/topics/french/)

This is a test of transfer through a fixed interface. During training the new Greek vectors must become useful to the existing encoder for producing English. The parameters used to interpret other target requests stay as they were. The procedure can therefore try an output language without collecting a new aligned Greek corpus for that language. How well it works depends on where the new Greek representations sit relative to the representations the rest of the network already knows how to use.

The paper also trains versions with more source-side capacity. It tries tuning the first encoder layer, tuning the whole encoder, and updating only normalization parameters and biases. In the adapter variants, small trainable transformations are inserted after selected encoder layers, with the original layers frozen. A bottleneck dimension sets the internal size of an adapter in these comparisons. The paper varies both that dimension and where the adapters are placed. Some settings concentrate capacity near the encoder input. Others put a separate adapter after every encoder layer. In all these cases, the adapted parts can be selected for the added source language, leaving the original encoder path available.

Greek-to-English training places all of its translation supervision on English output. A source-side change can therefore learn to help the encoder produce what the decoder needs for English while making it harder to honor a code for a different output. To give an adapted encoder examples of those requests, the paper tries two ways of widening the training mixture. A multi-aligned corpus supplies genuine Greek sentences paired with translations into the old languages. When such alignments are unavailable, the original translation system can translate the English half of the Greek–English training pairs into the other languages. Each generated output is then paired with the original Greek input.

The paper calls the latter method back-translation. The generated material in this setup sits on the output side, and the paper notes that this makes the procedure closer to distillation, where a preexisting system supplies outputs used as training targets. The original Greek sentence is still the input. The generated text gives the new route an example of what following a particular target-language code should produce. The experiments vary the amount of that text and compare genuine and generated examples. They test a practical distinction between having a broadly aligned corpus and obtaining enough evidence to teach the encoder to respect the old requests.

#### Teach the system to write a new language

When Greek is added as a target language, changing the source lookup would leave the decoder without the vocabulary it needs. The decoder uses its target embedding table to read previously generated pieces. It also uses a vocabulary projection to score the entries it could emit next. In the starting system, the source embeddings, target embeddings, and output projection share parameters. In the new Greek route, the decoder’s lookup and output projection still share a table with each other. They now use the entries in Greek’s vocabulary, while the source side for an existing input language can continue to read from the original vocabulary.

The paper also tries an untied Greek variant in which the decoder’s input embeddings and its output projection are learned separately. The ordinary tied setup has a single set of vectors doing both jobs. An update to the vector associated with a Greek piece can affect how the decoder scores that piece as a possible output and how it uses the piece after generating it. Separating the two tables gives those roles independent parameters. The comparison asks whether greater flexibility at that interface pays for the extra storage.

A newly supported target also needs its own request signal. The paper adds a source-side code corresponding to a request for Greek and initializes its vector from the original code requesting English. Other original source embeddings stay frozen. With English–Greek training pairs, the new code learns together with the target-side components. At inference the same Greek request can accompany input from another supported language. The system can then use the older encoder path for that input and the new decoding vocabulary for Greek.

The larger target-side variants change what the encoder passes to the decoder, how the decoder processes it, or both. They include adapters after decoder layers, tuning the final decoder layer, and an adapter after the final encoder layer. An adapter at the end of the encoder can adjust the completed source representation before the decoder receives it. The decoder changes, by contrast, act within the process that turns that representation into new-language output. Their placement becomes important in the experiments because different allocations of a similar parameter budget can produce different behavior on sources other than English.

#### Combine additions and sample training directions

Once source and target additions have been learned, they can be selected together. For Greek-to-Ukrainian, the paper uses the Greek source table and the Ukrainian decoder table, including its projection. The learned code for Ukrainian output is appended to the Greek embedding table so that the source side can supply that request. The route also includes any selected language-specific layers and adapters from the individual adaptations. Where both adaptations insert an adapter after the same layer, the source adapter runs first and the target adapter follows it. The separate training runs need no genuine Greek–Ukrainian pair for this combination to be constructed.

The paper distinguishes this composition from pivot translation. With a pivot, Greek is translated into English, and that intermediate text is then translated into Ukrainian. The second pass starts from English words, using the input distribution the new-target route encountered during training. Direct composition gives the target route the representation produced by the new source route and generates only the final text. Its usefulness depends on whether the independently adapted encoder and decoder can communicate through that representation. The comparison therefore measures both the compatibility of the parts and the cost of relying on English as a separate translation stage.

The TED experiments also include joint addition of several languages. Here a single new BPE vocabulary is trained over the added languages, with its size scaled by the number of additions. They also share the newly trained parameters in that run. This arrangement is distinct from saving independently trained source and target components and joining them only when a particular direction is requested. Joint adaptation shares training capacity across the added languages, while inference-time combination tests whether separate training produced compatible components.

For multilingual training the paper uses a temperature-based rule to sample directions. The data loader can put examples from different directions into a batch. When the training recipe uses this rule, a direction’s corpus size determines its weight as follows.

```
pₖ = Dₖ^(1/T) / (∑ᵢ Dᵢ^(1/T))
```

Here `pₖ` is the probability of selecting direction `k`. `Dₖ` is the number of aligned sentence pairs available for that direction. `T` is the sampling temperature, and `1/T` is the exponent applied to each corpus size. The `∑ᵢ` sums across the eligible directions indexed by `i`, each with size `Dᵢ`. Dividing by that sum turns the weights into probabilities. Raising the temperature reduces the extent to which the largest direction dominates sampling. The experiments use different temperatures at different training stages.

The training implementation listed in the paper is fairseq v0.10.2. The training configurations include Adam, an inverse-square-root learning-rate schedule, and label-smoothed cross-entropy. The baseline retraining procedure also resets the learning-rate schedule and optimizer where specified. The paper points to supplementary material for reproduction. The central experimental difference remains the set of parameters eligible for updates and the set of translation directions represented in the data supplying those updates.

### Experiments and results

#### TED Talks and the evidence for retaining earlier directions

The smaller experiment starts with a 20-language Transformer Base trained on TED Talks. The corpus is multi-parallel, meaning that there are training alignments across its supported directions, rather than only between each language and English. The original language set has 380 training directions in the multi-parallel phase. The starting system first trains for 120 epochs on 38 English-centered directions and then for 10 epochs on the multi-parallel data. The paper cautions that an epoch in the second phase represents approximately 9 English-centered epochs in update count, so the epoch totals have different meanings. The TED corpus is associated with [When and Why Are Pre-Trained Word Embeddings Useful for Neural Machine Translation?](https://md.research.elamur.ai/free/en/papers/qi-2018-when-why-are-pre-trained/).

The starting vocabulary uses 64k BPE merges. Vocabulary construction and training use temperature sampling with `T = 5`, and single characters with aggregate frequency higher than 10 are retained. The Greek vocabulary follows the same general recipe with 4k merges on Greek text. The bilingual systems use joint vocabularies of size 8k. Greek was selected as the main addition because its family and alphabet were both new to this starting system. The additional TED comparisons use Ukrainian, Indonesian, and Swedish, whose scripts were already represented. Indonesian supplies a case in which the family is new while the script is known. The paper also uses inline casing in the vocabulary recipe, following [NAVER LABS Europe’s WMT19 robustness systems](https://md.research.elamur.ai/free/en/papers/berard-2019-naver-labs-europe-s-systems/).

The bilingual baseline starts from scratch using parallel data for the new language. Separate bilingual translations can be chained through English when such a comparison is reported. The main multilingual retraining baseline starts from the earlier system, builds a shared 64k vocabulary that includes Greek, and trains the full network for 10 additional epochs on the expanded multi-aligned corpus. It copies overlapping embeddings and initializes the newly required ones at random. A further version adds Greek, Ukrainian, Indonesian, and Swedish in the same retraining run. In the closer implementation of Garcia and colleagues’ procedure, the new vocabulary has the same size as the original, newly assigned tokens inherit the outdated rows, and examples in the new language are sampled 5 times as frequently. Thus the comparison with retraining is against procedures that already reuse earlier weights.

Evaluation uses the official TED validation and test splits. The main TED results are corpus BLEU, an overlap-based comparison of generated translations with reference translations. The evaluation uses SacreBLEU with no additional tokenization because the TED splits already have word tokenization. Appendix results also use [chrF](https://md.research.elamur.ai/free/en/concepts/chrf/), a character-based reference overlap metric, on validation and test. Direction groups matter throughout. The Greek-to-English entry measures a single direction. The Greek-to-non-English entry averages results over the 19 original non-English languages. Each score is zero-shot with respect to the Greek adaptation when that direction provides no examples to its training run. The full retraining systems in the main Greek tables can have genuine examples for those same directions.

On the original languages, the multi-parallel starting system scores 32.8 into English, 24.3 out of English, and 16.3 between non-English languages on TED test BLEU. Retraining with Greek gives 33.3, 24.3, and 16.6 for those same averages. Joint retraining with the other additions gives 33.2, 24.0, and 16.5. The paper characterizes this comparison as preserving BLEU overall on the original languages. The aggregates show minor movements in both directions across the settings. Freezing and retaining the original route gives a different kind of preservation. It leaves the earlier computation available exactly as it was, independent of whether full retraining would also have kept the aggregate close in this particular corpus.

#### Reading Greek and writing Greek

Greek-to-English TED test BLEU is 38.4 for the bilingual baseline, 38.9 for incremental embeddings alone, and 40.4 for retraining with Greek. For translation from Greek to the original non-English languages, the corresponding test averages are 17.1, 18.8, and 19.4. The source embedding table adds 2.13M parameters to the starting system, which has 80.2M parameters. The bilingual baseline lists 35.7M parameters. The source-only experiment shows how much translation the existing network can perform when given a newly trained input interface. Its score into the non-English languages is especially informative because the embedding table had received translation supervision only on the English output direction.

Increasing source-side capacity gives the training procedure more freedom to specialize. A setting with adapters after every encoder layer and bottleneck dimension 64 scores 41.0 for Greek-to-English TED test BLEU and 0.6 on the non-English average under English-only supervision. The same adapter configuration with genuinely multi-aligned Greek data scores 40.5 into English and 19.5 on the non-English average. The setting using synthetic alignments in comparable quantities scores 40.2 and 19.0. These variants use 5.28M new parameters. The training directions can change the behavior of the same architecture far more than its parameter count would suggest.

TED test BLEU from Greek into the original non-English languages An adapted encoder with English-only examples loses much of its ability to follow other target requests, which multi-aligned training restores.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Bilingual baseline | 17.1 |
| Multilingual retraining with Greek | 19.4 |
| Greek source embeddings only | 18.8 |
| Encoder adapters with Greek to English training | 0.6 |
| Encoder adapters with synthetic multi-aligned Greek data | 19.0 |
| Encoder adapters with genuine multi-aligned Greek data (this paper) | 19.5 |

The Greek target results show another pattern. On English-to-Greek TED test BLEU, the bilingual baseline scores 32.2 and retraining with Greek scores 32.5. The tied target embeddings alone reach 25.7. Adapters after decoder layers raise that to 29.8, and tuning the last decoder layer reaches 32.6. The last decoder layer paired with a final encoder adapter reaches 34.0 on English inputs and 20.8 averaged across the original non-English sources. The retrained system’s corresponding average from non-English sources is 21.1. This paired incremental configuration adds 7.38M parameters. It is a strong result on both groups of sources, although the English and non-English columns favor different settings if considered separately.

TED test BLEU for English-to-Greek translation with different target components Adapting the final decoder layer closes the gap to multilingual retraining, and a final encoder adapter improves that configuration further.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Bilingual baseline | 32.2 |
| Multilingual retraining with Greek | 32.5 |
| Tied Greek target embeddings | 25.7 |
| Target embeddings and decoder adapters | 29.8 |
| Target embeddings and final decoder layer | 32.6 |
| Final decoder layer and final encoder adapter (this paper) | 34.0 |

The two directions also react differently to using larger multilingual data. On the source side, the final destination varies, and a trainable encoder benefits from examples containing the old destination requests. On the target side, the new destination is fixed, but the input language can vary. Using the multi-aligned Greek corpus with the final decoder layer and encoder adapter gives 32.9 for English-to-Greek test BLEU and 21.1 from the non-English sources. That compares with 34.0 and 20.8 for the counterpart trained on English–Greek. The paper finds little practical advantage in that target-side expansion of the training mixture for Greek. The choice depends on which input routes matter most in the evaluation.

The paper can also train several new languages in one incremental run. With shared new source embeddings the Greek test scores in that run are 39.3 into English and 18.9 averaged into the non-English languages. Joint source adaptation with the first encoder layer gives Greek scores of 39.9 and 2.9. Sharing the extension across several languages still leaves the same basic question about the output requests seen in training. In the joint target run using the final decoder layer and encoder adapter, Greek receives 33.0 from English and 20.4 across the non-English sources on TED test BLEU. Those results establish that a joint increment is feasible while leaving room for choosing a different capacity allocation for a particular language.

#### From TED Talks to ParaCrawl and United Nations data

The larger experiment begins with a 20-language Transformer Big 12-2. Its relatively deep encoder and shallow decoder distinguish it from the smaller TED architecture. The initial training corpus comes from ParaCrawl v7.1, with the 19 highest-resource languages aligned to English. Aligning through matching English text supplies pairs between other languages and removes duplicate English entries in the resulting construction. The appendix reports 900.60M lines for the English-aligned corpus across its language rows and 2.043B for the broader alignments. It gives 271.85M unique English lines. These figures describe the training corpus, not the size of any evaluation split. [ParaCrawl](https://md.research.elamur.ai/free/en/papers/banon-2020-paracrawl-web-scale-acquisition-parallel/)

The original BPE vocabulary uses 64k merges, inline casing, and a character frequency threshold higher than 100. Sampling for vocabulary construction uses `T = 5`. The base first trains for 1M steps on English-centered directions with `T = 5`, then for 200k more steps on multi-parallel directions with `T = 2`. Its 255M parameters provide the context for the incremental sizes. Arabic and Chinese bring previously unseen families and scripts in this experiment. Russian uses the same script as Bulgarian and is close to a language already present. That contrast lets the paper compare embedding-only adaptation in settings with different relationships to earlier training.

New training data come from the United Nations Parallel Corpus, UNPC v1.0. The appendix lists 25.17M English-aligned lines for Russian, 20.04M for Arabic, and 17.45M for Mandarin Chinese. The incremental runs filter out any line pair whose source or target is identified as being in the wrong language. They train for 120k steps and use monolingual BPE settings of size 8k for the additions. Chinese is segmented with Jieba before BPE is learned. The English-centered bilingual baselines use a Transformer Big 6-6 architecture, joint vocabularies of size 16k, and 120k steps on the UNPC data. Their Arabic parameter count in the main comparison is 193M. [The United Nations Parallel Corpus v1.0](https://md.research.elamur.ai/free/en/papers/ziemski-2016-united-nations-parallel-corpus-v1/) and [langid.py](https://md.research.elamur.ai/free/en/papers/lui-2012-langid-py-off-shelf-language/) supply the corpus and the language identification procedure.

The larger retraining baselines adapt either the English-centered or the multi-parallel starting system to the earlier ParaCrawl data and new UNPC data. The training recipe samples each new direction with probability 0.05. The remaining probability mass of 0.7 is assigned to the earlier ParaCrawl directions using `T = 5`. The rebuilt vocabulary covers 23 languages. The paper reports that 78% of its tokens were present before and that 84% of the original tokens are present in the replacement. The new languages contribute English-centered training pairs in this setting. This limits the direct evidence available between those languages and non-English languages even in the retraining baseline.

Validation in this experiment uses a split from TED2020 with 3000 randomly selected pairs per translation direction. The paper reports chrF for that split. Testing uses FLORES devtest and spBLEU, which applies BLEU after standardized multilingual sub-word segmentation. The TED Talks test BLEU and FLORES devtest spBLEU therefore come from different splits and scoring setups. Their most direct comparisons are within each experiment. [Making Monolingual Sentence Embeddings Multilingual](https://md.research.elamur.ai/free/en/papers/reimers-2020-making-monolingual-sentence-embeddings-multilingual/) is the paper’s source for TED2020, and the [FLORES benchmark](https://md.research.elamur.ai/free/en/papers/goyal-2022-flores-101-evaluation-benchmark-low/) supplies the test setup.

On the original ParaCrawl directions, the multi-parallel starting system scores 39.0 into English, 36.2 out of English, and 27.6 between non-English languages on FLORES devtest spBLEU. Those averages cover 19 directions, 19 directions, and 342 directions respectively. The corresponding multilingual retraining variant with the additions gives 39.0, 35.8, and 27.5. The paper also benchmarks the starting system against M2M-124, which scores 32.4, 31.9, and 25.7 on the same groups. Bérard interprets that comparison in light of how many languages each system supports. M2M-124 has 615M parameters across 124 languages, while the ParaCrawl starting system has 255M across 20. The comparison places the starting system against another multilingual system on these particular directions.

#### Source and target additions at larger scale

With embeddings alone, Russian-to-English reaches 30.8 spBLEU on FLORES devtest, and Russian-to-original-non-English averages 23.8. For multilingual retraining from the multi-parallel starting point, the corresponding scores are 31.6 and 23.5. Arabic-to-English with embeddings alone scores 24.2, versus 31.0 for that retraining baseline. Chinese-to-English scores 20.5, versus 23.1. The source-only recipe is consequently quite competitive for Russian but leaves more room to improve for Arabic and Chinese. The Arabic source embedding entry is 8.6M in the main results table. Its more precise embedding count is 8.63M, compared with 8.51M for Russian and 13.60M for Chinese. A vocabulary recipe of the same nominal size can thus yield different actual parameter counts.

Adding adapters after all encoder layers gets Arabic-to-English to 31.7, Russian-to-English to 31.3, and Chinese-to-English to 23.5 on FLORES devtest. The same setting averages 1.0, 1.5, and 1.5 respectively into the original non-English languages. The encoder can adapt enough to approach the English-direction baselines, yet the poor transfer to other destinations reproduces the TED failure mode. The first-layer variant trained with 20k synthetic lines per language scores 30.1, 31.4, and 22.8 into English, with non-English averages of 20.8, 24.6, and 17.8. The extra synthetic alignments restore usable non-English output while leaving the English-directed scores close to those of the corresponding first-layer configuration.

For output adaptation, the strongest compact configuration in the paper combines the final decoder layer and an adapter after the final encoder layer. Relative to embeddings alone, FLORES devtest spBLEU into Arabic from English goes from 11.6 to 28.2. The same comparison gives 19.7 and 28.0 into Russian, and 14.0 and 22.5 into Chinese. From the original non-English sources the stronger setting averages 20.0 into Arabic, 21.8 into Russian, and 18.0 into Chinese. Its parameter entry for Arabic is 27.5M. For comparison, the English-directed inputs to the bilingual target systems score 29.1 for Arabic, 27.5 for Russian, and 22.9 for Chinese. The compact setting is competitive with those baselines in the tested directions while giving the multilingual network a new shared output route.

#### Direct translation between additions

On TED Talks, the paper averages over 12 directions among Greek, Ukrainian, Indonesian, and Swedish. Separate bilingual systems give 14.9 TED test BLEU for the direct comparison, and bilingual pivoting through English gives 18.5. Multilingual retraining with the additions gives 22.0. A direct combination of a source adaptation that tunes the first encoder layer and a target adaptation that tunes the last decoder layer and adds a final encoder adapter reaches 21.3. Pivoting through English with the corresponding incremental systems scores 21.6. The choice here is between nearby test results with different inference procedures. The direct combination uses the two adaptations in one translation pass, while the pivot produces and then reads an intermediate English sentence.

The ParaCrawl and UNPC extension averages over 6 directions among Arabic, Russian, and Chinese on FLORES devtest. Direct multilingual retraining gives 13.0 spBLEU, and the best direct incremental combination gives 13.9. That combination uses only embeddings for the added source and uses the last decoder layer plus a final encoder adapter for the added target. Pivoting with incrementally adapted systems reaches 17.7, compared with 18.3 for the bilingual pivot baseline. The earlier TED result therefore establishes that components can combine effectively in one regime. The larger experiment shows that the same general technique can leave a substantial gap between direct translation and the two-pass alternative.

FLORES devtest spBLEU between newly added Arabic, Russian, and Chinese The best direct incremental combination beats direct multilingual retraining, while pivoting through English gives the stronger incremental result.

**The numbers**

| System or setting | spBLEU |
| --- | --- |
| Direct multilingual retraining | 13.0 |
| Direct incremental combination | 13.9 |
| Multilingual retraining with English pivot | 16.8 |
| Incremental systems with English pivot (this paper) | 17.7 |
| Bilingual systems with English pivot | 18.3 |

### What the ablations show

#### Choosing which input parameters to change

The source-side variants separate the ability to learn a new input language from the ability to route that input to several outputs. Greek embeddings alone produce strong TED test results on both English and non-English outputs. Tuning the entire encoder on Greek-to-English increases the English score to 40.4 but leaves 0.6 on the non-English average. A narrow adapter setting after every layer gives the same very low non-English average despite using far fewer new parameters than full encoder tuning. The collapse therefore occurs with both selective additions and broad encoder updates. The paper explains it in terms of the changed encoder’s experience during adaptation. It only processes the request for English in training, so it can cease treating the old non-English codes as useful distinctions when Greek is the input.

The Greek-to-French validation curve puts a time dimension on this effect. The paper shows that the French score can drop after just a few epochs of Greek-to-English training while the trained direction continues to benefit. An output code can remain available in the vocabulary while the adapted network loses the ability to make use of it. This also explains how the study can report catastrophic forgetting and exact retention in the same experiment. One observation concerns the altered route chosen for a Greek sentence. The other concerns the original route, which is still selected for the originally supported directions.

Small parameter changes can preserve more of the original routing. Updating encoder normalization parameters and biases with the Greek embeddings gives 39.5 Greek-to-English TED test BLEU and 17.7 averaged into the old non-English languages when evaluated with the original code embeddings. That uses 2.17M added parameters. The Greek embeddings alone use 2.13M and give 38.9 and 18.8. The comparison exposes a tradeoff even with a narrow adjustment. A small English improvement can coincide with a less effective average across other targets, while the much larger collapse is associated with the more extensive encoder variants.

The training history of the starting system changes the effect of the same adjustment. When the starting system was trained only on English-centered pairs, TED test chrF from Greek into the non-English languages is .403 for embedding-only adaptation and .401 with the 64-dimensional adapters after all encoder layers. With the multi-parallel starting system, the corresponding figures are .417 and .100. The paper finds that adapter changes are less damaging to zero-shot routing in the English-centered starting system in this setup. The opening network’s history belongs in the interpretation of an adaptation result, alongside the new layer or table that training changes.

#### Reusing embeddings and adding examples

The ordinary overlap-initialization comparison also matters because a language-specific vocabulary can share written pieces with the existing vocabulary. With the full Greek source training set, TED test BLEU into English is 38.9 with copying and 38.8 with random initialization. The corresponding non-English averages are 18.8 and 18.7. The final full-data scores are close. The validation comparisons across training-set sizes show a stronger benefit from copying when less Greek data is available. The learning curves also show faster progress with reused embeddings. Copying and preserving destination codes do different work. Copied ordinary pieces give the new table a starting point, while the destination codes are necessary to use the corresponding original output requests.

The reduced-data curves compare adaptation with a bilingual system starting from scratch. The paper finds that the incremental approach attains better results with small amounts of data in the illustrated Greek settings. The comparison includes both directions involving English and uses TED validation BLEU. That result is consistent with the amount of prior training each method can reuse. The bilingual system must learn its translation network from the new data. The incremental route primarily learns how to provide input to, or produce output from, a network that has already processed multilingual text. The curves measure the outcome in the tested setup and provide a separate check on data efficiency from the full-corpus test scores.

The small augmentation experiments help identify what the Greek encoder is missing when trained only to produce English. With the first encoder layer adapted and no extra target data, TED test BLEU averaged from Greek into non-English is 0.7. Adding 1k generated pairs per non-English language raises that average to 18.9 and gives 40.3 into English. Using the adapter variant with 100 generated pairs per language gives 17.4 into the non-English languages and 40.9 into English. A broader genuine Greek corpus has 2.41M line pairs in the multi-aligned setup, yet these much smaller additions already give the encoder useful evidence about its other output requests. The real and synthetic full-data cases in the results show the additional performance available from broader supervision.

The best choice depends on the new language. The paper observes that adapting larger source components is less useful for Ukrainian and Swedish, both examples from families already present in the TED starting system. For Ukrainian, adding the first encoder layer gives .529 test chrF into English, while the embeddings alone give .525. The corresponding non-English averages are .134 and .395. For Swedish, the first-layer and embedding-only variants score .617 and .607 into English, with .104 and .420 across the non-English directions. In these instances the gain on English comes with a large loss of transfer. The appendix includes Indonesian as a further case that has a known script and an unseen family. The comparison gives students of the method a reason to look at the destination groups separately when reading any single aggregate.

#### Where target-side capacity pays off

The target-side setting permits more direct checks on parameter placement because several Greek variants have similar counts. Untying the input lookup and output projection raises English-to-Greek TED test BLEU from 25.7 to 27.1 and the non-English-source average from 16.7 to 17.8. The parameter count rises from 2.13M to 4.25M. The results improve at the vocabulary interface while remaining below what the paper obtains by changing parts of the translation computation. A tied vocabulary with adapters distributed across encoder and decoder reaches 32.7 from English with 2.93M new parameters and 19.6 from the non-English sources.

The paper then compares different ways of spending a larger budget. Tuning the last decoder layer and using a final encoder adapter gives 34.0 from English and 20.8 from other sources on TED test BLEU, with 7.38M new parameters. Broad adapter placement across the network at 7.43M gives 34.0 from English and 18.2 from other sources. Another configuration at 7.43M, using decoder adapters and an adapter at the end of the encoder, gives 33.8 and 20.8. The larger matched-budget comparisons include settings that score 34.2 and 34.1 from English but take the non-English-source average down to 19.8 and 19.0. The ranking depends on where capacity is inserted and on which source languages are tested.

Bérard suggests that more encoder changes can overfit to English inputs when every training source is English. The end-of-encoder adapter offers a smaller intervention at the place where the decoder receives the complete representation. The decoder can gain new output capacity while more of the earlier source processing remains shared. The matched-budget observations are consistent with that interpretation. They directly show where the score differences appear. The behavior of the representations inside the layers is an explanation offered for those differences.

A related comparison tests whether the new target code itself needs to be trained. The alternatives include omitting it, using the fixed original code for English, and using a proxy code from a known language. The table reports TED validation chrF differences against each configuration’s learned-code run, scaled by ×1000. With only embeddings, the code choice can have a noticeable effect. Once more encoder and decoder components are trainable, some alternatives become competitive. The paper describes fixed English as a workable request for Swedish in some configurations and the Russian request as an effective stand-in for Ukrainian. Its proxy comparison has an oracle element. The closest preexisting codes are chosen using distances between trained code embeddings, limiting what the experiment says about choosing a proxy before training.

#### Filtering, composition, and speed

The clean-versus-unfiltered UNPC run gives a particularly direct data check. For the same final decoder layer and encoder adapter configuration, English-to-Arabic FLORES devtest spBLEU is 28.2 with filtering and 18.0 without it. From the non-English sources into Arabic, the averages are 20.0 and 5.2. For Chinese output, the corresponding scores are 22.5 and 13.6 from English and 18.0 and 5.0 from the non-English sources. The experiment isolates the effect of removing pairs whose language was flagged on either side. It shows that the good target-side results depend on the training data reaching that configuration in a usable form. The paper also reports source-side filtering comparisons in TED2020 validation chrF. In the embedding-only source setting the filtered and unfiltered results are identical in the reported cells, whereas the augmented source configuration shows much larger sensitivity. The effect varies with how the training data are used.

The tests between added languages give another way to see what encoder adaptation changes. On TED, the first-layer source configuration that performs poorly when Greek is sent to old non-English targets can work well when combined with separately learned target parameters. The paper suggests that activating those target-specific parameters helps the system produce the intended language even when reliance on the old target codes has weakened. Conversely, encoder adapters that perform especially well into English can give weaker combinations with adapted target components. This matters because a good new-language-to-English score can select a different source adaptation from the one that is most compatible with another independently trained decoder route.

Training curves compare the incremental method to the paper’s implementation of the vocabulary-substitution baseline. They plot TED validation BLEU across updates for the English directions involving Greek. The paper finds that incremental adaptation reaches higher validation performance with fewer updates in this comparison. Separately, the direct versus pivot experiments address inference procedure. Direct composition eliminates a separate intermediate translation pass. The experiments give quality scores for the choice, and the paper explains the difference in computation in terms of how many translation passes it requires. It also observes that retraining may become a reasonable use of computation when several additions are planned together on both sides of translation.

### Limitations

#### Limits the paper identifies

The method’s strongest guarantee applies to directions using entirely original components. That follows from how the earlier route is kept available. The paper reports much weaker results when an altered encoder has to apply old target requests to a new input language, and it shows that the severity depends on the adaptation setting. It recovers transfer by giving the adapted encoder data covering more requests, through genuine pairs when available or generated pairs when needed. A claim that the system can add a language with English-centered training is strongest for settings where the original shared computation stays largely fixed or where the new components have shown transfer in the relevant direction.

The paper explicitly recognizes the availability problem for multi-aligned data. TED provides a useful environment for comparing genuine and synthetic matches, including a Greek corpus with 2.41M multi-aligned line pairs. A language being added in practice may lack those alignments. Generating target-side text is a way of using the original system to widen supervision. It still depends on the translation quality of that original system and on the English half of the new bitext. The large-scale retraining comparisons likewise have an explicit data limit. For their new languages, the available training mixture is English-centered.

The practical cost of the baselines also shapes the conclusions. The bilingual alternative can be effective in a single direction, or across directions through an English pivot, but it requires separate translation capacity and a pivot adds a second pass. Full retraining uses the earlier data and can take substantially more work when only one language is being added. The author also allows that retraining can be efficient for several planned additions on both sides. The experiments compare choices with different reuse and serving properties. Their BLEU scores address translation quality within those choices.

The most visible empirical limit is the larger direct-composition result. Learning separate source and target routes is sufficient to construct a direct translation between additions. In the ParaCrawl and UNPC regime, the direct combinations still trail the corresponding pivots on FLORES devtest. The paper accordingly gives evidence for composability, with effectiveness that varies by regime. Its results on target-side filtering similarly qualify how readily the method can be applied to a new corpus. Translation scores deteriorate sharply when the UNPC pairs in that comparison are left unfiltered.

#### Limits visible in the experimental setup

TED Talks and ParaCrawl give the paper variation in scale and architecture, while also changing the corpora, languages, domain of the added bitext, and evaluation. The gap between the TED and FLORES direct-combination results cannot be assigned to a single one of those factors from the reported comparison. The base architectures differ, the additions differ, and the target domains and metrics differ. A controlled comparison varying architecture alone would answer a narrower question than the study’s demonstration across these two settings.

The linguistic comparisons are informative examples with variables that move together. Russian in the larger setting has both a known script and a close language in the original training set. Arabic and Chinese differ from the original set in both script and family. Greek on TED likewise brings a new family and alphabet, then Indonesian supplies a known-script case from a new family. The study does not independently estimate how much of an adaptation result comes from script, vocabulary overlap, family, corpus size, or the kinds of sentences available. The examples establish that effectiveness varies across languages and show which variants helped in those particular cases.

The results are mostly automatic reference-based scores, frequently averaged over many directions. An average from Greek into the non-English languages summarizes a group of 19 TED directions. It cannot reveal by itself whether each direction benefits equally. BLEU, spBLEU, and chrF provide evidence about closeness to reference translations under the paper’s scoring procedures. The study reports validation curves and makes comparisons across scores and corpora. Its main evidence still concerns those benchmark outcomes. It leaves questions about particular errors, human judgments of fluency or adequacy, and direction-by-direction variability open.

The English-centered design is also a condition on the transfer claim. Both large and small experiments build the additions around English pairing, and the synthetic procedure uses the English side to generate further targets. In direct composition, the two learned routes have been connected to a base trained extensively on directions involving that language. The study does not compare English with a different common language for training the same additions. The evidence supports transfer from this particular arrangement and shows how it behaves with the chosen initial systems.

Finally, much of the efficiency evidence concerns parameter counts, training updates, and the existence of a direct translation path. These quantities make the compared systems concrete. They do not by themselves measure memory occupancy or latency under a particular production workload. The per-language storage can also vary, as the differing Arabic, Russian, and Chinese embedding counts demonstrate. The joint TED runs and the independent compositions test plausible ways to handle several additions. They leave open how a long sequence of additions would affect capacity, resource use, and quality across the growing set of new-to-new directions.

### What came after

One later citation moves the problem from translation directions to multilingual prompting. [BLOOM+1: Adding Language Support to BLOOM for Zero-Shot Prompting](https://md.research.elamur.ai/free/en/papers/yong-2023-bloom-1-adding-language-support/) studies adding language support to BLOOM for use with zero-shot prompts. The connection is the timing of the language addition. Both papers begin with a system that has already been trained and ask what capability it can gain for another language. In Bérard’s experiments, the transfer test is a translation direction whose aligned pairs were absent from incremental training. In BLOOM+1, the task named in the title is prompting in a newly supported language. That changes what counts as successful use of the addition, even though both questions concern transfer after initial training.

Another later citation takes up the relationship between the size of an update and the robustness of continual multilingual learning. [Parameter-Efficient Finetuning for Robust Continual Multilingual Learning](https://md.research.elamur.ai/free/en/papers/badola-2023-parameter-efficient-finetuning-robust-continual/) places parameter-efficient fine-tuning at the center of that question. Bérard’s translation experiments give a concrete reason to examine both parts together. Embeddings alone can retain transfer across target requests, while an encoder with extra capacity can improve the supervised route and harm other routes using the same adaptation. The later work’s stated focus brings parameter efficiency and robustness together at the level of continual multilingual learning. Its citation connects that problem to the earlier translation study, while the two papers’ stated scopes are the basis for comparing them here.

## Cite

Cite as Alexandre Berard. 2021. Continual Learning in Multilingual NMT via Language-Specific Embeddings. Proceedings of the Sixth Conference on Machine Translation.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{alexandre2021continual,
  title = {{Continual Learning in Multilingual NMT via Language-Specific Embeddings}},
  author = {Alexandre Berard},
  booktitle = {Proceedings of the Sixth Conference on Machine Translation},
  year = {2021},
  url = {https://aclanthology.org/2021.wmt-1.62/}
}
```

> 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)
