TaskWeb: Selecting Better Source Tasks for Multi-task NLP

Joongwon Kim, Akari Asai, Gabriel Ilharco, Hannaneh Hajishirzi

Introduction

In the current landscape of Natural Language Processing (NLP), the prevailing strategy for improving model performance has often been to scale up data and task diversity. Multi-task learning (MTL) aims to leverage shared knowledge across different domains to enhance general reasoning. However, this "more is better" approach overlooks a critical phenomenon: not all tasks are mutually beneficial. While some tasks provide "positive transfer," others introduce "negative interference" that can degrade performance on a target objective.

To address this, researchers have introduced TaskWeb, a comprehensive benchmark of 25,000 pairwise task transfer experiments, and TaskShop, a novel method for identifying the most effective source tasks for any given target. Their findings suggest that a small, curated set of high-quality tasks can significantly outperform massive, uncurated multi-task models.

The TaskWeb Benchmark

TaskWeb was designed to map the complex relationships between diverse NLP tasks. The researchers conducted a massive empirical study involving approximately 25,000 experiments across 22 representative tasks. These tasks span several categories, including:

  • NLI/Entailment: ANLI, CB, QNLI, RTE, SciTail, SNLI.
  • Paraphrase: MRPC, QQP, STSB.
  • Sentiment Analysis: IMDB, Rotten Tomatoes.
  • Commonsense Reasoning: COPA, CosmosQA, HellaSwag, PIQA, Quartz, SocialIQA, Winogrande.
  • Semantics: WiC, WSC.
  • Question Answering: BoolQ, SQuAD2.0.

The benchmark evaluates three primary model architectures—Encoder-only, Decoder-only, and Encoder-Decoder—using various adaptation techniques such as full finetuning, Adapters, and BitFit. This extensive data collection provides a "web" of transferability scores, revealing how much performance is gained or lost when a model is pre-trained on a source task before being applied to a target task.

Building on the TaskWeb data, the authors developed TaskShop, an algorithm designed to predict transferability for unseen target tasks. When presented with a new task containing only a few labeled examples, TaskShop utilizes "pivot" tasks within the TaskWeb framework to estimate the potential for positive transfer.

The algorithm relies on a key discovery: transitivity. The researchers found that if Task A helps Task B, and Task B helps Task C, there is a high probability that Task A will also help Task C. By applying strict criteria to these intermediate pivot tasks, the probability of identifying a successful positive transfer increases from 88% to 97%.

Key Insights

1. Directionality and Asymmetry

One of the most significant findings is that task relationships are directional. The assumption of commutativity—that if Task A helps Task B, then Task B must help Task A—is a myth. Because transferability is asymmetric, TaskShop is specifically designed to account for the unique influence a source task has on a target, rather than assuming a mutual benefit.

2. Architecture Consistency

While model size (e.g., T5-small vs. T5-large) does not significantly alter the patterns of task transfer, the underlying architecture does. Transfer dynamics remain consistent within a specific family (like T5), but switching to a different architecture (like GPT-2) fundamentally changes which source tasks are most beneficial.

3. Curation Over Scale

The research challenges the "massive MTL" paradigm. The study demonstrates that a model trained on a carefully selected subset of 3–5 tasks often outperforms a model trained on 21 tasks simultaneously. This suggests that large-scale multi-tasking often includes "dead weight" or harmful data that dilutes the model's specialized performance.

Results and Performance

TaskShop demonstrates substantial improvements over existing baselines in task selection and model performance:

  • Improved Selection Accuracy: TaskShop increased the ranking quality of helpful source tasks (measured by NDCG) by 10% and boosted the precision of identifying the top-k helpful tasks by 38%.
  • Zero-Shot Gains: Models trained on small, TaskShop-curated sets improved zero-shot performance across 11 target tasks by at least 4.3% compared to the massive T0-3B model, despite using significantly less training data.
  • Sensitivity to Quality: The researchers confirmed that task selection is a high-stakes decision; replacing even a single "helpful" source task with an "unhelpful" one results in a consistent drop in target task accuracy.

Limitations and Future Directions

While TaskWeb provides a robust foundation for task transfer research, it currently focuses on English-only tasks and does not yet include long-form generation or highly specialized domains like legal or medical text. Additionally, the experiments were conducted on models up to 3 billion parameters; future work is needed to determine if the emergent abilities of ultra-large models (100B+) alter these transfer dynamics.

Ultimately, TaskWeb and TaskShop represent a shift toward more principled, data-efficient multi-task learning, proving that intelligent data curation is often more powerful than sheer scale.

Summary updated

BibTeX
@inproceedings{kim2023taskweb,
  author = {Joongwon Kim and Akari Asai and Gabriel Ilharco and Hannaneh Hajishirzi},
  title = {{TaskWeb: Selecting Better Source Tasks for Multi-task NLP}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.680},
}
Figure