Exploring and Predicting Transferability across NLP Tasks
Tu Vu, Tong Wang, Tsendsuren Munkhdalai, Alessandro Sordoni, Adam Trischler, Andrew Mattarella-Micke, Subhransu Maji, Mohit Iyyer
TL;DR
This work conducts a large-scale empirical study of transferability across 33 NLP tasks spanning CR, QA, and SL, showing that intermediate fine-tuning on source tasks can yield gains even when data are scarce or the source task differs from the target. It introduces two task-embedding methods, TextEmb and TaskEmb, to predict the most transferable source tasks for a given target and demonstrates that TaskEmb consistently improves transferability predictions over data-size baselines. By combining these embeddings and evaluating across in-class and out-of-class transfers, the paper reveals that source-target similarity and domain alignment are crucial factors, sometimes more influential than raw source data size, especially in data-constrained regimes. The practical contribution includes a publicly released task library and code to compute task embeddings and identify beneficial source tasks, enabling more principled source selection in transfer learning for NLP. Overall, the findings emphasize the nuanced and data-dependent nature of transfer in NLP and provide predictive tools to navigate source-task selection efficiently.
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.
