Multi-task learning explained

Multi-task learning (MTL) is a subfield of machine learning in which multiple learning tasks are solved at the same time, while exploiting commonalities and differences across tasks. This can result in improved learning efficiency and prediction accuracy for the task-specific models, when compared to training the models separately.[1] [2] [3] Inherently, Multi-task learning is a multi-objective optimization problem having trade-offs between different tasks.[4] Early versions of MTL were called "hints".[5] [6]

In a widely cited 1997 paper, Rich Caruana gave the following characterization:

Multitask Learning is an approach to inductive transfer that improves generalization by using the domain information contained in the training signals of related tasks as an inductive bias. It does this by learning tasks in parallel while using a shared representation; what is learned for each task can help other tasks be learned better.[3]

In the classification context, MTL aims to improve the performance of multiple classification tasks by learning them jointly. One example is a spam-filter, which can be treated as distinct but related classification tasks across different users. To make this more concrete, consider that different people have different distributions of features which distinguish spam emails from legitimate ones, for example an English speaker may find that all emails in Russian are spam, not so for Russian speakers. Yet there is a definite commonality in this classification task across users, for example one common feature might be text related to money transfer. Solving each user's spam classification problem jointly via MTL can let the solutions inform each other and improve performance. Further examples of settings for MTL include multiclass classification and multi-label classification.[7]

Multi-task learning works because regularization induced by requiring an algorithm to perform well on a related task can be superior to regularization that prevents overfitting by penalizing all complexity uniformly. One situation where MTL may be particularly helpful is if the tasks share significant commonalities and are generally slightly under sampled. However, as discussed below, MTL has also been shown to be beneficial for learning unrelated tasks.[8]

Methods

The key challenge in multi-task learning, is how to combine learning signals from multiple tasks into a single model. This may strongly depend on how well different task agree with each other, or contradict each other. There are several ways to address this challenge:

Task grouping and overlap

Within the MTL paradigm, information can be shared across some or all of the tasks. Depending on the structure of task relatedness, one may want to share information selectively across the tasks. For example, tasks may be grouped or exist in a hierarchy, or be related according to some general metric. Suppose, as developed more formally below, that the parameter vector modeling each task is a linear combination of some underlying basis. Similarity in terms of this basis can indicate the relatedness of the tasks. For example, with sparsity, overlap of nonzero coefficients across tasks indicates commonality. A task grouping then corresponds to those tasks lying in a subspace generated by some subset of basis elements, where tasks in different groups may be disjoint or overlap arbitrarily in terms of their bases.[9] Task relatedness can be imposed a priori or learned from the data.[7] [10] Hierarchical task relatedness can also be exploited implicitly without assuming a priori knowledge or learning relations explicitly.[11] [12] For example, the explicit learning of sample relevance across tasks can be done to guarantee the effectiveness of joint learning across multiple domains.[11]

Exploiting unrelated tasks

One can attempt learning a group of principal tasks using a group of auxiliary tasks, unrelated to the principal ones. In many applications, joint learning of unrelated tasks which use the same input data can be beneficial. The reason is that prior knowledge about task relatedness can lead to sparser and more informative representations for each task grouping, essentially by screening out idiosyncrasies of the data distribution. Novel methods which builds on a prior multitask methodology by favoring a shared low-dimensional representation within each task grouping have been proposed. The programmer can impose a penalty on tasks from different groups which encourages the two representations to be orthogonal. Experiments on synthetic and real data have indicated that incorporating unrelated tasks can result in significant improvements over standard multi-task learning methods.[8]

Transfer of knowledge

Related to multi-task learning is the concept of knowledge transfer. Whereas traditional multi-task learning implies that a shared representation is developed concurrently across tasks, transfer of knowledge implies a sequentially shared representation. Large scale machine learning projects such as the deep convolutional neural network GoogLeNet,[13] an image-based object classifier, can develop robust representations which may be useful to further algorithms learning related tasks. For example, the pre-trained model can be used as a feature extractor to perform pre-processing for another learning algorithm. Or the pre-trained model can be used to initialize a model with similar architecture which is then fine-tuned to learn a different classification task.[14]

Multiple non-stationary tasks

Traditionally Multi-task learning and transfer of knowledge are applied to stationary learning settings. Their extension to non-stationary environments is termed Group online adaptive learning (GOAL).[15] Sharing information could be particularly useful if learners operate in continuously changing environments, because a learner could benefit from previous experience of another learner to quickly adapt to their new environment. Such group-adaptive learning has numerous applications, from predicting financial time-series, through content recommendation systems, to visual understanding for adaptive autonomous agents.

Multi-task optimization

Multitask optimization

In some cases, the simultaneous training of seemingly related tasks may hinder performance compared to single-task models.[16] Commonly, MTL models employ task-specific modules on top of a joint feature representation obtained using a shared module. Since this joint representation must capture useful features across all tasks, MTL may hinder individual task performance if the different tasks seek conflicting representation, i.e., the gradients of different tasks point to opposing directions or differ significantly in magnitude. This phenomenon is commonly referred to as negative transfer. To mitigate this issue, various MTL optimization methods have been proposed. Commonly, the per-task gradients are combined into a joint update direction through various aggregation algorithms or heuristics.

Mathematics

Reproducing Hilbert space of vector valued functions (RKHSvv)

The MTL problem can be cast within the context of RKHSvv (a complete inner product space of vector-valued functions equipped with a reproducing kernel). In particular, recent focus has been on cases where task structure can be identified via a separable kernel, described below. The presentation here derives from Ciliberto et al., 2015.

RKHSvv concepts

Suppose the training data set is

l{S}t

nt
=\{(x
i=1
, with
t\inl{X}
x
i
,
t\inl{Y}
y
i
, where indexes task, and

t\in1,...,T

. Let
Tn
n=\sum
t
. In this setting there is a consistent input and output space and the same loss function

l{L}:R x RR+

for each task: . This results in the regularized machine learning problem: where

l{H}

is a vector valued reproducing kernel Hilbert space with functions

f:lXl{Y}T

having components

ft:l{X} → l{Y}

.

The reproducing kernel for the space

l{H}

of functions

f:lXRT

is a symmetric matrix-valued function

\Gamma:lX x lXRT

, such that

\Gamma(,x)c\inl{H}

and the following reproducing property holds: The reproducing kernel gives rise to a representer theorem showing that any solution to equation has the form:

Separable kernels

The form of the kernel induces both the representation of the feature space and structures the output across tasks. A natural simplification is to choose a separable kernel, which factors into separate kernels on the input space and on the tasks

\{1,...,T\}

. In this case the kernel relating scalar components

ft

and

fs

is given by \gamma((x_i,t),(x_j,s)) = k(x_i,x_j)k_T(s,t)=k(x_i,x_j)A_ . For vector valued functions

f\inlH

we can write

\Gamma(xi,xj)=k(xi,xj)A

, where is a scalar reproducing kernel, and is a symmetric positive semi-definite

T x T

matrix. Henceforth denote
T=\{PSDmatrices
S
+

\}\subsetRT

.

This factorization property, separability, implies the input feature space representation does not vary by task. That is, there is no interaction between the input kernel and the task kernel. The structure on tasks is represented solely by . Methods for non-separable kernels is a current field of research.

For the separable case, the representation theorem is reduced to f(x)=\sum _ ^N k(x,x_i)Ac_i. The model output on the training data is then, where is the

n x n

empirical kernel matrix with entries K_=k(x_i,x_j), and is the

n x T

matrix of rows

ci

.

With the separable kernel, equation can be rewritten as

where is a (weighted) average of applied entry-wise to and . (The weight is zero if

t
Y
i
is a missing observation).

Note the second term in can be derived as follows:

2
\begin{align} \|f\|
l{H}&=

\left\langle\sumi=1nk(,xi)Aci,\sumj=1nk(,xj)Acj\right\ranglelH\\ &=\sumi,j=1n\langlek(,xi)Aci,k(,xj)Acj\ranglelH&(bilinearity) \\ &=\sumi,j=1n\langlek(xi,xj)Aci,cj\rangle

RT

&(reproducingproperty) \\ &=\sumi,j=1nk(xi,xj)

\top
c
i

A

\top
c
j=tr(KCAC

)\end{align}

Known task structure

Task structure representations

There are three largely equivalent ways to represent task structure: through a regularizer; through an output metric, and through an output mapping.

Task structure examples

Via the regularizer formulation, one can represent a variety of task structures easily.

IT

is the TxT identity matrix, and \mathbf\mathbf^\top is the TxT matrix of ones) is equivalent to letting control the variance \sum_t || f_t - \bar f|| _ of tasks from their mean \frac 1 T \sum_t f_t . For example, blood levels of some biomarker may be taken on patients at

nt

time points during the course of a day and interest may lie in regularizing the variance of the predictions across patients.

A\dagger=\alphaIT+(\alpha-λ)M

, where

Mt,s=

1
|Gr|

I(t,s\inGr)

is equivalent to letting

\alpha

control the variance measured with respect to a group mean:

\sumr\sum

t\inGr

||ft-

1
|Gr|

\sum

s\inGr)

fs||

. (Here

|Gr|

the cardinality of group r, and

I

is the indicator function). For example, people in different political parties (groups) might be regularized together with respect to predicting the favorability rating of a politician. Note that this penalty reduces to the first when all tasks are in the same group.

A\dagger=\deltaIT+(\delta)L

, where

L=D-M

is the Laplacian for the graph with adjacency matrix M giving pairwise similarities of tasks. This is equivalent to giving a larger penalty to the distance separating tasks t and s when they are more similar (according to the weight

Mt,s

,) i.e.

\delta

regularizes

\sumt,s||ft-fs

2
||
lHk

Mt,s

.

Learning tasks together with their structure

Learning problem can be generalized to admit learning task matrix A as follows:

Choice of

T
F:S
+

R+

must be designed to learn matrices A of a given type. See "Special cases" below.
Optimization of

Restricting to the case of convex losses and coercive penalties Ciliberto et al. have shown that although is not convex jointly in C and A, a related problem is jointly convex.

Specifically on the convex set

lC=\{(C,A)\inRn x

T
S
+

|Range(C\topKC)\subseteqRange(A)\}

, the equivalent problem

is convex with the same minimum value. And if

(CR,AR)

is a minimizer for then

(CR

\dagger
A
R,

AR)

is a minimizer for .

may be solved by a barrier method on a closed set by introducing the following perturbation:

The perturbation via the barrier

\delta2tr(A\dagger)

forces the objective functions to be equal to

+infty

on the boundary of

Rn x

T
S
+
.

can be solved with a block coordinate descent method, alternating in C and A. This results in a sequence of minimizers

(Cm,Am)

in that converges to the solution in as

\deltam0

, and hence gives the solution to .
Special cases

Spectral penalties - Dinnuzo et al[17] suggested setting F as the Frobenius norm

\sqrt{tr(A\topA)}

. They optimized directly using block coordinate descent, not accounting for difficulties at the boundary of

Rn x x

T
S
+
.

Clustered tasks learning - Jacob et al[18] suggested to learn A in the setting where T tasks are organized in R disjoint clusters. In this case let

E\in\{0,1\}T x

be the matrix with

Et,r=I(taskt\ingroupr)

. Setting

M=I-E\daggerET

, and

U=

1
T

11\top

, the task matrix

A\dagger

can be parameterized as a function of

M

:

A\dagger(M)=\epsilonMU+\epsilonB(M-U)+\epsilon(I-M)

, with terms that penalize the average, between clusters variance and within clusters variance respectively of the task predictions. M is not convex, but there is a convex relaxation

lSc=\{M\in

T:I-M\in
S
+
T
S
+

\landtr(M)=r\}

. In this formulation,

F(A)=I(A(M)\in\{A:M\inlSC\})

.
Generalizations

Non-convex penalties - Penalties can be constructed such that A is constrained to be a graph Laplacian, or that A has low rank factorization. However these penalties are not convex, and the analysis of the barrier method proposed by Ciliberto et al. does not go through in these cases.

Non-separable kernels - Separable kernels are limited, in particular they do not account for structures in the interaction space between the input and output domains jointly. Future work is needed to develop models for these kernels.

Software package

A Matlab package called Multi-Task Learning via StructurAl Regularization (MALSAR) [19] implements the following multi-task learning algorithms: Mean-Regularized Multi-Task Learning,[20] [21] Multi-Task Learning with Joint Feature Selection,[22] Robust Multi-Task Feature Learning,[23] Trace-Norm Regularized Multi-Task Learning,[24] Alternating Structural Optimization,[25] [26] Incoherent Low-Rank and Sparse Learning,[27] Robust Low-Rank Multi-Task Learning, Clustered Multi-Task Learning,[28] [29] Multi-Task Learning with Graph Structures.

Literature

See also

External links

Software

Notes and References

  1. Baxter, J. (2000). A model of inductive bias learning" Journal of Artificial Intelligence Research 12:149--198, On-line paper
  2. [Sebastian Thrun|Thrun, S.]
  3. Multi-task learning. Caruana. R.. 1997. Machine Learning. 10.1023/A:1007379606734. 28. 41–75. free.
  4. Multi-Task Learning as Multi-Objective OptimizationPart of Advances in Neural Information Processing Systems 31 (NeurIPS 2018), https://proceedings.neurips.cc/paper/2018/hash/432aca3a1e345e339f35a30c8f65edce-Abstract.html
  5. Suddarth, S., Kergosien, Y. (1990). Rule-injection hints as a means of improving network performance and learning time. EURASIP Workshop. Neural Networks pp. 120-129. Lecture Notes in Computer Science. Springer.
  6. Abu-Mostafa . Y. S. . 1990 . Learning from hints in neural networks . Journal of Complexity . 6 . 2. 192–198 . 10.1016/0885-064x(90)90006-y. free .
  7. 1504.03101. Convex Learning of Multiple Tasks and their Structure. Ciliberto. C.. 2015 . cs.LG.
  8. Romera-Paredes, B., Argyriou, A., Bianchi-Berthouze, N., & Pontil, M., (2012) Exploiting Unrelated Tasks in Multi-Task Learning. http://jmlr.csail.mit.edu/proceedings/papers/v22/romera12/romera12.pdf
  9. Kumar, A., & Daume III, H., (2012) Learning Task Grouping and Overlap in Multi-Task Learning. http://icml.cc/2012/papers/690.pdf
  10. Jawanpuria, P., & Saketha Nath, J., (2012) A Convex Feature Learning Formulation for Latent Task Structure Discovery. http://icml.cc/2012/papers/90.pdf
  11. Hajiramezanali, E. & Dadaneh, S. Z. & Karbalayghareh, A. & Zhou, Z. & Qian, X. Bayesian multi-domain learning for cancer subtype discovery from next-generation sequencing count data. 32nd Conference on Neural Information Processing Systems (NIPS 2018), Montréal, Canada.
  12. Zweig, A. & Weinshall, D. Hierarchical Regularization Cascade for Joint Learning. Proceedings: of 30th International Conference on Machine Learning (ICML), Atlanta GA, June 2013. http://www.cs.huji.ac.il/~daphna/papers/Zweig_ICML2013.pdf
  13. Book: 1409.4842 . 10.1109/CVPR.2015.7298594 . 978-1-4673-6964-0. Going deeper with convolutions . 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) . 1–9 . 2015 . Szegedy . Christian . Wei Liu . Youssef . Yangqing Jia . Tomaso . Sermanet . Pierre . Reed . Scott . Anguelov . Dragomir . Erhan . Dumitru . Vanhoucke . Vincent . Rabinovich . Andrew . 206592484 .
  14. Web site: Deep Learning Overview. Roig. Gemma. 2019-08-26. 2016-03-06. https://web.archive.org/web/20160306020712/http://www.mit.edu/~9.520/fall15/slides/class24/deep_learning_overview.pdf. dead.
  15. Zweig, A. & Chechik, G. Group online adaptive learning. Machine Learning, DOI 10.1007/s10994-017- 5661-5, August 2017. http://rdcu.be/uFSv
  16. Standley . Trevor . Zamir . Amir R. . Chen . Dawn . Guibas . Leonidas . Malik . Jitendra . Savarese . Silvio . 2020-07-13 . Learning the Pareto Front with Hypernetworks . International Conference on Machine Learning (ICML). 9120–9132 . 1905.07553 .
  17. Learning output kernels with block coordinate descent.. Dinuzzo. Francesco. 2011. Proceedings of the 28th International Conference on Machine Learning (ICML-11). https://web.archive.org/web/20170808223410/http://machinelearning.wustl.edu/mlpapers/paper_files/ICML2011Dinuzzo_54.pdf. 2017-08-08. dead.
  18. Clustered multi-task learning: A convex formulation. Jacob. Laurent. 2009. Advances in Neural Information Processing Systems. 2008arXiv0809.2085J. 0809.2085.
  19. Zhou, J., Chen, J. and Ye, J. MALSAR: Multi-tAsk Learning via StructurAl Regularization. Arizona State University, 2012. http://www.public.asu.edu/~jye02/Software/MALSAR. On-line manual
  20. Evgeniou, T., & Pontil, M. (2004). Regularized multi–task learning. Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining (pp. 109–117).
  21. Evgeniou . T. . Micchelli . C. . Pontil . M. . 2005 . Learning multiple tasks with kernel methods . Journal of Machine Learning Research . 6 . 615 .
  22. Argyriou . A. . Evgeniou . T. . Pontil . M. . 2008a . Convex multi-task feature learning . Machine Learning . 73 . 3. 243–272 . 10.1007/s10994-007-5040-8. free .
  23. Chen, J., Zhou, J., & Ye, J. (2011). Integrating low-rank and group-sparse structures for robust multi-task learning. Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining.
  24. Ji, S., & Ye, J. (2009). An accelerated gradient method for trace norm minimization. Proceedings of the 26th Annual International Conference on Machine Learning (pp. 457–464).
  25. Ando . R. . Zhang . T. . 2005 . A framework for learning predictive structures from multiple tasks and unlabeled data . The Journal of Machine Learning Research . 6 . 1817–1853 .
  26. Chen, J., Tang, L., Liu, J., & Ye, J. (2009). A convex formulation for learning shared structures from multiple tasks. Proceedings of the 26th Annual International Conference on Machine Learning (pp. 137–144).
  27. Chen, J., Liu, J., & Ye, J. (2010). Learning incoherent sparse and low-rank patterns from multiple tasks. Proceedings of the 16th ACM SIGKDD international conference on Knowledge discovery and data mining (pp. 1179–1188).
  28. Jacob, L., Bach, F., & Vert, J. (2008). Clustered multi-task learning: A convex formulation. Advances in Neural Information Processing Systems, 2008
  29. Zhou, J., Chen, J., & Ye, J. (2011). Clustered multi-task learning via alternating structure optimization. Advances in Neural Information Processing Systems.