TL;DR: This paper introduces Target-Aware Weighted Training (TAWT), a dynamic weighting algorithm for cross-task learning that minimizes a representation-based task distance between source and target tasks. By adaptively prioritizing the most relevant source data, TAWT improves the sample efficiency of models like BERT, achieving significant performance boosts across various NLP sequence tagging tasks.
The Challenge of Cross-Task Learning
In deep learning, leveraging "weak supervision" from related source tasks to improve performance on a specific target task is a common strategy, often seen in pre-training or multi-task learning paradigms. However, a persistent challenge is determining which source tasks are genuinely beneficial.
Standard approaches frequently assume all tasks share a single underlying representation, or they rely on fixed heuristics like weighting tasks by their dataset size. These assumptions often fail in practice, leading to negative transfer where irrelevant source data degrades target performance. The authors identify a critical gap: the field lacks theoretically grounded, computationally efficient methods to quantify the value of source data for a specific target task and to adaptively prioritize that information during training.
Target-Aware Weighted Training (TAWT)
To address this, the authors propose Target-Aware Weighted Training (TAWT). The core innovation is treating the weights assigned to source tasks as trainable parameters, optimized specifically to minimize the model's error on the target task.
Key technical components of TAWT include:
- Two-Step Optimization: The algorithm alternates between updating the model's shared representation using weighted source tasks and updating the task weights themselves to minimize the target task loss.
- Implicit Gradient Calculation: Because the optimal representation is an implicit function of the task weights, updating them is mathematically complex. The authors leverage the Implicit Function Theorem to derive a gradient-based update rule, enabling the use of Mirror Descent to adjust weights on the probability simplex.
- Representation-Based Task Distance: Moving away from metrics that compare task-specific labels, TAWT introduces a new mathematical definition of task distance focused on the discrepancy between the optimal representations required for each task.
- Computational Efficiency: To bypass the high computational cost of calculating Hessian matrices (a common bottleneck in meta-learning), TAWT utilizes a cosine-similarity approximation to update weights. This makes the algorithm a lightweight, easily integrated "plug-in" for existing training pipelines.
Experimental Setup
The researchers evaluated TAWT on four classic NLP sequence tagging tasks: Part-of-Speech (PoS) Tagging, Chunking, Predicate Detection, and Named Entity Recognition (NER), using datasets like Ontonotes 5.0 and CoNLL-2000. The experiments specifically targeted "low-resource" settings where the target task has very limited labeled data (e.g., 100–500 sentences).
Key Insights
The theoretical framework of TAWT yields several important insights into cross-task learning:
- Asymmetric Task Distance: Task similarity is not inherently bidirectional. Task A might benefit Task B more than the reverse. The proposed representation-based distance effectively captures this asymmetry.
- The Necessity of Fine-Tuning: The theory demonstrates that if the task distance is non-zero, a representation learned solely from source data will never perfectly converge to the optimal target representation. This provides formal justification for why fine-tuning on target data is almost universally necessary.
- Dynamic vs. Fixed Weights: The relevance of a source task fluctuates during training. TAWT's dynamic weighting—updating weights every epoch—outperforms static weighting strategies.
Results and Performance
TAWT consistently improved BERT's performance across both pre-training and joint-training scenarios.
As shown in the results, applying weighting to pre-training and joint training paradigms yields statistically significant improvements across almost all target tasks. On average, TAWT achieved an absolute improvement of 3.1% across the four NLP tasks. The benefits were most pronounced in extremely low-resource scenarios; while the performance gap narrowed as target data increased, TAWT consistently provided a superior initialization strategy. Furthermore, the authors provided a non-asymptotic generalization bound, proving that target task error is controlled by a combination of sample size and the minimized task distance.
Limitations and Future Directions
While TAWT effectively weights entire tasks, an efficient implementation for weighting individual samples—which could offer even greater precision—remains an open challenge. Additionally, the current method minimizes task distance during training; developing techniques to estimate this distance prior to training would be highly valuable. Future work could also explore TAWT's efficacy in broader contexts, such as cross-domain or cross-lingual NLP settings, as well as in computer vision applications.
Summary updated