Multi-task Sequence to Sequence Learning
Paper · 2015 · Minh-Thang Luong, Quoc V. Le, Ilya Sutskever et al.
Summary
A system that learns to translate can spend some of its training time learning to parse sentences or describe images. What could those tasks teach it about translation, and which parts of the system would have to be shared for that training to matter? Multi-task Sequence to Sequence Learning investigates those questions with systems that read an input and generate an output in order. The part that reads the input is the encoder, and the part that produces the output is the decoder. The authors use recurrent networks with long short-term memory, or LSTM, and pass information from encoder to decoder through the encoder’s final state.
The authors arrange the tasks around the information they have in common. English-to-German machine translation and English constituency parsing share an encoder because both begin with an English sentence. The parser generates tags that describe how words group into phrases, while the translator generates German words. German-to-English translation and image captioning share a decoder because both produce English, even though one starts with German text and the other with an image. A further arrangement shares components on both sides, joining translation with tasks that learn from English and German sentences without requiring paired translations. Each training batch belongs to one task, chosen at random according to weights that set how frequently the tasks receive updates.
In the WMT experiments, the strongest English-to-German result with Penn Tree Bank parsing improves on the authors’ translation-only baseline by 1.5 points on the BLEU score, which measures agreement with reference translations. Captioning improves German-to-English translation by 0.7 BLEU in the reported setting. Transfer also goes in the other direction. Translation training helps the English constituency parser, and combining several jointly trained systems yields 93.0 F₁ on the Penn Tree Bank test split, above the previous best reported in the paper. F₁ combines how precisely the parser proposes constituents with how many of the reference constituents it recovers.
The experiments with unpaired text show why the choice of measurement matters. One auxiliary task reconstructs a sentence from its own encoding. In the other approach, skip-thought training is modified so that the system uses one half of a sentence to predict its remaining half. As the authors give the adapted skip-thought task more training time, perplexity improves, meaning that the system assigns higher probabilities to the expected outputs, while translation BLEU falls. Reconstruction produces a smaller improvement in perplexity but a stronger BLEU result. The findings establish that carefully scheduled auxiliary training can help these recurrent systems, with outcomes that depend on the task, its share of the updates, and the measure used to judge the result. The authors leave joint training with attention for future work.
Deep dive: Multi-task Sequence to Sequence Learning
Multi-task Sequence to Sequence Learning tests how sharing encoders and decoders affects translation, parsing, and learning from unpaired text. · about 33 minutes to read
The problem and its context
What an auxiliary task can contribute
Multitask learning starts with the possibility that an example collected for one purpose can improve performance on another. A translated sentence supervises a system through the words of its translation. A parsed sentence gives a different kind of supervision by specifying which stretches of words form constituents and what kinds of constituents they are. If both examples train the same English encoder, the encoder receives feedback about English from both sources. Its parameters then influence how it handles a new sentence in either task.
The authors place this idea in an established line of multitask research. They describe earlier uses in language, vision, and speech, and cite work that had already applied shared learning to semantic classification and search. Their question concerns the organization of a particular kind of system. Sequence-to-sequence learning has a component that handles the input and a component that handles the output. Earlier multitask successes give a reason to try sharing, but they leave open which component two sequence tasks can use together and how their training examples should be interleaved. One example of the earlier use of joint training for language is Representation Learning Using Multi-Task Deep Neural Networks.
Sequence-to-sequence learning addresses a problem that already arises in translation alone. The length of a source sentence varies from example to example, and its translation can have a different length. The decoder must generate an ordered output whose length depends on the input and on what it has generated so far. This way of framing translation can also accommodate a sequence of grammatical tags in place of target words. The paper locates the approach in earlier work on recurrent translation and encoder–decoder systems, including Recurrent Continuous Translation, Learning Phrase Representations using an RNN Encoder–Decoder, and Sequence to Sequence Learning with Neural Networks.
The tasks the authors bring together were already treated as generation problems in their own right. A constituency tree can be written as an ordered series of tags. Predicting that series gives an encoder–decoder system a way to produce a syntactic analysis. In captioning, the source is an image, but the decoder’s job is to generate words in sequence. These precedents supply the task formulations used in the experiments. They also make it possible to ask a more specific question than whether language and vision have something in common. The question is whether the same English word generator can benefit from being trained in both settings. The paper draws on Grammar as a Foreign Language and Show and Tell for these formulations.
The closest precedent the authors identify for multitask sequence-to-sequence learning involves translating out of a common source language into different target languages. That setup has a natural point of contact. An encoder processes the source language, and the decoder depends on the required target language. The authors treat such multilingual translation as an instance of a pattern that also covers tasks with different kinds of outputs. A sentence can go to a decoder that generates a translation or to one that generates grammatical structure. They then broaden the question to tasks whose outputs are compatible but whose inputs differ, and finally to experiments where there is a useful point of contact on each side. The direct precedent is Multi-Task Learning for Multiple Language Translation.
Why the encoder–decoder boundary matters
A shared language gives the authors a concrete reason to reuse a component. In the English-to-German translation and parsing example, each input is an English sentence. Both tasks can use the same word representations to feed the same recurrent encoder. On the other side, a German word and an English constituent tag play different roles, and the paper gives the output tasks separate decoders. In the German-to-English translation and captioning example, the two sources require different ways of representing the input. The commonality appears at the output because each task generates English words. This places the opportunity for transfer in a different component.
Earlier sequence-to-sequence research also varied in how a decoder received information from an encoder. The paper describes early systems that initialized the decoder with the encoder’s final state. In that design, the decoder carries forward a representation produced after the encoder has read the input. Attention offers another way to connect the two sides. A decoder can draw from the encoder’s states at different input positions and learn how to weight them at each output step. The paper discusses attention as a way of giving the decoder more direct access to long inputs and notes its importance in earlier translation, parsing, and caption generation work. The attention precedent it discusses is Neural Machine Translation by Jointly Learning to Align and Translate.
That distinction changes what it means to share an encoder. A final-state system shares the process that builds the representation used to initialize decoding. An attentive system could also expose its intermediate representations to different tasks, with a decoder choosing among them during generation. The authors investigate the final-state design. This gives their experiments a clear architectural scope, even though they use precedents from research that had already explored attention.
The paper also addresses a source of training data that translation systems can use beyond aligned sentences. A bilingual corpus gives both a source sentence and its translation. Monolingual text gives sentences in just one language, so the usual translation target has to be supplied in some other way if the text is to participate in encoder–decoder training. An auxiliary task can construct a source and target from the sentence itself. Earlier work had explored monolingual data for neural translation, and earlier sequence autoencoding work had used reconstruction before supervised training. The authors ask what happens when the auxiliary objective stays active alongside translation. Their starting points include On Using Monolingual Corpora in Neural Machine Translation and Semi-supervised Sequence Learning.
The method, step by step
From an input to a sequence of predictions
Start with the translation task. The encoder reads the source words in the order used for training and updates its internal state as it goes. The decoder starts from information supplied by the encoder and assigns probabilities to possible target words. After an output has been produced, the decoder can use the growing prefix to predict the next unit. The same division of work serves a parser. Its encoder reads the words of a sentence, and its decoder generates the units of a linearized parse tree, a tree written as a sequence.
The recurrent networks in the experiments use LSTM cells. Here recurrence means that a state computed at one position takes part in processing the next position. The cell maintains information that can be carried across those positions. Stacking recurrent layers lets the system process the representation from a lower layer in a higher one. The recurrent connections determine how state changes as the sequence advances. Embeddings give the network a numerical representation for the discrete words or tags it reads or generates. When the authors share an encoder or a decoder, they share its recurrent connections and its corresponding embeddings.
To describe generation precisely, the paper writes the logarithm of the probability of the entire target as the sum of the logarithms of its successive conditional probabilities.
log p(y | x) = ∑ⱼ₌₁ᵐ log p(yⱼ | y₍<ⱼ₎, x, s)
Here x is the entire input sequence, whose length is n, and y is the entire target sequence, whose length is m. The index j identifies a target position, yⱼ is its output unit, and y₍<ⱼ₎ is the target prefix before it. The sum ∑ covers the target positions from 1 through m. The symbol p denotes probability, the vertical bar means “given,” and log denotes the logarithm. The symbol s represents information computed from the input that can be supplied separately during decoding. The left-hand side scores the full sequence. Each term on the right scores a single target unit under the conditions available for that prediction.
The notation includes both a way to initialize the decoder and room for additional information that could be consulted during decoding. For the early final-state arrangement used in these experiments, the paper represents the separately accessible information as empty.
s = []
The symbol s is the separately accessible encoder information in the preceding formula, and the empty brackets mean that this additional collection has no entries. The encoder’s final state still initializes the decoder. Its influence on generation comes through that initialization and the subsequent decoder states. By contrast, in the attention alternative the paper describes, s would contain the encoder’s states across the input, and the decoder could select information from them at each step.
The probability decomposition also helps explain why a task can train a decoder through a different kind of input. Once an image has been encoded, its description can be scored one English word at a time. A German sentence paired with its English translation also supplies a series of English word predictions to score. Upstream, the two encoders receive different kinds of information. Downstream, corrections to English output predictions can change the same decoder parameters. On the input side of the parsing experiment, the corresponding logic runs through the encoder. Errors made by either decoder can lead to changes in the English representation that both use.
One update in joint sequence-to-sequence training
The steps in order.
Sharing the input side
One-to-many is the name for the arrangement in which the tasks have a common encoder and separate decoders. For English-to-German translation and English parsing, both tasks send English words into the English encoder. One decoder learns to produce a sentence in German. The other learns to generate the tags for an English constituency tree. The training corpora can supply these tasks independently. A translation example needs its German target, and a parsing example needs its tree. The example used in one batch has no obligation to appear in the other corpus.
The component boundary makes the intended route for transfer explicit. If the parser trains the English encoder to retain distinctions useful for identifying phrases, a translation batch later receives representations computed with those updated parameters. The usefulness of any particular distinction to translation remains an empirical question. The setup ensures that any change to the German decoder during training comes through updates on the translation task, while changes made to the shared English encoder can come from either task.
Similarly, a parser can benefit from this arrangement when parsing is the task being evaluated most closely. The encoder learns from translation examples in addition to annotated trees. The parsing decoder retains its own vocabulary and the job of generating a well-formed analysis from the representation it receives. Which task is treated as the reference for the experiment changes the training budget that is held comparable to a standalone run. It leaves the path of sharing intact.
The one-to-many scheme can also be used when the second output is English text. For instance, an English autoencoding task takes an English sentence and assigns the decoder the job of reproducing it. In an experiment that pairs this task with parsing, English inputs can again be handled by the same encoder, and the tag and word outputs can be handled by different decoders. The architecture gives both translation and reconstruction a route into the parser. The results can then show whether those auxiliary targets make similar use of that route.
Sharing the output side
Many-to-one is the arrangement with separate encoders and a shared decoder. The captioning and translation experiment uses German source sentences for translation and images for captioning. Each input type gets its own encoder. The English decoder receives the representation produced for the current example and learns to generate the associated English text. Its recurrent connections and word embeddings are trained using both the translation targets and the captions.
The image encoder thus does a job distinct from the German encoder. A caption can reward the system for producing the words associated with an image, while a translation target rewards it for rendering a German sentence in English. What both updates can change is the part that maps the received representation and the preceding output words to the next English word. Sharing the decoder exposes it to two kinds of English generation. How useful that exposure is depends on what is learned from the caption targets and whether it carries over to translation.
The authors also describe many-to-one sharing as a natural possibility for translation from different source languages into a common target language. Several source encoders could be paired with the same target decoder. The experiments with images put this architectural idea to a test involving a wider difference between inputs. They sit at the intersection of machine translation and vision and language.
Sharing components on both sides
The many-to-many arrangement contains multiple encoders and decoders, with each task using the pair appropriate to its input and output. In the paper’s experiment on unpaired text, the supervised route is German to English. The German encoder and English decoder form the translation path. A German auxiliary task uses the German encoder with a German decoder. An English auxiliary task uses an English encoder with the English decoder. The German auxiliary task can therefore change the translation encoder, and the English auxiliary task can change the translation decoder.
In that configuration an auxiliary task can reach the translator through one side at a time, while the combination of auxiliary tasks reaches both sides. The source and target of any individual batch still determine its route. A German monolingual batch uses the German-language path, and an English monolingual batch uses the English-language path. A bilingual batch connects the German encoder to the English decoder. This is the specific meaning of many-to-many in the reported experiments. The category is broad enough to describe other connections, but the authors study a single supervised translation direction with a monolingual objective for each language.
The first objective is a sequence autoencoder. It assigns a sentence to both the input and target roles. The encoder has to provide a representation that allows the decoder to reproduce the sentence as an ordered output. An example supplies its own target, so the authors can draw such training pairs from ordinary text without attaching a translation or a syntactic annotation. Because the same sentence is used on both sides, the authors view reconstruction as resembling translation into the input language.
The other objective is an adaptation of skip-thought. In the original formulation described by the paper, consecutive sentences provide input and target material. This requires a corpus with information about which sentences occur next to each other. The authors work with data in which they treat sentences as unordered. They divide each sentence into halves and use one half to predict the other. This preserves the idea of predicting related text using a naturally available partner. It changes the relationship between the two sides: in the adaptation, the training pair consists of parts of the same sentence, and the target can contain information that was absent from the input half.
The comparison with reconstruction concerns what a shared component is rewarded for doing. A reconstruction target rewards preserving enough of the observed sequence to generate it again. The other objective rewards generating related text from a partial observation. Translation also changes the sequence, but its target is meant to express the source in another language. The paper uses these different relationships to interpret the experimental outcomes. The routing scheme gives both kinds of unpaired training a path into translation, so the form of the auxiliary prediction matters even when the arrangement of encoders and decoders is held fixed.
Turning mixing weights into updates
The authors use separate batches for each task. An update on a translation batch uses translation examples throughout that batch. An update on parsing uses annotated sentences throughout. To select the task, the authors sample according to its mixing weight relative to the sum of all the weights.
p(i) = αᵢ / ∑ⱼ αⱼ
Here p(i) is the probability of choosing task i for an update. The symbol αᵢ is the mixing weight for that task. In the denominator, j ranges over the tasks in the run, αⱼ is the weight of task j, and ∑ adds those weights. The division turns the weights into a distribution over task choices. A weight is consequently an allocation relative to the other tasks. Its interpretation as a share of all updates depends on the rest of the mixture.
For comparisons with single-task training, the paper designates a reference task and sets its weight by convention.
α₁ = 1.0
Here α₁ is the mixing weight for task 1, the reference task, and 1.0 is the paper’s reference value. The authors also specify the amount of training for this task in advance. The ratio between an auxiliary weight and the reference weight determines its nominal number of updates.
Nᵢ = (αᵢ / α₁) · N
Here Nᵢ denotes the nominal update count for task i, αᵢ is its mixing weight, and α₁ is the reference weight. The dot denotes multiplication, and N is the preset reference-task update count. Random selection means the ratios describe an allocation over training, with room for variation in the sequence of individual draws. For example, the authors describe a parsing weight of 0.01 in a translation-reference run as one parsing batch per 100 translation batches. That describes their relative frequency. The order is determined by sampling.
Fixing the reference-task budget gives the comparison a practical interpretation. A standalone translator uses its updates for translation. Its jointly trained counterpart gets the corresponding translation budget, with additional updates available through the auxiliary task. Thus the comparison asks what changes when auxiliary training is added while preserving the amount of training assigned to the reference task. When the authors shift the reference from translation to parsing, they anchor the comparison to the parsing schedule instead. This matters when distinguishing evidence that parsing helps translation from evidence that translation helps parsing.
The sampling procedure also differs from the earlier multi-target translation schedule discussed in the paper. That work spent a fixed number of updates on a task before switching. Here the tasks can differ both in the kinds of examples they use and in how much training data they have. Task-specific weights let the authors give one task relatively infrequent updates while keeping it in the same overall training run. Validation performance helps them select those weights.
The training recipe
The recurrent networks in the main experiments have 4 LSTM layers, with 1000-dimensional cells and embeddings. The captioning setup uses 1024 dimensions, matching the image embedding size. The authors initialize parameters uniformly between -0.06 and 0.06 and use mini-batches of 128. They apply dropout with probability 0.2 to vertical connections, the connections through which one layer supplies information to another. Dropout temporarily suppresses parts of those connections during training. The source sequences are reversed as part of the training recipe.
The optimizer is stochastic gradient descent, which updates parameters using the gradient estimated on the selected batch. The starting learning rate is 0.7. The authors then use a schedule that halves it periodically, starting after a specified number of epochs. An epoch is a pass through the relevant training data. The paper uses x for the epoch at which this reduction schedule starts and y for the interval between halvings. Those variables belong to the learning-rate schedule and are separate from the input and target symbols in the probability formula above. The reference task determines the training duration and the timing of the learning-rate reductions for comparison with its standalone counterpart.
The paper generally runs configurations twice and presents a mean and standard deviation. The mean describes the central result over the runs, and the standard deviation describes how much those runs vary. The authors specify that some entries for the unsupervised comparisons come from a single run. This distinction matters when interpreting small differences and when comparing figures reported with different amounts of repetition.
Experiments and results
Data, evaluation, and baselines
The translation experiments use WMT'15 training data for English and German. The authors select the 50K most frequent words in each language from the training corpus, using text already split into tokens with the default Moses tokenizer. Words outside the selected vocabulary are mapped to an unknown-word token. The auxiliary text tasks reuse the corresponding vocabularies. Parsing also reads English words, but its output uses a separate inventory of 104 tags. These vocabulary choices make word embeddings reusable where the architecture shares them and give the parser an output space suited to its tree representation.
The translation validation split is newstest2013, with 3000 sentences. The authors use validation to choose hyper-parameters such as mixing coefficients. English-to-German test scores use filtered newstest2014, consisting of 2737 sentences. German-to-English test scores use newstest2015, which has 2169 sentences. The authors select these tests to permit comparison with results they cite. The differing directions and splits also mean that a BLEU gain for one direction describes a different test from a BLEU gain for the other.
The parsing experiments use either the Penn Tree Bank training corpus or a larger collection of high-confidence trees supplied by the authors of earlier sequence-to-sequence parsing work. For both training conditions, validation uses section 22 of the Penn Tree Bank, and testing uses section 23. The target trees are linearized before training. A shared test split makes it possible to compare the quality of predicted trees when the supervision comes from different sources. The annotated benchmark originated with the Penn Treebank.
Image captioning uses paired images and captions supplied by earlier caption generation work. For the unsupervised experiments, the authors draw English and German monolingual data from WMT'15. They randomly sample 10% of the original monolingual corpora to reduce training time. The resulting auxiliary collections are already roughly three times the size of the parallel data, according to the paper. The jointly trained systems are evaluated on the translation validation and test splits associated with the supervised task. This choice puts the question of whether unpaired text helps the translator at the center of the evaluation.
The results use several measures because the systems are asked to do several different things. Perplexity summarizes the probabilities assigned to the observed sequence units. It goes down when the expected next units receive higher probability. The paper reports validation and test perplexities as measures of prediction on held-out text or tags. BLEU evaluates the translations that the system actually generates, by looking at their agreement with reference translations. Consequently, a comparison in perplexity and a comparison in BLEU concern different aspects of performance. The paper takes its translation metric from Bleu: a Method for Automatic Evaluation of Machine Translation.
For parsing, the generated sequence represents a tree whose constituents can be compared with the reference. Precision concerns the fraction of proposed constituents that agree with the reference. Recall concerns the fraction of reference constituents recovered. F₁ balances those two quantities. Perplexity can improve when the system gives greater probability to the right tags, while F₁ asks whether the generated series of tags yields the right structure. This gives the parsing experiments a distinction between probability and generated-output quality analogous to the one in translation.
The authors’ own reference-task-only runs are the main baselines for testing transfer. Those runs use the matching reference-task schedule, so the comparison centers on the addition of auxiliary updates. The paper also draws comparisons with earlier translation and parsing systems. For translation, the authors emphasize that their own standalone baselines already outperform the comparable attention-free results cited for those directions. For parsing on the large corpus, they compare against both a single attentive system and an earlier ensemble. These external comparisons put the scores in context. The in-house baselines are the closer comparison for assessing the effect of joint training. The cited translation comparison comes from Effective Approaches to Attention-based Neural Machine Translation.
Translation with parsing or captioning
In the small-corpus parsing experiment, English-to-German translation receives most of the training updates, and Penn Tree Bank parsing occasionally updates the shared encoder. A mixing weight of 0.01 gives the intended rate of one parsing mini-batch for every 100 translation mini-batches. On filtered newstest2014, the strongest joint setting improves BLEU by 1.5 points over the authors’ standalone translator. The authors report smaller translation gains with larger parsing weights and interpret this pattern as a consequence of overfitting the small parsing corpus.
The same task pairing also produces evidence in the reverse direction. The authors report an improvement of up to 8.9 F₁ points over their small-corpus standalone parser on the Penn Tree Bank test set. This experiment starts from a weaker parsing baseline than their large-corpus work. Training without attention on a small number of annotated trees is a setting in which earlier parsing research had led the authors to expect limited performance. The gain measures the value of joint training relative to that starting point. The best absolute parsing scores come from their experiments with more parsing data.
The captioning experiment changes which side of the translator receives auxiliary updates. The main task translates German into English, and captioning shares its English decoder. The reported setting uses a captioning weight of 0.05, described as 5 captioning updates per 100 translation updates. On newstest2015, it improves German-to-English BLEU by 0.7 points over the standalone translator. The outcome shows that the experimental benefit of sharing extends beyond tasks built around a common source sentence. An auxiliary task with images as inputs can help when the common component generates English.
The paper then returns to English-to-German translation and replaces Penn Tree Bank training examples with high-confidence parse trees. The shared component is again the English encoder. On filtered newstest2014, the authors report a gain of up to 0.9 BLEU over translation alone. This establishes that the positive result with parsing also appears with a larger parsing resource. It also provides a comparison with the reported 1.5 BLEU gain from the smaller corpus under its selected schedule. The two results describe particular mixtures and particular sources of parse supervision, so they give limited grounds for making a claim about corpus size on its own.
Parsing with a larger training corpus
When parsing is the reference task and training uses the high-confidence corpus, the standalone recurrent parser reaches 92.2 F₁ on Penn Tree Bank section 23. The paper compares that baseline with an earlier attentive parser and an earlier ensemble whose best reported score is 92.8 F₁. It also notes substantial differences in network capacity. The earlier parser has 3 LSTM layers, 256 cells, and 512-dimensional embeddings. The authors’ parser has 4 LSTM layers, 1000 cells, and 1000-dimensional embeddings. The strong standalone result therefore comes from a different capacity setting as well as a different use of attention.
With English-to-German translation as the auxiliary task, a mixing weight of 0.05 raises the parsing test score to 92.4 F₁. The reported gain over the standalone baseline is 0.2 F₁. The paper places that result on par with the prior best single system. English sentence reconstruction, which also has access to the parser’s English input side, yields little apparent help for parsing in the authors’ comparison.
The strongest parsing result combines 6 jointly trained systems whose auxiliary translation weights are drawn from 0.1, 0.05, and 0.01. This ensemble reaches 93.0 F₁ on Penn Tree Bank section 23, exceeding the earlier published ensemble score cited by the authors. The single-system comparison and the ensemble comparison address different questions. The former shows the effect of adding translation at a specified mixing weight within the authors’ setup. The latter establishes the highest reported score for a combination of systems.
Large-corpus constituency parsing on Penn Tree Bank section 23 by F₁
Joint training improves the authors’ single parser, and the joint ensemble reaches the highest score in the comparison.
The numbers
| System or setting | F₁ |
|---|---|
| Authors’ standalone parser | 92.2 |
| Parser jointly trained with translation | 92.4 |
| Prior attentive ensemble | 92.8 |
| Ensemble of jointly trained parsers (this paper) | 93.0 |
Translation with monolingual objectives
The unsupervised comparison uses German-to-English translation and a monolingual task in each language. At the 0.05 mixing coefficient, reconstruction improves newstest2015 BLEU by 0.5 points over translation alone. Giving reconstruction more training time reduces translation performance relative to the favorable setting. This is another case where a relatively infrequent auxiliary task helps the reference task and a higher relative rate is less favorable.
The adapted skip-thought objective produces a different set of measurements. As its mixing coefficients increase, perplexity improves consistently for both translation and the monolingual tasks. Translation BLEU drops as the coefficients increase. Under this setup, the objective that improves probability assignment more strongly yields less favorable generated translations. Reconstruction has the stronger BLEU outcome, even though its perplexity improvement is smaller.
The authors interpret this pattern through the function of each target. Reconstructing a sentence asks the system to carry its existing content through to an output. Predicting the other half of a sentence can require adding content that the input half does not specify. The authors propose that this change in the nature of the prediction may account for the weaker BLEU behavior. The measured result is the divergence between the metrics as the mixture changes. The account based on what the target asks the system to predict is an explanation that the experiments motivate.
What the ablations show
The auxiliary update rate affects the main task
The paper’s controlled comparisons mainly vary the presence, kind, and frequency of auxiliary training. The basic comparison pairs a reference task trained alone with the same reference task trained in a mixture. In the English-to-German experiment with Penn Tree Bank parsing, the useful mixing setting gives the two tasks very unequal update frequencies. Higher parsing weights produce smaller BLEU gains. Within that setup, the comparison points to the amount of exposure to the small parsing corpus as a factor in the translation result. Simply finding a source of compatible input is insufficient to determine a good training schedule.
The authors attribute the weaker outcomes at larger weights to overfitting on Penn Tree Bank. There is a plausible route for that effect under their schedule. The extra parsing batches draw from a small corpus and keep updating a representation also used by translation. Larger weights expose the shared encoder more often to that finite collection. The experiment measures the translation effect of changing the weight. The particular changes to the encoder that produce the effect remain unmeasured.
A related pattern appears in the autoencoding comparison, where the unpaired corpora are much larger. The favorable reconstruction weight is low relative to translation, and giving the auxiliary task more updates weakens the translation result. The two observations together show that a low mixing weight can be useful with a small annotated corpus or with a much larger source of automatically constructed pairs. The conditions differ enough that the two trends need not have the same explanation. Overfitting a small treebank is the account offered for the parsing case. In the reconstruction case, the schedule also governs how much the shared components are trained to perform a same-language task alongside bilingual translation.
Changing supervision while keeping a path for transfer
Replacing Penn Tree Bank with the high-confidence corpus keeps English-to-German translation as the reference task and keeps parsing on the same side of the architecture. Both resources lead to a positive BLEU gain at their favorable settings. The comparison establishes that the benefit is available from more than one source of syntactic supervision. Because the corpora differ in source as well as scale, the results leave open how much of the difference between the gains comes from size, from the nature of the supervision, or from the schedule selected for each resource.
The experiment with parsing as the reference task offers a different comparison. Both English-to-German translation and English reconstruction can train the shared input component. Translation improves parsing at the reported setting, while reconstruction gives little indication of benefit. This puts the content of the auxiliary supervision in focus. Two tasks can use English inputs and update the same encoder yet differ in how helpful those updates are for predicting constituents. The experiment compares the consequences of the tasks as implemented. It leaves the useful information carried by the shared representation an open question.
The captioning experiment provides evidence about sharing on the other side of the encoder–decoder boundary. Its positive result occurs when the English decoder receives the auxiliary updates. This complements the evidence from encoder sharing in the translation and parsing experiment. A ranking of the two sharing strategies would require a comparison that holds the tasks, language direction, and evaluation split fixed. Here those factors change with the sharing arrangement because the arrangements are chosen to suit the tasks.
Probability and output quality can move differently
The comparison of reconstruction and adapted skip-thought holds the supervised translation direction and the general many-to-many wiring in place while changing the prediction made on monolingual data. It is particularly informative because the authors vary the auxiliary weights and look at both likelihood-based and output-based measures. If only perplexity were considered, the stronger skip-thought mixtures would look encouraging. Their generated translations, evaluated with BLEU, follow the opposite trend. The comparison shows the importance of assessing the output the reference task actually calls for.
The parsing results supply another check on the meaning of perplexity. The authors say that in their experiments parsing perplexity becomes a reliable guide only below 1.3. The large-corpus runs reach values close to 1.1, while even the low end discussed for small-corpus parsing is around 1.6. The authors give 1.0 as the theoretical lower bound. They also point out that the parser predicts from an inventory of 104 tags, whereas translation uses a vocabulary of 50K words. A smaller inventory and the constraints of a linearized tree help explain why a parsing perplexity can be far below a translation perplexity. The empirical threshold is a statement about their parsing runs, with F₁ still needed to evaluate the generated structure.
The parsing comparisons also clarify where the strongest claims belong. The standalone parser and the jointly trained parser allow a relatively direct comparison for a single architecture and a particular auxiliary treatment. The ensemble demonstrates what several jointly trained systems can achieve together. The comparison with earlier attentive systems gives historical context for the score, but the networks differ in depth and width. Those results jointly support the performance claims while leaving the contribution of each architectural difference unresolved.
Limitations
Limits the authors identify
The authors explicitly identify the absence of attention as a limitation. The decoder receives the encoder’s final state at initialization, and the joint training experiments all use that general design. Earlier work discussed in the paper had shown the importance of attention in sequence generation, including parsing from a small training corpus. An attention mechanism gives the decoder access to intermediate source states and could change which representations benefit from sharing. The study leaves the size and direction of multitask effects under that architecture for future work.
The monolingual experiments use 10% of the original WMT'15 corpora. The authors make this choice for training speed and leave use of the full collections open. Increasing the available corpus and increasing the mixing weight would be distinct changes to the experiment. A larger corpus would change the examples available to draw, while a higher weight would change the relative frequency of drawing from that task. The paper tests changes in frequency within its sampled data. The behavior of the objectives with access to the full corpora remains unresolved.
The paper also explains why its skip-thought experiment has a narrower scope than a study of consecutive-sentence prediction. To accommodate data without sentence order, the authors use halves of individual sentences. That decision gives the auxiliary task targets drawn from the same corpus as reconstruction, with a different relationship between the two sides of each pair. The observed decline in BLEU as the skip-thought weight rises applies to this adaptation. The authors’ explanation about generating the unseen half identifies a possible cause specific to the construction they tested.
Limits visible in the comparisons
The translation evidence comes from English and German, and the reported task pairings are tied to particular directions. Sharing an English encoder is evaluated through English-to-German translation. Sharing an English decoder with captioning is evaluated through German-to-English translation. The unpaired-text experiments also focus on German-to-English. These are demonstrations that the arrangements can work with the authors’ tasks and data. Performance with other languages, tasks, or choices of shared component remains an empirical question.
The comparison to standalone training holds the reference-task budget comparable and gives the jointly trained system additional updates. That design addresses the benefit of spending extra training on another task while keeping the reference-task schedule in place. A comparison at equal total computation would ask a different question, because the standalone counterpart would then have room for additional updates of its own or the joint run would have to reallocate its budget. The reported gains establish the effect under the reference-task allocation the authors chose.
Several architectural choices also move together. The authors share recurrent connections and embeddings together, so the experiments do not isolate which of those is responsible for a gain. The comparisons with earlier parsing results place different network sizes alongside different attention choices. And the highest F₁ comes from combining several systems with different mixing weights. It therefore includes whatever benefit is due to combining their predictions. The reported single-parser gain provides the closer measure of the contribution of joint training within the chosen architecture.
The run counts limit how precisely small effects can be characterized. The paper generally reports a mean and standard deviation over two runs, while some unsupervised results come from one run. These repetitions provide a check on variation at selected settings. They leave limited evidence for estimating the stability of the smallest differences, particularly if several settings perform similarly. The largest reported gain in each family is also a result for a selected configuration, with its weight chosen in a procedure that uses a development split.
The paper measures transfer through perplexity, translation BLEU, and parsing F₁. Those measures can show whether the jointly trained system predicts held-out sequences more confidently or generates outputs that agree better with the references. They provide little detail about what changed inside the shared component. The translation gains with parsing do not identify specific grammatical constructions that became easier to translate. The captioning gain does not establish which features of caption text help the English decoder. The evidence supports transfer at the task level, with the content and mechanism of that transfer left open.
What came after
Attention and multilingual translation
This paper’s separation of encoders and decoders gives a concrete way to ask where multilingual translation should share parameters. Its original experiments leave attention outside that question. Multi-Way, Multilingual Neural Machine Translation with a Shared Attention Mechanism brings the two concerns together by making attention itself a shared component in multilingual translation. Where the earlier paper organizes tasks around common sources and targets, this later work also places sharing in the mechanism that connects source information to output predictions. That is a direct extension of the architectural question, with attention given an explicit role.
Attention Is All You Need pursues the architectural role of attention more broadly. The connection here is to the earlier paper’s distinction between receiving a final encoder state and using attention during generation. The earlier experiments establish joint-training results for a recurrent system with final-state initialization. An attention-centered architecture changes the system in which the original question about sharing can be asked. Its citation places the earlier study in that line of sequence-to-sequence research. The title establishes its architectural direction, while the effect of carrying over any specific task mixture remains a separate question. The relevant concept is Transformer and attention.
Multilingual translation also extends the problem beyond a pairing of English and German. Massively Multilingual Neural Machine Translation in the Wild studies findings and challenges at multilingual scale. That focus brings a different significance to task allocation. In the earlier study, a mixing weight controls how frequently a small set of auxiliary tasks can influence a reference task. In massively multilingual translation, the corresponding question concerns what happens as translation training spans many languages. The citation connects the small set of sharing arrangements tested here with that broader problem in multilingual and cross-lingual NLP.
Which tasks should share, and where
The original study assigns sharing mainly by the form of the input and output. Work on hierarchy asks a related question about the location of supervision within a network. Deep Multi-Task Learning with Low Level Tasks Supervised at Lower Layers places supervision for lower-level tasks at lower layers. This changes what it means to decide where one task should influence another. In the sequence-to-sequence paper, the decision is whether a task joins the input side, the output side, or a mixture with opportunities on both sides. In the layer-based work, the level of the task becomes part of the decision about where its training signal enters.
Papers on beneficial task relations address another choice exposed by the original comparisons: which tasks are likely to help each other. The earlier paper can route translation and English reconstruction into the same parsing encoder, yet its results suggest different value from those tasks. Identifying beneficial task relations makes that variation the object of study. It takes the question from whether tasks can use a common component to which available pairings are worth training together.
Another direction changes how the tasks are expressed. The Natural Language Decathlon casts multitask learning as question answering. The sequence-to-sequence paper preserves different output types through different decoders when the tasks require them. A common question-answering formulation brings the description of otherwise different tasks into a common interface. The connection is the effort to find a form in which several language tasks can benefit from joint learning. The Decathlon’s framing shifts more of that commonality into the way the problems are presented.
Learning from unpaired text
The comparison between reconstruction and adapted skip-thought asks how to put unpaired text to work during supervised training. Unsupervised Pretraining for Sequence to Sequence Learning takes up unpaired learning at a different point in the training process. Its focus is pretraining, where the unsupervised stage supplies a starting point for subsequent sequence-to-sequence learning. The earlier paper interleaves its unsupervised and supervised batches. The two studies therefore concern different ways to allocate unsupervised learning over time, with sequencing itself part of the research question in pretraining.
Exploiting Source-side Monolingual Data in Neural Machine Translation focuses the problem on unpaired text from the source language. The many-to-many experiment in the earlier paper gives source-language and target-language text different routes into the translator. A source-side focus turns one of those routes into the main subject of investigation. Its importance is visible in the original architecture: the German monolingual objective can influence German-to-English translation through the encoder, while English monolingual text reaches it through the decoder.
Copied Monolingual Data Improves Low-Resource Neural Machine Translation takes up copying in a low-resource translation setting. The connection to the autoencoder experiment is the use of monolingual text to construct a training example involving reproduction of that text. The earlier paper evaluates sentence reconstruction as an interleaved objective alongside a WMT translation task. The later title places copied data in the setting of limited parallel resources. This changes the question from how much reconstruction to mix into the reported WMT training run to what copied text can contribute when bilingual training data are scarce.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Cite
Cite as Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals and Lukasz Kaiser. 2015. Multi-task Sequence to Sequence Learning. arXiv:1511.06114.
@misc{luong2015multi,
title = {{Multi-task Sequence to Sequence Learning}},
author = {Minh-Thang Luong, Quoc V. Le, Ilya Sutskever, Oriol Vinyals and Lukasz Kaiser},
year = {2015},
doi = {10.48550/arxiv.1511.06114},
eprint = {1511.06114},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1511.06114}
}References
- Ando, Rie Kubota and Zhang, Tong. A framework for learning predictive structures from multiple tasks and unlabeled data. JMLR, 6:0 1817–1853, 2005. OpenAlex ↗ · Scholar ↗
- Argyriou, Andreas, Evgeniou, Theodoros, and Pontil, Massimiliano. Multi-task feature learning. In NIPS, 2007. OpenAlex ↗ · Scholar ↗
- Bahdanau, Dzmitry, Cho, Kyunghyun, and Bengio, Yoshua. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. our card
- Bojar, Ondřej, Chatterjee, Rajen, Federmann, Christian, Haddow, Barry, Huck, Matthias, Hokamp, Chris, Koehn, Philipp, Logacheva, Varvara, Monz, Christof, Negri, Matteo, Post, Matt, Scarton, Carolina, Specia, Lucia, and Turchi, Marco. Findings of the 2015 workshop on statistical machine translation. In WMT, 2015. our card
- Caruana, Rich. Multitask learning. Machine Learning, 280 (1):0 41–75, 1997. OpenAlex ↗ · Scholar ↗
- Cho, Kyunghyun, van Merrienboer, Bart, Gulcehre, Caglar, Bougares, Fethi, Schwenk, Holger, and Bengio, Yoshua. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In EMNLP, 2014. our card
- Dai, Andrew M. and Le, Quoc V. Semi-supervised sequence learning. In NIPS, 2015. our card
- Donahue, Jeff, Jia, Yangqing, Vinyals, Oriol, Hoffman, Judy, Zhang, Ning, Tzeng, Eric, and Darrell, Trevor. DeCAF: A deep convolutional activation feature for generic visual recognition, 2014. our card
- Dong, Daxiang, Wu, Hua, He, Wei, Yu, Dianhai, and Wang, Haifeng. Multi-task learning for multiple language translation. In ACL, 2015. our card
- Evgeniou, Theodoros and Pontil, Massimiliano. Regularized multi–task learning. In SIGKDD, 2004. OpenAlex ↗ · Scholar ↗
- Gulcehre, Caglar, Firat, Orhan, Xu, Kelvin, Cho, Kyunghyun, Barrault, Loic, Lin, Huei-Chi, Bougares, Fethi, Schwenk, Holger, and Bengio, Yoshua. On using monolingual corpora in neural machine translation. arXiv preprint arXiv:1503.03535, 2015. our card
- Heigold, Georg, Vanhoucke, Vincent, Senior, Alan, Nguyen, Patrick, Ranzato, Marc'Aurelio, Devin, Matthieu, and Dean, Jeffrey. Multilingual acoustic models using distributed deep neural networks. In ICASSP, 2013. OpenAlex ↗ · Scholar ↗
- Hochreiter, Sepp and Schmidhuber, Jürgen. Long short-term memory. Neural Computation, 90 (8):0 1735–1780, 1997. OpenAlex ↗ · Scholar ↗
- Huang, Jui-Ting, Li, Jinyu, Yu, Dong, Deng, Li, and Gong, Yifan. Cross-language knowledge transfer using multilingual deep neural network with shared hidden layers. In ICASSP, 2013. OpenAlex ↗ · Scholar ↗
- Jean, Sébastien, Cho, Kyunghyun, Memisevic, Roland, and Bengio, Yoshua. On using very large target vocabulary for neural machine translation. In ACL, 2015a. our card
- Jean, Sébastien, Firat, Orhan, Cho, Kyunghyun, Memisevic, Roland, and Bengio, Yoshua. Montreal neural machine translation systems for WMT'15. In WMT, 2015b. our card
- Jozefowicz, R., Vinyals, O., Schuster, M., Shazeer, N., and Wu, Y. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. our card
- Kalchbrenner, Nal and Blunsom, Phil. Recurrent continuous translation models. In EMNLP, 2013. our card
- Kiros, Ryan, Zhu, Yukun, Salakhutdinov, Ruslan, Zemel, Richard S., Torralba, Antonio, Urtasun, Raquel, and Fidler, Sanja. Skip-thought vectors. In NIPS, 2015. OpenAlex ↗ · Scholar ↗
- Kumar, Abhishek and III, Hal Daumé. Learning task grouping and overlap in multi-task learning. In ICML, 2012. OpenAlex ↗ · Scholar ↗
- Liu, Xiaodong, Gao, Jianfeng, He, Xiaodong, Deng, Li, Duh, Kevin, and Wang, Ye-Yi. Representation learning using multi-task deep neural networks for semantic classification and information retrieval. In NAACL, 2015. our card
- Luong, Minh-Thang and Manning, Christopher D. Stanford neural machine translation systems for spoken language domain. In IWSLT, 2015. OpenAlex ↗ · Scholar ↗
- Luong, Minh-Thang, Pham, Hieu, and Manning, Christopher D. Effective approaches to attention-based neural machine translation. In EMNLP, 2015a. our card
- Luong, Minh-Thang, Sutskever, Ilya, Le, Quoc V., Vinyals, Oriol, and Zaremba, Wojciech. Addressing the rare word problem in neural machine translation. In ACL, 2015b. our card
- Marcus, Mitchell P., Marcinkiewicz, Mary Ann, and Santorini, Beatrice. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 190 (2):0 313–330, 1993. our card
- Papineni, Kishore, Roukos, Salim, Ward, Todd, and jing Zhu, Wei. Bleu: a method for automatic evaluation of machine translation. In ACL, 2002. our card
- Pham, Vu, Bluche, Théodore, Kermorvant, Christopher, and Louradour, Jérôme. Dropout improves recurrent neural networks for handwriting recognition. In Frontiers in Handwriting Recognition (ICFHR), 2014 14th International Conference on, pp. 285–290. IEEE, 2014. OpenAlex ↗ · Scholar ↗
- Sutskever, Ilya, Vinyals, Oriol, and Le, Quoc V. Sequence to sequence learning with neural networks. In NIPS, 2014. our card
- Thrun, Sebastian. Is learning the n-th thing any easier than learning the first? In NIPS, 1996. OpenAlex ↗ · Scholar ↗
- Vinyals, Oriol, Kaiser, Lukasz, Koo, Terry, Petrov, Slav, Sutskever, Ilya, and Hinton, Geoffrey. Grammar as a foreign language. In NIPS, 2015a. our card
- Vinyals, Oriol, Toshev, Alexander, Bengio, Samy, and Erhan, Dumitru. Show and tell: A neural image caption generator. In CVPR, 2015b. our card
- Xu, Kelvin, Ba, Jimmy, Kiros, Ryan, Cho, Kyunghyun, Courville, Aaron C., Salakhutdinov, Ruslan, Zemel, Richard S., and Bengio, Yoshua. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/luong-2015-multi-task-sequence-sequence-learning/