Elamur Research

Toward Multilingual Neural Machine Translation with Universal Encoder and Decoder

Paper · 2016 · Thanh-Le Ha, Jan Niehues and Alex Waibel

Summary

A translator that learns from examples has a problem when there are few sentences in the language pair it needs to handle. It may have access to translations from other languages, or to plenty of text in the language it should write. How can it use that material? Ha, Niehues and Waibel approach this as a design problem in neural machine translation. They propose a single encoder to read the input and a single decoder to produce the output, with shared attention between them. Attention lets the decoder draw on different parts of the input as it writes. The design reuses the attention mechanism of a bilingual system and keeps the network at approximately the same scale.

The authors put the language distinction into the vocabulary. Under their language-specific coding scheme, a form such as Obama gets a different entry in English and German. Training can give these entries similar word embeddings, the learned vectors used to represent units of text. It can also keep identically spelled forms apart when they behave differently. In the experiments, the authors first split the text into reusable pieces and then tag each piece with its language. They pool the resulting training examples and learn from them with the usual translation objective.

The paper tests English-to-German translation with bilingual training restricted to TED talks, simulating a shortage of parallel data. Adding French sentences paired with German translations raises the BLEU score on both English-to-German test sets. So does adding German sentences paired with themselves. The initial German-copy experiment gains +2.64 BLEU on tst2013, the result described in the paper’s overview as 2.6 points. A further run takes the German copies from the French–German collection and reaches gains of +2.83 BLEU on tst2013 and +3.12 on tst2014. That comparison shows that the original copy advantage can persist when the French translation examples and the German copy examples have the same number of pairs and share the same German targets.

Copying also helps in the larger training setting associated with IWSLT’16. There, deriving copy pairs from German targets already present in the bilingual corpus yields gains of +3.15 BLEU on tst2013 and +2.32 on tst2014. A larger collection of additional German text helps too, with smaller gains. The architecture is intended to handle multiple languages on either side. The experiments establish a more specific result: auxiliary examples can improve a directly supervised translation direction into German, even when some of those examples contain no English and supply no new German sentences.

Deep dive: Toward Multilingual Neural Machine Translation with Universal Encoder and Decoder

See how language tags let one neural translator learn from several languages and how German copy examples improve English-to-German translation. · about 35 minutes to read

The problem and its context

What another language can contribute

A parallel corpus contains sentences paired with translations. If the task is to translate English into German, the English side gives the system examples of what it must read, and the German side gives it examples of what it should produce in response. The connection between the two is the supervision. German text alone shows what a possible output looks like, and a French–German pair shows how a French input relates to a German output. The paper asks how training can put those different kinds of evidence to work for the English-to-German task.

The motivation is particularly clear for low-resource languages. When a direction has few parallel sentences, the examples available for learning a particular expression or resolving a particular ambiguity can be sparse. If other language pairs update some of the same machinery, the translator may draw on regularities learned from a wider collection. For example, German targets provide opportunities to learn about German output regardless of which language appears on the other side. The harder question is whether the input side can also benefit when the additional examples use different words, and sometimes a different word order, to express related content.

The authors explain the appeal of this idea through the division of work in an encoder–decoder system. The encoder reads the source sentence and builds a representation. The decoder uses that representation to generate a sequence in the target language. In principle, similar content conveyed in different languages could give rise to representations with something in common. A decoder might then learn to use that common information. The authors distinguish semantic content from syntax in this argument. Paired sentences convey related meanings while still having room for substantial differences in order. A representation useful for sharing across languages need not preserve the same arrangement of words across them.

This division also matters for how systems are trained. In the paper’s account, phrase-based statistical translation brings together features learned and tuned separately. Neural translation connects source and target through a network trained end to end. The signal from predicting the target can shape how the source is represented. Sharing the path that carries that signal gives auxiliary examples a way to influence the desired direction. The recurrent encoder–decoder tradition on which the paper draws includes earlier work on learning phrase representations for statistical translation. RNN encoder–decoder phrase representations

Why attention complicated the choice of what to share

A decoder produces a translation incrementally. The source information it needs for a particular decision depends on how far it has got and what it has already generated. Attention addresses this by giving the decoder access to a vector associated with each source position. At each output step, it works out how strongly those vectors should contribute and combines them into a context for that step. The balance can change as the decoder advances, so a sentence has several opportunities to influence the output in different ways. The attention calculation used by Ha and colleagues follows the joint alignment and translation approach of Bahdanau and colleagues. Joint alignment and translation

When each source language has its own encoder, the question becomes how to connect its states to the states of the available decoders. In bilingual training, the same source and target sides are involved throughout, and the attention mechanism learns from that pair. An architecture with several independently defined source or target components needs a way to make attention work across the combinations it supports. Where the routing occurs, where the attention parameters live, and how the different states are made compatible become design decisions.

The paper describes an early multitask approach that assigned an encoder to each type of input and a decoder to each type of output. Its ambitions extended beyond translation to tasks such as parsing and image captioning. With translation, the components could be combined to serve several source and target languages. In the authors’ account, the diversity of the tasks made it difficult to include attention in that design. The approach demonstrated how components could be recombined, with the choice of component also serving to identify the language being processed. Multi-task sequence-to-sequence learning

Dong and colleagues considered a common source language feeding several target languages. The single source encoder gave the decoders a common place to get their input representations. Attention was associated with the relevant decoder, the training objective was adapted to the multilingual setting, and testing used the parameters for the selected pair. That arrangement gives a direct answer to the question of which language to generate. Choosing the target also chooses the decoder responsible for writing it. Multi-task learning for multiple language translation

Firat and colleagues considered several languages on both sides. They retained language-specific encoders and decoders and used a shared attention mechanism to connect them. As the paper describes it, affine transformations help bring hidden representations from the different components into the shared computation. Sharing attention avoids assigning a separate attention mechanism to every source–target combination. The encoder and decoder still each need a component for every language they serve, and the network has to accommodate the transformations that let those components interact. Multi-way translation with shared attention

Learning from another source and reading another source

Zoph and Knight give the additional source language a different role. Their multi-source system can use more than one rendering of an input during translation. The example discussed in the paper involves English bank. If another version of the input is German and uses Flussufer, that version can indicate the river sense and help a system writing French. The useful evidence in this example is attached to a particular sentence. The German input clarifies what the speaker meant in that instance. Multi-source neural translation

In that design, separate encoders read the available inputs and their outputs are joined before attention. The paper describes a combination that applies a nonlinear layer to the concatenated encoder states and a recurrent alternative that uses information from the respective LSTM gates. Either way, the attention mechanism receives a representation influenced by both source readings. The combination is part of the computation used to translate the sentence.

Ha and colleagues take the potential value of evidence from another language as a motivation for pooling examples. Their English-to-German test sentences each have a single input. An auxiliary French–German pair can affect a test prediction through training, by changing parameters that the English input will later pass through. The bank example illustrates the semantic motivation, while the actual procedure offers different opportunities to learn from French. The French corpus may provide German target expressions in useful contexts even when it contains no additional version of the specific English sentence being translated.

Giving German text an input side

Monolingual text poses a problem for the same training setup. A German sentence gives an English-to-German system a possible reference output. To treat it as a translation pair, the trainer must also give the encoder something to read. The paper reviews two ways earlier work obtained a training signal from this kind of text. Both separate a part of that work from the training of the final translator.

Sennrich and colleagues used what the paper describes as back-translation. A German-to-English translator supplies an English rendering of a German sentence, and the original German becomes the reference for that synthetic input in English-to-German training. The added example is therefore in the desired task direction. Its source is generated by a reverse system that has to be trained for the purpose. Improving neural translation with monolingual data

Gülçehre and colleagues trained a recurrent language model on monolingual text and integrated it into translation by shallow or deep fusion. The German text trains a separate ability to score sequences, which can then contribute to the translator. Ha and colleagues ask whether the ordinary source–target interface can make direct use of German text. Their proposal is to put a German sentence on both sides of an auxiliary pair. To train that pair along with real translation pairs, the encoder needs a way to recognize which language it is reading. Using monolingual corpora in neural translation

The method, step by step

Let the vocabulary distinguish the languages

Language-specific coding changes the symbol that the network looks up. The name Obama in English and the same name in German can be represented as @en@Obama and @de@Obama. Each symbol then points to its own learned vector. The same rule applies to near matches such as German @de@Projektion and English @en@projection. A vocabulary that includes both symbols leaves room to learn that they behave similarly while retaining the ability to treat them differently.

The authors use semantic relationships to explain what the resulting space could capture. English car and automobile can have related representations despite their different spellings. There can likewise be a relationship between German Flussufer and the river sense of English bank. The codes supply language identity. The evidence that could give rise to similarities between vectors comes from the translation or copying tasks. In particular, the English code on bank identifies the word as English, leaving its different senses to be handled through the learned representation and the input context.

Distinct entries and shared processing do different jobs. The entries allow an English unit and a German unit to start the computation with different vectors. The recurrent encoder applies its shared weights to the vectors in either language. If those vectors and their contexts support similar predictions, training can make use of that similarity through the same downstream computations. There is a parallel distinction on the output side. A decoder can have separate vocabulary entries for similarly spelled forms in different languages while generating through a common recurrent network.

The vocabulary is mixed within each side. The mathematics still assigns one embedding matrix to source units and another to target units. A German unit used on both sides of a copy pair therefore has a source lookup and a target lookup, with different roles in the computation. The sharing proposed here joins languages within an encoder or decoder. It leaves the source-to-target division of the bilingual architecture in place.

Segment the text and then apply the codes

The paper adopts subword tokenization to handle words that would otherwise be too rare for a practical shortlist. Byte-Pair Encoding, abbreviated BPE, learns a series of merges over existing units in the text. A vocabulary of recurring pieces can represent forms for which the translator has little or no evidence as whole words. A sequence of pieces in the output can also be joined to produce a form absent as a whole entry. The paper contrasts this ability with an earlier rare-word strategy that used an alignment to copy a source word into the output. Copying can help with items such as names, while composing pieces gives the decoder a way to generate an unfamiliar form. Neural translation of rare words with subword units and Addressing the rare word problem in neural translation

The order of operations is important. The authors first learn and apply the segmentation. They then tag the units that result from it, in the training corpora and in the preparation of test text. Thus the experimental vocabulary distinguishes source and target units by language at the level of pieces as well as intact words. The prefix is added to a segment after its boundaries have been decided. The method would also permit a network to read tagged words or characters, since the decision about coding follows the choice of unit. The reported training uses sub-words.

At the end, the procedure reverses the preparation of the text. The system’s output consists of coded units. It removes the language prefixes first and then undoes the BPE marking to reassemble words. The text used for evaluation is consequently a German sentence in its ordinary word form, with the internal markers gone.

Preparing, training and using the shared translator

The steps in order.

Preparing, training and using the shared translatorStep 1: Assemble translation pairs and auxiliary pairs1. Assemble translation pairs and auxiliary pairsStep 2: Learn BPE merges and segment the text2. Learn BPE merges and segment the textStep 3: Mark each segment with its language3. Mark each segment with its languageStep 4: Fit the shared network on pooled examples4. Fit the shared network on pooled examplesStep 5: Encode the input in both directions5. Encode the input in both directionsStep 6: Score source positions and decode the output6. Score source positions and decode the outputStep 7: Strip language labels and reassemble words7. Strip language labels and reassemble words

Form the auxiliary pairs

Every run in the English-to-German evaluation uses English input paired with a German reference in training. In the multi-source condition, French-to-German pairs join that pool. A French sentence gets French codes and is presented with its own German translation. The next example could be English with a German translation. In both cases the decoder has to predict German, and the source goes through the same encoder. English and French are alternative input languages for a training example.

In the mix-source condition, the auxiliary input is German. The same sentence supplies its target. A system working through a copy example must read the German input and generate the corresponding German sequence with the ordinary decoder. There is no separate training operation for inserting a word directly into the answer. Copying describes the desired result of the auxiliary task. The network still learns from predictions against a reference, just as it does on a bilingual pair.

One way to obtain these auxiliary sentences is to take the target side of the English–German corpus. Consider a German sentence already paired with an English source. It appears as a reference in the bilingual example and as both the input and the reference in a new copy example. The network encounters the same output through different inputs. The German sequence is new in its role on the source side, even though its words have already supplied target-side evidence.

The paper also obtains copy pairs from the German side of the French–German collection and from additional German-only text. In either case, a German sentence always matches itself within its copy pair. Its relationship to the main English–German corpus depends on its origin. German taken from that bilingual corpus repeats a known target by construction. German taken from a different collection may add new material, with any overlap depending on which sentences or talks the collections have in common. This distinction between copying within a pair and repeating content across the training pool matters for interpreting the results.

Turn the input units into contextual vectors

An attention-based encoder makes a contextual vector available for each input position. The notation below uses position subscripts. It writes the two directions of the encoder with superscripts so their updates can be read separately.

x = (x₁, …, xₙ)

The symbol x is the ordered source sequence. Each xᵢ is the input unit at position i. The subscripts run from the first position, ₁, to the endpoint ₙ, where n is the source length measured in input units. Parentheses and commas delimit the sequence, and the ellipsis stands for the intervening positions. In a lookup equation, the paper also uses xᵢ for the one-hot vector that identifies the unit at that position.

s = Eₛ · xᵢ

Here s is the embedding of the current source unit, and Eₛ is the learned source embedding matrix. The subscript ₛ marks the source side. The vector xᵢ has an active coordinate for the language-coded entry at position i. The dot denotes multiplication of the matrix by that vector, which selects the embedding associated with the active coordinate. Eₛ serves every language present in the source vocabulary.

The encoder makes a pass from the beginning of the sequence and another from the end. In the first pass, the new state incorporates the current embedding and the state inherited from the position to its left.

hᶠᵢ = f(hᶠᵢ₋₁, s)

The vector hᶠᵢ is the hidden state at source position i in the forward pass, marked by ᶠ. The state hᶠᵢ₋₁ belongs to the preceding position, with ₋₁ moving the index back by one position. The function f is the encoder recurrence. Its parenthesized arguments, separated by a comma, are that previous state and the embedding s from the current input.

The reverse pass follows the same description in its own traversal order. The position it has just processed lies to the right of the current one in the original sequence.

hᵇᵢ = f(hᵇᵢ₊₁, s)

The superscript ᵇ marks the backward hidden state hᵇᵢ at position i. The term hᵇᵢ₊₁ is the state at the following position in the original sequence, indicated by ₊₁. The function f denotes the recurrent update in this direction, with that state and the current source embedding s as its arguments. The notation describes the form of the recurrence in both directions.

hᵢ = [hᶠᵢ, hᵇᵢ]

The annotation hᵢ belongs to source position i. The square brackets and comma indicate that the forward state hᶠᵢ and the backward state hᵇᵢ are concatenated, placing their coordinates in a single vector. The forward state carries context from the start of the sequence through that position. The backward state brings context from the end through the same position. An annotation thus includes the current unit in the context of what surrounds it.

An input sentence yields a sequence of annotations of fixed individual width. A longer input supplies more positions for attention to consider. For a coded sub-word, the annotation can incorporate information from nearby pieces and from the wider sentence. The paper presents the recurrence in a way that accommodates a simple recurrent unit, a Long Short-Term Memory unit or a Gated Recurrent Unit. Its experiments use the last of these, abbreviated GRU. The choice of recurrence is separate from the decision to supply language-coded units.

Compute a context for the current output step

The relevant source position can change as the translation grows. At target step j, the previous decoder state carries information about the output so far. The attention mechanism compares that state with each source annotation under the same learned scoring function. The paper also cites other ways of computing relevance in attention-based translation. Its equations give the additive scoring method derived from Bahdanau and colleagues. Effective approaches to attention-based translation

rel(zⱼ₋₁, hᵢ) = vₐ · tanh(Wₐ · zⱼ₋₁ + Uₐ · hᵢ)

The function rel gives the relevance of source position i for the prediction at target step j. Its arguments are the decoder state zⱼ₋₁ from the preceding step and the annotation hᵢ. The learned matrices Wₐ and Uₐ act on the decoder state and annotation respectively. Each inner dot denotes a matrix–vector product. The plus sign adds the transformed vectors, and tanh applies the hyperbolic tangent to their coordinates. The outer dot takes the inner product with the learned vector vₐ to give a scalar score. The subscript ₐ identifies the learned attention quantities.

A raw relevance score expresses how the function rates an annotation. The next calculation turns the set of scores for a single output step into positive weights that sum to unity. Each annotation competes with the other annotations for the current share of attention.

αᵢⱼ = exp(rel(zⱼ₋₁, hᵢ)) / Σᵢ′ exp(rel(zⱼ₋₁, hᵢ′))

The weight αᵢⱼ is assigned to source position i at target step j. The function exp exponentiates each relevance score. Above the division sign is the exponentiated score of annotation hᵢ, evaluated with the previous decoder state zⱼ₋₁. Below it, Σᵢ′ sums the exponentiated scores across the input sentence. The index i′ visits each source position and hᵢ′ is its annotation. The state zⱼ₋₁ stays fixed within this normalization, so the resulting weights concern the same prediction.

cⱼ = Σᵢ αᵢⱼ hᵢ

The vector cⱼ is the context for target step j. The summation Σᵢ ranges over the source positions i. In each term the scalar αᵢⱼ multiplies the annotation hᵢ. Adding these weighted vectors yields a context with the width of an annotation. A highly weighted annotation contributes more to its coordinates, and several annotations can contribute at once.

This calculation gives a soft alignment. A decoder decision can depend on part of a word, a combination of adjacent words or information spread across the input, according to how the learned scores distribute the weights. When the decoder state changes, the same input annotations can be combined differently. Because the scores, weights and context are differentiable functions of the learned quantities, the translation objective can train the alignment as part of the network. The authors use that same route for auxiliary pairs. Attention receives vectors in the usual format regardless of whether the source was English, French or German.

Predict the target and train the network

The decoder builds the output in sequence. Its previous state describes the history available in its recurrence, while the previous target unit supplies an explicit embedding. Attention contributes the source context for the new step.

y = (y₁, …, yₘ)

The sequence y is the target, with yⱼ denoting the unit at target position j. Subscripting begins at ₁ and ends at ₘ, where m is the length of the target in its units. The parentheses and commas mark an ordered sequence and the ellipsis stands for positions between the endpoints. In the next equation the unit being looked up is represented by its one-hot vector.

tⱼ₋₁ = Eₜ · yⱼ₋₁

The embedding tⱼ₋₁ belongs to the target unit from the preceding step. The matrix Eₜ contains the learned target embeddings, with ₜ marking the target side. The vector yⱼ₋₁ identifies the previous target entry through its active coordinate. The dot denotes a matrix–vector product that retrieves the corresponding embedding. The subscript ⱼ₋₁ selects the position just before j.

zⱼ = g(zⱼ₋₁, tⱼ₋₁, cⱼ)

The hidden state zⱼ belongs to target step j. The decoder recurrence g takes the arguments enclosed in parentheses: the previous state zⱼ₋₁, the previous unit’s embedding tⱼ₋₁ and the current source context cⱼ. The resulting state is used to predict a unit from the target vocabulary. Repeating the computation gives a sequence of predictions, with a new source context available at each step.

Training adjusts the network to increase the likelihood of the reference targets given their inputs. A bilingual pair and a copy pair both enter that objective as examples of an input and a desired output. Each contributes feedback through the decoder, attention and encoder. This is the main architectural point of the paper. Once the language identity is represented in the vocabulary, the steps used to read, align and write can be executed in the ordinary way for each example.

The implementation uses Nematus. The authors filter long sentence pairs, batch the remaining examples for gradient updates and periodically assess the translator on development data. They select a checkpoint using development BLEU, while training itself adjusts the weights using the likelihood objective. During translation, beam search keeps multiple partial candidates in play as decoding proceeds. The chosen candidate is then postprocessed to recover words. In the experiments, the required output language is German throughout. The output vocabulary and shared decoder are described as extensible to other languages, with the experimental procedure demonstrating how to mix inputs for a common target.

Experiments and results

Data, training choices and the yardstick

The smaller experiment uses the TED material in WIT3, a collection of transcribed and translated talks. The authors choose it because TED talks are translated into several languages and can provide parallel material where other high-quality resources are scarce. They deliberately restrict English–German training to TED to simulate an under-resourced direction. The paper gives the English–German and French–German collections used for the auxiliary comparison as 196k and 165k sentence pairs, respectively. Their talk coverage overlaps in part, a point that becomes important when asking what the French examples contribute.

The larger experiment keeps English-to-German as the desired direction and uses all the parallel material available to the authors for the IWSLT16 machine translation campaign. In its description of larger parallel resources, the paper names European Parliament material, News Commentary and CommonCrawl. It places the combined size of those larger corpora at roughly 3 million sentences. The two regimes supply separate comparisons. The small-data baseline learns from the restricted English–German collection. The large-data baseline learns from the much larger available parallel collection and provides the reference point for the experiments with large German text resources.

Nematus supplies the common training and decoding framework. The stated default for segmentation is 39,500 BPE merge operations learned on the combined source and target data. The paper specifies a shortlist of 40,000 frequent entries and uses sub-word translation for rare items. Sentence pairs exceeding the 50-word cutoff are omitted in training, and the examples are shuffled within minibatches. These choices matter for the case being tested. The experiments examine language coding together with an existing procedure for handling rare forms and limiting input length.

The recurrent layer uses a GRU with 1024 cells, and the embeddings have 1000 dimensions. The dropout probability is 0.2 in embedding and hidden layers and 0.1 in input and output layers. Dropout makes part of the network’s activity unavailable on a training pass, so predictions are learned under that perturbation. Training uses minibatches of size 80 and rescales the gradient when its norm exceeds 1.0. The optimizer is ADADELTA.

The paper describes training as lasting approximately seven days when the early-stopping criterion is unfulfilled. An external script evaluates development BLEU during training, which informs stopping and identifies the checkpoint to use. Training likelihood and checkpoint selection thus play different roles. The former supplies a signal for the parameter updates. The latter uses translated development sentences to decide which trained weights are taken to the test. The decoding beam size is 12, the number governing how broadly the search maintains competing candidates at each step.

The reported metric is BLEU on the tests labeled tst2013 and tst2014. BLEU scores the extent to which the generated text agrees with reference translations by measuring overlap in sequences of words. Higher is better under the metric. The paper calculates it with the Moses script mteval-v13a.pl. The scores on the two tests are reported separately, and each improvement is relative to the parallel-only baseline in the same data regime. BLEU as a method for automatic translation evaluation

Translation with a restricted parallel corpus

The TED-only English–German baseline provides the supervised task in every small-data run. The first auxiliary comparison asks whether German copies extracted from this same corpus can help. The other asks whether the French–German collection helps when it is used as ordinary translation data. In the second case, the added examples give the decoder access to German targets associated with French source expressions. In the first, the encoder gets access to the German sentences that previously appeared only on the output side.

English-to-German BLEU on tst2013 in the restricted TED setting

Copy examples drawn from the French–German collection give the highest score.

English-to-German BLEU on tst2013 in the restricted TED settingEnglish–German parallel data: 24.35English–German parallel data24.35German copies from the English–German collection: 26.99German copies from the English–Germancollection26.99Auxiliary French-to-German translation: 26.64Auxiliary French-to-German translation26.64German copies from the French–German collection (this paper): 27.18German copies from the French–Germancollection (this paper)27.18
The numbers
System or settingBLEU
English–German parallel data24.35
German copies from the English–German collection26.99
Auxiliary French-to-German translation26.64
German copies from the French–German collection (this paper)27.18

The bilingual system scores 24.35 BLEU on tst2013. Using the German side of its own training corpus to make copies raises that score to 26.99, a gain of +2.64 BLEU. The French-to-German auxiliary task yields 26.64, a gain of +2.21. Thus the performance of the English-to-German task improves even when the additional input words are French and the training examples concern a different translation direction. The copy setting achieves a higher score on the same English test.

English-to-German BLEU on tst2014 in the restricted TED setting

Each auxiliary setting improves on the bilingual system, with the matched-corpus copy setting leading.

English-to-German BLEU on tst2014 in the restricted TED settingEnglish–German parallel data: 20.62English–German parallel data20.62German copies from the English–German collection: 22.71German copies from the English–Germancollection22.71Auxiliary French-to-German translation: 22.21Auxiliary French-to-German translation22.21German copies from the French–German collection (this paper): 23.74German copies from the French–Germancollection (this paper)23.74
The numbers
System or settingBLEU
English–German parallel data20.62
German copies from the English–German collection22.71
Auxiliary French-to-German translation22.21
German copies from the French–German collection (this paper)23.74

On tst2014, the bilingual baseline is 20.62 BLEU. The original copies raise it to 22.71, or +2.09, and adding French-to-German pairs gives 22.21, or +1.59. Both tests give the same ordering for the initial conditions. The paper’s headline of up to 2.6 BLEU in the simulated under-resourced setting reflects the prose description of the first copy comparison on tst2013. The detailed table includes a further copy condition with higher values.

That condition, called mix-source 2, takes the German copy sentences from the French–German pairs. It scores 27.18 BLEU on tst2013 and 23.74 on tst2014. The table gives the increases over the corresponding baselines as +2.83 and +3.12. This is the strongest tested condition on both splits of the small-data experiment. It shows that the German side of an auxiliary parallel collection can help the supervised task when used as both sides of a copy example. It also makes possible a comparison in which the French-input and copy conditions use the same German references.

Translation with more parallel data

The larger experiment asks whether copy pairs can improve a system already trained with much more bilingual material. One condition makes copies from a large collection of additional German monolingual text. The other takes the German targets from the existing parallel corpus and turns them into copy examples. The latter condition retains the English-to-German pairs for the main task. Its extra examples give fresh roles to the sentences already used as references.

English-to-German BLEU on tst2013 in the larger IWSLT16 setting

Copying the bilingual corpus’s German targets yields the best score.

English-to-German BLEU on tst2013 in the larger IWSLT16 settingFull English–German parallel baseline: 25.74Full English–German parallel baseline25.74Copies from additional monolingual text: 27.74Copies from additional monolingual text27.74Copies from German targets in the parallel data (this paper): 28.89Copies from German targets in theparallel data (this paper)28.89
The numbers
System or settingBLEU
Full English–German parallel baseline25.74
Copies from additional monolingual text27.74
Copies from German targets in the parallel data (this paper)28.89

On tst2013, the full bilingual baseline reaches 25.74 BLEU. Copies made from additional German text raise it to 27.74, for +2.00 BLEU. Copies from the German side of the parallel data reach 28.89, for +3.15 BLEU. The larger separate collection gives a benefit, and the smaller collection drawn from the existing task data gives the best result.

On tst2014, the full bilingual baseline scores 22.54 BLEU. The extra monolingual collection brings the score to 24.39, an improvement of +1.85. Copying the German targets of the parallel corpus brings it to 24.86, an improvement of +2.32. The ranking from tst2013 therefore recurs on tst2014. Both test splits support the value of combining German copying with translation, including the case in which the additional training examples supply no new target text.

The paper reports that the system trained with parallel-derived copies joined an English–German combination for the IWSLT’16 campaign. The gains above belong to comparisons of the individual training configurations on the stated tests. The campaign detail shows where the approach was used. The result relevant to the data question is the comparison with the full parallel baseline: the bilingual data still supply the English-to-German relationship, and German copying changes what the network learns from the total training pool.

What the ablations show

Matching the auxiliary corpus size

The first comparison between copying and auxiliary French translation leaves a straightforward alternative explanation. The initial copy task takes sentences from the 196k English–German pairs. The French translation task draws on 165k French–German pairs. A stronger initial copy result could therefore reflect the availability of more auxiliary pairs. To investigate that possibility, the authors rebuild the copy task with German sentences from the same French–German corpus used for the auxiliary translation condition.

This is the most controlled comparison in the paper. The primary English-to-German data are common to both runs. For each auxiliary German reference, the French-input run reads the corresponding French sentence, and the copy run reads the reference itself. The auxiliary pair count and the German targets are matched. The copy condition gives the encoder German material encoded as German, and the translation condition gives it French material encoded as French. The decoder in both cases is asked to produce the same German sequence for that item.

The copy run wins that comparison on both tests. It also exceeds the original copy run, even though it draws on the smaller of the two collections used in the initial comparison. The pattern establishes that a larger count of auxiliary sentence pairs is unnecessary for the copy configuration to lead in these runs. Matching pairs also makes the auxiliary German targets common, so a difference in the set of German strings that the decoder is taught to produce cannot on its own explain the comparison. The way those strings are presented to the encoder matters in the tested setup.

Several properties of the auxiliary examples change at once. The source language changes and so does the relation between the source sequence and its reference. In the German condition, both sequences are derived from the same sentence. In the French condition, the words and their order can differ from the German reference. Equal pair counts still allow differences in the number and identity of source units. The comparison tests the two complete ways of using the corpus and leaves open which aspect of copying accounts for the advantage.

Distinguishing repeated meaning from repeated text

The authors suggest that it may help the encoder to meet the same information through different source languages. This happens directly when the German copy sentence comes from the English–German corpus. An English input and a German input can then lead to exactly the same German reference in two training examples. The French–German corpus shares some TED talks with the English–German one, and it also contains material outside that intersection. It is consequently harder to assume that the French and English portions repeatedly present the same material to the encoder.

This explanation concerns overlap across examples used for different tasks. A French sentence and its German translation are already paired by content inside their own auxiliary example. What may vary is whether a corresponding English sentence also appears in the main training pool. German copying introduces another kind of repetition, because an auxiliary source can be the very German string the decoder is trained to reproduce. Both are legitimate senses in which an example can offer repeated information, and the experiments make them relevant in different ways.

The matched-size run sharpens the distinction. It uses German taken from French–German examples, so its overlap with the original English–German material depends on the corpora. Its strong score supports the utility of copying even when the copies have been drawn from a different bilingual collection. It gives less direct evidence about how much sharing the exact German targets of the primary task helps. The paper proposes using a common TED corpus in English, German and French to obtain a better controlled comparison of this question.

Changing the source of the copies

In the larger experiment, both auxiliary conditions use German-to-German pairs. Their difference is the collection of German sentences from which those pairs are made. The additional monolingual corpus supplies more German material in its own right. The parallel-derived version uses the German half of the very pairs that provide supervision for the main task. The stronger results from the latter show that increased exposure to new German sentences is unnecessary for substantial gains under this procedure.

The finding leaves room for several mechanisms. Copying can change how the encoder represents German input, what attention learns to preserve from a sequence, or how the decoder acts on the source context. Reusing the primary corpus also exposes its German targets to the likelihood objective through another input. The BLEU comparison measures the combined effect of those choices. Its two copy collections differ in size as well as origin and relationship to the main corpus, so there is no separate estimate of the effect of overlap from those runs.

The two comparisons answer complementary questions. With the restricted corpus, using French inputs or German copies changes the task attached to a given German reference. With the larger corpus, holding German copying fixed changes the references used in that auxiliary task. The first gives evidence that the gain depends on how a particular collection enters training. The second shows that the collection selected for copying can matter even when the operation applied to every sentence is identical.

What can be inferred about the representations

The authors motivate the shared encoder with the possibility of useful correspondences among languages. They also suggest that auxiliary examples might help with ambiguity and with rare forms such as named entities. English-to-German evaluation gives an indirect test of the value of the auxiliary training. An improvement after adding French examples means the learned parameters do something more useful on English inputs by the chosen metric. An improvement after adding German copies means a same-language task can also produce a useful change in how the translation system behaves.

The scores apply to the translator as a whole. A stronger translation could come from a change in source representations, target generation, attention or their interaction. The paper’s comparisons do not break BLEU down by ambiguous words or named entities, and the experiments report no distances between tagged embeddings. The controlled evidence is about training data and the final task. It supports the choice to share components across the tested inputs while leaving the internal account of the gain open.

Limitations

Limits identified by the authors

The small-data setting is explicitly a simulation. The authors use English–German because they can study the same desired direction with a restricted corpus and with a much larger resource. Holding the direction fixed makes the scope of each comparison easy to describe. It also means the study relies on a language pair for which that larger resource exists. The authors propose evaluating actual under-resourced settings to find out how the approach behaves with the languages and data collections available there.

The authors also identify translation without direct parallel data as a future experiment. In every reported run, the network learns from some English–German pairs. Those pairs give the encoder and decoder direct evidence about the exact direction that BLEU measures. French translation and German copying supplement that evidence. A direction with no direct parallel corpus would pose a different question about what relationships can be learned from the available tasks alone.

Another stated limit concerns the overlap of the corpora. The authors describe the French and English TED collections as partially overlapping and use that fact to motivate an explanation of the result. They propose a common collection covering all the relevant languages to compare strategies on equivalent content. They also call for more detailed analysis of how their strategies compare with other approaches to multilingual translation. The experiments supply a first account of the pooled training procedure and the ways it can be used in the selected direction.

Limits visible in the evaluation

The general architecture allows several languages on either side. The output side of the reported experiments is always German. The empirical conclusions therefore concern sharing an encoder across different kinds of input and learning to write German through the shared decoder. Questions about the quality of several target languages in one decoder remain open, including how reliably the system would choose a desired output language when its vocabulary contained several possibilities. Distinguishing entries by language makes those entries representable. The benchmark gives no direct measure of target-language choice.

The BLEU baselines are trained on the English–German parallel data for each regime. The paper compares its architecture to earlier systems in prose, in terms of components and training design. It does not report side-by-side runs against the language-specific encoders and decoders, shared multilingual attention, back-translation or fusion discussed in that comparison. The measured improvement is consequently relative to a bilingual training configuration. A ranking among systems that exploit the same extra data through different architectures would require a comparison on common corpora and tests.

The parameter claim also has a specific scope. Adding a source language does not call for a new recurrent encoder, and adding target vocabulary does not by itself call for a new recurrent decoder. This accounts for the authors’ description of the network as staying within the scale of a bilingual system. At the vocabulary level, the point of coding is precisely to create distinct entries for distinct language forms. Their representation uses embedding parameters under the selected shortlist and segmentation. The paper gives the dimensions and settings of the experiments, while comparative counts and timing measurements across multilingual architectures remain unreported. The architecture explains the savings in duplicated components more directly than the experiments quantify them.

The reported scores establish the behavior of the complete language-coded training configurations. There is no comparison using the same augmented data with the language codes removed. Consequently the differences from the bilingual baselines include both the presence of auxiliary examples and the way they are prepared. The results answer whether a system trained in this way can exploit the auxiliary material. How much language tagging contributes by itself, relative to pooling with a different vocabulary, remains a separate empirical question.

The study measures corpus-level performance on tst2013 and tst2014. Agreement between the rankings on those tests is informative about the reported settings. It leaves open the variability over repeated training and the distribution of benefits across sentence types, word frequencies and linguistic phenomena. The copy comparison likewise controls particular properties of the training sets while changing others. These limits matter most when moving from the observed BLEU gains to a claim about their cause. The evidence is strongest for the effectiveness of the full procedure in the supervised English-to-German conditions actually evaluated.

What came after

Making scale and unseen directions part of the question

Aharoni and colleagues take multilingual neural translation to massive scale as a subject of study. The small set of training directions in Ha and colleagues’ paper makes it possible to trace where each additional pair comes from and what it asks the network to do. At massive scale, the scope of the sharing question expands to many languages and many combinations of input and output. The connection is the idea that translation tasks involving different languages can be treated as parts of a common learning problem. Massively Multilingual Neural Machine Translation

Arivazhagan and colleagues examine findings and challenges in massively multilingual translation in the wild. Their focus puts the operation of multilingual translation at scale alongside the question of whether an auxiliary direction helps a selected pair. Ha and colleagues use a simulated shortage to make that benefit easier to examine. A study framed around the challenges of multilingual translation in the wild extends the subject to the conditions under which broad sharing has to work. Massively Multilingual Neural Machine Translation in the Wild

Zhang and colleagues explicitly address improvement in massively multilingual and zero-shot translation. The zero-shot question connects to the direction Ha and colleagues reserve for future work, where direct parallel supervision is absent. A system can benefit from auxiliary supervision on a pair for which it has examples, as the German evaluation shows. An unseen direction asks whether experience acquired elsewhere supports the desired combination of source and target on its own. Improving Massively Multilingual and Zero-Shot Translation

The Tatoeba Translation Challenge addresses the data side of multilingual evaluation through realistic low-resource and multilingual datasets. Its focus relates to the choice to simulate scarcity with English–German. Restricting one familiar direction gives a comparison with a larger version of the same task. A challenge organized around realistic datasets puts the availability of suitable training and evaluation material at the center of the problem. The Tatoeba Translation Challenge

Changing how auxiliary text supplies a learning signal

Gu and colleagues approach low-resource translation through meta-learning. Here the shared question is how experience beyond a small supervised task can help learning on that task. Ha and colleagues make different types of examples contribute updates to a single translation network. The meta-learning work makes the process of learning under scarce supervision itself the focus of the intervention. This connects the auxiliary-data question to the way a system is prepared to use the evidence it receives for a desired direction. Meta-Learning for Low-Resource Neural Machine Translation

Artetxe and colleagues study unsupervised neural translation. Their research question extends the interest in what text can teach a translator when direct supervision is limited or absent. In the German-copy experiments, the English–German pairs continue to establish the mapping between the languages, and German sentences provide another task. The unsupervised setting makes learning the translation relationship itself the central issue. It therefore takes up a broader version of the question opened by the use of monolingual data. Unsupervised Neural Machine Translation

Siddhant and colleagues study the use of monolingual data through self-supervision in multilingual translation. The common idea is to construct a learning signal from text that needs no supplied translation. Ha and colleagues do so by giving a sentence the roles of source and target in an auxiliary pair. Tang and colleagues study a related route through denoising pretraining. Denoising asks a system to recover text from a perturbed version, and pretraining places that learning before the downstream task. This follows the broad idea of making text supply its own training signal while changing the transformation used and its place in training. Monolingual Data and Self-Supervision for Multilingual Translation and Multilingual Translation from Denoising Pre-Training

Revisiting what a multilingual system should share

Platanios and colleagues make contextual parameter generation the subject of universal neural translation. The coding proposal gives the network evidence about language identity at the point where it reads individual units. Contextual parameter generation puts the dependence on context at the level of the parameters used for the task. The connection is a common design problem: how to make processing respond to the languages involved while retaining the benefits of learning across directions. Contextual Parameter Generation for Universal Translation

Lu and colleagues explore a neural interlingua for multilingual translation. An interlingua places emphasis on an intermediate representation intended to serve different languages. Ha and colleagues motivate their common encoder partly through the possibility that related meanings can occupy related regions of a shared space. The later work makes the intermediate representation itself a center of architectural attention. Lin and colleagues, in turn, use alignment information as the focus of pretraining for multilingual translation. This extends the interest in cross-language correspondence to the information that can guide learning before the translation task. A Neural Interlingua for Multilingual Machine Translation and Multilingual Translation Pretraining with Alignment Information

Malaviya and colleagues study language representations through typology prediction. Ha and colleagues use the identity of a language to distinguish units of text and ask whether shared training helps translation. Typology prediction gives learned language representations a different job: supporting predictions about properties of languages. Ponti and colleagues’ survey, in turn, brings language variation and universals to the foreground. Its subject connects to the original paper’s distinction between expressing similar meanings and doing so with potentially different syntax. Together these works show how the question of what languages share can be posed through a training objective, an intermediate representation or the linguistic properties that a representation is expected to capture. Language Representations for Typology Prediction and Modeling Language Variation and Universals

 Institutions

 Fields, topics and concepts

Cite

Cite as Thanh-Le Ha, Jan Niehues and Alex Waibel. 2016. Toward Multilingual Neural Machine Translation with Universal Encoder and Decoder. Proceedings of the 13th International Conference on Spoken Language Translation.

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

@inproceedings{ha2016toward,
  title = {{Toward Multilingual Neural Machine Translation with Universal Encoder and Decoder}},
  author = {Thanh-Le Ha, Jan Niehues and Alex Waibel},
  booktitle = {Proceedings of the 13th International Conference on Spoken Language Translation},
  year = {2016},
  url = {https://aclanthology.org/2016.iwslt-1.6/}
}

References

18 references, 13 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. M. Cettolo, J. Niehues, S. Stüker, L. Bentivogli, R. Cattoni, and M. Federico, “The IWSLT 2015 Evaluation Campaign,” in Proceedings of the 12th International Workshop on Spoken Language Translation (IWSLT 2015), Danang, Vietnam, 2015. OpenAlex ↗ · Scholar ↗
  2. O. Bojar, R. Chatterjee, C. Federmann, B. Haddow, P. Koehn, J. Leveling, C. Monz, P. Pecina, M. Post, H. Saint-Amand, et al., “Findings of the 2016 Conference on Machine Translation (WMT16),” in Proceedings of the First Conference on Machine Translation (WMT16). Berlin, Germany: Association for Comp…
  3. D. Bahdanau, K. Cho, and Y. Bengio, “Neural Machine Translation by Jointly Learning to Align and Translate,” CoRR, vol. abs/1409.0473, 2014. [Online]. Available: http://arxiv.org/abs/1409.0473
  4. S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Comput., vol. 9, no. 8, pp. 1735–1780, Nov. 1997. [Online]. Available: http://dx.doi.org/10.1162/neco.1997.9.8.1735 DOI ↗ · OpenAlex ↗ · Scholar ↗
  5. K. Cho, B. van Merrienboer, Ç. Gülçehre, F. Bougares, H. Schwenk, and Y. Bengio, “Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation,” in Proceedings of Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation (SSST-8. Baltimore, ML,… — Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
  6. M.-T. Luong, H. Pham, and C. D. Manning, “Effective approaches to attention-based neural machine translation,” in Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP 15. Lisbon, Portugal: Association for Computational Linguistics, September 2015, pp. 1412–14…
  7. M.-T. Luong, I. Sutskever, Q. V. Le, O. Vinyals, and W. Zaremba, “Addressing the rare word problem in neural machine translation,” in Proceedings of ACL-IJNLP 2015. Beijing, China: Association for Computational Linguistics, July 2015, pp. 11–19. [Online]. Available: http://www.aclweb.org/anthology/…
  8. R. Sennrich, B. Haddow, and A. Birch, “Neural Machine Translation of Rare Words with Subword Units,” in Association for Computational Linguistics (ACL 2016), Berlin, Germany, August 2016.
  9. M.-T. Luong, Q. V. Le, I. Sutskever, O. Vinyals, and L. Kaiser, “Multi-task sequence to sequence learning,” in International Conference on Learning Representations (ICLR), San Juan, Puerto Rico, May 2016.
  10. D. Dong, H. Wu, W. He, D. Yu, and H. Wang, “Multi-Task Learning for Multiple Language Translation,” in Proceedings of ACL-IJNLP 2015. Beijing, China: Association for Computational Linguistics, July 2015, pp. 1723–1732. [Online]. Available: http://www.aclweb.org/anthology/P15-1166
  11. O. Firat, K. Cho, and Y. Bengio, “Multi-Way, Multilingual Neural Machine Translation with a Shared Attention Mechanism,” CoRR, vol. abs/1601.01073, 2016. [Online]. Available: http://arxiv.org/abs/1601. 01073 arXiv ↗
  12. B. Zoph and K. Knight, “Multi-Source Neural Translation,” in The North American Chapter of the Association for Computational Linguistics (NAACL 2016), San Diego, CA, USA, June 2016.
  13. M. Cettolo, C. Girardi, and M. Federico, “Wit 3 : Web inventory of transcribed and translated talks,” in Proceedings of the 16 th Conference of the European Association for Machine Translation (EAMT), Trento, Italy, May 2012, pp. 261–268. OpenAlex ↗ · Scholar ↗
  14. M. D. Zeiler, “ADADELTA: An Adaptive Learning Rate Method,” CoRR, vol. abs/1212.5701, 2012. [Online]. Available: http://arxiv.org/abs/1212.5701
  15. K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “Bleu: a method for automatic evaluation of machine translation,” in Proceedings of the 40th Annual Meeting on Association for Computational Linguistics (ACL 2002). Association for Computational Linguistics, 2002, pp. 311–318.
  16. R. Sennrich, B. Haddow, and A. Birch, “Improving Neural Machine Translation Models with Monolingual Data,” in Association for Computational Linguistics (ACL 2016), Berlin, Germany, August 2016. OpenAlex ↗ · Scholar ↗
  17. Ç. Gülçehre, O. Firat, K. Xu, K. Cho, L. Barrault, H. Lin, F. Bougares, H. Schwenk, and Y. Bengio, “On Using Monolingual Corpora in Neural Machine Translation,” CoRR, vol. abs/1503.03535, 2015. [Online]. Available: http://arxiv.org/abs/1503.03535
  18. E. Cho, J. Niehues, T.-L. Ha, M. Sperber, M. Mediani, and A. Waibel, “Adaptation and Combination of NMT Systems: The KIT Translation Systems for IWSLT 2016,” in Proceedings of the 13th International Workshop on Spoken Language Translation (IWSLT 2016) -To be appeared. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ha-2016-multilingual-neural-machine-translation-universal/