Introduction
The "Pretrain-then-Fine-tune" paradigm, exemplified by models like BERT, has become the standard for modern Natural Language Processing (NLP). However, a common enhancement involves an intermediate step: fine-tuning on a "source" task before the final "target" task, a technique known as Supplementary Training on Intermediate Labeled-data Tasks (STILTs). While often effective, this process remains largely a "black box." Selecting an inappropriate source task can lead to suboptimal performance or even "negative transfer." Traditionally, practitioners rely on simple heuristics, such as choosing the largest available dataset (e.g., MNLI). This paper addresses the fundamental question: Can we systematically predict which tasks transfer well to others without exhaustive experimentation?
Methodology: TASKEMB and TEXTEMB
To move beyond trial-and-error, the authors propose two embedding techniques to quantify task similarity and predict transferability across three data regimes: Full → Full, Full → Limited (1,000 samples), and Limited → Limited.
- TEXTEMB: This baseline approach averages BERT’s token-level representations across a dataset. It primarily captures domain similarity—identifying whether the text style resembles Wikipedia, news, or social media.
- TASKEMB: Inspired by computer vision's Task2Vec, this method computes a Fisher Information Matrix based on the model's gradients relative to the task-specific loss. This captures task similarity by identifying which model parameters are most critical for solving a specific problem.
By calculating the cosine similarity between these embeddings, the researchers can rank potential source tasks for any given target task, effectively identifying the most promising candidates from a precomputed library.
Experimental Setup
The study evaluates transferability across 33 diverse datasets, categorized into three broad classes:
- Classification/Regression (CR): Includes the GLUE benchmark (MNLI, QNLI, SST-2, etc.), SNLI, and SciTail.
- Question Answering (QA): Includes SQuAD 1 & 2, NewsQA, HotpotQA, WikiHop, and DROP.
- Sequence Labeling (SL): Includes Part-of-Speech tagging (POS-PTB), Named Entity Recognition (NER), and CCG supertagging.
Key Insights and Results
The empirical study of over 3,000 transfer combinations yielded several critical insights that challenge common assumptions in NLP.
The Limits of "Bigger is Better"
While massive datasets like MNLI are frequently strong source tasks, they are not universally optimal. In data-constrained settings, a smaller but more similar task often provides a superior performance boost. For instance, the authors found that regression tasks like STS-B (sentence similarity) are surprisingly potent sources for classification, likely because they force the model to learn fine-grained scalar differences.
Cross-Class Transferability
Transfer is not restricted to tasks within the same category. A notable finding was that Part-of-Speech tagging (Sequence Labeling) transfers remarkably well to DROP (Question Answering), a dataset focused on quantitative reasoning. This suggests that structural linguistic knowledge can be a prerequisite for complex reasoning tasks.
Performance in Low-Data Regimes
Intermediate transfer is most impactful when target data is scarce. In the Full → Limited regime, the average relative performance gain was +47% for Classification and +63.3% for QA.
The ensemble of TEXTEMB and TASKEMB consistently outperformed the standard "Data Size" heuristic. It proved particularly adept at identifying the "best" source task, often ranking it within the top three candidates out of 32 possibilities. Furthermore, task embeddings remained predictive even when the source task itself had limited data, demonstrating that the "essence" of a task can be captured from as few as 1,000 examples.
Limitations and Future Directions
Despite its success, the current approach has limitations. The use of cosine similarity implies a symmetric relationship between tasks, whereas transferability is often asymmetric (Task A may help Task B more than vice versa). Future work could explore asymmetric metrics to better capture these nuances. Additionally, while TASKEMB is significantly cheaper than brute-force training, computing gradients over large datasets still incurs a computational cost. Finally, extending this study to larger architectures like T5 or GPT-class models would determine if these transferability patterns are universal across model scales.
Summary updated