The Stem Cell Hypothesis: Dilemma behind Multi-Task Learning with Transformer Encoders

Han He, Jinho D. ChoiEMNLP 2021

Introduction

Transformer-based encoders like BERT have revolutionized Natural Language Processing (NLP) by providing robust, over-parameterized representations. A common practice in the field is Multi-Task Learning (MTL), where a single shared encoder is trained on multiple tasks simultaneously to improve efficiency and generalization. However, research from Emory University challenges the universal benefit of MTL for core linguistic tasks. Their study reveals a "negative transfer" phenomenon where training on multiple core tasks—Part-of-Speech (POS) tagging, Named Entity Recognition (NER), Dependency Parsing (DEP), Constituency Parsing (CON), and Semantic Role Labeling (SRL)—actually degrades performance compared to single-task models.

The Stem Cell Hypothesis

The authors propose the Stem Cell Hypothesis to explain this performance drop. They argue that certain attention heads in a pre-trained model act like biological stem cells: they are "pluripotent," possessing the inherent potential to specialize into experts for various tasks.

In Single-Task Learning (STL), these heads successfully specialize. However, in MTL, these "talented" heads receive conflicting signals from different tasks. Because multiple tasks compete for the same limited set of high-potential parameters, the heads become "jacks of all trades, master of none," leading to blurred representations and reduced accuracy.

Figure 1: Essential attention heads identified for five core NLP tasks (POS, NER, DEP, CON, SRL) using dynamic pruning.

Methodology: Identifying Essential Heads

To test their hypothesis, the researchers utilized two primary techniques:

  1. Dynamic Pruning (DP): Using $L_0$-regularization, the authors simultaneously fine-tuned the model and pruned non-essential attention heads. This identified the minimal subset of "expert" heads required for each task.
  2. Parameter-Free Probing: The team designed probes to measure the inherent linguistic knowledge within individual heads without additional training bias. They found that some heads in raw, pre-trained BERT can identify dependency "ROOTs" with over 96% accuracy, confirming that "talent" exists prior to task-specific fine-tuning.

Key Findings: The "M" Pattern and Negative Transfer

The study identified a distinct bottleneck in the middle layers of the Transformer (layers 5–8). Visualizing the essential heads revealed an "M" pattern of utilization, where most tasks rely on the same small group of talented heads.

Figure 5: Detailed visualization of attention head importance across layers, highlighting the concentration of essential heads in the middle layers.

The results showed clear negative transfer. For instance, in Semantic Role Labeling (SRL), the STL model achieved an F1 score of 82.93, while the MTL-5 model (trained on all five tasks) dropped to 82.30. Furthermore, the researchers demonstrated that pruning ~50% of heads in an STL model could maintain or even slightly improve performance while tripling processing speed (e.g., POS tagging speed increased from 405 to 1,245 samples/sec).

Conclusion

The Stem Cell Hypothesis highlights a fundamental dilemma in MTL for structural linguistic tasks. While MTL is efficient, the competition for "talented" attention heads in the middle layers creates a resource conflict. Future architectural improvements, such as "mixture of experts" or task-specific head assignment, may be necessary to harness the benefits of MTL without sacrificing the specialized expertise of individual attention heads.

Summary updated

BibTeX
@inproceedings{he2021stem,
  author = {Han He and Jinho D. Choi},
  title = {{The Stem Cell Hypothesis: Dilemma behind Multi-Task Learning with Transformer Encoders}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.451},
}
Figure