Robust Task Clustering for Deep Many-Task Learning

Mo Yu, Xiaoxiao Guo, Jinfeng Yi, Shiyu Chang, Saloni Potdar, Gerald Tesauro, Haoyu Wang, Bowen ZhouarXiv 2017

Introduction

Multi-task learning (MTL) and few-shot learning (FSL) are powerful paradigms for sharing knowledge across related domains. However, traditional approaches often assume task homogeneity. In real-world "MAny Task Learning" (MATL) scenarios—such as cloud services managing thousands of distinct client models—tasks are highly diverse, possessing different label spaces and class distributions.

Jointly training such diverse tasks in a single neural network often leads to negative transfer, where unrelated tasks interfere with each other, degrading performance below that of individual single-task models. While task clustering can mitigate this by grouping synergistic tasks, calculating pairwise similarities for thousands of tasks is computationally prohibitive ($O(n^2)$) and prone to noise. This paper proposes a robust, scalable clustering framework using matrix completion to address these challenges.

Methodology: Scalable Task Clustering

The authors introduce a four-stage pipeline designed to identify task relationships efficiently and robustly.

1. Sparse Sampling and Cross-Task Evaluation

Instead of an exhaustive $O(n^2)$ comparison, the algorithm samples a small subset of task pairs ($O(n \log^2 n)$). Similarity is measured via cross-task transfer performance: an encoder trained on Task A is frozen, and a new classifier is trained on Task B. This approach, illustrated below, allows for similarity measurement even when tasks have entirely different label sets.

Architecture of the base CNN and the cross-task transfer evaluation mechanism.

2. Score Filtering and Matrix Completion

To handle noisy transfer scores, dynamic thresholds based on mean and standard deviation are applied to filter out uncertain results. This creates a sparse, partially-observed binary similarity matrix. Assuming the underlying task structure is low-rank (i.e., tasks naturally form a few clusters), the authors employ nuclear norm minimization to infer missing entries while isolating sparse noise.

3. Clustering and Model Training

Spectral clustering is applied to the completed matrix. For MTL, a shared model is trained for each identified cluster. In FSL scenarios, predictions for novel tasks are generated as a linear combination of frozen cluster models, providing a more robust metric space than a single global model.

Datasets and Experimental Setup

The framework was evaluated on three primary datasets:

  • Amazon Review Sentiment: 69 binary classification tasks across 23 product domains.
  • User Intent Classification (175 tasks): A diverse real-world dialog dataset with labels ranging from 2 to 100 per task.
  • Large-Scale Intent Classification (1,491 tasks): Used to validate the scalability of the matrix completion approach.

Key Results

The proposed clustering method consistently outperformed both single-task and holistic MTL baselines.

  • Amazon Sentiment: Achieved 86.73% accuracy in MTL, surpassing the holistic MTL-CNN (85.23%). In 5-shot FSL, it reached 83.12%, a significant improvement over the fine-tuned holistic model (76.56%).
  • Intent Classification (175 tasks): The method reached 68.11% accuracy, a substantial gain over the single-task baseline of 58.47%.
  • Scalability: On the 1,491-task dataset, the algorithm achieved 70.50% accuracy while evaluating only ~4.5% of all possible task pairs, empirically confirming the theoretical $O(n \log^2 n)$ efficiency.

Conclusion and Future Work

This research demonstrates that matrix completion is a viable path for scaling task clustering to thousands of heterogeneous tasks. By isolating conflicting tasks, the method effectively eliminates negative transfer.

Future work includes extending the framework to online learning, where clusters are updated incrementally as new tasks arrive. Additionally, the authors suggest integrating this clustering approach with meta-learning algorithms and exploring its application in non-NLP domains such as computer vision.

Summary updated

BibTeX
@misc{yu2017robust,
  author = {Mo Yu and Xiaoxiao Guo and Jinfeng Yi and Shiyu Chang and Saloni Potdar and Gerald Tesauro and Haoyu Wang and Bowen Zhou},
  title = {{Robust Task Clustering for Deep Many-Task Learning}},
  year = {2017},
  eprint = {1708.07918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.07918},
}
Figure