Introduction
In Natural Language Understanding (NLU), Multi-Task Learning (MTL) is often viewed as a double-edged sword. Traditional "coarse" approaches share all model parameters across all tasks to promote generalization. However, this frequently leads to task interference, where learning one task (e.g., sentiment analysis) degrades performance on another (e.g., question answering). Conversely, "fine" approaches that utilize separate modules for every task are parameter-heavy and computationally expensive.
To address this, the authors propose HMNet (Hierarchical Multi-task Network), a model that organizes layers into a "coarse-to-fine" structure. This architecture leverages positive interactions between similar tasks while shielding them from negative interference, all while maintaining the inference efficiency of a standard single-task model.
Hierarchical Architecture
HMNet structures a Transformer-based model into three distinct tiers to balance sharing and specialization:
- Shared Layers (Bottom): These layers are optimized by all tasks to capture universal low-level linguistic features like syntax and basic semantics.
- Task-Clustering Layers (Middle): Tasks are grouped into clusters based on relevance. Tasks within the same cluster share these layers, allowing them to mutually boost performance.
- Task-Specific Layers (Top): Each task has dedicated top layers to capture nuances unique to its specific dataset.
To determine cluster membership, the authors utilized three metrics: Data Property (vocabulary overlap), Manual Design (human-defined purpose), and Model-based Relevance (empirical performance gains in pair-wise training).
Experimental Setup and Insights
The model was evaluated on 13 benchmark NLU datasets, including Natural Language Inference (MNLI, QNLI, RTE, SNLI), Sentiment Classification (IMDB, SST-2), Similarity/Paraphrase (QQP, STS-B, MRPC), and Question Answering (BoolQ, MultiRC).
Key Insights
- Asymmetric Task Influence: Relationships between tasks are not always mutual. For instance, while other tasks help performance on BoolQ, training on BoolQ can actually hurt the performance of other tasks.
- The Sharing "Sweet Spot": Ablation studies revealed that sharing the bottom 8 layers of a 12-layer Transformer yielded optimal results. Sharing too few layers loses MTL benefits, while sharing too many reintroduces noise.
- Inference Efficiency: Unlike some sparse models that activate multiple paths, an HMNet task only activates one path through the hierarchy. Consequently, it maintains the same inference latency and memory footprint as a standard BERT model.
Performance and Efficiency
HMNet achieved an average score of 84.0 across all 13 tasks, outperforming single-task fine-tuning (80.4), standard MTL (82.8), and the more complex SkillNet (83.5).
Beyond accuracy, HMNet is highly parameter-efficient. While competing models like SkillNet require 450M total parameters, HMNet achieves superior results with only 231M total parameters (with only 110M activated per task), significantly reducing deployment costs.
Conclusion
HMNet demonstrates that a hierarchical approach to parameter sharing can effectively mitigate task interference in NLU. By grouping tasks based on model-derived relevance, the architecture achieves a superior balance between generalization and specialization. Future work may explore more sophisticated relevance metrics and scale the hierarchical principle to a larger number of tasks and different model backbones.
Summary updated