Multi-task learning

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description 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.Script error: No such module "Unsubst". 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.[8] However, as discussed below, MTL has also been shown to be beneficial for learning unrelated tasks.[8][9]

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.[10] Task relatedness can be imposed a priori or learned from the data.[7][11] Hierarchical task relatedness can also be exploited implicitly without assuming a priori knowledge or learning relations explicitly.[8][12] For example, the explicit learning of sample relevance across tasks can be done to guarantee the effectiveness of joint learning across multiple domains.[8]

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.[9]

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

Multi-task optimization focuses on solving optimizing the whole process.[16][17] The paradigm has been inspired by the well-established concepts of transfer learning[18] and multi-task learning in predictive analytics.[19]

The key motivation behind multi-task optimization is that if optimization tasks are related to each other in terms of their optimal solutions or the general characteristics of their function landscapes,[20] the search progress can be transferred to substantially accelerate the search on the other.

The success of the paradigm is not necessarily limited to one-way knowledge transfers from simpler to more complex tasks. In practice an attempt is to intentionally solve a more difficult task that may unintentionally solve several smaller problems.[21]

There is a direct relationship between multitask optimization and multi-objective optimization.[22]

In some cases, the simultaneous training of seemingly related tasks may hinder performance compared to single-task models.[23] 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.

There are several common approaches for multi-task optimization: Bayesian optimization, evolutionary computation, and approaches based on Game theory.[16]

Multi-task Bayesian optimization

Multi-task Bayesian optimization is a modern model-based approach that leverages the concept of knowledge transfer to speed up the automatic hyperparameter optimization process of machine learning algorithms.[24] The method builds a multi-task Gaussian process model on the data originating from different searches progressing in tandem.[25] The captured inter-task dependencies are thereafter utilized to better inform the subsequent sampling of candidate solutions in respective search spaces.

Evolutionary multi-tasking

Evolutionary multi-tasking has been explored as a means of exploiting the implicit parallelism of population-based search algorithms to simultaneously progress multiple distinct optimization tasks. By mapping all tasks to a unified search space, the evolving population of candidate solutions can harness the hidden relationships between them through continuous genetic transfer. This is induced when solutions associated with different tasks crossover.[17][26] Recently, modes of knowledge transfer that are different from direct solution crossover have been explored.[27][28]

Game-theoretic optimization

Game-theoretic approaches to multi-task optimization propose to view the optimization problem as a game, where each task is a player. All players compete through the reward matrix of the game, and try to reach a solution that satisfies all players (all tasks). This view provide insight about how to build efficient algorithms based on gradient descent optimization (GD), which is particularly important for training deep neural networks.[29] In GD for MTL, the problem is that each task provides its own loss, and it is not clear how to combine all losses and create a single unified gradient, leading to several different aggregation strategies.[30][31][32] This aggregation problem can be solved by defining a game matrix where the reward of each player is the agreement of its own gradient with the common gradient, and then setting the common gradient to be the Nash Cooperative bargaining[33] of that system.

Applications

Algorithms for multi-task optimization span a wide array of real-world applications. Recent studies highlight the potential for speed-ups in the optimization of engineering design parameters by conducting related designs jointly in a multi-task manner.[26] In machine learning, the transfer of optimized features across related data sets can enhance the efficiency of the training process as well as improve the generalization capability of learned models.[34][35] In addition, the concept of multi-tasking has led to advances in automatic hyperparameter optimization of machine learning models and ensemble learning.[36][37]

Applications have also been reported in cloud computing,[38] with future developments geared towards cloud-based on-demand optimization services that can cater to multiple customers simultaneously.[17][39] Recent work has additionally shown applications in chemistry.[40] In addition, some recent works have applied multi-task optimization algorithms in industrial manufacturing.[41][42]

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.[7]

RKHSvv concepts

Suppose the training data set is 𝒮t={(xit,yit)}i=1nt, with xit𝒳, yit𝒴, where Template:Mvar indexes task, and t1,...,T. Let n=t=1Tnt. In this setting there is a consistent input and output space and the same loss function :×+ for each task: . This results in the regularized machine learning problem: Template:NumBlk where is a vector valued reproducing kernel Hilbert space with functions f:𝒳𝒴T having components ft:𝒳𝒴.

The reproducing kernel for the space of functions f:𝒳T is a symmetric matrix-valued function Γ:𝒳×𝒳T×T , such that Γ(,x)c and the following reproducing property holds: Template:NumBlk The reproducing kernel gives rise to a representer theorem showing that any solution to equation Template:EquationNote has the form: Template:NumBlk

Separable kernels

The form of the kernel Template:Math 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 Template:Mathcal and on the tasks {1,...,T}. In this case the kernel relating scalar components ft and fs is given by γ((xi,t),(xj,s))=k(xi,xj)kT(s,t)=k(xi,xj)As,t. For vector valued functions f we can write Γ(xi,xj)=k(xi,xj)A, where Template:Mvar is a scalar reproducing kernel, and Template:Mvar is a symmetric positive semi-definite T×T matrix. Henceforth denote S+T={PSD matrices}T×T .

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 Template:Mvar. Methods for non-separable kernels Template:Math is a current field of research.

For the separable case, the representation theorem is reduced to f(x)=i=1Nk(x,xi)Aci. The model output on the training data is then Template:Mvar , where Template:Mvar is the n×n empirical kernel matrix with entries Ki,j=k(xi,xj), and Template:Mvar is the n×T matrix of rows ci.

With the separable kernel, equation Template:EquationNote can be rewritten as

Template:NumBlk

where Template:Mvar is a (weighted) average of Template:Mathcal applied entry-wise to Template:Mvar and Template:Mvar. (The weight is zero if Yit is a missing observation).

Note the second term in Template:EquationNote can be derived as follows:

f2=i=1nk(,xi)Aci,j=1nk(,xj)Acj=i,j=1nk(,xi)Aci,k(,xj)Acj(bilinearity)=i,j=1nk(xi,xj)Aci,cjT(reproducing property)=i,j=1nk(xi,xj)ciAcj=tr(KCAC)

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.

Template:Math theorem Template:Math theorem

Template:Math theorem

Task structure examples

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

  • Letting A=γIT+(γλ)1T𝟏𝟏 (where IT is the TxT identity matrix, and 𝟏𝟏 is the TxT matrix of ones) is equivalent to letting Template:Math control the variance t||ftf¯||k of tasks from their mean 1Ttft. For example, blood levels of some biomarker may be taken on Template:Mvar patients at nt time points during the course of a day and interest may lie in regularizing the variance of the predictions across patients.
  • Letting A=αIT+(αλ)M , where Mt,s=1|Gr|𝕀(t,sGr) is equivalent to letting α control the variance measured with respect to a group mean: rtGr||ft1|Gr|sGr)fs||. (Here |Gr| the cardinality of group r, and 𝕀 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.
  • Letting A=δIT+(δλ)L, where L=DM 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. δ regularizes t,s||ftfs||k2Mt,s.
  • All of the above choices of A also induce the additional regularization term λt||f||k2 which penalizes complexity in f more broadly.

Learning tasks together with their structure

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

Choice of F:S+T+ must be designed to learn matrices A of a given type. See "Special cases" below.

Optimization of Template:EquationNote

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

Specifically on the convex set 𝒞={(C,A)n×T×S+T|Range(CKC)Range(A)}, the equivalent problem

Template:NumBlk

is convex with the same minimum value. And if (CR,AR) is a minimizer for Template:EquationNote then (CRAR,AR) is a minimizer for Template:EquationNote.

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

Template:NumBlk

The perturbation via the barrier δ2tr(A) forces the objective functions to be equal to + on the boundary of Rn×T×S+T .

Template:EquationNote can be solved with a block coordinate descent method, alternating in C and A. This results in a sequence of minimizers (Cm,Am) in Template:EquationNote that converges to the solution in Template:EquationNote as δm0, and hence gives the solution to Template:EquationNote.

Special cases

Spectral penalties - Dinnuzo et al[43] suggested setting F as the Frobenius norm tr(AA). They optimized Template:EquationNote directly using block coordinate descent, not accounting for difficulties at the boundary of n×T×S+T.

Clustered tasks learning - Jacob et al[44] suggested to learn A in the setting where T tasks are organized in R disjoint clusters. In this case let E{0,1}T×R be the matrix with Et,r=𝕀(task tgroup r). Setting M=IEET, and U=1T𝟏𝟏, the task matrix A can be parameterized as a function of M: A(M)=ϵMU+ϵB(MU)+ϵ(IM) , 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 𝒮c={MS+T:IMS+Ttr(M)=r}. In this formulation, F(A)=𝕀(A(M){A:M𝒮C}).

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) [45] implements the following multi-task learning algorithms: Mean-Regularized Multi-Task Learning,[46][47] Multi-Task Learning with Joint Feature Selection,[48] Robust Multi-Task Feature Learning,[49] Trace-Norm Regularized Multi-Task Learning,[50] Alternating Structural Optimization,[51][52] Incoherent Low-Rank and Sparse Learning,[53] Robust Low-Rank Multi-Task Learning, Clustered Multi-Task Learning,[54][55] Multi-Task Learning with Graph Structures.

Literature

See also

Template:Div col

Template:Div col end

References

Template:Reflist

External links

Software

Template:Optimization algorithms

  1. Baxter, J. (2000). A model of inductive bias learning" Journal of Artificial Intelligence Research 12:149--198, On-line paper
  2. Thrun, S. (1996). Is learning the n-th thing any easier than learning the first?. In Advances in Neural Information Processing Systems 8, pp. 640--646. MIT Press. Paper at Citeseer
  3. a b Script error: No such module "Citation/CS1".
  4. Multi-Task Learning as Multi-Objective Optimization Part 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. Script error: No such module "Citation/CS1".
  7. a b c Script error: No such module "citation/CS1".
  8. a b c d 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. arXiv:1810.09433File:Lock-green.svg
  9. a b 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
  10. Kumar, A., & Daume III, H., (2012) Learning Task Grouping and Overlap in Multi-Task Learning. http://icml.cc/2012/papers/690.pdf
  11. Jawanpuria, P., & Saketha Nath, J., (2012) A Convex Feature Learning Formulation for Latent Task Structure Discovery. http://icml.cc/2012/papers/90.pdf
  12. Zweig, A. & Weinshall, D. Hierarchical Regularization Cascade for Joint Learning. Proceedings: of 30th International Conference on Machine Learning, Atlanta GA, June 2013. http://www.cs.huji.ac.il/~daphna/papers/Zweig_ICML2013.pdf
  13. Script error: No such module "citation/CS1".
  14. Script error: No such module "citation/CS1".
  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. a b Script error: No such module "Citation/CS1".
  17. a b c Script error: No such module "Citation/CS1".
  18. Script error: No such module "Citation/CS1".
  19. Caruana, R., "Multitask Learning", pp. 95-134 in Sebastian Thrun, Lorien Pratt (eds.) Learning to Learn, (1998) Springer Template:ISBN
  20. Script error: No such module "Citation/CS1".
  21. Script error: No such module "citation/CS1".
  22. J. -Y. Li, Z. -H. Zhan, Y. Li and J. Zhang, "Multiple Tasks for Multiple Objectives: A New Multiobjective Optimization Method via Multitask Optimization," in IEEE Transactions on Evolutionary Computation, Script error: No such module "doi".
  23. Script error: No such module "Citation/CS1".
  24. Swersky, K., Snoek, J., & Adams, R. P. (2013). Multi-task bayesian optimization. Advances in neural information processing systems (pp. 2004-2012).
  25. Bonilla, E. V., Chai, K. M., & Williams, C. (2008). Multi-task Gaussian process prediction. Advances in neural information processing systems (pp. 153-160).
  26. a b Ong, Y. S., & Gupta, A. (2016). Evolutionary multitasking: a computer science view of cognitive multitasking. Cognitive Computation, 8(2), 125-142.
  27. Script error: No such module "Citation/CS1".
  28. Script error: No such module "Citation/CS1".
  29. Script error: No such module "citation/CS1".
  30. Script error: No such module "citation/CS1".
  31. Script error: No such module "Citation/CS1".
  32. Script error: No such module "citation/CS1".
  33. Aviv Navon, Aviv Shamsian, Idan Achituve, Haggai Maron, Kenji Kawaguchi, Gal Chechik, Ethan Fetaya, (2022). Multi-Task Learning as a Bargaining Game. International conference on machine learning.
  34. Chandra, R., Gupta, A., Ong, Y. S., & Goh, C. K. (2016, October). Evolutionary multi-task learning for modular training of feedforward neural networks. In International Conference on Neural Information Processing (pp. 37-46). Springer, Cham.
  35. Yosinski, J., Clune, J., Bengio, Y., & Lipson, H. (2014). How transferable are features in deep neural networks? In Advances in neural information processing systems (pp. 3320-3328).
  36. Script error: No such module "citation/CS1".
  37. Script error: No such module "citation/CS1".
  38. Script error: No such module "citation/CS1".
  39. Tang, J., Chen, Y., Deng, Z., Xiang, Y., & Joy, C. P. (2018). A Group-based Approach to Improve Multifactorial Evolutionary Algorithm. In IJCAI (pp. 3870-3876).
  40. Script error: No such module "citation/CS1".
  41. Script error: No such module "Citation/CS1".
  42. Script error: No such module "Citation/CS1".
  43. Script error: No such module "Citation/CS1".
  44. Script error: No such module "Citation/CS1".
  45. 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
  46. 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).
  47. Script error: No such module "Citation/CS1".
  48. Script error: No such module "Citation/CS1".
  49. Chen, J., Zhou, J., & Ye, J. (2011). Integrating low-rank and group-sparse structures for robust multi-task learningTemplate:Dead linkTemplate:Cbignore. Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining.
  50. 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).
  51. Script error: No such module "Citation/CS1".
  52. 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).
  53. 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).
  54. Jacob, L., Bach, F., & Vert, J. (2008). Clustered multi-task learning: A convex formulation. Advances in Neural Information Processing Systems, 2008
  55. Zhou, J., Chen, J., & Ye, J. (2011). Clustered multi-task learning via alternating structure optimization. Advances in Neural Information Processing Systems.