Paper commentary
An Overview of Multi-Task Learning in Deep Neural Networks
Overview of multi-task learning shows how deep networks share representations across related tasks
- Problem Single-task models ignore signals from related tasks that could help the main metric. Hard sharing also breaks down when tasks are only loosely related, so practitioners lack clear guidance.
- Method The authors group MTL methods by what they share. Hard parameter sharing keeps one set of hidden layers for all tasks, while soft sharing keeps separate models pulled together by a penalty.
- Results The authors conclude that hard parameter sharing remains the norm, and learning what to share looks promising.
Why single-task training leaves signal behind
Most ML work tunes one model for one metric, such as a benchmark score or a business KPI. Once that model stops improving, the signals from related tasks stay unused, even though they could help the main metric. The authors frame MTL as the remedy: sharing representations across related tasks can help a model generalize better on its original task.
The idea is not confined to one field, since MTL has been applied to natural language processing, speech recognition, computer vision and drug discovery. The same family goes by several names, including joint learning, learning to learn and learning with auxiliary tasks. So any setup that optimizes more than one loss already counts as MTL, and even a single-loss setting can gain from an auxiliary task.
Caruana's 1998 definition ties the benefit to generalization that comes from domain-specific information carried by related tasks. The overview then follows two parts of the field: hard and soft parameter sharing in deep networks, and the older non-neural literature that motivates them.
Hard and soft parameter sharing
Hard parameter sharing keeps one set of hidden layers for all tasks and gives each task its own output layer. Because the shared layers receive learning signal from every task, they have to find one representation that serves all of them. Baxter's analysis, cited by the authors, puts the overfitting risk of the shared parameters at a factor on the order of N, the number of tasks, below the risk for the task-specific output layers.
The authors read this as intuitive: the more tasks a model learns at once, the less likely it is to overfit on its original task.
Soft parameter sharing takes the opposite route, since each task keeps a full model with its own parameters. A regularizer then penalizes the distance between these parameters, so the models are pulled toward each other without being tied. Duong et al. use an l2 distance for this penalty, while Yang and Hospedales use the trace norm. The authors note that these constraints borrow from regularizers first built for other, non-neural models.
Four mechanisms behind the gain
The authors explain the gain with mechanisms, most first proposed by Caruana, that assume two related tasks A and B sharing a hidden representation F. The first is implicit data augmentation: each task carries its own noise, so a shared representation averages those noise patterns and generalizes better than one task alone.
Eavesdropping lets a model learn a feature G through task B when G is hard to learn from task A directly. Representation bias pushes the model toward representations that other tasks also prefer, which also helps on new tasks from the same environment. Finally, MTL acts as a regularizer by adding an inductive bias, which lowers both the risk of overfitting and the model's ability to fit random noise.
Sharing sparsity across tasks
Before deep networks, MTL work centered on linear and kernel models, and the authors group it into sparsity and task relationships. Many of these methods assume a homogeneous setting, where all tasks share one output, such as ten binary classification tasks for MNIST. The authors stack each task's parameter vector as a column of a matrix \( A \in \mathbb{R}^{d \times T} \), with d features and T tasks.
Group lasso computes an l_q norm for each row of A, then takes an l1 norm over the resulting vector, so whole rows go to zero. A zero row means a feature is dropped for every task, which is why the penalty enforces a few features shared across all tasks. Argyriou and Pontil use the mixed l1/l2 form, while Zhang and Huang use the l1/l∞ form.
Argyriou and Pontil also show that penalizing the trace norm makes the non-convex group lasso convex and keeps the task vectors in a low-dimensional subspace.
This only works when features overlap across tasks. Negahban and Wainwright show that when features overlap little, block-sparse regularization can be worse than element-wise l1 regularization. Jalali et al. respond by splitting A into a block-sparse part B and an element-wise sparse part S, with A = B + S.
Learning which tasks should share
Sparsity assumes the tasks are all closely related, and sharing with an unrelated task can cause negative transfer. So the authors turn to clustering constraints, which pull task vectors toward a common group structure instead of forcing a shared feature set. Evgeniou et al. penalize both the norms of the task vectors and their variance around the mean, with the strength set by a parameter lambda.
Jacob et al. state the cluster assumption explicitly, assuming the number of clusters C is known in advance. They split the penalty into a global term, a between-cluster variance term and a within-cluster variance term. A weighted sum of these three terms, with one weight per term, forms the final constraint. Their convex relaxation then lets the clusters be learned at the same time.
Some approaches skip regularization altogether, such as the k-nearest neighbour clustering of tasks by Thrun and O'Sullivan. Bayesian methods take another route: Heskes places a prior that encourages similar parameters, and Xue et al. draw the distribution from a Dirichlet process so the number of clusters is learned. Kumar and Daumé III let groups overlap by writing each task vector as a sparse combination of latent basis tasks.
Deep networks that learn what to share
Most deep MTL work still uses hard or soft sharing, and only a few papers develop better mechanisms. Deep Relationship Networks share convolutional layers, keep task-specific fully-connected layers and place matrix priors on the latter to model task relationships. This still depends on a pre-defined sharing structure, which the authors judge adequate for well-studied vision problems but error-prone for novel tasks.
Fully-Adaptive Feature Sharing goes the other way: it starts from a thin network and greedily widens it during training to group similar tasks into branches. Cross-stitch networks start with two task networks and learn a linear combination of layer outputs between them, placed after pooling and fully-connected layers.
A Joint Many-Task Model builds on this by pre-defining a hierarchy of several NLP tasks. Kendall et al. instead weight each task's loss by its uncertainty, using a Gaussian likelihood with task-dependent uncertainty. Yang and Hospedales use tensor factorisation to split each layer's parameters into shared and task-specific parts. The authors' own Sluice Networks generalize hard sharing, cross-stitch networks and block-sparse approaches by learning which layers and subspaces to share.
They argue it breaks down once tasks are not closely related or need reasoning at different levels, so the models should learn a task hierarchy.
Choosing an auxiliary task
Even when only one task matters, a related task can serve as an auxiliary task. Caruana's examples predict road characteristics to help steering, head pose and facial attributes to help facial landmark detection, and phoneme duration and frequency to help text-to-speech.
When labeled data for a related task is missing, an opposite task can be used through an adversarial loss. A gradient reversal layer maximizes that loss instead of minimizing it, and in domain adaptation the adversarial task predicts the domain of the input. Reversing its gradient pushes the model toward representations that can't tell domains apart.
Hints can make hard features learnable, such as predicting lane markings to focus attention on parts of an image the model would otherwise ignore. Less quantized auxiliary labels can help when the main labels are discrete, because a smoother objective is easier to learn. Features that can't serve as inputs at runtime can still be used as outputs, and future measurements can serve as auxiliary targets during training.
Language modelling and autoencoder objectives offer a more explicit way to learn transferable representations.
The field still lacks a principled notion of when two tasks are related. Caruana treats tasks as similar when they use the same features, while Baxter argues they share a common optimal hypothesis class. Ben-David and Schuller define F-related tasks through transformations, which doesn't apply to tasks that solve different problems. Alonso and Plank find that auxiliary tasks with compact and uniform label distributions are preferable for sequence tagging in NLP, and the authors report confirming this in their own experiments.
Open problems
The greedy widening in Fully-Adaptive Feature Sharing may not find a globally optimal model. Assigning each branch to exactly one task also doesn't let the model learn more complex interactions between tasks. Hard sharing quickly breaks down for loosely related tasks, so the authors' preference for learned sharing rests on those cases. The auxiliary-task findings come from limited experiments, and the gains for plateauing main tasks have only been tested in a narrow scope.
Without a principled notion of task similarity, it stays unclear which tasks to prefer.
Paper info
- Authors
- Sebastian Ruder
- Venue
- arXiv · Preprint
- First published
- 2017-6-15
- Added
- 2026-11-12
- Updated
- 2017-6-15
- Version
- v1
- arXiv
- 1706.05098
- Category
- cs.LG · cs.AI · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Sebastian Ruder (2017). An Overview of Multi-Task Learning in Deep Neural Networks. arXiv:1706.05098v1. https://arxiv.org/abs/1706.05098v1
BibTeX
@misc{ruder2017overview,
title = {{An Overview of Multi-Task Learning in Deep Neural Networks}},
author = {Sebastian Ruder},
year = {2017},
eprint = {1706.05098},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1706.05098v1}
}