mT6: Multilingual Pretrained Text-to-Text Transformer with Translation Pairs
Paper · 2021 · Zewen Chi, Li Dong, Shuming Ma et al.
Summary
A system trained to answer questions in English can be tested on questions in other languages, even if it has never seen question-answering examples in those languages. Whether this works depends in part on what it learned before it saw any examples of the task. The authors of mT6 ask what happens when that earlier training uses sentences paired with their translations. They start from mT5, which learns from text in many languages by reconstructing missing passages, and ask how to give it more direct evidence that differently worded sentences can mean the same thing.
They compare several ways to use the same bilingual examples. One asks the system to translate a whole sentence. Another hides stretches of text on either side of the pair and asks it to recover the missing material. The third, called translation span corruption, keeps one sentence intact and hides stretches of its counterpart. The decoder then writes only the missing text, using a source that gives it both the surviving words in the answer language and a translation of the complete sentence. The authors also change what the decoder can see during pretraining. They split its target into groups and let it use earlier target words within its own group. At the start of each group, it has to turn back to the encoded input.
The combination of monolingual reconstruction, translation span corruption and grouped decoding raises the average XTREME understanding score from 45.0 for the authors’ mT5 comparison to 50.4 for mT6. The system learns each task from English examples and is evaluated across the target languages. The gains include question answering, where mT6 improves the average F1 score on every evaluated dataset. Pretraining exclusively on machine translation gives weaker results overall, and the controlled comparisons show that grouped decoding can help even when pretraining uses only monolingual text.
The gains extend to summarization. On Gigaword, mT6 improves on the authors’ mT5 baseline in English, French and Chinese, both with the full training sets and with only 1K examples for adaptation. On Wikilingua, it improves ROUGE-2 in every tested direction into English. Further tests find that mT6’s encoder is better at matching translated sentences and produces representations that yield fewer word-alignment errors. These measurements show that the changes affect what the encoder makes available across languages, alongside the improvements seen on the downstream tasks.
Deep dive: mT6: Multilingual Pretrained Text-to-Text Transformer with Translation Pairs
mT6 tests how translation pairs and a new decoding objective improve multilingual transfer for language understanding and summarization. · about 37 minutes to read
The problem and its context
What transfers when the task itself is new?
Learning a language and learning a task are separable problems. An English training set for natural language inference, for instance, teaches a system what counts as an entailment, a contradiction or a neutral relationship between sentences. At test time, the same distinction may have to be made in another language. The system has to recognize enough of the meaning in that language to apply a distinction practiced in English. In the paper’s understanding experiments, this is the central test of cross-lingual transfer.
A multilingual pretraining corpus offers one route to that ability. The system reads substantial amounts of text before it is adapted to a specific task. During pretraining it learns from objectives that can be constructed from the text itself, such as guessing what has been hidden. During fine-tuning, it learns from examples with the answers required by the downstream task. If the representations acquired in pretraining make related features available across languages, a task learned in English can make use of those features elsewhere.
The paper distinguishes this process from the choice of which languages are represented in the corpus. A collection can contain abundant material in different languages while leaving their relationships implicit. A French sentence and an English sentence may convey the same request, for example, but a learning objective applied to them separately never presents that correspondence directly. A translation pair supplies it as part of the example. The design question is what to ask the system to do with that pair so that the resulting ability carries over to tasks beyond translation.
From multilingual reading to a shared text interface
The paper places mT6 in a line of systems that learn from multilingual text with self-supervised objectives. In masked language modeling, parts of a sequence are obscured and predicted from the available context. In causal language modeling, the preceding sequence supplies the context for predicting what comes next. In span corruption, a span is a consecutive stretch of tokens, and the learner recovers stretches removed from its input. These objectives differ in what is visible and what must be inferred, even when the underlying text is the same.
Multilingual BERT and XLM-R exemplify the masked-language approach in the paper’s account. Their multilingual corpora permit shared training across languages without requiring a translation for every sentence. The mT6 authors inherit a different interface from T5. In T5, the output of a task is expressed as text. A classification task can be represented by an input sentence or sentence pair and a target such as entailment. A generation task, such as summarizing a passage, already has text on both sides.
The underlying Transformer has an encoder and a decoder. The encoder reads the input sequence and produces internal vectors that represent it in context. The decoder uses those vectors and its own earlier output to predict the next output token. A token is one unit in the sequence processed by the system. Words and parts of words can be represented as tokens, and so can markers introduced for training. The encoder-decoder division matters in mT6 because the authors change both what is placed on the input side and how much of the target history the decoder is allowed to see.
mT5 had already brought this interface to multilingual pretraining. The paper describes the original system as learning from mC4, a Common Crawl collection covering 101 languages. Its pretraining task is monolingual span corruption. The same text-generation objective used to predict the missing passages can also predict a label or an answer during task adaptation. That gives the authors a common starting point for investigating whether bilingual pretraining changes the value of the resulting system as a general-purpose starting point.
Other encoder-decoder approaches provide context for the choice of target. MASS learns to predict a randomly obscured stretch of a sequence. BART uses a corrupted input to recover the original sentence as a whole. PEGASUS pretrains on missing sentences in a setting designed around abstractive summarization. The paper also describes mBART as an example of multilingual denoising with benefits for neural translation. These approaches illustrate that selecting what to regenerate is a substantive part of designing a pretraining task.
What translation pairs had already made possible
The paper’s account of earlier cross-lingual work gives translation data several roles. In XLM’s translation language modeling, a bilingual pair supplies the context for masked prediction. A token whose immediate context is incomplete may have a counterpart in the sentence on the other side. This is the closest precedent the authors name for corrupting the concatenated translation pair in mT6. The mT6 version expresses the missing pieces as an output sequence for a decoder to generate.
Other approaches make different aspects of the pair central to training. InfoXLM uses a contrastive objective, in which the association between translations is part of the learning signal. AMBER encourages agreement between attention patterns computed in opposite directions within a translation pair. XLM-Align uses implied correspondences between tokens to improve cross-lingual transfer. The paper also discusses approaches that combine material from different languages in a single sequence or obtain pseudo-parallel sentences through back-translation. Each route gives a different answer to the question of what information the learner should extract from a pair.
There is also a precedent for combining a denoising task with translation in an encoder-decoder system. The authors discuss XNLG in connection with both pretraining for cross-lingual generation and transfer to tasks such as summarization. Whole-sentence translation is therefore a natural comparison for mT6. A sentence provides the input and its translation provides the target, with no separate masking procedure. The open question is which use of parallel text is most effective when the goal is a single pretraining scheme for both understanding and generation tasks.
A second question concerns the behavior of the decoder. If all earlier target tokens are available during training, the prediction near the end of a target can draw on a great deal of information from within the target itself. The authors want the decoder to get more practice using the encoder’s representation of the input. That motivation is independent of the source of the text. A decoder might lean on its target history when filling in gaps in a monolingual sentence or when writing text in a parallel-data task. mT6 makes bilingual example construction and access to target history separate experimental choices.
The method, step by step
Build a source and a target
The common operation in mT6 is to construct a source sequence and the target sequence that should follow from it. For ordinary span corruption, the source is the sentence with gaps and the target lists the contents of those gaps. For translation span corruption, the source also contains an intact translation. This second sentence can supply evidence about a hidden detail while the visible parts of the first sentence establish how the answer fits into its own language. The decoder has separate reasons to pay attention to each side.
Consider concealing a phrase about when an event happened. The surviving words in the corrupted sentence might establish the kind of phrase that belongs in the gap. If the same timing is explicit in the intact translation, the other sentence can help determine the actual phrase to recover. The target contains the phrase in the language of the corrupted sentence. Restoring it uses the translation as evidence while preserving the original wording as the training answer.
The overall procedure for the main mT6 setting is as follows.
How mT6 trains and adapts to a task
The steps in order.
Start with ordinary text-to-text prediction
The standard objective scores the target one token at a time. To make each prediction, the decoder has the encoded source and the actual target tokens that come before the position being scored. It assigns probabilities to possible next tokens, and the loss penalizes low probability on the required token. The training objective sums that penalty over the target.
L(x → y) = −∑ᵢ₌₁^|y| log p(yᵢ | x, y₍<ᵢ₎)
Here L is the loss for using source sequence x to predict target sequence y, with → marking that direction. |y| is the number of tokens in the target. The summation sign ∑ adds the terms for positions i from 1 through |y|. The token at position i is yᵢ, and y₍<ᵢ₎ is the target prefix consisting of positions earlier than i, empty at the first prediction. p is the assigned probability, and the vertical bar introduces the conditioning information. log takes its logarithm, whose negative contributes to the loss. Minimizing the sum rewards assigning higher probability to the observed target tokens under their respective contexts.
The left-to-right dependence on the target prefix is called autoregressive prediction. Under the standard objective, the information in that prefix grows along the target sequence. At fine-tuning time mT6 uses this ordinary objective on all tasks. During pretraining, the main mT6 setting shortens the history available to some predictions, while keeping the same basic token prediction mechanism.
Give each missing span its own marker
For the monolingual objective, the procedure selects spans of a natural sentence at random. Each selected stretch is replaced by a single marker. The markers are distinct, so the one at a gap identifies which missing stretch the decoder should produce. The target places each removed stretch after its corresponding marker. As a consequence, the encoder sees the words that survived and the locations of the gaps, while the decoder is scored on the missing material and its markers.
This differs from asking the decoder to reproduce the full input sentence. The unmasked words already play their role as context on the input side. The output gathers the removed portions in order, and markers make the transitions between them explicit. In particular, neighboring output spans can have come from widely separated positions in the original sentence. Their separation in that sentence is visible through the masked source, even though the target collects them into one sequence.
L_SC(s) = L(gᵢ(s) → gₒ(s))
L_SC is the loss for span corruption, abbreviated SC, on sentence s. The function gᵢ converts that sentence to the input form by replacing selected spans with distinct markers. The function gₒ converts the same corruption example to the output form by placing those markers before the corresponding removed text. The subscript i on gᵢ denotes the input operation, while o denotes the output operation on gₒ. L is the text-to-text loss, and → specifies which sequence the decoder must generate from which input. The two functions refer to a shared choice of masked spans, since otherwise the answer would describe different gaps from the ones shown to the encoder.
The token markers let the same procedure handle gaps of different lengths. A single input marker can stand for a phrase that takes several output tokens to reconstruct. mT6 needs neither a separate output mechanism for every possible gap length nor a separate prediction head for each masked position. It uses the decoder to write each missing span in sequence.
Use parallel text in different ways
The simplest use of a translation pair is to predict one sentence given the other. The source stays intact, and the target is the complete translation. The task gives the decoder direct practice writing in a different language from the source, including material whose recovery requires accounting for the whole sentence.
L_MT(e, f) = L(e → f)
L_MT is the loss for machine translation, abbreviated MT. The ordered pair consists of an input sentence e and its corresponding translation f. L is the text-to-text loss, and → means that e supplies the source context for prediction of f. The order of the pair determines the direction of prediction in this expression.
In translation pair span corruption, or TPSC, the procedure first creates a single input sequence from the two sentences, then applies span corruption to that sequence. Gaps can occur in either language, so the intact material available at any particular masked position depends on the random corruption. If the same content survives on the other side, it can help the decoder decide what was removed. The target collects the missing spans from the pair.
L_TPSC(e, f) = L(gᵢ([e; f]) → gₒ([e; f]))
L_TPSC is the loss for translation pair span corruption, and e and f are the two sentences in the translation pair. The brackets and separator in [e; f] indicate concatenation in that order. gᵢ produces the corrupted input from the combined sequence, and gₒ collects the spans removed by the same corruption into the target. L scores the resulting text-to-text prediction, with → pointing from the corrupted bilingual input to the missing spans.
The paper uses its bilingual example to draw attention to what the decoder is asked to read as target history. In the paired corruption example, English material about the previous week can be followed by a missing French word from the other part of the pair. Each span can be a valid reconstruction of its own gap. Across the language boundary, however, the succession of spans is unlike the word order of either original sentence. The authors identify that change of language inside a target as a potential problem for what the decoder learns.
Translation span corruption, or TSC, keeps the bilingual context on the source side while drawing the target from only one language. The procedure randomly chooses which sentence will be corrupted. The other sentence is presented in full. All the gaps in the target therefore come from a single sentence, so the preceding output spans come from the same language as the current span. The exact answer still depends on the original wording of the corrupted sentence, which is why the surviving material on that side can help even when its translation is available.
L_TSC(e, f) = L([gᵢ(e); f] → gₒ(e))
L_TSC is the loss for translation span corruption, written for the case in which the selected sentence is e. Its translation is f. The function gᵢ places markers in e, and [gᵢ(e); f] concatenates that corrupted sentence with intact f. The function gₒ builds the target from the missing spans of e. The arrow → marks the direction from the bilingual source to that target, and L scores the prediction. The authors use e for the corrupted side in the formula to illustrate either outcome of the random choice.
How much text is removed determines the information available to solve this task. If a substantial part of the original sentence survives, its own wording may already be sufficient to resolve some gaps. Greater corruption makes that route less reliable and can increase the value of the intact translation. At 100% masking, the authors treat the task as machine translation because the decoder must produce the whole sentence from the other side of the pair. This gives them an experimental way to ask how much of the reconstruction problem should be left to cross-lingual evidence.
Restrict the decoder’s history during pretraining
An ordinary decoder can use every earlier token in the training target. Suppose it is restoring a phrase toward the end of a long succession of removed spans. Some of those earlier spans may contain enough clues to make the answer largely predictable from the output side. The source is still available, but the training loss gives the decoder less reason to consult it in that situation. The authors propose partially non-autoregressive decoding, abbreviated PNAT, to limit that shortcut.
PNAT divides the target into consecutive groups of spans. A group can still be decoded from left to right. At a particular position, the decoder can consult the source and the earlier target tokens in its group. The preceding groups contribute no target tokens to that prediction. The start of a new group therefore resets the usable target history while preserving access to the encoded source. This is partial non-autoregression because the dependency is removed across groups while remaining within them.
m / n_g
m is the number of spans in the target, and n_g is the number of groups. The slash denotes division. In the paper’s description, this is the number of consecutive spans assigned to each group. Group membership is specified in spans, while prediction positions within each group are counted in tokens.
L_PNAT(x → y) = −∑ⱼ₌₁^n_g ∑ᵢ₌ₗⱼ^rⱼ log p(yᵢ | x, y[lⱼ], …, y[i−1])
L_PNAT is the grouped pretraining loss for generating target y from source x, as indicated by →. The outer ∑ runs over the group index j from 1 through n_g, the total number of groups. The inner ∑ runs over target position i from lⱼ, the first token position of group j, through rⱼ, its last. The notation yᵢ denotes the token being predicted. The bracketed indices identify target tokens, and y[lⱼ], …, y[i−1] is the sequence of earlier tokens in the same group, empty when i equals lⱼ. The ellipsis denotes the intervening positions. The vertical bar lists the information available to the probability p. The negative logarithm again penalizes low probability on each required token.
With n_g = 1, the group starts at the beginning of the target and includes its entire prefix as the decoder advances. In that case the grouped loss is the ordinary loss. With multiple groups, a later target position can have a much shorter history than its position in the full sequence would suggest. The same source can thus support several fresh starts. The main mT6 configuration uses 3 groups in pretraining.
This restriction is designed to affect where the signal for prediction comes from. It does not remove any words from the source, change the text expected in the target or assign the groups separate meanings. Consider two missing spans about the same event. If the first contains a detail that would also make the next span easy to predict, placing the spans in different groups means the decoder must recover that detail from the source or from tokens already available within the second group. That is the sense in which the authors expect the encoder to receive stronger training. Whether the resulting system actually transfers better is a question for the controlled comparisons.
Train jointly on monolingual and parallel examples
The main design pairs monolingual span corruption with a single bilingual pretraining task. The authors compare several choices for that bilingual component, and their final configuration uses TSC. Both objectives use the shared text-to-text interface, and both can use the grouped pretraining loss. The two terms describe contributions from different kinds of examples, with s coming from monolingual text and the paired sentences coming from parallel text.
L_mT6 = L_SC^PNAT(s) + L_X^PNAT(e, f), X ∈ {MT, TPSC, TSC}
L_mT6 is the overall pretraining objective, and the plus sign adds its monolingual and bilingual components. L_SC^PNAT(s) is the span-corruption loss on sentence s, evaluated with PNAT. L_X^PNAT(e, f) is the loss on translation pair e, f, also evaluated with PNAT. The superscript names the decoding objective used to evaluate a component. X is the choice of bilingual task, and ∈ says it belongs to the set marked by braces. MT denotes machine translation, TPSC denotes corruption over the joined translation pair, and TSC denotes corruption on one side of the pair. A run uses the selected bilingual task alongside monolingual span corruption.
The authors reconstruct their monolingual corpus from CCNet, following the procedure for CC-100. Their collection contains text in 94 languages. The parallel corpora cover 14 English-centric language pairs. The sources include WikiMatrix, the IIT Bombay corpus, MultiUN and OPUS. English is the common language across the pairs, while the monolingual collection provides a much wider set of languages. The paper uses multilingual sampling with α = 0.7 for both corpora. Here α is the parameter governing the multilingual sampling strategy.
The reported corpus sizes give a sense of why sampling and coverage are distinct considerations. Among the parallel resources, the English–Russian corpus occupies 7.72 GB and English–French occupies 7.63 GB. English–Swahili occupies 0.06 GB. Those are corpus sizes, while the sampling procedure governs the examples seen during pretraining. A language can therefore be part of the parallel setup without having a corpus comparable in size to the largest pairs.
The architecture follows the small mT5 setting. The encoder and decoder each have 8 layers, with a hidden size of 512, an inner feed-forward size of 1,024 and 6 attention heads. The authors use the vocabulary from XLM-R and add 100 distinct markers for span corruption. Their mT5 reimplementation uses the same extended vocabulary. These choices give the main comparison a common architectural and vocabulary starting point.
The main schedule runs for 500K pretraining steps. A batch contains 256 input sequences, with an input length of 512. The learning rate is 1e-4 under a linear schedule with 10,000 warm-up steps. The appendix gives a pretraining noise density of 0.5 and a PNAT group count of 3. The run takes about 2.5 days on an Nvidia DGX-2 Station, and optimization uses Adam.
Turn downstream labels and answers into text
For downstream tasks, all parameters are fine-tuned with ordinary left-to-right text prediction. The authors construct the input and target to match what the task asks for. They also constrain decoding where a task has a known set of acceptable outputs. This makes the comparison a test of pretrained systems adapted through a particular task interface, including the rules that turn a generated sequence into a classification, an answer or a set of entities.
For text classification, the target is the name of the class. In the paper’s inference example, one sentence says that someone can access certain facts and the other expresses that those facts are accessible to the same person. The two sentences are placed in the input with a boundary marker. The target is entailment. The authors restrict decoding to the known label choices. Their fine-tuning setup is task-specific, so it leaves out the task prefix that could otherwise identify which of several tasks a shared input belongs to. The example comes from MNLI.
For extractive question answering, the input contains the passage and the question, separated by a marker. The training target is the answer string. The paper illustrates this with an office-location question whose passage identifies Seoul, making Seoul the answer to generate. The decoder’s answer vocabulary is restricted to tokens that appear in the passage. Formally, that is a restriction on the words or pieces the decoder can write. The fine-tuning target supplies the actual answer, with no need for the decoder to predict numeric start and end positions in the passage.
For named entity recognition, the authors found that directly generating a label for each input token could lead the decoder to repeat O, the tag for material outside an entity. They instead make the target a list of the annotated entity spans. Each item starts with an entity type, continues with the words of the entity, and ends with a separator. In their example, the output identifies Italy as a location and Marcello Cuttitta as a person. The list records the entity types and names that the task asks for, while ordinary words in between have no entry of their own.
The entity decoder follows rules about what type of token comes next. At the beginning of the output or after an entity separator, it can start a new entity with a tag or end the sequence. While writing an entity span, it can use tokens from the input or close the span with the separator. The rules preserve the intended output structure and limit the words available for an entity name. They are part of the downstream setup, distinct from the grouped decoding used during pretraining.
Summarization fits the text-to-text interface directly. The passage or source sentence becomes the input and its summary the target. The experiments use greedy decoding, meaning that generation chooses the highest-scoring available next token at each step. The authors apply the same decoding procedure to the systems being compared in their summarization runs.
Experiments and results
Understanding tasks learned from English examples
The understanding evaluation uses six tasks from XTREME. The structured prediction task is WikiAnn entity recognition in 40 languages. The extractive question-answering datasets are XQuAD, MLQA and TyDiQA-GoldP. XNLI measures natural language inference, while PAWS-X measures paraphrase identification. The common feature is the transfer protocol. For each task, the authors fine-tune on the English training set and use a single resulting checkpoint to evaluate all the target languages.
WikiAnn is scored with F1, a measure that balances precision and recall for the entities identified. The headline scores for question answering are also F1, in this case reflecting overlap between predicted and reference answers. The detailed QA results include exact match, which credits an answer when it matches the reference as a whole. XNLI and PAWS-X report accuracy, the share of examples assigned the correct label. The overall XTREME score in this paper averages the task scores, bringing together measures with different interpretations. The main comparison reports results averaged over five runs.
The mT5 reimplementation is the reference for the main gains. It gives the authors a monolingual span-corruption baseline under their experimental setup. The comparison also includes a translation-only system, labeled NMT, and controlled combinations of the monolingual task, the parallel tasks and grouped decoding. The paper separately reports an mT5 result obtained with a larger batch size and more pretraining steps. That separate row uses a different training budget from the main comparison.
The average XTREME score rises from 45.0 with the authors’ mT5 baseline to 50.4 with mT6. On WikiAnn, the average entity-recognition F1 is 43.1 for mT5 and 44.7 for mT6. XNLI accuracy rises from 57.2 to 64.7, and PAWS-X accuracy from 78.0 to 82.2. These scores answer the question of whether an English-trained task system performs better across the benchmark languages in aggregate. The exact-match results and the language-level detail give ways to investigate what that aggregate means.
XQuAD average F1 after English-only fine-tuning
Grouped decoding with translation span corruption yields the highest F1 among these pretraining settings.
The numbers
| System or setting | F1 |
|---|---|
| Translation only | 12.5 |
| mT5 reimplementation | 42.1 |
| Monolingual corruption with grouped decoding | 45.1 |
| Monolingual corruption and translation pair span corruption | 46.2 |
| Monolingual corruption and translation span corruption | 47.6 |
| mT6 (this paper) | 50.4 |
XQuAD gives a useful view of the QA result because both scoring rules improve. Its average exact match rises from 29.1 with mT5 to 36.4 with mT6 alongside the F1 change. On the English test set, mT5 obtains 68.6 F1 and 56.7 exact match, while mT6 obtains 74.2 F1 and 62.4 exact match. On the Arabic test set the corresponding scores are 25.1 F1 and 14.7 exact match for mT5, and 40.4 F1 and 25.2 exact match for mT6. The procedure learns the answer format in English, and the Arabic results show how well each pretrained system can apply that format to another language.
On MLQA the average F1 scores are 37.6 for mT5 and 44.1 for mT6, with average exact match increasing from 24.2 to 29.3. On TyDiQA-GoldP the average F1 figures are 30.7 and 36.0, and exact match goes from 20.2 to 24.9. The agreement between F1 and exact match across the QA datasets matters because an overlap score can improve through partly correct answers. Here the share of whole answers matching the references also improves on average.
The TyDiQA appendix illustrates the role of language coverage. Swahili is represented in the parallel training data. On its TyDiQA test set, mT5 scores 25.5 F1 and 13.6 exact match, while mT6 scores 35.9 F1 and 24.5 exact match. Telugu is absent from the parallel-pair list. Its F1 scores are 11.2 for mT5 and 16.3 for mT6, with exact match of 4.5 and 10.9. These examples show that an improvement can occur for a language outside the bilingual training pairs under the joint setup. They also show that improvements can coexist with low absolute scores.
For inference, the English XNLI test accuracy is 75.4 for mT5 and 78.4 for mT6. The French test scores are 62.0 and 70.6, while the Swahili test scores are 42.4 and 51.5. PAWS-X presents a related pattern. Its English accuracy rises from 91.6 to 93.5 and its Spanish accuracy rises from 80.7 to 87.3. These examples give some context for the paper’s separate analysis of whether the English advantage over other languages becomes smaller.
The translation-only system makes the importance of the pretraining recipe visible. On XNLI it obtains 64.8 accuracy, close to the headline mT6 result of 64.7. On PAWS-X it obtains 55.0 accuracy, and on WikiAnn it obtains 27.3 F1. The QA results are also markedly weaker, including the XQuAD value in the figure. These results explain why the authors examine translation as one way of using the parallel corpus and retain an ordinary monolingual objective in the joint variants. Success at learning a sentence-pair classification task from a translation-trained starting point does not tell a reader how well the same starting point will serve span extraction and other classification tasks.
The separately listed mT5 system trained with a larger batch and more steps scores 50.5 F1 on WikiAnn, 58.1 on XQuAD and 54.6 on MLQA. On TyDiQA it scores 35.2 F1. Its classification accuracies are 67.5 on XNLI and 82.4 on PAWS-X. That row helps place the main gains in the context of what an mT5 training run with a different budget can achieve. The evidence about the effect of the training recipe comes from the authors’ own comparisons under the shared setup.
Summaries in the source language
For multilingual summarization, the authors use Gigaword examples made from the first sentence of an article and its headline. The sentence is the input and the headline is the target. The experiments cover English, French and Chinese. For each language, the full dataset has 500K examples for training, 5K for validation and 5K for testing. The authors also adapt the systems using 1K training examples to examine the value of pretraining when fewer task examples are available.
On Gigaword, each run lasts 20 epochs, with 32 examples per batch and the learning rate set to 0.00001. The results are averaged over three runs for mT5 and mT6. The paper reports ROUGE-1, ROUGE-2 and ROUGE-L. ROUGE scores compare generated text with reference text. The first two reported variants track overlap in individual words and word pairs respectively, while ROUGE-L uses a shared subsequence. Higher scores indicate greater agreement with the reference under the corresponding measure. ROUGE
With full training data, English test ROUGE-2 is 24.45 for mT5 and 24.65 for mT6. The French test scores are 36.78 and 37.61, and the Chinese test scores are 44.08 and 44.20. The other ROUGE variants move in the same direction. For example, French test ROUGE-L improves from 50.61 to 51.30, while English test ROUGE-1 improves from 46.58 to 46.82. Some of the full-data differences are small, so the result is best read as a consistent ordering across these reported conditions.
French Gigaword test ROUGE-2 with 1K training examples
mT6 gives higher word-pair overlap than mT5 in the reduced-data setting.
The numbers
| System or setting | ROUGE-2 |
|---|---|
| mT5 reimplementation | 17.25 |
| mT6 (this paper) | 18.70 |
The reduced-data runs show larger gains in several cases. With 1K training examples, English test ROUGE-2 is 10.89 for mT5 and 11.44 for mT6. On the Chinese test set the scores are 31.20 and 33.17. The French comparison in the figure is accompanied by a rise in French test ROUGE-1 from 32.56 to 35.07 and in ROUGE-L from 29.75 to 31.39. The low-data scores remain below the corresponding full-data scores. Within the lower-data condition, the bilingual pretraining recipe supplies a better starting point by the reported metrics.
The Gigaword table also gives earlier results for XLM and XNLG, each with 800M parameters, alongside mT5 and mT6 configurations with 300M parameters. These are comparisons to results reported by earlier work. On the Chinese test set, for example, full-data mT6 obtains 44.20 ROUGE-2, compared with 42.57 for XLM and 44.93 for XNLG. On French the corresponding scores are 37.61, 39.20 and 40.81. The numbers show where the authors’ smaller configuration approaches the cited systems and where those systems retain higher scores.
Summaries in a different language
Wikilingua tests a different use of summarization. The source passage and its target summary are written in different languages. In the experiments, the source is Spanish, Russian, Vietnamese or Turkish, and the output is English. The system has to determine what information belongs in the shorter text and express it in the target language. In contrast with the English-only adaptation protocol on the understanding tasks, the task examples here are passage-summary pairs in the evaluated language directions.
The authors fine-tune for 100K steps, use batches of 32 and set the learning rate to 0.0001. Their table reports average results over three runs. On the Spanish-to-English test set, ROUGE-2 is 11.36 for mT5 and 11.83 for mT6. The Russian-to-English scores are 8.77 and 9.49. For Vietnamese to English, they are 8.98 and 9.52, and for Turkish to English they are 10.57 and 10.80.
The detailed results report the same ordering for the other ROUGE variants. Russian-to-English test ROUGE-1 rises from 29.14 to 30.40, and its ROUGE-L rises from 23.29 to 24.32. For Vietnamese to English, test ROUGE-1 goes from 28.96 to 29.96 and ROUGE-L from 22.77 to 23.72. Since English is the output language across these directions, the comparison shows a benefit for generating English summaries from several kinds of non-English input. Alongside Gigaword, it shows that the reported generation gains cover both same-language and cross-language summarization.
What the ablations show
The bilingual example and decoder history make separate contributions
The objective comparisons hold the training resources and procedure fixed across the authors’ variants. That lets the reader compare settings in which a specific pretraining task or decoding rule changes. The value of these comparisons is clearest when two rows differ by one choice. The headline mT6-to-mT5 comparison bundles the addition of parallel data, its particular use in TSC and grouped decoding. The ablations test parts of that bundle.
One direct comparison adds PNAT to monolingual span corruption. XQuAD F1 rises from 42.1 to 45.1, MLQA F1 from 37.6 to 38.5 and TyDiQA F1 from 30.7 to 32.3. WikiAnn F1 rises from 43.1 to 43.7, and XNLI accuracy moves from 57.2 to 57.9. PAWS-X moves from 78.0 to 77.5. The gains across the QA tests show that the decoder’s training context matters even in the absence of a bilingual input. The PAWS-X result makes clear that the change is not an increase on every individual measure.
The corresponding comparison for bilingual pretraining adds PNAT to a variant that already combines SC and TSC. With the ordinary decoder objective, the variant reaches 47.6 XQuAD F1 and 40.5 MLQA F1. With PNAT, the respective scores are 50.4 and 44.1. WikiAnn F1 rises from 43.8 to 44.7, and PAWS-X accuracy from 80.3 to 82.2. TyDiQA F1 moves from 36.7 to 36.0, and XNLI accuracy from 65.4 to 64.7. The grouped objective improves the overall recipe and particular tasks while producing a mixed pattern across individual benchmarks.
The bilingual-task comparison can be read with the ordinary decoding rule held in place. Adding translation to SC gives 65.9 XNLI accuracy, compared with 64.0 when adding TPSC and 65.4 when adding TSC. On XQuAD, the same three settings give F1 of 38.5, 46.2 and 47.6, respectively. On TyDiQA, their F1 scores are 29.4, 35.3 and 36.7. MLQA makes the ordering between the corruption variants more interesting. SC with TPSC scores 40.8 F1 there, while SC with TSC scores 40.5. Thus the QA evidence favors using corruption over whole-sentence translation in these joint settings, and the relative performance of the two kinds of corruption varies by dataset.
These comparisons help interpret the authors’ concern about bilingual target order. TSC gives the decoder a target formed from a single language, while TPSC can mix languages in its answer. TSC also keeps one whole translation visible, which changes what information is present in the input. The experiment evaluates the resulting task designs as packages. The performance differences show which package works better under the tested setup, with both target composition and source completeness potentially contributing.
The monolingual PNAT variant does well enough to be competitive with SC plus translation in the paper’s overall discussion. Their task profiles differ substantially. On XQuAD, monolingual PNAT reaches 45.1 F1 while SC plus translation reaches 38.5. On XNLI, monolingual PNAT reaches 57.9 accuracy and SC plus translation reaches 65.9. For someone choosing how to use pretraining resources, the comparison shows why looking at the target task matters. An apparent tie in overall usefulness can cover differences in what the systems can do.
The amount of missing text affects the usefulness of the pair
The authors vary the noise density in TSC while keeping the other hyper-parameters fixed. Noise density is the fraction of tokens selected for masking on the corrupted side. This sweep uses ordinary text-to-text decoding during pretraining to reduce its computational cost. It compares masking levels of 15%, 30%, 50% and 100%, with the last setting representing the whole-sentence translation endpoint. The evaluation again uses the understanding tasks in XTREME, with scores averaged over five runs.
XTREME average score by translation span corruption noise density
The best setting leaves some original text visible alongside the intact translation.
The numbers
| System or setting | average XTREME score |
|---|---|
| 15% masking | 47.4 |
| 30% masking | 48.9 |
| 50% masking (this paper) | 49.4 |
| 100% masking, translation | 46.1 |
The authors interpret the stronger result at 50% than at 15% as evidence that the parallel task benefits from making more of the original sentence unavailable. When much of the same-language context survives, the learner can often infer a gap without drawing heavily on the translation. By masking more, the task can make the complete counterpart more useful. At 100%, the surviving clues in the language of the reconstruction disappear altogether and the experiment changes into generation of the full translation.
The task-type averages show what drives the overall pattern. At 30% masking, QA has an average F1 of 35.9 and classification averages 72.2 accuracy. At 50%, QA averages 35.5 F1 and classification averages 72.9 accuracy. The whole-translation endpoint has QA F1 of 29.1, while its classification accuracy is 72.6. For entity recognition the corresponding F1 values at 30%, 50% and 100% are 41.3, 43.8 and 43.9. The highest overall score at 50% reflects the joint outcome across these measures. An individual task type can favor a different setting.
The paper contrasts this result with T5’s preference for a noise density of 0.15 in monolingual span corruption. The authors’ proposed explanation turns on what survives outside the corrupted sentence. A bilingual input can supply similar information through the intact translation, so removing more on the other side can make the cross-lingual part of the example more consequential. The sweep provides evidence about performance at different masking levels. It leaves open exactly which examples require the translation and how much the decoder relies on it at a given density.
The gap between English and the other test languages narrows
A higher multilingual average can come from several patterns. A pretrained system may become better on the English test set as well as elsewhere, or the largest improvements may occur where the task has to be transferred. To examine that distinction, the authors compute a transfer gap. They subtract average non-English test performance from English test performance for each task. A smaller gap indicates that a larger share of the English test performance is preserved across the other languages. QA uses exact match for this analysis, while sentence classification uses accuracy.
For XQuAD, the gap decreases from 30.4 for mT5 to 28.6 for mT6. The MLQA gap goes from 27.5 to 27.2 and the TyDiQA gap from 27.5 to 25.9. On XNLI it falls from 19.5 to 14.6, and on PAWS-X from 16.0 to 13.2. The reductions thus accompany the gains in the reported test scores. For instance, the XNLI appendix shows an increase on the English test set and improvements on the French and Swahili test sets. The lower gap records how the non-English average moves relative to that changing English reference.
The choice of exact match for QA is important when reading the transfer-gap values. The headline QA comparison uses F1, so a change in the F1 averages is not the quantity the gap describes. In MLQA, for example, the headline F1 comparison, the average exact-match comparison and the exact-match transfer gap answer related but different questions. One captures answer overlap, one captures complete reference matches averaged over the test languages, and one measures the distance between the English reference score and the non-English average.
The encoder’s representations become easier to match across languages
The authors also test the encoder’s output directly. In Tatoeba sentence retrieval, the system is given a sentence and representations from an encoder layer are used to find its translation. Accuracy@1 credits a retrieval when the correct sentence appears at the top of the ranking. The paper averages over the 14 English-centric pairs present in its parallel data and includes both directions between English and the paired language.
The comparison by layer gives information that a final downstream score alone cannot provide. For mT5, retrieval rises and then falls across the encoder layers. For mT6, the authors observe improvement as higher encoder layers are used. At layer 8, mT6 reaches average accuracy@1 of 43.2. The paper reports that this is 35.6 above mT5 at that layer. The result indicates that the late mT6 encoder representations retain information useful for matching translations in this test. The authors suggest this better alignment may help explain why downstream task learning transfers more successfully.
They examine alignment at the word level as well. Given a translated sentence pair, the aim is to identify which words correspond across the languages. The authors take hidden vectors from the final encoder layer and use SimAlign to turn them into proposed word correspondences. The resulting alignments are compared with reference alignments using alignment error rate, for which lower is better.
On the English–German test set, alignment error rate decreases from 35.84 with mT5 to 23.69 with mT6. On English–French it decreases from 19.05 to 12.11, and on English–Romanian from 45.24 to 42.56. The reported average is 33.38 for mT5 and 26.12 for mT6. English–Romanian is absent from the pretraining table of parallel pairs, so this test also supplies an instance of improved token correspondence outside the pairs used for bilingual pretraining. The test concerns the vectors as used through SimAlign. Sentence retrieval and word alignment together show that the learned representation supports cross-lingual comparison at different granularities.
Limitations
Limits and open directions identified by the authors
The authors note that some target languages in TyDiQA and WikiAnn are outside their parallel corpora. That affects the interpretation of translation-only pretraining in particular, since monolingual text supplies coverage beyond the available bilingual pairs in the joint setup. The authors also argue that missing pairs alone are insufficient to explain the weak translation-only performance. Several benchmarks where translations were available still show poor results for that variant, including the extractive QA comparisons. The experiment therefore speaks both to the importance of coverage and to the value of combining training tasks.
The authors frame the connection between better aligned representations and transfer as a potential explanation. The retrieval and word-alignment measurements show that mT6 and mT5 differ in how effectively their encoder outputs can be matched across languages. The downstream results show that they differ in transfer performance as well. Establishing that the measured alignment causes a particular downstream gain would require an intervention that varies that property while controlling other consequences of pretraining. The analyses compare the trained systems and establish that the properties improve together under the paper’s setup.
The conclusion leaves larger-scale pretraining and more applications, including machine translation, to future work. The experiments use the small mT5 architecture and compare the recipes under a particular training budget. The paper uses translation as a pretraining task, while the downstream evaluations cover understanding and summarization. It consequently provides evidence about translation data as preparation for those tasks, with translation quality as an end task left open.
What the comparisons can establish
The main comparison concerns a reimplementation of mT5 trained with the authors’ data and resources. The original mT5 background describes mC4 in 101 languages, while the controlled experiments use reconstructed CCNet data in 94 languages and the extended XLM-R vocabulary. The separately reported longer mT5 training run reaches higher scores on several tasks. A reader can use the controlled comparisons to evaluate the effect of the changed recipe within the paper’s setting. Generalizing the ranking across different corpus choices and training budgets would require further comparisons.
Likewise, the mono-only comparison and the joint comparisons address different questions about the data. The joint variants show what happens when parallel examples are introduced through a particular task. The choice among MT, TPSC and TSC offers better control over how a translation pair is used, because those variants have common training resources. What remains unresolved is how much of the joint-versus-monolingual advantage would survive a comparison with an alternative monolingual corpus supplying an equivalent amount of extra text. The experiment’s strongest evidence concerns the tested combinations of available data and objectives.
Translation coverage is also more specific than the headline benchmark breadth. English occurs on one side of each training pair. The bilingual summarization evaluation uses English on the output side in every tested direction, and the understanding experiments use English labels for adaptation. These are meaningful cross-lingual settings with a common anchor. The results leave transfer from a different fine-tuning language and summarization between non-English languages unanswered. Monolingual coverage across many languages supplies a basis for studying such settings, but the relevant test conditions would differ.
The appendix lists benchmark languages that make coverage worth checking task by task. In particular, PAWS-X includes Japanese and Korean, and neither appears in the parallel-pair table. That qualifies the broad reading that parallel coverage is complete for the understanding tasks other than TyDiQA and WikiAnn. XQuAD and MLQA still offer examples of weak translation-only QA performance within the listed parallel coverage. Using the individual language lists is more precise than treating all remaining datasets as having the same relationship to the bilingual corpus.
The transfer gap is an average relative to the English test set. It can narrow more for some languages than others, and an individual benchmark’s average can improve while some languages lose ground. On WikiAnn, for instance, the appendix reports French F1 increasing from 60.7 to 63.8 while German F1 decreases from 62.6 to 58.2. Such variation is consequential when the intended application serves a particular language. The paper’s per-language results support that finer inspection, while its understanding average describes a broader balance across tasks.
Likewise, the sentence-retrieval test covers the same language pairs as the parallel corpus. It provides direct evidence of better sentence matching within that coverage, and the word-alignment result for English–Romanian extends the analysis to one pair outside it. The evidence for alignment across the full set of monolingual languages remains limited. The word-alignment findings also concern the use of final-layer vectors with a particular alignment procedure. Different extractors or different choices of encoder layers could change the resulting comparison.
The ablations leave some mechanism questions open. The comparison between TPSC and TSC varies both the visibility of the intact translation and the composition of the decoder target. A comparison that preserved one property while varying the other would be needed to isolate the contribution of the mixed-language target. The noise sweep holds ordinary decoding fixed, so its preference for 50% estimates the effect within that setting. The paper uses 3 groups in its main PNAT configuration and gives a comparison with ordinary decoding, leaving the best group count for other target lengths or masking densities undetermined.
The downstream metrics delimit the claims about generation. On Gigaword, the system learns to produce headlines from first sentences, a specific form of summarization. On Wikilingua it learns to generate English from passages in the evaluated source languages. ROUGE measures overlap with references, and the experiments report that overlap under greedy decoding. They leave human judgments of faithfulness and the treatment of facts expressed differently from the reference unanswered. In the full-data Gigaword runs, several score differences are small, and the reported averages provide no measure of variation across the runs. Those results support the stated ordering of the reported scores without establishing the size of the advantage in a fresh run or a different summarization setting.
What came after
The works that cite mT6 span surveys of task formulation, work on multilingual translation and research on cross-lingual pretraining. Their connections differ. A citation can place mT6 among systems with a shared text interface, put it in the context of multilingual translation, or relate it to another way to use cross-lingual training signals. The available descriptions establish these points of contact, while a claim that a particular work adopted grouped decoding or translation span corruption would require evidence about its method.
Pre-train, Prompt, and Predict surveys prompting methods. Its point of contact with mT6 is the text-to-text formulation. In mT6, a choice among inference labels becomes prediction of a label string, and an extractive answer becomes a string to generate from a question and passage. The paper uses task-specific fine-tuning and omits a task prefix in that setup. The survey’s subject puts such choices about expressing inputs and outputs in a wider setting where task formulation is itself a subject of study. Pre-train, Prompt, and Predict
No Language Left Behind addresses the scaling of human-centered machine translation. It connects to mT6 through multilingual translation and the use of translation pairs. The objective in mT6 is to use those pairs to prepare a system for several downstream tasks, with translation itself among the pretraining options. The later work’s stated focus is the translation application. The connection is therefore between related uses of multilingual translation data, with different outcomes at the center of the evaluation. No Language Left Behind
XLM-E studies cross-lingual pretraining via ELECTRA. The mT6 paper already cites its earlier version in discussing multilingual pretraining. The connection is between different choices of learning objective for cross-lingual representations. mT6 measures its objective through an encoder-decoder system that generates target text and then uses that interface for downstream tasks. XLM-E’s title identifies ELECTRA as the basis for its own approach to cross-lingual pretraining. The relationship reflects contemporaneous investigations of how the pretraining objective shapes transfer. XLM-E
The work on self-labeled word alignment has a more direct methodological connection to the alignment question. mT6 discusses it as XLM-Align and describes it as exploiting token correspondences implied by translation pairs. In that approach, token-level alignment helps supply a training signal. In mT6, the translation pair supplies a text reconstruction problem, and token-level alignment is also used afterwards to evaluate what the encoder learned. The work appears in mT6’s own discussion of related research as well as among its citing papers. Together they show two roles for alignment in cross-lingual pretraining, as information to learn from and as a property to measure. Improving Pretrained Cross-Lingual Language Models via Self-Labeled Word Alignment
Cite
Cite as Zewen Chi, Li Dong, Shuming Ma, Shaohan Huang, Saksham Singhal, Xian-Ling Mao, Heyan Huang, Xia Song and Furu Wei. 2021. mT6: Multilingual Pretrained Text-to-Text Transformer with Translation Pairs. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{chi2021mt6,
title = {{mT6: Multilingual Pretrained Text-to-Text Transformer with Translation Pairs}},
author = {Zewen Chi, Li Dong, Shuming Ma, Shaohan Huang, Saksham Singhal, Xian-Ling Mao, Heyan Huang, Xia Song and Furu Wei},
booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
year = {2021},
doi = {10.18653/v1/2021.emnlp-main.125},
url = {https://doi.org/10.18653/v1/2021.emnlp-main.125}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chi-2021-mt6-multilingual-pretrained-text-text/