Skip to main content
QUICK REVIEW

[Paper Review] Exploring and Predicting Transferability across NLP Tasks

Tu Vu, Tong Wang|arXiv (Cornell University)|May 2, 2020
Topic ModelingComputer Science55 references11 citations
TL;DR

This paper conducts a large-scale empirical study of transfer learning across 33 NLP tasks, demonstrating that fine-tuning BERT on diverse source tasks—even low-data or dissimilar ones—can significantly improve performance on target tasks, especially under data scarcity. It introduces task embeddings derived from BERT gradients to predict the most transferable source tasks via cosine similarity, enabling effective transfer learning selection with measurable gains across text classification, question answering, and sequence labeling tasks.

ABSTRACT

Recent advances in NLP demonstrate the effectiveness of training large-scale language models and transferring them to downstream tasks. Can fine-tuning these models on tasks other than language modeling further improve performance? In this paper, we conduct an extensive study of the transferability between 33 NLP tasks across three broad classes of problems (text classification, question answering, and sequence labeling). Our results show that transfer learning is more beneficial than previously thought, especially when target task data is scarce, and can improve performance even when the source task is small or differs substantially from the target task (e.g., part-of-speech tagging transfers well to the DROP QA dataset). We also develop task embeddings that can be used to predict the most transferable source tasks for a given target task, and we validate their effectiveness in experiments controlled for source and target data size. Overall, our experiments reveal that factors such as source data size, task and domain similarity, and task complexity all play a role in determining transferability.

Motivation & Objective

  • To investigate the extent and conditions under which transfer learning improves performance across diverse NLP tasks.
  • To identify key factors influencing transferability, such as data size, task similarity, domain alignment, and task complexity.
  • To develop a practical method for predicting the most transferable source tasks for a given target task in low-data regimes.
  • To create a publicly available library of pretrained models and task embeddings for 33 NLP tasks to support reproducible and scalable transfer learning research.

Proposed method

  • The authors compute task embeddings by processing all examples from a dataset through BERT and aggregating gradients with respect to the task-specific loss, following meta-learning principles from Achille et al. (2019).
  • Task embeddings are learned once per task and stored in a library, enabling efficient similarity-based selection of source tasks for a given target.
  • For transfer learning, the model is first fine-tuned on the selected source task using the predicted most similar task embedding, then fine-tuned on the target task.
  • Transferability is evaluated across 33 NLP tasks grouped into three classes: text classification/regression, question answering, and sequence labeling, under multiple data regimes (Full, Limited, and Low).
  • The method uses cosine similarity between task embeddings to identify the most relevant source task for a given target task, enabling automated source task selection.
  • The study employs the STILTs pipeline (Phang et al., 2018) with BERT-Base Uncased as the base model, training on source tasks before fine-tuning on target tasks.

Experimental results

Research questions

  • RQ1How does transfer learning performance vary across 33 diverse NLP tasks under different data regimes?
  • RQ2To what extent can low-data or dissimilar source tasks improve performance on a target task, especially when target data is scarce?
  • RQ3How do task and domain similarity, data size, and task complexity jointly influence transferability?
  • RQ4Can task embeddings derived from BERT gradients predict the most transferable source tasks for a given target task?
  • RQ5How effective is the proposed method in selecting source tasks that yield measurable performance gains compared to random or heuristic-based choices?

Key findings

  • Transfer learning significantly improves performance on low-data target tasks, even when the source task is small or semantically distant from the target task.
  • Part-of-speech tagging (POS-PTB) achieved a 1.5% absolute improvement on the DROP question answering dataset when used as a source task, demonstrating strong cross-task transfer.
  • Fine-tuning on SQuAD-1 or SQuAD-2 as intermediate tasks improved performance on sequence labeling tasks like POS-PTB and NER by up to 3.5% in the Full→Limited regime.
  • Task embeddings based on BERT gradients captured meaningful task characteristics, enabling accurate prediction of transferable source tasks via cosine similarity.
  • In the Limited→Limited regime, using predicted source tasks led to consistent gains across all sequence labeling tasks, with average improvements of 1.5–2.5% over baseline fine-tuning.
  • The study found that task and domain similarity were more predictive of transfer success than data size alone, challenging prior assumptions that larger source datasets are always better.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.