Bidirectional Domain Adaptation Using Weighted Multi-Task Learning
Paper · 2021 · Daniel Dakota, Zeeshan Ali Sayyed and Sandra Kübler
Summary
A small collection of annotated tweets gives a parser examples of the writing it will encounter, but it offers far less training material than a large collection drawn from more general sources. Dakota, Sayyed, and Kübler ask whether these collections can help each other. In dependency parsing, the system identifies the head that each word attaches to and labels the grammatical relationship between them. The authors treat parsing each treebank—a collection of texts annotated with syntactic structure—as a separate task. Both tasks are evaluated against parsers trained on their own data. This makes adaptation bidirectional in the sense that the authors look for a benefit on each side of the pairing.
The experiments pair the German GSD treebank with tweeDe and the Italian ISDT treebank with either TWITTIRÒ or PoSTWITA. All use Universal Dependencies V2.7. GSD and ISDT supply the larger training sets, while each Twitter training set in these pairings contains 1,000 sentences. The tasks share a bidirectional recurrent encoder that builds a representation of each word in context. Each task has its own biaffine scoring layers, which use those representations to score possible attachments and relation labels. The authors compare sharing the intervening feedforward layers with giving each task its own. They also vary how much training data the larger task receives and how strongly the loss from each task influences an update.
Joint training with equal emphasis on the tasks improves labeled attachment score, or LAS, on the small Twitter treebanks. LAS credits a word when the prediction gets both its head and its relation label right. As the size difference grows, ordinary joint training can hurt the larger treebank relative to its separate parser. Weighting the losses shifts the balance. On the German test sets, the separately trained, ordinary joint, and weighted joint parsers score 76.18, 81.77, and 82.52 LAS on tweeDe. The corresponding GSD scores are 81.35, 80.70, and 81.56. The weighted setting therefore retains the Twitter benefit and also brings GSD above its separate baseline. In the full-data cross-domain experiments, the best reported settings put most of the weight on the larger task, though the exact table entries matter and the pattern includes a narrow exception on an Italian test set.
The authors also pair Italian treebanks from similar domains. Ordinary joint training can still hurt the larger task, and weighting can still help, although it does not recover the separate baseline in every case. The authors interpret this comparison as evidence that the amount of data available to each task had more influence than the genre difference in their experiments. They choose the weights through experiments with fixed settings and leave automatic weight selection for future work. The implementation is called multiparser. It extends a PyTorch implementation of the biaffine parser.
Deep dive: Bidirectional Domain Adaptation Using Weighted Multi-Task Learning
The paper tests how weighting training losses can improve dependency parsing for both a small Twitter treebank and a larger general-domain treebank. · about 31 minutes to read
The problem and its context
When the useful data come from somewhere else
A parser trained from a treebank learns how that collection represents grammatical structure. Adapting it to a new domain poses a practical difficulty. The available examples from the domain of interest can be few, even when there is a much larger annotated collection in the same language. The larger collection supplies more examples of syntax, and the smaller collection supplies examples drawn from the writing the adapted parser is supposed to handle. The question is how to obtain value from both while preserving the accuracy already attainable with the larger collection alone.
The distinction between the amount of data and its source runs through the paper. A tweet and a sentence from a more general collection belong to different sources of text. Their treebanks can also differ greatly in size. If a parser has trouble when these collections are combined, either factor could matter. The larger collection might offer imperfect evidence for the smaller one because of domain differences. The joint training procedure might also give a small collection a degree of influence that becomes costly for the larger task. A comparison that changes domain and size together cannot separate those possibilities.
The authors situate this problem in work on syntactic adaptation that had made progress with neural parsers, although the improvements had not always met expectations. They emphasize the constraints imposed by the data available for training. In the setting they study, the adaptation corpus cannot independently provide the breadth of supervision that the larger treebank offers. At the same time, a parser trained solely on the large corpus cannot learn directly from the annotated tweets. The practical rationale for sharing is therefore clear even before the experiments. The effect of that sharing on each end of the pairing is an empirical question.
There are two distinct senses in which a domain can be central to an experiment. It can be the domain whose accuracy motivates adaptation, as the Twitter domain does in the conventional setup described by the authors. It can also be one of the outputs whose performance is part of the research question. Dakota and colleagues use the second framing for both domains. Their definition of a successful outcome makes the performance of the large-treebank parser visible alongside the performance of the small-treebank parser. A gain on Twitter alone is valuable evidence about adaptation. To establish a gain on both sides, the experiment must also account for what the general-domain parser could achieve by itself.
That framing also changes how to read a training-size experiment. Consider the general-domain parser as an output of the joint system. Giving its task more annotated general-domain sentences increases the evidence directly relevant to that output. It also changes the environment in which the recurrent encoder is trained, because the encoder still serves the Twitter task. A learning curve for the general-domain output can therefore behave differently when that output is trained jointly. Measuring it at several corpus sizes lets the authors see where the joint training procedure helps and where the separate parser becomes the stronger choice.
Why use multi-task learning?
Multitask learning trains related tasks through a shared part of a system. The paper describes earlier results in which related syntactic tasks, such as part-of-speech tagging and parsing, benefited from being learned together. A part-of-speech tag indicates a word’s grammatical category. Its prediction and the prediction of dependency structure can draw on some of the same cues. In the present paper the tasks are closer in form. Each task predicts heads and relation labels, but each does so for a different treebank.
The related work offers several ways to decide what to share. Some approaches encourage separately maintained parameters to remain similar, an arrangement known as soft sharing. With hard sharing, the tasks use the same parameters for specified components. The paper notes that soft sharing had worked with similarly annotated treebanks in lower-resource settings. It also describes successful sharing across treebanks of the same language and reports earlier findings that extensive sharing across unrelated languages can be unhelpful. Work on sharing across languages and treebanks included multilingual constituency parsing with self-attention and pre-training. Constituency parsing groups words into phrases, while the present experiments represent structure through head-dependent links.
Earlier domain adaptation work also suggested that it could be useful to share lower layers and reserve other parts of a system for specific domains or tasks. Peng and Dredze shared lower layers for Chinese news and social-media data and used domain-specific projections in work on word segmentation and named entities. In another line of work, Søgaard and Goldberg put supervision for lower-level tasks at lower layers, with an application to English chunking, which identifies groups of words. These examples show how joint training and task-specific computation can coexist. The paper places its design in that tradition while assigning a full parsing task to each treebank. Deep multi-task learning with low level tasks supervised at lower layers
Why sharing can hurt
The paper uses negative transfer for a loss of performance attributable to learning tasks together relative to training separately. Earlier work discussed by the authors offers several explanations for why this can happen. Tasks may learn at different rates. A task may dominate updates to the shared parameters. The schedule can also affect how well the system retains what it has learned. Which tasks are paired matters as well. The paper reviews evidence about auxiliary label distributions, learning curves, the relative difficulty of tasks, and properties of their datasets. Dataset size is thus one candidate explanation in a broader set of factors, and the experiments are designed to vary it directly.
Loss weighting addresses the amount of influence that each task has when its data are used for training. The authors describe earlier strategies that assign different weights to limit harmful transfer or emphasize more pertinent tasks. In the work they review, loss weighting had helped in computer vision, and differing weights had been used for syntax-aware training on Chinese–English code-switching. They also describe a domain adaptation approach that changed the emphasis on lower and higher tasks over training, before fine-tuning on the target domain. These precedents supplied a reason to test whether unequal weights could work even when both tasks in a pair were considered important.
The resulting question is about the relationship between task importance and training influence. The authors consider both outcomes important enough to evaluate separately. They leave the scale of each task’s update open to experiment. A low weight for Twitter can therefore be consistent with a strong concern for Twitter accuracy. Its role is to control the contribution of the Twitter error signal during training. Whether that makes the final Twitter parser better is something the held-out evaluations can establish.
The method, step by step
Turn each treebank into a parsing task
The system learns from pairs of annotated collections. Within a pair, the parsing problem has the same overall form for both tasks. Each input contains words, and the annotations identify the dependency arcs and labels the parser is supposed to learn. An arc connects a dependent word to its head. The label says what kind of relation the connection represents. The head and the label offer distinct sources of error. A parser could find the right head and assign the wrong grammatical relation, or it could fail earlier by choosing the wrong head.
Treebank membership determines which task is active. When a batch comes from GSD, the training signal concerns GSD annotations and uses the scoring layers assigned to that collection. When a batch comes from tweeDe, it uses the tweeDe scoring layers. The shared encoder participates in both cases. This pattern gives the parsers somewhere to exchange information while preserving separate routes from the encoded sentence to the final arc and label scores. At evaluation, a given treebank is parsed using its own task’s route through the system.
The underlying architecture is the graph-based biaffine dependency parser of Dozat and Manning. A graph-based parser assigns scores to potential dependency connections in a sentence. Here, learned representations of a potential head and dependent enter a biaffine scoring function. In practical terms, the function can score how well the representations go together for a given decision and include terms that depend on the input representations individually. The paper concentrates on how to share the components that feed these decisions and how to scale the loss that trains them. The authors build their system by modifying the associated parser implementation from the work on Efficient Second-Order TreeCRF for Neural Dependency Parsing.
Represent the words and encode the sentence
The input representation starts with word embeddings, which are learned vectors associated with words. Some experiments add an embedding for each word’s part-of-speech tag. These tags are gold annotations, meaning they come from the reference data. A further group of experiments adds a contextual representation from BERT specific to German or Italian. The word and tag embeddings are initialized randomly. The BERT representation is constructed by combining outputs from the last four BERT layers with scalar coefficients and passing that mixture through a linear projection.
A scalar mixture can be understood as combining corresponding components of the layer outputs after scaling each layer’s contribution. The projection then maps the mixture into the dimensionality used by the parser. When the input includes several embedding types, the parser concatenates them, putting their components into a single longer vector for each word. These are different sources of information about the same input word. The ordinary word embedding provides the learned lexical representation. The tag embedding supplies its annotated grammatical category. The BERT component brings a contextual representation from the language-specific pretraining.
The vectors go to a bidirectional long short-term memory encoder, abbreviated BiLSTM. The encoder reads the sequence in both directions. The representation it produces at a word can therefore incorporate what occurs before and after that word. This is a shared component. Training on GSD and training on tweeDe alter the same encoder in their joint system, so a change induced by the GSD annotations can affect how the encoder subsequently represents tweeDe inputs.
The directionality of the encoder and the directionality of adaptation describe different aspects of the experiment. The encoder is bidirectional because it processes a sentence with access to context in both directions. Adaptation is bidirectional because the study considers transfer between the two treebanks in both directions when it evaluates the final parsers. Sharing makes that transfer possible in the architecture. A performance improvement requires a comparison with the corresponding separate parser.
Choose where sharing ends
The BiLSTM supplies contextual representations for the words. These representations then pass through multilayer perceptrons, or MLPs. An MLP is a feedforward network that transforms its input. The MLPs reduce the dimensionality of the encoder outputs and provide representations used by the arc and label scorers. Their role is to keep information useful for those decisions in a smaller representation.
The authors test two placements for the boundary between common and task-specific parameters. In the shared-MLP version, the tasks use the same MLP layers. Training from either treebank can therefore change both the encoder and this intermediate transformation. In the unshared version, each task has its own MLP layers, so the representations from the common encoder are transformed separately before being scored. Both versions use task-specific biaffine layers for the arc and relation decisions. A comparison between the versions concerns the MLP boundary, with the shared encoder and separate scoring layers present in both.
The distinction matters for what can be learned from the comparison. A strong result for shared MLPs would show that sharing the intermediate transformations worked for these treebanks under the tested conditions. Because each task still has its own biaffine layers, the tasks can score attachments and relations differently in either architecture. The study can thus look for a benefit from extra sharing without requiring both domains to use identical scoring parameters.
Training the shared parser on paired treebanks
The steps in order.
Train on one task at each step
The training procedure first randomly selects a task and then randomly selects an annotated batch from that task. Sentences are selected without replacement within an epoch. The parser runs the selected batch through the layers used by that task, calculates its loss, and backpropagates the error. Back-propagation determines how changing parameters would affect the loss. The update can reach both the shared layers and the task-specific layers that produced the active task’s scores.
Selecting a task before selecting sentences keeps the identity of the batch explicit. In a batch from one treebank, the loss concerns that treebank’s arc and label predictions. Even though the system has separate prediction routes, a batch can still influence both parsers indirectly through their common encoder. That indirect effect is the reason a task can help or hurt the other task. The next batch from the other treebank encounters a shared representation shaped in part by the earlier update.
The authors give the unweighted task objective as the sum of two cross-entropy losses.
Lₜ(Xₜ; Θ) = Lₐ(Xₜ; Θ) + Lₗ(Xₜ; Θ)
Here t identifies the task and Xₜ is the input batch drawn for that task. Θ denotes the parser parameters. The semicolon separates the batch argument from the parameter argument. Lₜ is the loss for the active task. Lₐ is the cross-entropy loss associated with the arc scores, and Lₗ is the cross-entropy loss associated with the label scores. In each term, the batch and the current parameters determine the scores whose agreement with the reference choices is assessed. The plus sign means both forms of prediction error contribute to the task objective.
Cross-entropy penalizes the parser when it assigns low probability to the reference choice. The two components provide feedback about where words attach and how those attachments are labeled. This loss supplies the signal used for updates. LAS, the score reported for evaluation, instead checks the resulting head and label decisions. By training with both loss components, the parser gets feedback about the two kinds of prediction needed for a correct labeled attachment.
The ordinary multitask experiments use the loss of the selected task as it stands. The loss is therefore effectively scaled by 1 when that task is active. The weighted experiments introduce a multiplier for the whole task objective.
Lₜ(Xₜ; Θ) = wₜ · (Lₐ(Xₜ; Θ) + Lₗ(Xₜ; Θ))
Lₜ, Xₜ, and Θ again denote the task loss, the selected batch, and the parser parameters. Lₐ measures the arc error and Lₗ measures the label error. wₜ is the weight for task t, and the centered dot indicates multiplication. The parentheses apply the same multiplier to the sum of arc and label losses. A smaller multiplier reduces the contribution of both from that task during an update. The weight belongs to the treebank task, so it leaves the relative treatment of the two error components within that task intact.
The normalized weights in the weighting experiments follow this constraint.
∑ₜ wₜ = 1
∑ₜ means to add the weights over the tasks in the pair. Each wₜ is the loss multiplier for the task indexed by t. The right-hand side, 1, is the required total. The plots use the weight for the larger treebank as their horizontal coordinate. The weight for its partner is expressed as follows.
1 − x
x is the weight assigned to the larger treebank task. The minus sign subtracts that weight from the total, 1, to obtain the partner’s weight. The sweep ranges from 0 to 1 on the large-task axis. The midpoint at 0.5 gives the tasks equal weight within this normalized sweep. This midpoint and the ordinary alternating-loss configuration both express equal relative emphasis, but they scale the selected loss differently. The plots use the midpoint as their equal-weight reference, while the main comparison also reports the separate ordinary multitask configuration.
A loss weight has its effect after a task and batch have been chosen. The described procedure changes the scale of the objective on that batch. The paper relates this to giving tasks different learning rates because scaling the loss changes a task’s contribution to the updates. Its implementation uses Adam, and the paper presents the connection as an analogy about update influence. In particular, a weight describes a multiplier on an error signal. Dataset size describes how many sentences the task can draw on. Task selection, diversity of available sentences, and loss scale are distinct aspects of the procedure.
Set up the training runs
The parser configuration lists a word embedding dimension of 300, a part-of-speech embedding dimension of 100, and a BERT projection dimension of 100. It uses 4 BERT layers in the scalar mixture. The BiLSTM has 3 layers, with a hidden layer dimension of 400. The reported optimizer is Adam. The patience setting is 50, the batch size setting is 20k tokens, and the learning rate is 2e-3. The sentence counts in the corpus comparisons describe training data available to a task, while the batch setting describes how the selected training examples are grouped for updates.
The learning curves begin with 1,000 training sentences from each treebank. The authors repeatedly double the available training size for the larger treebank until they reach the full amount used in that experiment, keeping the small training set fixed. This setup allows comparisons among word embeddings alone, word and part-of-speech embeddings, and word and part-of-speech embeddings with BERT. It also allows the shared and unshared MLP configurations to be compared over different sizes of the larger training set.
The loss-weight experiments use shared MLP layers and word plus part-of-speech embeddings. The paper gives a practical reason for this input choice. It performed better in the ordinary learning curves than word embeddings alone and could be used without the external pretraining needed for the BERT input. The choice holds the architecture and input features fixed while loss weights vary. It also defines the scope of the main weighted results, which concern the parser with these inputs.
Experiments and results
The treebanks and splits
The German pairing combines GSD with tweeDe. GSD contains text from news, reviews, and Wikipedia. TweeDe contains tweets. In the full-size GSD setting, its training split has 13,814 sentences. Its development split has 799 sentences and its test split has 977. The researchers use the first 1,000 tweeDe sentences for training, followed by 150 for development and 151 for testing. The Twitter training set stays at that size throughout the German learning curves. A point on a tweeDe curve at a larger GSD size therefore represents access to more GSD training sentences through joint learning.
The large Italian treebank in the cross-domain experiments is ISDT, whose sources include legal text, news, and Wikipedia. Its full training split contains 13,121 sentences, with 564 for development and 482 for testing. TWITTIRÒ and PoSTWITA provide the Italian Twitter data. Each contributes 1,000 training sentences to the cross-domain trials. The TWITTIRÒ development and test sets contain 144 and 142 sentences, respectively. PoSTWITA has 150 sentences on each of those splits. Like the German comparison, each Italian comparison keeps its small training split fixed and varies how much of the larger collection the joint parser can use.
There are also same-domain pairings for Italian. For the general-text comparison, the authors pair ISDT with ParTUT, which covers similar types of writing, including legal, news, and Wikipedia texts. ParTUT is reduced to 1,000 sentences for training, with 150 for development and 150 for testing. In the Twitter comparison, TWITTIRÒ remains the small task, and PoSTWITA becomes the large one. PoSTWITA can then grow to about 5.3k training sentences. Its use as the larger treebank here differs from its fixed-size role opposite ISDT.
All of these experiments use the Universal Dependencies v2 collection as represented in V2.7. Using the same annotation framework makes it possible to define corresponding parsing tasks across the treebanks. Distinct test and development scores still matter because the sentences and task heads belong to specific collections. “Full data” in the cross-domain results means the full GSD or ISDT training split paired with the small Twitter split specified for that experiment.
How the comparisons are scored
The main baseline is single-task learning, abbreviated STL. Each separate parser trains on its own treebank. Ordinary multitask learning, abbreviated MTL, adds the partner treebank and uses the shared architecture with unweighted alternating losses. Weighted MTL retains the shared training arrangement and scales the losses by task. In the final cross-domain comparison, both joint variants use the shared MLP setting, and the input in all reported rows is word plus part-of-speech embeddings. This aligns the comparison around the addition of a partner and the treatment of its loss.
The authors report LAS with the CoNLL 2018 shared task scorer. A labeled attachment is correct when both the selected head and its grammatical label agree with the reference. The authors average the score over runs with seeds 10, 20, and 30. A seed controls the starting state of pseudorandom choices. The paper says that in a small number of settings one run scored more than 30 points below the other runs. For those settings, the authors substituted seed 40. The main learning curves and the weight sweeps concern the development sets. The paper explicitly reports development and test scores for the final cross-domain comparison.
This baseline design makes it possible to ask a different question about each of the two outputs. On the small treebank, the separate run shows what can be learned from the limited annotated sample with the same input features. On the large treebank, the separate run shows what it can achieve when its own training signal has the parser to itself. For the joint runs, both of those yardsticks apply. A comparison with the small baseline establishes whether transfer helped that task. A comparison with the large baseline establishes whether the gain coincided with a cost on the other output.
German results with the full GSD training set
The German test results make the tradeoff easy to see. With word and part-of-speech inputs, gewone joint training improves on the tweeDe-only parser. The weighted joint run moves the tweeDe score higher again. These comparisons use the same 1,000 tweeDe training sentences throughout, so the result concerns what the small task can gain by learning alongside GSD.
Separate and joint training on the tweeDe test set
The weighted joint parser achieves the highest labeled attachment score on the Twitter test set.
The numbers
| System or setting | LAS |
|---|---|
| STL | 76.18 |
| Shared MTL | 81.77 |
| Weighted shared MTL (this paper) | 82.52 |
The GSD test results show the other side of the pairing. In ordinary joint training, the GSD score falls below its separate baseline. With weighted joint learning, the result recovers and slightly exceeds that baseline. For these German full-size runs the reported loss weights are 0.90 for GSD and 0.10 for tweeDe. The benefits seen on the two test splits therefore come from a joint configuration that assigns the larger task most of the loss weight.
Separate and joint training on the GSD test set
Weighting recovers the loss from ordinary joint training and edges past the separate parser.
The numbers
| System or setting | LAS |
|---|---|
| STL | 81.35 |
| Shared MTL | 80.70 |
| Weighted shared MTL (this paper) | 81.56 |
The development results show the same ordering for each treebank. On the GSD development set, STL gives 84.63 LAS, ordinary shared MTL gives 83.76, and weighted shared MTL gives 84.74. On the tweeDe development set the corresponding scores are 74.69, 79.01, and 79.99. The magnitude of the movement varies by split and treebank. The central result is visible in both splits. TweeDe gains clearly with ordinary joint training, and weighting keeps that gain while changing the comparison with the separate parser for GSD.
Italian results with the full ISDT training set
The Italian experiments let the authors check whether the German pattern carries over to another language and another choice of Twitter collection. TWITTIRÒ reaches 78.17 LAS with separate training on its development split. The ordinary shared run with ISDT gives 82.83, and the weighted run gives 84.11. On the TWITTIRÒ test split the scores are 78.07 for STL, 81.64 for ordinary shared MTL, and 82.28 for weighted shared MTL. Both sets of evaluations support sharing with ISDT for this small collection, and the weighted setting has the highest LAS on each split.
PoSTWITA shows the same ordering when it is the small partner for ISDT. Its development LAS goes from 77.22 with separate training to 80.48 with ordinary joint learning and 81.58 with weighted joint learning. Its test LAS is 75.46, 78.57, and 79.24 in the same order. These comparisons concern the version of PoSTWITA limited to 1,000 training sentences. They establish what happens when ISDT supplies more general-domain supervision alongside that fixed Twitter sample.
ISDT has one separate baseline per split and separate joint results for each pairing. Its development baseline is 91.31 LAS. Ordinary joint training yields 90.59 when paired with TWITTIRÒ and 90.31 when paired with PoSTWITA. The weighted results on the ISDT development split are 91.54 and 91.45 for those respective pairings. Thus the large-task development results follow the German pattern for either Twitter partner. Ordinary joint training lowers LAS, and the weighted run gains back enough to edge past the separate baseline.
On the test split, separate ISDT training gives 91.80 LAS. When TWITTIRÒ is the partner, ordinary shared MTL gives 91.18 and weighted shared MTL gives 92.07. With PoSTWITA as the partner, the corresponding joint scores are 90.92 and 91.79. In the latter pairing, weighting improves the ISDT score relative to ordinary joint learning, and the weighted result is still just below the separate baseline. The table shows a clear recovery in that setting and a strict improvement over the baseline in the TWITTIRÒ pairing.
The authors describe the Twitter improvements in the full-size comparison as gains of 3-5% absolute with ordinary MTL and a further 1-1.5% with weighting. Those are their broad characterizations of the LAS results. The exact test entries show that the extra improvement from weighting varies with the particular treebank and split. Likewise, the paper’s account of slight improvements for the large parsers is most accurately read with the ISDT test result for the PoSTWITA pairing in view.
The weight row lists 0.95 and 0.90 under ISDT and 0.15 and 0.05 under the respective Twitter columns on both splits. The individual Italian entries in that row do not all reconcile with the complementary-weight rule for the named pairings, so the row does not establish an exact normalized weight assignment for every Italian score. The weight sweeps and the results text support the general description of the full-size settings as giving most of the loss weight to the large task. The clearly specified German pairing and the separate Italian same-domain experiments show how such complementary weights are used.
What the ablations show
Changing the inputs and the location of sharing
The ordinary MTL learning curves vary the input representations before the weighting experiments fix a particular choice. Across the comparisons, word embeddings alone give the lowest LAS. Adding the gold part-of-speech features improves it, and adding BERT to the word and tag inputs gives the highest scores. This ordering concerns the feature combinations as tested. The word and tag comparison adds annotated word categories to the input. The BERT comparison adds contextual information to the combination that already has those categories.
These input changes affect the shape of the curves as well as their height. In the German experiments, the word-only condition still gains on the small task when the full large training set is used. The richer input settings level off more quickly. This suggests that the amount of extra GSD data useful for tweeDe depends on the information already supplied at each word. A richer representation can yield higher LAS even if the benefit from adding general-domain training sentences becomes smaller sooner.
For the MLP comparison, sharing the intermediate feedforward layers tends to give a slight benefit on the small Twitter tasks over using task-specific MLPs. The differences are smaller on the large treebanks. This gives the authors a reason to use the shared MLP configuration for the weighting sweeps. It also shows that the comparison of ordinary and weighted MTL can be made without moving the boundary of parameter sharing between those two conditions.
The tested architectures differ at a specific point. Both have a shared recurrent encoder and treebank-specific biaffine layers. The gains associated with shared MLPs are evidence about the extra shared transformations under those conditions. The paper’s strongest results for loss weighting are obtained after fixing that architectural choice, so the weight sweeps do not establish how the best weights would change if the MLPs were separated.
Growing the large task while fixing the small task
The data-size experiments begin from the same training sentence count for each task. At 1k training sentences on each side of the German pairing, the two treebanks have fairly similar LAS. The Italian Twitter treebanks score lower than ISDT at the corresponding size. The paper interprets such differences as a sign that equal counts can still leave tasks with different difficulty. An attachment score in this setting reflects what the parser can learn about a collection from the given features and supervision. Equality of training counts removes one size difference and leaves other differences between tasks in place.
On the German curves, tweeDe benefits from joint training across the GSD training sizes. GSD also benefits initially. The paper places the point where separate GSD training overtakes ordinary MTL at 4k GSD training sentences. For the GSD runs with word plus part-of-speech features, with or without BERT, the authors describe a decline after 4k when still more GSD sentences are added. This is an especially informative comparison because the training examples being added come from the same treebank as the evaluation. The decline occurs in the joint run, where the more extensive GSD sample is still being learned through an encoder that also receives equally emphasized training from tweets.
The Italian curves show a similar eventual advantage for the large task trained separately, though the location of that crossover depends more visibly on the inputs. The paper places it in the range from 4-8k ISDT training sentences when the small partner is TWITTIRÒ and from 2-8k with PoSTWITA. In its discussion of the richer features, it notes that the separate parser can already be on par with the joint one at 2k, while the word-only setting needs closer to 8k. ISDT’s improvement with added training data is also described as more almost linear than GSD’s, with flattening evident towards the full training size.
The repeated comparison across sizes ties the disadvantage of ordinary MTL to a change in relative data availability. It also shows why the final full-size comparison gives an incomplete picture by itself. At smaller sizes, the large task can still gain from sharing. As the large-task corpus grows, its separate parser has more scope to learn from its own annotations, and the equivalent joint system can fail to keep up. The sizes at which this occurs vary with the feature set and the corpus pairing.
Varying the task weights
The sweeps cover 1k, 2k, 4k, and all available training sentences on the large side, with the small task held fixed. They plot LAS for both tasks at each tested choice of weights. The authors indicate the equal-weight point at 0.5 and mark each task’s best observed score. It is important to read the two peaks as separate observations. A setting that maximizes the large-task curve can differ from the setting that maximizes the small-task curve. The closest point to balance and the best point for a given output answer different questions.
In the 1k German condition, both tasks are close to their best near equal weight. For GSD the best reported point gives 0.5 to each task. The best tweeDe setting in that condition is reported as 0.45:0.55 for GSD:tweeDe. When the GSD training size rises to 2k, the best reported points move away from perfect balance, but the improvement over the balanced setting is small. As GSD grows further, the authors find that increasing its weight becomes more consequential for its LAS.
The tweeDe curves also help explain why increasing GSD’s weight can work for both outputs. In the imbalanced settings, tweeDe performance starts to level off around the equal-weight point. Moving beyond that point toward stronger emphasis on GSD produces less additional improvement for tweeDe than it can produce for GSD. The small task still uses a shared encoder shaped by GSD’s training. A lower weight on its own batches can therefore coexist with an improvement on its evaluation set.
The Italian weight sweeps show some different curve shapes. At 1k and 2k, the Twitter curves for the two Italian pairings are described as slightly concave. From 4k onward, the ISDT curves tend upward as the larger treebank receives more weight. The authors see the comparable upward trend for GSD at its full training size. Across the pairings, near-balance in training size generally leaves more room for choosing weights near the midpoint, while pronounced size imbalance creates a clearer reason to favor the larger task.
The paper interprets this behavior in terms of the steps taken during optimization. When available training sizes are closer, updates from each task can improve the shared representation for both. With a much larger general-domain corpus, the equal-emphasis Twitter signal can pull the shared parameters away from a solution that serves the general-domain task well. Reducing the scale of the Twitter loss changes that influence. The authors suggest the resulting updates may help the joint parser move past a locally favorable but poorer solution. The observed performance across the sweeps supports the effect of weighting. The specific explanation in terms of local optima is their interpretation of that effect.
Pairing treebanks from the same domain
The within-domain comparisons test whether a difference between Twitter and more general writing is needed for the large-task cost to appear. In one comparison, TWITTIRÒ remains small and PoSTWITA grows. In the other, ParTUT remains small and ISDT grows. The authors use word and part-of-speech features. The ordinary joint learning curves again show the large task’s separate parser pulling ahead near the end. At the same time, the small task approaches the performance of its larger partner on its own development set.
The similarity matters because both conditions remove the broad Twitter versus general-text contrast from the pairing. The large task can still lose performance in ordinary MTL, so that broad genre difference is unnecessary for the observed drop. The authors take the recurring pattern as evidence for size imbalance as the more influential factor in these experiments. The same setup also shows that a small collection from a related source can gain substantially from sharing even when its large partner obtains little benefit.
The authors report a further weighted comparison with selected weights, using 0.65 for PoSTWITA and 0.35 for TWITTIRÒ in the Twitter pairing. On the development split for the larger PoSTWITA task, the separate baseline is 83.60 LAS, the ordinary joint score is 83.46, and the weighted score is 83.66. On the TWITTIRÒ development split, the scores are 78.17, 83.65, and 84.14, respectively. This is a case where weighting improves both outputs over ordinary joint training, with the larger task finishing just ahead of its separate parser.
In the general-text pairing, the loss weights are 0.90 for ISDT and 0.10 for ParTUT. For ParTUT, development LAS is 85.35 under STL, 91.05 under ordinary MTL, and 91.34 under weighted MTL. The small task already benefits substantially from ordinary sharing. Weighting improves its result further and also brings ISDT closer to its separate score. The ISDT comparison shows how a useful recovery from negative transfer can come close to the baseline while still leaving a small gap.
ISDT development LAS when paired with ParTUT
Weighting recovers most of the large task’s loss from ordinary joint training.
The numbers
| System or setting | LAS |
|---|---|
| STL | 91.31 |
| Shared MTL | 90.71 |
| Weighted shared MTL (this paper) | 91.27 |
These are development results under selected weight settings. They complement the unweighted learning curves by testing whether the intervention can work in the absence of a broad domain contrast. They also show that improving both outputs over ordinary MTL and improving both over their separate parsers are distinct thresholds. The reported weight selection crosses both thresholds for the Twitter pair. For the ISDT and ParTUT pair it crosses the first threshold on both treebanks, and the second threshold on ParTUT.
Limitations
Limits and open questions the authors identify
The authors call for experiments across a wider range of languages and domains. Their cross-domain evidence concerns German and Italian treebanks with Twitter as the small training source. This gives them comparable target genres in the two languages and lets them use more than one Twitter treebank in Italian. The scope still leaves open how the same architecture and weighting procedure would work with other domain contrasts, other underlying collections, or other languages. The same-domain comparisons are narrower still, since both are Italian.
Fixed weights are another explicit limit. The study sweeps possible weights and reports effective settings under the experimental conditions. It leaves dynamic learning of the weights for future work. It also leaves more complex task scheduling open. These are different ways to change the training process. A method for learning weights would have to decide how strongly to scale an active task’s contribution. A schedule could also change when and how often the tasks contribute. The paper establishes that manually chosen loss weights can be effective with its alternating procedure, leaving the choice of a more adaptive training rule open.
The authors recognize that both data imbalance and domain differences can play a role. Their conclusion about the relative influence of size is based on the cross-domain and same-domain results together. The weight sweeps also suggest a role for task difficulty, including situations in which the data are balanced by sentence count. This leaves a practical uncertainty even within the setup. The sizes are observable before training, but the LAS responses to weighting have to be measured for the chosen pair.
Limits visible in the experimental setup
The same-domain comparison changes the pairing and the genre contrast at the same time. TWITTIRÒ is paired with PoSTWITA instead of ISDT, and ISDT is paired with ParTUT instead of a Twitter treebank. The corpora share broad sources within each comparison, yet they remain distinct collections of annotated sentences. They need not present the parser with the same distribution of structures or the same level of difficulty. The reappearance of negative transfer is evidence that a broad domain contrast is unnecessary. The comparison gives no independent measurement of how much of the original effect is attributable to genre and how much to other treebank differences.
The main weighting results use gold part-of-speech annotations. That condition allows the paper to compare joint training methods with the same input information and without adding external pretraining for those runs. A parser used on text without annotated tags would face a different input condition. The learning curves include word-only inputs and inputs enriched with BERT, but the systematic weighting comparisons concentrate on word plus gold tags and shared MLP layers. Consequently, the reported weight choices and their LAS effects apply most directly to that configuration.
The small Twitter sets are fixed samples built using the opening sentences specified for each corpus split. The learning curves vary the quantity of larger-treebank training data rather than repeatedly drawing different small sets. The results describe transfer with the selected small samples. They give no estimate of how the outcome would change if a different sample of tweets of the same size had been selected. Likewise, a curve based on sentence counts captures how the quantity of available sentences changes. It does not directly measure the diversity of constructions or label distributions in those sentences.
The paper reports means over seed runs and describes replacing a seed in a small number of settings after a much lower score. The headline comparisons do not give uncertainty intervals. This matters particularly for large-task results that end very close to the STL baseline. A score just above or just below it fixes the ordering in the reported comparison, but the means give limited information about how stable that ordering would be across further runs. The large gains on the small tasks and the consistently improved large-task scores relative to ordinary MTL can be described separately from the narrow margins relative to STL.
Another limit concerns what the results say about the mechanism. Varying the weight while holding the data and architecture fixed shows that the loss multiplier affects accuracy. It does not trace which parts of the shared representation change or directly measure the relationship between the two tasks’ update directions. The authors’ account of different effective learning rates and possible local optima explains why scaling might matter, and the curves are compatible with that account. The measured result concerns labeled attachments on held-out sentences.
Finally, the direct system comparison is with corresponding single-task parsers and with different versions of the joint parser. The earlier adaptation methods frame the research question, while the experiments test the benefits of adding a partner treebank and changing its loss. This design supports claims about the joint architecture relative to the study’s own baselines. It leaves open the relative performance of other adaptation procedures under the same corpus sizes, features, and evaluation splits.
What came after
No later work is documented here that establishes how the paper’s weighting method was reused, extended, or tested. The authors’ proposed follow-up was to learn the weights automatically and investigate more flexible task schedules. Those proposals leave open whether a training procedure can find a balance that works for both treebanks without a manual sweep.
Cite
Cite as Daniel Dakota, Zeeshan Ali Sayyed and Sandra Kübler. 2021. Bidirectional Domain Adaptation Using Weighted Multi-Task Learning. Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021).
@inproceedings{dakota2021bidirectional,
title = {{Bidirectional Domain Adaptation Using Weighted Multi-Task Learning}},
author = {Daniel Dakota, Zeeshan Ali Sayyed and Sandra Kübler},
booktitle = {Proceedings of the 17th International Conference on Parsing Technologies and the IWPT 2021 Shared Task on Parsing into Enhanced Universal Dependencies (IWPT 2021)},
year = {2021},
doi = {10.18653/v1/2021.iwpt-1.10},
url = {https://doi.org/10.18653/v1/2021.iwpt-1.10}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dakota-2021-bidirectional-domain-adaptation-weighted-multi/