Breaking Down Multilingual Machine Translation
Paper · 2022 · Ting-Rui Chiang, Yi-Pei Chen, Yi-Ting Yeh et al.
Summary
A translation system that learns several languages gets different kinds of practice depending on which way it translates. When several languages are translated into English, the part that reads the input encounters different languages, while the part that writes the output always produces English. Reverse the direction and those roles change. Breaking Down Multilingual Machine Translation asks how this difference affects what each part learns. The authors run multilingual training on TED Talks, then use the resulting parameters to start bilingual training with a multilingual encoder, a multilingual decoder, or both. They also test what happens when the transferred component is held fixed during bilingual training. This lets them study which part of the system brings a useful starting point to a specific machine translation task.
The encoder is the more consistent beneficiary. On pairs with little bilingual training data, either component can bring an advantage, although the decoder’s contribution depends on how it is transferred, and using both frequently works best. For pairs with more data, transferring the encoder supplies much of the benefit. A multilingual decoder on its own gives weaker and less consistent results. For German-to-English, for instance, the bilingual baseline scores 32.0, transferring only the encoder from training in both directions reaches 35.7, and transferring both components reaches 36.0 on the paper’s TED Talks BLEU score evaluation.
The authors also ask whether different translation directions depend on the same attention heads, the parts of a Transformer that draw information from other positions in a sequence. The encoder often relies on similar heads across language pairs. The decoder’s head rankings agree especially closely when the output is English. Agreement is weaker when the decoder must produce different languages. The authors use that variation to group English-to-other-language tasks by the heads they rely on, then continue training on those groups. This improves several low-resource directions. For English-to-Belarusian, continuing training on just the closest tasks takes the one-to-many system from 9.00 to 15.2 BLEU. The reverse experiment is less successful. When the goal is translation into English, adding selected examples in the opposite direction fails to beat adaptation using translation into English alone.
Deep dive: Breaking Down Multilingual Machine Translation
Breaking Down Multilingual Machine Translation tests when multilingual training helps the encoder and decoder, and how to choose languages for adaptation. · about 30 minutes to read
The problem and its context
The two sides of a translation system see different data
In a bilingual system, the training task has a fixed source and a fixed target. The encoder reads the source sentence and builds a representation the decoder can use. The decoder then produces the sentence in the target language. With multilingual training, the same encoder and decoder participate in several tasks. The amount and kind of extra practice each component gets depend on how those tasks are arranged. Seeing a sentence in German on the source side of one task is a different training experience from having to write a sentence in German on the target side of another.
The paper distinguishes three training arrangements. In many-to-one training, examples come from several source languages and always have English as their target. In one-to-many training, English is always the source and the targets vary. Many-to-many training pools the examples from those two arrangements. This last name has a specific meaning in the study. All the training directions under discussion involve English, so a many-to-many checkpoint supports both sides of an English-centered collection of tasks. The two sides can be studied separately even though they share the same parameters.
For the encoder, many-to-one training presents a range of source-language distributions. For the decoder, the output language remains fixed, though the encoder representations it receives can reflect different sources. In one-to-many training, the encoder keeps reading English and receives a marker that specifies the requested output language. The decoder generates text in a range of languages. An increase in the amount of parallel data can therefore mean exposure to more ways of saying things on the input side, more output text to learn to generate, or both. The number of training pairs alone leaves these possibilities unresolved.
The distinction matters when the starting supply of bilingual text differs by language. With little parallel data for a direction, bilingual training has relatively few chances to learn either how to represent the input or how to write the output. Related experience from other tasks could help on both fronts. Where the bilingual collection is already substantial, the usefulness of additional training depends more on what it adds. The authors examine that question through the contrast between their higher-resource directions and their low-resource languages.
What earlier work established about the asymmetry
Early studies cited in the paper showed how a single neural translation system could serve multiple directions. Some shared an attention mechanism across translation tasks, while others explored how to share the encoder and decoder themselves. Such work made it possible to treat multiple directions as one training problem and opened a route to improving directions with little parallel text, including settings where direct training examples were unavailable. Those findings established reasons to share a translation system. They left open how much of the resulting benefit belonged to its input and output components. The paper traces this line of research through Multi-Task Learning for Multiple Language Translation, Multi-Way, Multilingual Neural Machine Translation with a Shared Attention Mechanism and Universal Neural Machine Translation for Extremely Low Resource Languages.
The direction of transfer had already emerged as an important distinction. In the account given by Chiang and colleagues, Johnson and colleagues found consistent multilingual gains across languages when several source languages shared a target. Arivazhagan and colleagues reported that many-to-one training improved over bilingual training more than one-to-many training did. A whole-system comparison of this kind establishes an asymmetry in the measured outcomes. The asymmetry could concern how the system reads its input, how it writes its output, or how effectively those two parts learn to work together. The earlier studies motivating the question include Google’s Multilingual Neural Machine Translation System and Massively Multilingual Neural Machine Translation in the Wild.
The paper also draws on earlier studies that make individual components accessible to experiment. In the authors’ account, Thompson and colleagues used freezing to study which components matter during adaptation to a new domain. A frozen component participates in producing translations but its learned weights stay fixed during further training. Rothe and colleagues investigated what previously trained checkpoints could contribute to sequence generation. A checkpoint is a saved state from an earlier training run from which a later run can inherit parameters. Here, the checkpoints come from the different multilingual arrangements, and the adaptation data are from a single translation direction. Leveraging Pre-trained Checkpoints for Sequence Generation Tasks
Other work guided the investigation inside the network. Prior research discussed in the paper had examined whether attention heads specialize and whether some can be removed with relatively little loss. That work gives the authors a reason to examine heads individually even when the architecture makes the same set available to every language pair. A related representation study found that the encoder’s output can depend on the requested target language. This raises a question the head analysis can address from another angle. How similar are the internal parts relied on when the input language stays the same but the requested output changes? Are Sixteen Heads Really Better than One?, Investigating Multilingual NMT Representations at Scale
The choice of additional languages was a separate question with practical consequences. The paper describes earlier approaches that look for languages with related linguistic properties. It also cites evidence that the value of adding a similar language depends on the pair and can sometimes be lower than the value of adding unrelated languages. Chiang and colleagues ask whether the trained translation system can supply a different criterion. If several tasks already depend on similar parts of a shared network, those tasks might be useful companions when training continues. The study tests that possibility separately from its investigation of which components carry useful multilingual experience. Choosing Transfer Languages for Cross-Lingual Learning
The method, step by step
Train shared systems in different directions
The starting data are parallel translations from the publicly available TED Talks dataset. A training example associates a sentence in a source language with a corresponding sentence in a target language. The authors prepare one-to-many, many-to-one and many-to-many training runs from this collection. They refer to the resulting systems as En-All, All-En and All-All. In these names, the left side is the source, the right side is the target, and All represents the collection of 59 languages other than English. The multilingual training involves 60 languages including English.
The three training arrangements use the same basic architecture. Before training, the authors split words into smaller units with byte-pair encoding, a method of subword tokenization. They learn the segmentation jointly over the source languages with SentencePiece and use a vocabulary of 32,000 entries. This makes a shared text representation available before the encoder begins its work. In the En-All and All-All arrangements, a special token at the beginning of the encoder input specifies the language to generate. An English sentence can therefore be presented with one target marker in an English-to-Belarusian example and another marker in an English-to-German example.
The network is an encoder–decoder Transformer. The encoder’s attention operates over the input sequence. The decoder has attention that operates within its own sequence and cross-attention that reads the encoder’s output. This distinction matters later. Two directions can show similar head rankings within the decoder as a whole, yet differ in how closely they agree on the heads that connect it to the encoder. Each component has 6 layers, the attention setting uses 8 heads, the state dimension is 512 and the feed-forward dimension is 2048. The label-smoothing setting is 0.1. The authors train with Fairseq 0.10.0. The architectural and software sources are Attention Is All You Need and fairseq.
Transfer one component at a time
For each bilingual direction under study, the authors first train a system from scratch on that direction’s parallel data. This serves as the baseline for the transfer tests. They then repeat bilingual training with the encoder initialized from a multilingual checkpoint and the decoder starting from random parameters. Another run reverses those assignments. In both cases, the copied component can continue to change. The comparison asks whether the knowledge acquired in multilingual training makes a useful starting point while the new partner component learns to translate.
The experiment has a second set of runs in which the copied component is frozen. Consider the case of a multilingual decoder paired with a new encoder. Early in bilingual training, the decoder receives representations from an encoder that has yet to learn how to read the source sentences. If the decoder is trainable, its weights can change in response to those early representations. Freezing preserves the multilingual decoder while the new encoder learns to supply it with usable input. The same reasoning applies when a frozen encoder is paired with a new decoder. Loading and freezing answer related questions. One measures the value of an initialization that can adapt. The other measures what bilingual training can achieve while the initialized component stays fixed.
Finally, the authors initialize both sides from the same multilingual checkpoint and let them adapt to the bilingual task. This is ordinary bilingual fine-tuning of a multilingual system. It retains the encoder and decoder as they worked together at the end of multilingual training and gives both a chance to specialize. The result provides a comparison for the partial transfers. A score close to this joint setting shows how much of the practical benefit can already be recovered by loading one component. A large gap shows that the single-component procedure leaves some benefit unrealized. The gap alone cannot tell how much comes from the second component’s independent knowledge and how much comes from preserving a pair that has already learned to work together.
From multilingual training to targeted adaptation
The steps in order.
Estimate how much the loss depends on a head
A Transformer attention module combines several heads. The authors use their contributions as units of analysis. The idea is to attach a temporary multiplier to the output of each head and ask how sensitive the translation loss is to that multiplier. This gives an operational definition of importance. A head matters for this diagnostic when a small change in its contribution produces a relatively large change in the loss for the examples under examination. The scalar multiplier leaves the ordinary forward computation intact at its evaluation value. It gives the authors a quantity with respect to which they can differentiate. The procedure is adapted from Are Sixteen Heads Really Better than One?.
MHAtt(x) = ∑(h = 1,…,Nₕ) ξₕ Att(Wq⁽ʰ⁾, Wk⁽ʰ⁾, Wv⁽ʰ⁾; x)
Here MHAtt(x) is the multi-head attention computation on input x. The sum ranges over the head index h, starting at 1 and ending at Nₕ, the number of heads in that module. ξₕ is the multiplier on head h and has value 1 for the evaluation. Att denotes the contribution of the individual attention head on x, with Wq⁽ʰ⁾, Wk⁽ʰ⁾ and Wv⁽ʰ⁾ denoting that head’s learned query, key and value parameters. The query and key determine how information is selected, and the value parameters determine the information made available by that selection.
Ĩₕ = Eₓ∼X |∂L(x)/∂ξₕ|
Ĩₕ is the unnormalized importance estimate for head h. L(x) is the loss on an example x, with its corresponding target understood in the loss calculation. ∂L(x)/∂ξₕ is the derivative of that loss with respect to the head’s multiplier. The vertical bars indicate the magnitude of the derivative. Eₓ∼X averages across examples drawn from X, the input population used for the estimate. In practice, the authors use the training objective, maximum likelihood with label smoothing, and report using 100K randomly sampled training sentences for the head-score calculation. The loss measures how well the system predicts the given translation under that objective.
Iₕ = Ĩₕ / √(∑(i = 1,…,Nₕ) Ĩᵢ²)
Iₕ is the normalized score for head h and Ĩₕ is its raw score. i ranges over the heads of the same attention module. Ĩᵢ² is the squared raw score for head i. The square root of their sum gives the length of the vector of raw scores for that module. Dividing by this length places the scores on a common scale within the module. This step matters when scores from different modules are gathered into one comparison. It permits a head’s importance to be assessed relative to the others in its module before its score enters the larger vector.
Compare head rankings across tasks
The authors estimate a separate vector of scores for each ordered translation pair in the multilingual checkpoint under study. Their notation H(lₐ, lᵦ) means the collection of scores for translation from source language lₐ to target language lᵦ. Hᵉⁿᶜ restricts the collection to encoder heads and Hᵈᵉᶜ restricts it to decoder heads. They also analyze decoder self-attention and cross-attention separately. To compare two directions, they flatten both collections into arrays with the heads in the same order. An entry for a given layer and head in one array is compared with the entry for that same head in the other.
Agreement is measured with Spearman’s rank correlation. The comparison concerns the ordering of heads by importance. If two language pairs rank much the same heads near the top and much the same heads near the bottom, the correlation will be high even when their raw sensitivities differ. The authors use this agreement as evidence of common reliance on multilingual parameters. As another measure, they select the top-10 heads for each task and report F1 overlap between the resulting sets. With equally sized sets, more common members give a higher overlap score. This check focuses on which heads make the top group, whereas the rank correlation takes the full ordering into account.
The comparison is meaningful within a checkpoint because the heads at corresponding positions are the same learned heads. By feeding distinct language pairs through that checkpoint, the authors ask how the demand placed on those heads changes with the task. The study then summarizes the direction-by-direction comparisons. For an English-to-other-language task and a task into English, the many-to-many checkpoint supplies a common system in which both can be examined. The one-way checkpoints allow comparisons among the tasks on their own side of English.
Use decoder scores to choose adaptation data
The authors turn the diagnostic into two procedures for selecting examples. The first starts with All-All and aims to improve translation into English. The comparison is between continuing training on the many-to-one data and continuing training on those data together with selected English-to-other-language tasks. To enter the selected group, an outgoing task must have sufficiently high average decoder-head correlation with incoming tasks. The paper writes the selection rule using a sum over 60 terms.
L = {l : (1/60) ∑(i = 1,…,60) Corr(Hᵈᵉᶜ(En, l), Hᵈᵉᶜ(lᵢ, En)) > 0.60}
Here L is the set of selected languages and l is a candidate target language for translation from English. En stands for English. lᵢ indexes the source languages on the incoming side of the comparison, with i the summation index. Hᵈᵉᶜ(En, l) is the decoder-head vector for the outgoing task, and Hᵈᵉᶜ(lᵢ, En) is the corresponding vector for the incoming task. Corr is Spearman’s rank correlation. The prefactor 1/60 gives the average in the displayed rule and the inequality requires it to exceed 0.60. Languages that meet that condition contribute their English-source data to the joint adaptation run.
The second procedure aims to improve translation from English. Every task in this comparison asks the shared decoder to generate a different target language. The authors first use t-SNE to display the decoder-head vectors in a space that can be plotted. In that display, linguistically related languages often lie near each other. The actual grouping uses the head-score vectors and k-means++ with k = 5, where k is the number of clusters. A cluster groups tasks whose head-score patterns are close according to the clustering procedure. The researchers then continue training on the translation data for selected clusters that cover the low-resource directions of interest. They examine cluster adaptation from both All-All and En-All.
A comparison run continues training on groups produced by shuffling the 59 target languages and dividing them into 5 segments at 4 randomly chosen positions. This gives a way to compare the score-based grouping against another way of training on subsets of languages. A further experiment uses a narrower neighborhood from En-All. For an individual task, the authors choose companions with decoder-head correlations greater than 0.80 and continue training with that smaller collection. The cluster and neighborhood approaches both use the original checkpoint to select training companions. The outcome is then assessed by translation quality after adaptation, and the authors recalculate the head correlations to see how the internal comparison changes.
Experiments and results
What the scores compare
The evaluation covers 8 TED Talks languages paired with English. Azerbaijani, Belarusian, Galician and Slovak make up the paper’s lower-resource group. Arabic, German, Hebrew and Italian make up its higher-resource group. The authors single out Slovak as intermediate in training size and note that its behavior can diverge from the other lower-resource languages. These labels describe the relative amounts of bilingual training data in this study. The evaluation follows the selected languages in Massively Multilingual Neural Machine Translation.
The translation metric is BLEU as calculated by Fairseq. It compares generated translations with reference translations and rewards overlap in sequences of tokens. Higher values indicate closer agreement by that measure. The authors use it to compare systems within the same translation direction. They also report the earlier Aharoni and colleagues results as an external benchmark. Their bilingual baseline, their own multilingual checkpoints before adaptation, and this earlier benchmark each serve a different purpose. The bilingual system measures performance with target-pair training alone. The multilingual checkpoints show the starting performance before further training. The earlier results show how the final scores compare with work on the same evaluation setting. The metric and reporting sources are Bleu and A Call for Clarity in Reporting BLEU Scores.
Translation into English
For the smaller bilingual datasets, the paper shows substantial benefits from transferring both components into training for the individual direction. On the TED Talks evaluation for Belarusian-to-English, the bilingual baseline is 1.4 BLEU. All-En before adaptation scores 15.2. Starting with just its encoder gives 1.8 when the encoder is trainable and 6.0 when frozen. Starting with just its decoder gives 1.8 when trainable and 4.1 when frozen. Transferring both yields 19.0. Starting from All-All, the encoder-only transfer reaches 7.0 and the joint transfer reaches 19.4. The earlier Aharoni and colleagues reference score is 21.7, which places the adaptation gains in perspective. The bilingual training benefited greatly from joint initialization, and the external benchmark remains above those runs.
Galician-to-English gives a different view of the same set of comparisons. The bilingual result is 2.8 BLEU on TED Talks. With the many-to-many checkpoint, loading only the encoder reaches 20.6, freezing a transferred decoder reaches 20.1, and training a transferred decoder with a fresh encoder reaches 0.9. Loading both components from that checkpoint gives 31.8. That result exceeds the earlier reference score of 30.7. The frozen and trainable decoder results are particularly informative here because the same kind of transferred component can be associated with markedly different outcomes depending on what bilingual training is allowed to change.
On the larger bilingual datasets, the transfer advantage is easier to obtain from the encoder alone. The German-to-English results from All-All show how close encoder-only transfer can come to joint initialization. The many-to-many checkpoint starts below the bilingual baseline on this direction. Separate bilingual adaptation runs using that checkpoint still benefit strongly from its encoder, whether the decoder is inherited alongside it or learned afresh.
All-All component transfer on TED Talks German-to-English BLEU
The encoder accounts for most of the improvement obtained by loading both components.
The numbers
| System or setting | BLEU |
|---|---|
| All-All before adaptation | 27.1 |
| Bilingual training from scratch | 32.0 |
| Load decoder | 32.2 |
| Load encoder | 35.7 |
| Load both (this paper) | 36.0 |
For Arabic-to-English, the bilingual score is 28.5. Transferring the encoder alone gives 30.6 from All-En and 30.9 from All-All. The corresponding joint transfers score 30.4 and 31.3. On Hebrew-to-English, the bilingual score is 34.8, while encoder-only transfer gives 36.9 from All-En and 37.1 from All-All. The joint transfers are 36.2 and 37.8. On Italian-to-English, the bilingual score is 35.7, and All-All joint initialization gives 38.7. The paper’s Aharoni and colleagues reference scores for Arabic, Hebrew and Italian into English are 28.3, 33.2 and 35.1 respectively. For German into English that reference is 33.0. These TED Talks scores show why the authors regard bilingual adaptation from multilingual training as effective for the higher-resource incoming directions.
Translation from English
On the outgoing side, the benefits of joint transfer remain visible on small bilingual datasets. For English-to-Azerbaijani, scratch training scores 1.3 BLEU on TED Talks. Taking both components from En-All produces 6.4, compared with 3.0 from loading only its encoder and 1.3 from loading only its decoder. For English-to-Galician, scratch training scores 3.9. The En-All encoder-only transfer yields 16.7 and the decoder-only transfer gives 8.1. Loading both reaches 26.9. The corresponding joint transfer from All-All gives 26.4. The decoder can therefore contribute a useful initialization even in a direction where the encoder-only run has the larger single-component score.
For directions where more bilingual data are available, the outgoing comparisons give several examples of strong encoder-only transfer. For English-to-Arabic, scratch training scores 15.6 BLEU. Loading the En-All encoder gives 17.2 and loading both components gives 17.1. For English-to-German, the baseline is 27.1 and the corresponding transfer results are 30.0 and 31.1. For English-to-Italian, the baseline is 32.0 and those transfers score 34.6 and 34.9. The slight reversal between the Arabic encoder-only and joint results shows why the paper compares those settings directly. Giving bilingual training access to both multilingual components offers one strong procedure, and the benefit already present in an encoder-only start can be similar.
The decoder-only runs on these higher-resource outgoing directions have a narrower advantage over scratch training. For instance, transferring just the En-All decoder for English-to-German yields 26.7 BLEU when trained and 28.0 when frozen. For English-to-Italian, the corresponding results are 32.6 and 33.3. The bilingual baseline scores are 27.1 and 32.0 respectively. This variation matters when reading the paper’s headline conclusion. The high-resource decoder sometimes gives a gain, and its contribution as an isolated initialization is less consistent than the encoder’s in these experiments.
Selecting tasks for continued training
For translation into English, the authors compare forms of additional multilingual training starting from All-All. On TED Talks German-to-English, the checkpoint starts at 27.1 BLEU. Continuing on All-En pairs reaches 31.3, and continuing on All-En plus the selected English-source pairs reaches 30.0. For Galician-to-English, the same three conditions score 22.8, 29.7 and 28.3. Azerbaijani-to-English starts at 8.1 and reaches 10.5 under either adaptation procedure. These examples capture the difference between making progress after the original checkpoint and showing that the selected reverse directions make a contribution. Adaptation raises the scores in both procedures, and the selected outgoing tasks give no further improvement over the incoming-only run on these directions.
For translation from English, several grouped adaptation runs improve substantially over their starting checkpoints. English-to-Azerbaijani starts at 3.1 from All-All and 4.9 from En-All. The score-based cluster from each of those checkpoints reaches 7.9. The random groups reach 6.9 and 7.0 respectively. Meanwhile, the English-to-Slovak evaluation gives 21.9 before adaptation from En-All and 26.2 after training on the related cluster. The random En-All group scores 24.7, which is also the bilingual evaluation direction’s score after random grouping from En-All’s row in the adaptation comparison. The Aharoni and colleagues reference for English-to-Slovak is 24.5. In both the Azerbaijani and Slovak examples, group adaptation itself is useful, and selecting tasks by decoder-head scores gives the stronger of the two group results.
English-to-Belarusian shows what can happen when the selected neighbors are narrower than the full cluster. With En-All as the starting point, the related cluster gives 13.9 BLEU and the random group gives 13.1. Selecting only the closest tasks gives 15.2. The earlier reference score is 10.7. The chart uses the adaptation comparison’s spelling of the unadapted En-All score, 9.00.
En-All adaptation on TED Talks English-to-Belarusian BLEU
Continuing training on the closest tasks gives the strongest Belarusian result in this comparison.
The numbers
| System or setting | BLEU |
|---|---|
| Bilingual training from scratch | 1.9 |
| Earlier Aharoni result | 10.7 |
| En-All before adaptation | 9.00 |
| En-All with random group | 13.1 |
| En-All with related cluster | 13.9 |
| En-All with closest tasks (this paper) | 15.2 |
The related clusters vary in effectiveness with both the task and the checkpoint. For English-to-Galician, the All-All checkpoint improves from 20.5 to 27.5 with its related cluster, while its random group reaches 22.5. The En-All checkpoint starts at 24.2, and its related cluster yields 21.0 while its random group yields 23.1. The authors flag Galician as the exception to the broad improvement from cluster adaptation. The two Galician runs also show why the cluster method is tied to the starting system. The vectors come from that checkpoint, and the tasks in its cluster can differ from the ones another checkpoint groups together. Across the English-to-other-language experiments, the evidence for selecting by head correlation comes from these comparisons against both unadapted checkpoints and randomly chosen companions.
What the ablations show
Loading, freezing and keeping the original pair together
The principal component experiments change the origin of the encoder or decoder while keeping the bilingual training task fixed. They ask what would happen if the same training data were available but only one part arrived with experience from the multilingual run. The scratch baseline is essential to the interpretation. A fixed decoder that beats it shows that the transferred decoder already supplies something useful to bilingual learning. A trainable encoder that beats it shows that multilingual training provides a useful starting point on the input side, even with a newly learned decoder. A comparison with joint transfer then shows how much of the bilingual outcome the single-component setting recovers.
Consider Galician-to-English with the many-to-one checkpoint. Loading only the encoder gives 5.9 BLEU on TED Talks, and loading only the decoder gives 5.7. Freezing the inherited encoder gives 19.3, while freezing the inherited decoder gives 16.9. The scratch score is 2.8, and loading both components gives 29.9. The frozen configurations show that both of the inherited components can be used to support this task even if bilingual training updates only their partner. The ordering of the trainable and frozen runs also supports the authors’ decision to test freezing. A score after separate trainable transfer reflects what happens to the initially useful parameters during training as well as the quality of those parameters at the start.
Slovak-to-English illustrates how starting checkpoints can produce different component results on the same bilingual data. With All-En, training the inherited encoder gives 18.1 BLEU, close to the 18.5 scratch score, while freezing it gives 26.3. From All-All, training the inherited encoder gives 28.0 and freezing it gives 23.8. The trainable decoder initialized from All-All gives 20.4, and the frozen decoder gives 26.9. All-All joint transfer reaches 29.6. For this direction, the highest single-component result from All-All belongs to the trainable encoder. The result with All-En favors keeping the encoder fixed. The paper’s note about Slovak’s intermediate amount of training data is relevant when generalizing across the low-resource group.
The scarce-data results give the clearest examples of both components being valuable together. The scratch runs have limited evidence from which to learn how the components should each behave and how their representations should meet. Keeping both multilingual components allows bilingual training to begin with a functioning encoder–decoder interface. For Belarusian-to-English from All-All, 19.4 BLEU with joint transfer sits well above either trainable single-component result, 7.0 for the encoder and 0.5 for the decoder. The experiment measures the benefit of that joint starting point. The decoder-only score cannot be treated as the decoder’s independent contribution to the joint result, because pairing it with a newly initialized encoder changes the task it faces during training.
The higher-resource comparisons make the encoder’s contribution easier to see by itself. With All-En on German-to-English, loading only the encoder scores 35.5 BLEU, ahead of both the 32.0 bilingual baseline and the 33.1 joint transfer from that checkpoint. Freezing the encoder yields 33.0. Loading only the decoder scores 30.3, and freezing it yields 31.4. With All-All on the same direction, the relative ordering of encoder-only and joint transfer shifts, with 35.7 and 36.0 respectively. Strong encoder transfer survives a change of multilingual starting point. The decoder’s single-component performance depends more on the checkpoint and whether its weights can move.
Some individual rows qualify the broad summaries of transfer behavior. With All-All on English-to-German, for example, loading the decoder gives 28.1 BLEU and freezing it gives 27.5, both above the 27.1 bilingual baseline. Loading its encoder gives 29.8 and joint transfer gives 30.3. For Italian-to-English from All-En, the trainable encoder equals the 35.7 bilingual baseline, while the frozen encoder gives 36.4. The results support a pattern across the experiments. Encoders regularly offer a useful initialization, and the consequences of transferring a decoder on its own are more variable, especially once bilingual training has more data.
Which tasks rely on the same heads
The head-ranking comparison asks a different question from the transfer experiment. The authors keep a multilingual checkpoint fixed and change the task used to score its heads. They summarize the agreement across task pairs with mean Spearman correlations. For the All-En checkpoint, encoder agreement among directions into English is .871 and decoder agreement is .973. For English-source tasks in En-All, the encoder mean is .806 and the decoder mean is .720. All-All gives a similar directional pattern within one checkpoint. Among its directions into English, the encoder and decoder means are .898 and .967. Among directions from English, the means are .813 and .762.
Mean head-rank correlation within translation directions on TED Talks training samples
Decoder head rankings agree most closely among tasks that generate English.
The numbers
| System or setting | Spearman correlation |
|---|---|
| All-En encoder, into English | .871 |
| All-En decoder, into English (this paper) | .973 |
| En-All encoder, from English | .806 |
| En-All decoder, from English | .720 |
| All-All encoder, into English | .898 |
| All-All decoder, into English | .967 |
| All-All encoder, from English | .813 |
| All-All decoder, from English | .762 |
The encoder finding is striking because its rankings agree more closely when it reads several languages than when it reads English for several destinations. The English-source input includes the target-language token, which gives the encoder information about which translation it is preparing. In light of earlier evidence that encoder representations can depend on the target, the authors suggest that some heads help construct representations suited to particular output languages. Many heads can still be useful across destinations, as the relatively high English-source encoder correlations suggest. The results offer a possible account of why the encoder benefits from multilingual training in both directions even though the source-language diversity differs.
For the incoming decoder, the common English output gives the authors a way to interpret the high agreement. Generating English may place similar demands on the decoder even when the encoder’s representations vary with the source language. The authors also note that TED Talks supplies an almost identical set of English sentences across the higher-resource pairs. In that setting, the multilingual decoder receives more parallel associations with English, but the range of distinct English outputs may change little. The authors propose this as an explanation for why high agreement among decoder heads can coexist with weak gains from transferring a decoder into an incoming high-resource task. Similar use across directions and useful extra training experience are distinct properties.
Separating decoder attention into its two roles adds detail. In All-En, the mean correlation for cross-attention heads across directions into English is .978, compared with .959 for decoder self-attention. In En-All, the corresponding correlations across tasks leaving English are .662 and .771. The stronger difference in cross-attention matters because these heads read the encoder output. A fixed input language still leaves the outgoing tasks with different demands on the connection between reading and generation. The All-All cross-attention means follow the same pattern, with .980 among incoming tasks and .677 among outgoing tasks. The comparable decoder self-attention scores are .948 and .810.
The top-head overlap analysis changes how agreement is measured. The mean decoder F1 for the top-10 head sets is .925 among incoming All-En tasks and .679 among outgoing En-All tasks. In All-All it is .803 for incoming and .690 for outgoing tasks. That comparison supports the direction difference in the decoder without requiring agreement over the entire ranking. The exact pattern depends on which component is examined. For instance, the En-All encoder’s mean top-head overlap is .839, compared with .683 for the All-En encoder, even though the average full-rank correlation is higher for the All-En encoder. The leading heads and the full ranking capture different aspects of shared use.
Within All-All, the authors can also compare tasks on opposite sides of English. They report an average correlation of 0.44 for encoder head scores in these cross-direction comparisons, with a standard deviation of 0.17. For decoder head scores, the mean is 0.49 with a standard deviation of 0.13. Those comparisons are lower than the within-direction averages. The authors suggest that the split in head use may help explain why including both sides of English during broad training frequently adds little over training in the relevant direction alone. Even though the two sets of tasks exist in the same network, their importance rankings diverge when the roles of English and the other languages are reversed.
What changes after grouping the languages
Training on a related group changes the data distribution seen during continued training. Training on a random group changes it too. The random comparison helps distinguish the general benefit of narrowing a multilingual training run from the particular benefit of choosing languages by head scores. The distinction plays out differently across tasks. For English-to-Azerbaijani, the selected group beats the random group from both checkpoints. For English-to-Belarusian from All-All, the selected group reaches 12.8 BLEU and the random group reaches 13.3. Starting from En-All, the related group reaches 13.9 against the random group’s 13.1. The general tendency in the lower-resource results favors the score-based grouping, with individual exceptions that depend on the checkpoint.
The authors then recalculate decoder-head correlations after adapting to the selected clusters. For the All-All comparison, the mean in the paper’s cluster analysis rises from .762 before continued training to .894 afterward. The standard deviations for those reported comparisons are .141 and .069. From En-All, the cluster containing higher-resource languages changes from a mean of .855 to .866. The cluster containing lower-resource languages changes from .826 to .834. These are correlations on the cluster’s translation tasks, calculated from decoder-head scores. The size of the change varies across configurations. In each of the reported comparisons, the adapted system gives rankings with higher average agreement.
The adaptation experiment into English provides a useful counterpart. The head-based selection rule identified outgoing translation tasks considered more compatible with incoming tasks by the decoder measure. Including the selected outgoing data in continued training still gave weaker TED Talks BLEU than using incoming data alone on most of the evaluated directions. The authors also report that average decoder-head agreement across the two directions did not improve. This connects a negative adaptation result with the diagnostic that suggested the experiment. The score-based grouping worked better within the outgoing tasks, where English stays on the same side and the intervention varies the mix of target languages.
Limitations
Limits the authors identify
The authors describe the resource split as an important condition on the component results. In particular, they single out Slovak as an intermediate case whose behavior can differ from the rest of the lower-resource group. The paper also offers a dataset-specific explanation for some decoder findings. If the English target sentences are almost the same across higher-resource directions, many-to-one training may provide little new English text for the decoder to learn to generate. This explanation concerns how the TED Talks corpus is assembled. Training on a collection where additional source languages introduce a different mix of English targets could provide a different kind of experience to that component.
The authors present their account of the attention patterns as an interpretation. A target-conditioned encoder may help prepare different representations for different output languages. A decoder that always writes English may use similar heads because language generation puts similar demands on it. The authors also raise the possibility that generating many different languages could require greater capacity. The study uses head rankings and relative transfer performance to motivate these explanations. It does not include a capacity comparison that would establish whether expanding the decoder resolves the difficulty.
The paper leaves improved sharing between tasks into and from English open. Its attempted remedy, selecting some reverse-direction data according to the decoder measure, improves on the unadapted All-All checkpoint. Adaptation using only incoming tasks remains stronger. The authors also give a reason to qualify comparisons with Aharoni and colleagues. They attribute differences between the earlier reported multilingual results and their own multilingual starting points to their different batch size and learning-rate schedule. The earlier scores establish a reference for the final TED Talks results. The comparisons within Chiang and colleagues’ runs provide the tighter evidence about the effect of transferring a component or changing the adaptation set.
Limits of what the comparisons establish
The component transfers measure what happens when a particular bilingual training pipeline inherits certain parameters. They do not directly measure how much a component contributed during the original multilingual training. Loading a decoder alone requires a new encoder to learn an interface with it, and freezing that decoder requires the new encoder to accommodate a fixed interface. A low score can reflect difficulty establishing that interface. A high joint score can reflect the benefit of preserving the match between components. The freezing condition addresses the authors’ concern about disturbing a useful inherited component early in training, but it also changes which parameters can adapt. The results are strongest as evidence about which starting configurations help under these conditions.
A rank correlation is likewise a measure of agreement between the relative importances of heads. Identical rankings would still permit the same head to attend to different positions or to extract different information on different examples. A low correlation shows that the rankings vary. The amount of agreement in feed-forward layers, embeddings and other parameters is outside this diagnostic. The estimated importance is also local to the learned system, its loss and the examples used to calculate it. Ranking a head by sensitivity to its multiplier differs from removing the head, retraining with fewer heads or assigning it exclusively to a language. Those interventions would answer further questions about how much functional sharing there is.
The rise in ranking agreement after cluster adaptation establishes an association with the training intervention. It cannot on its own establish that increased sharing caused the BLEU gains. Continuing training on fewer tasks changes the data the system receives and the frequency with which it sees each task. A random grouping gives a comparison against one other way to change that mix, and the results vary by checkpoint and language. The experiments do not isolate the effect of group membership from every difference in group composition. Similarly, the t-SNE display shows how the head vectors appear in a low-dimensional visualization. It is a check on whether the grouping idea is plausible, while translation scores provide the direct evidence for its utility.
The TED Talks results cover a multilingual training collection and a selected set of bilingual evaluation directions, all with English on one side. They establish neither how the same adaptation would work on direct translation between non-English languages nor how well the findings would carry to a different corpus. The reported translation measure is BLEU. It supports comparisons against references at the direction level, with no separate evidence here about which grammatical constructions, terminology or kinds of translation errors improved. The head-score samples come from the training set, so their agreement statistics describe behavior under that sampling procedure. The translation evaluation serves a separate purpose.
There is also a discrepancy in the closest-task result for 28.6 BLEU. The adaptation table places that value under English-to-Galician, and the appendix lists a closest-language group for Galician. The discussion assigns the same value to English-to-Slovak. The direction attached to 28.6 is therefore uncertain from the paper’s accounts. The Belarusian closest-task result of 15.2 is consistent across the table and discussion, and the English-to-Slovak En-All cluster score of 26.2 appears separately from the disputed closest-task figure.
What came after
No later citing studies are identified for this paper. The original study leaves open whether a different training arrangement could increase sharing between tasks that translate into English and tasks that translate from it. The attempt to combine incoming data with selected outgoing pairs gives a direct point of departure for that question. It shows that resemblance in decoder-head rankings was insufficient to make those particular reverse-direction examples improve the stronger incoming-only adaptation.
The study also leaves room to test the narrower claim suggested by the successful outgoing comparisons. A decoder’s head rankings can help identify training companions in an English-centered TED Talks system, with results that depend on the pair and checkpoint. Whether those useful companions stay useful across collections, resource conditions and architectures remains an empirical question. The paper establishes component transfer and attention-head comparison as two ways of investigating that question, one through the outcome of bilingual training and the other through the behavior of the multilingual checkpoint.
Cite
Cite as Ting-Rui Chiang, Yi-Pei Chen, Yi-Ting Yeh and Graham Neubig. 2022. Breaking Down Multilingual Machine Translation. Findings of the Association for Computational Linguistics: ACL 2022.
@inproceedings{chiang2022breaking,
title = {{Breaking Down Multilingual Machine Translation}},
author = {Ting-Rui Chiang, Yi-Pei Chen, Yi-Ting Yeh and Graham Neubig},
booktitle = {Findings of the Association for Computational Linguistics: ACL 2022},
year = {2022},
doi = {10.18653/v1/2022.findings-acl.218},
url = {https://doi.org/10.18653/v1/2022.findings-acl.218}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chiang-2022-breaking-down-multilingual-machine-translation/