NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Multi-task Representation Learning: A Tensor Factorisation Approach

Yongxin Yang, Timothy M. Hospedales

Introduction

In Multi-Task Learning (MTL), the goal is to train a model on several related tasks simultaneously to improve overall performance and generalization. However, in the deep learning era, MTL has largely relied on a manual "fork" architecture: a human designer decides to share the first $N$ layers across tasks and then splits the network into task-specific branches.

This traditional approach presents two major challenges. First, designing the architecture is a "dark art" requiring tedious trial-and-error to determine exactly how many layers to share. Second, these architectures use "hard" sharing—layers are either completely identical across tasks or completely separate. This rigid structure can lead to "negative transfer," where forcing unrelated tasks to share features actually degrades performance.

To address these issues, this paper introduces a framework for Deep Multi-Task Representation Learning (DMTRL). By generalizing matrix factorization to tensor factorization, the authors enable deep networks to automatically learn exactly how much knowledge to share across tasks at every single layer, replacing manual architecture choices with automated "soft" sharing.

The Tensor Factorization Approach

The core innovation of DMTRL is treating the weights of a layer across all tasks as a single high-dimensional tensor. For example, if there are $T$ tasks and each has a fully connected layer of size $D_1 \times D_2$, the total parameters form a $D_1 \times D_2 \times T$ tensor.

Comparison of network architectures for Multi-Task Learning.

Instead of relying on hard-coded shared layers, the authors propose three specific approaches based on tensor factorization to learn the sharing structure automatically:

  • DMTRL-LAF (Last Axis Flattening): A straightforward generalization of matrix factorization.
  • DMTRL-Tucker: Uses Tucker decomposition to break the weight tensor into a shared "core" tensor and task-specific factor matrices.
  • DMTRL-TT (Tensor Train): Employs the Tensor Train decomposition, which is highly parameter-efficient for very high-dimensional tensors.

Crucially, instead of training a giant model and decomposing it post-hoc, the network learns the factors directly. During the forward pass, the weight tensors are "composed" from these factors. Because these operations are fully differentiable, the entire system is trained end-to-end using standard backpropagation.

Experiments and Results

The authors evaluated DMTRL across three distinct settings, comparing it against Single-Task Learning (STL) and User-Defined MTL (UD-MTL) baselines:

  1. MNIST (Homogeneous MTL): Recognizing digits 0-9, treated as ten binary classification tasks. All DMTRL variants outperformed STL and manually designed MTL architectures. DMTRL-TT was particularly effective in low-data regimes, excelling even when only 1% of the training data was used.
  2. AdienceFaces (Heterogeneous MTL): Simultaneously predicting a person's gender (2 classes) and age group (8 classes) from face images. DMTRL-Tucker consistently outperformed both STL and the best user-defined MTL models. Notably, as data increased, user-defined models suffered from negative transfer (performing worse than STL), a pitfall DMTRL successfully avoided.
  3. Omniglot (Heterogeneous MTL): Recognizing handwritten characters across 50 different alphabets. In this challenging "low-data" scenario, the proposed methods significantly surpassed the STL baseline across all training fractions.

Key Insights and Limitations

The DMTRL framework offers several compelling advantages. By learning "where, what, and how much" to share, it removes the guesswork from network design. The ability to smoothly interpolate between "fully shared" and "fully independent" representations prevents negative transfer, particularly in heterogeneous tasks. Furthermore, analysis of the learned factors mathematically validated a common deep learning intuition: the model naturally chooses to share more capacity at the bottom (low-level features) and less at the top (task-specific features).

However, the approach is not without limitations. The "rank" (the size of the factors) remains a hyperparameter that dictates model capacity, though the authors use a reconstruction error threshold to help select it. Additionally, initializing the model using weights from pre-trained single-task networks was found to stabilize training, suggesting that training from scratch can be challenging. Finally, composing tensors at every layer introduces a slight computational overhead during training, although the total number of trainable parameters is often significantly reduced compared to single-task baselines.

Summary updated

BibTeX
@inproceedings{yang2017deep,
  author = {Yongxin Yang and Timothy M. Hospedales},
  title = {{Deep Multi-task Representation Learning: A Tensor Factorisation Approach}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=SkhU2fcll},
}
Figure