Learning to Multitask

Yu Zhang, Ying Wei, Qiang Yang

TL;DR

Choosing the right multitask learning (MTL) model for a new problem usually requires exhaustive, computationally expensive cross-validation. Learning to MultiTask (L2MT) bypasses this by using a "meta-learning" approach: it learns from historical multitask experiences to automatically estimate which model structure—specifically, the task relationship matrix—will yield the lowest error for a brand-new set of tasks.

The Problem: The Brute-Force Nature of Model Selection

Multitask learning aims to improve a model's performance by sharing information across related tasks. However, the "zoo" of MTL models is vast. Some assume tasks are related via low-rank structures, others assume they form clusters, and others learn complex relational graphs.

The standard way to pick the best model is model selection (e.g., cross-validation), which is essentially a brute-force approach. You have to train every candidate model multiple times on your data to see which one sticks. This is computationally heavy and fails to leverage any "wisdom" gained from solving previous, similar multitask problems. The authors ask a fundamental question: Can we learn how to choose an MTL model based on past experience?

Methods: L2MT Framework

L2MT frames model selection as a supervised learning problem. The framework consists of three main pillars:

  1. A Unified Formulation: The authors show that many popular MTL models can be expressed through a single optimization objective centered on a task covariance matrix ($\Omega$). By treating $\Omega$ as the representation of the "model," they turn a discrete choice between different algorithms into a continuous optimization problem.
  2. Layerwise Graph Neural Network (LGNN): To represent a multitask problem, the authors need to embed raw datasets into a fixed-length vector. They propose the LGNN, which treats data points as nodes in a graph. Edges are determined by label similarity and spatial proximity. This allows the network to learn "task embeddings" that capture the internal structure of each task regardless of the dataset size.
  3. The Estimation Function: This is the "meta-model." It takes the task embeddings (from the LGNN) and a candidate task covariance matrix ($\Omega$) as input and predicts the relative test error.

The Workflow: * Training Stage: L2MT is trained on a "meta-dataset" of previous multitask problems, their chosen models ($\Omega$), and their resulting errors. * Test Stage: When a new multitask problem arrives, L2MT generates task embeddings. It then minimizes the estimation function to find the optimal $\Omega$ for that specific problem, effectively "designing" the best multitask model on the fly without training dozens of candidates.

The L2MT Framework

Key Insights and Ideas

  • Model Selection as Optimization: The most clever move is shifting from "picking a model from a list" to "optimizing a continuous matrix $\Omega$." This allows L2MT to potentially discover task relationships that don't fit neatly into existing categories like "clustering" or "low-rank."
  • Labels as Graph Supervision: In the LGNN, the authors use labels to guide the graph construction (e.g., nodes with the same label have positive effects on each other). This ensures the task embedding captures information relevant to the classification goal.
  • Theoretical Grounding: The paper provides a generalization bound, proving that the expected loss of the framework is upper-bounded by the training loss and the complexity of the task embeddings, giving confidence that the meta-learning will actually generalize to unseen problems.

Key Results

The authors evaluated L2MT on four benchmark datasets across two domains: Image Classification (MIT-Indoor-Scene and Caltech256) and Text Classification (20newsgroup and RCV1). They constructed 100 multitask problems for training and 50 for testing, where each "problem" consisted of 4 to 8 binary classification tasks.

  • Superior Performance: L2MT consistently outperformed 10 baseline MTL models (including RMTL, MTRL, and CMTL) across all four datasets.
  • Robustness to Data Size: L2MT maintained its lead even when the amount of training data per task was varied from 30% to 50%.
Performance across four benchmark datasets
  • Meaningful Correlations: In a case study involving 'Bat', 'Bear', and 'Dog' classification, L2MT successfully identified a strong negative correlation between 'Bear' and 'Dog' tasks, which helped it leverage knowledge more effectively than standard models that saw them as nearly uncorrelated.
  • Ablation Success: Sensitivity analysis showed that using multiple layers in the LGNN significantly improved performance over a simple MLP, proving that the graph-based task embedding is a critical component.

Limitations and Future Work

  • Cold Start Problem: L2MT requires a "historical experience" dataset. If you are working in a completely new domain with no prior multitask results, you cannot use this framework immediately.
  • Parameter-Based Focus: The current work focuses on parameter-based MTL (sharing via regularizers). The authors acknowledge that feature-based MTL (learning shared representations) is another major branch that L2MT could be extended to cover.
  • Computational Cost of Meta-Training: While the test phase is highly efficient, generating the training set (training many models on many problems to get the "experience") is a significant upfront investment.

Summary updated

BibTeX
@inproceedings{zhang2018learning,
  author = {Yu Zhang and Ying Wei and Qiang Yang},
  title = {{Learning to Multitask}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=S1Z7tIbdbB},
}
Figure