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

Learning Multiple Tasks with Deep Relationship Networks

Mingsheng Long, Jianmin Wang

Abstract

Deep learning models for multi-task learning often struggle with "negative transfer" in shared feature layers and "under-transfer" in isolated classifier layers. This paper introduces Multilinear Relationship Networks (MRN), which use tensor normal priors on the weights of task-specific layers to explicitly model the relationships between features, classes, and tasks. By jointly learning transferable features and these multilinear relationships, MRN achieves state-of-the-art performance on standard multi-task image classification benchmarks.

Introduction

Multi-task learning (MTL) improves model generalization by sharing representations across related tasks, which is especially useful when labeled data is scarce. In deep learning, a common MTL approach is to share the bottom layers of a network to learn general features and branch out into independent, task-specific layers at the top for final predictions.

However, this architecture creates a dilemma:

  1. Negative Transfer: Deep features transition from general to highly specific as you move up the network. Forcing dissimilar tasks to share higher-level feature layers can actually degrade performance.
  2. Under-transfer: Because the top-level classifier layers are completely independent, the network cannot share high-level decision-making knowledge across tasks.

The authors tackle the challenge of explicitly modeling the relationships between tasks in these higher, task-specific layers. Because deep networks for multi-class problems have parameters that naturally form high-order tensors (features $\times$ classes $\times$ tasks), traditional matrix-based relationship learning methods fall short.

Methods

To bridge the gap between tasks without forcing them to share identical weights, the authors propose the Multilinear Relationship Network (MRN).

Architecture of the Multilinear Relationship Network (MRN) showing the integration of Tensor Normal (TN) priors in task-specific layers.

MRN builds on standard CNNs like AlexNet or VGGnet. It shares the lower convolutional layers across all tasks but keeps the top fully connected layers (e.g., fc7 and fc8) task-specific. Instead of leaving these layers independent, MRN places a tensor normal prior over their weight parameters. This mathematical prior assumes that the 3D tensor of weights follows a distribution that decomposes into three smaller covariance matrices: feature covariance, class covariance, and task covariance.

The model is trained using Maximum a Posteriori (MAP) estimation, balancing standard classification loss with the tensor prior. The authors introduce an efficient eigendecomposition trick to handle the computational cost of inverting the massive Kronecker-structured covariance matrices during optimization.

Experimental Setup

The authors evaluated MRN on three standard image classification benchmarks:

  • Office-Caltech: 10 shared categories across 4 domains (Amazon, Webcam, DSLR, Caltech).
  • Office-Home: A more complex dataset with 65 object categories across 4 domains (Art, Clipart, Product, Real-World).
  • ImageCLEF-DA: 12 common categories shared across 4 datasets (Caltech, ImageNet, Pascal VOC, Bing).

Results and Discussion

MRN consistently outperformed Single-Task Learning (STL) and prior state-of-the-art MTL methods such as MTFL, MTRL, and DMTL-TF.

Performance comparison on the Office-Home dataset across different training data percentages (5%, 10%, 20%).

Key insights from the evaluation include:

  • Explicit Relationship Modeling: Modeling the covariance between tasks, classes, and features is more effective than simple feature subspace sharing. MRN learns how tasks are related, not just that they share a space.
  • Mitigating Negative Transfer: By learning a task covariance matrix, the model identifies which tasks should share information and which should remain distinct. This acts as a safeguard against negative transfer.
  • Multi-layer Relationships: Ablation studies showed that applying the tensor prior to both the last feature layer (fc7) and the classifier layer (fc8) works better than applying it to the classifier alone, successfully bridging the gap between feature extraction and classification.
  • Sensible Task Grouping: Visualizations of the learned task covariance matrix align with human intuition; for instance, the model correctly identifies high correlation between DSLR and Webcam photos.

Conclusion

While MRN introduces some computational overhead, its eigendecomposition method makes the approach feasible for deep networks. The framework is highly flexible; while tested on homogeneous tasks, it can be adapted for heterogeneous multi-task learning by applying the tensor prior only to shared feature layers. MRN demonstrates that explicitly modeling multilinear relationships is a powerful strategy for robust multi-task deep learning.

Summary updated

BibTeX
@inproceedings{long2017learning,
  author = {Mingsheng Long and Jianmin Wang},
  title = {{Learning Multiple Tasks with Deep Relationship Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=H1ZH-dbuZB},
}
Figure