MULTI-TASK LEARNING USING BAYESIAN MODEL WITH ENFORCED SPARSITY AND LEVERAGING OF TASK CORRELATIONS

Information

  • Patent Application
  • 20130151441
  • Publication Number
    20130151441
  • Date Filed
    December 13, 2011
    13 years ago
  • Date Published
    June 13, 2013
    11 years ago
Abstract
Multi-task regression or classification includes optimizing parameters of a Bayesian model representing relationships between D features and P tasks, where D≧1 and P≧1, respective to training data comprising sets of values for the D features annotated with values for the P tasks. The Bayesian model includes a matrix-variate prior having features and tasks dimensions of dimensionality D and P respectively. The matrix-variate prior is partitioned into a plurality of blocks, and the optimizing of parameters of the Bayesian model includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks. Values of the P tasks are predicted for a set of input values for the D features using the optimized Bayesian model. The optimizing also includes decomposing the matrix-variate prior into a product of matrices including a matrix of reduced rank in the tasks dimension that encodes correlations between tasks.
Description
BACKGROUND

The following relates to the information management arts, information classification and retrieval arts, data mining arts, prediction arts, and related arts.


Multi-task machine learning entails learning to predict multiple related tasks based on a common training set annotated with the multiple tasks. The resulting trained multi-task classifier or regression model finds application in numerous fields, ranging from the prediction of tests scores in social sciences, the classification of protein functions in systems biology, the categorisation of scenes in computer vision, database (e.g., Internet) search and ranking, and so forth. In many such applications, multiple related target variables (i.e., tasks) are to be predicted from a common set of input features.


To further illustrate, consider a multi-task learning problem in which it is desired to assign an image to one or more classes based on image features extracted from the image. Typically, the image features are arranged as a features vector which serves as input to a trained multi-task classifier. In this case each task corresponds to a class and decides whether the image belongs to that class, so that (by way of example) if there are twenty classes then the classifier has twenty tasks each outputting a binary value indicating whether the image should be assigned to the corresponding class. Advantageously, the multi-task classifier enables a single image to be assigned to multiple classes, where appropriate. In this case, one could envision independently training twenty single-task classifiers and applying them in parallel to perform the multi-task classification. However, this approach would lose any information that might be mined from correlations between tasks.


A closely related but more difficult multi-task learning problem is to label an image with textual keywords based on the image features extracted from the image. The problem can be made equivalent to the image classification problem by defining each available textual keyword as a “class”. However, this problem is more challenging because the number of “classes” is now equal to the vocabulary size which is typically quite large. This problem highlights the value of capturing correlations between the tasks, since keywords that are synonyms or otherwise positively related are likely to have high positive labeling correlation. For example, an image that is labeled with the keyword “flower” is more likely to be also appropriately labeled with the keyword “nature scene”. Negative correlations are also useful. For example, the image labeled “flower” is less likely to also be appropriately labeled “industrial scene”.


Thus, in multitask learning problems it would be useful to leverage task correlations (both positive and negative) in learning the multi-task classifier or regression model. However, attempting to simultaneously learn multiple tasks in a way that leverages correlations between tasks is difficult, and typically becomes problematically or prohibitively computationally intensive.


Additionally, in any learning problem it would be useful to integrate feature selection into the modeling, that is, to emphasize features that are highly discriminative while limiting or eliminating less descriminative features from consideration. A common approach is to apply feature reduction in which the discriminativeness of features is quantified and less discriminative features are discarded. In the multi-task setting, however, it is difficult to quantify the discriminativeness of a feature on a global scale. For example, a feature may be largely irrelevant for most tasks but highly discriminative for a few tasks.


One way to formulate a multitask problem is a matrix formulation in which the model is applied to the feature vector to generate the task predictions. Mathematically, this can be written as:





yn=f(Wxn+μ)+εn  (1)


where xncustom-characterD is an input feature vector having D features, yncustom-characterP is the vector of P task predictions, εn˜custom-character(0,Σ), f( . . . ) is a (possibly nonlinear) function, and where W∈custom-characterP×D is the matrix of weights, μ∈custom-characterP is the task offsets, and εncustom-characterP is the vector residual errors with covariance Σ∈custom-characterP×P. In this setting, the output of all tasks, i.e. yn, is observed for every input xn. In general, it is understood that feature selection can be achieved by making the model matrix W sparse, for example in the context of a (relaxed) convex optimization framework or a Bayesian framework. An advantage of the Bayesian approach is that it enables the degree of sparsity to be learned from the data, and does not require a priori specification of the type of penalization. However, the dimensionality of the model matrix is large (W∈custom-characterP×D). Enforcing sparsity over this large matrix, while also leveraging correlations (both positive and negative) between tasks, is a difficult problem.


BRIEF DESCRIPTION

In some illustrative embodiments disclosed as illustrative examples herein, an apparatus comprises an electronic data processing device configured to perform a method comprising: constructing a Bayesian model representing relationships between a plurality of features and a plurality of tasks wherein the Bayesian model includes a matrix variate prior having a features dimension and a tasks dimension and wherein the matrix variate prior is partitioned into a plurality of blocks; generating an optimized Bayesian model by optimizing parameters of the Bayesian model respective to training data comprising sets of feature values annotated with values for tasks of the plurality of tasks wherein the optimizing includes inferring prior distributions for the blocks of the matrix variate prior that induce sparseness of the plurality of blocks; and predicting values of tasks of the plurality of tasks for an input set of feature values using the optimized Bayesian model.


In some illustrative embodiments disclosed as illustrative examples herein, a method comprises: generating an optimized Bayesian model by optimizing parameters of a Bayesian model representing relationships between a plurality of features and a plurality of tasks respective to training data comprising sets of feature values annotated with values for tasks of the plurality of tasks, the Bayesian model including a matrix variate prior having a features dimension and a tasks dimension, the optimizing including decomposing the matrix variate prior into a product of matrices including a matrix of reduced rank in the tasks dimension that encodes positive or negative correlations between tasks of the plurality of tasks; and predicting values of tasks of the plurality of tasks for an input set of feature values using the optimized Bayesian model. The generating and predicting are suitably performed by an electronic data processing device.


In some illustrative embodiments disclosed as illustrative examples herein, a storage medium stores instructions executable by an electronic data processing device to perform operations including (1) generating an optimized Bayesian model by optimizing parameters of a Bayesian model representing relationships between D features and P tasks, where D≧1 and P≧1, respective to training data comprising sets of values for the D features annotated with values for the P tasks, the Bayesian model including a matrix-variate prior having a features dimension of dimensionality D corresponding to the D features and a tasks dimension of dimensionality P corresponding to the P tasks, wherein the matrix-variate prior is partitioned into a plurality of blocks and the optimizing of parameters of the Bayesian model includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks and (2) predicting values of the P tasks for a set of input values for the D features using the optimized Bayesian model.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 diagrammatically shows a multi-task regression or classification system as disclosed herein.



FIG. 2 diagrammatically shows the graphical model for the sparse Bayesian multiple regression (when excluding the dashed arrow) and sparse Bayesian multiple classification (when including the dashed arrow).



FIGS. 3-7 present various experimental results as described herein.





DETAILED DESCRIPTION

Disclosed herein are multi-task classification or regression approaches that simultaneously leverage both (1) correlations (including “negative” or “anti”-correlations) between tasks and (2) the group sparsity in features. Instead of treating these as two independent model constraints, the disclosed approaches formulate both in terms of prior preferences over model structure encoded in a probabilistic graphical model. A linear model is employed, in which the output is predicted from a linear combination of the features. Correlations between both features and tasks are captured by having the coefficients of the combination to be random variables. Multi-tasking is captured in that the coefficients form a random matrix rather than a random vector. In the illustrative formulation, each row of the matrix corresponds to a task and each column corresponds to a feature (the skilled artisan can readily convert to the opposite formalism in which tasks correspond to rows and features to columns). Correlations between features (illustrative columns) and between tasks (illustrative rows) are handled separately and are combined multiplicatively.


In the disclosed approaches, the correlations between tasks are captured by a low rank approximation of the covariance matrix, which is numerically stable even for a large number of tasks. This joint matrix approach enables modeling of both positive and negative correlations between tasks, without imposing any constraint on the correlation sign or order. For example two tasks might be strongly negatively correlated (by way of illustrative example, the answers to questions that are rephrased in a negative sense).


Sparsity is accounted for by selecting the prior distribution on that matrix. First, the matrix is configured to be block decomposable, with each block corresponding to an a priori known feature group. The feature groups are assumed to be disjoint. The blocks of features are defined based on information about relationships between features. For example, when a nominal variable is discretized the resulting features form a natural feature group. Another example is a set of nonlinear transformation of the same variables. These are merely two two examples. Each block is made sparse by imposing it to be (up to noise) the product of low rank matrices and by imposing an appropriate prior on the scale of the noise.


Any suitable method can be applied to learn the parameters of the resulting Bayesian network or model and to perform inference using the trained Bayesian model. In some embodiments the learning and inference is performed efficiently using an algorithm derived from the generic methodology known as “variational approximation”. This methodology suggests looking for approximate posterior distributions in a factorized form.


The disclosed methods perform classification or regression where the output may consist of multiple possibly correlated components (a.k.a. multi-task or multi-view regression), where the correlation can be both positive and negative, and where the input is represented as a vector of possibly correlated features, partitioned into known clusters to be treated as groups in the prediction.


Thus, in the disclosed approaches the multi-task learning problem is expressed as a probabilistic graphical model using prior probabilities configured to ensure group sparsity, that is, configured to bias toward the most relevant feature groups being used to perform the prediction. In some embodiments the problem is expressed as a probabilistic graphical model using appropriate prior probabilities to ensure that correlations between tasks is exploited, that is, to ensure that common structure is picked up and used for better prediction already after a limited number of observations. In some such embodiments, the covariance between tasks is approximated by a low rank matrix. With this approach, the method remains numerically stable even with a large number of correlated tasks. In some embodiments an appropriate factorization of the posterior probability is assumed and computed using an iterative algorithm derived from the generic “variational” approximation framework.


With reference to FIG. 1, a multi-task classifier or regression system is illustrated. The system includes a multi-task learning module 10 implemented on a computer or other electronic data processing device 12, and an inference module 14 implemented on a computer or other electronic data processing device 16. In the illustrative example of FIG. 1, the learning module 10 and the inference module 14 are embodied by two different respective computers 12, 16; however, it is contemplated for the learning and inference components to both be embodied by the same computer. Moreover, although computers 12, 16 are illustrated, the electronic data processing device or devices 12, 16 can be variously embodied as one or more computers, one or more network-based servers, one or more mobile devices such as a personal data assistant (PDA), smartphone, or tablet computer, various combinations of the foregoing, or so forth. The electronic processing device or devices 12, 16 includes a display or other suitable output device, and may optionally include a user input device such as a keyboard, mouse, trackball, trackpad, or so forth.


The disclosed multi-task regression or classification system including learning and inference modules 10, 14 can also be embodied as a storage medium storing instructions executable by the electronic data processing device or devices 12, 16 to perform the functions of the learning and inference modules 10, 14. Such a storage medium may, for example, comprise a hard disk drive or other magnetic storage medium, or an optical disk or other optical storage medium, or a random access memory (RAM), read-only memory (ROM), flash memory, or other electronic storage medium, or so forth.


The illustrative multi-task learning module 10 groupings 20 of the input features. Without loss of generality, the number of features is denoted as D. The learning module 10 also receives a training set 22 of feature sets annotated with values for tasks. In a suitable arrangement and without loss of generality, the nth feature set of the training set 22 has values for the aforementioned D features and is suitably represented as a feature vector xncustom-characterD. Each feature vector of the training set 22 is annotated with values for the tasks. In a suitable arrangement and without loss of generality, the nth feature set xn is annotated with values for P tasks which are suitably represented as a vector yncustom-characterP.


The multi-task learning module 10 includes a Bayesian model construction sub-module 24 that constructs a Bayesian model representing relationships between the D features and the P tasks. The Bayesian model includes a matrix-variate prior having a features dimension of dimensionality D and a tasks dimension of dimensionality P. In the illustrative examples, each row of the matrix-variate prior corresponds to a task and each column corresponds to a feature, and the matrix-variate prior is written as W∈custom-characterP×D. (Again, the skilled artisan can readily convert the illustrative formalism to the opposite formalism in which tasks correspond to rows and features to columns.) The matrix-variate prior W∈custom-characterP×D is partitioned into a plurality of blocks based on the groupings 20 of related features.


The multi-task learning module further includes a Bayesian model optimizer sub-module 26 that generates an optimized Bayesian model 30 by optimizing parameters of the Bayesian model (constructed by the construction sub-module 24) respective to the training set 22. The optimizing performed by the optimizer sub-module 26 includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks. The optimizer sub-module 26 optimizes the parameters of the Bayesian module while: (1) decomposing the matrix-variate prior to find low-rank matrix encoding task correlations; and (2) inferring prior distributions for the blocks of the multi-variate prior that enforce block sparsity.


The optimized (i.e., learned) Bayesian model 30 is used by the inference module 14. In illustrative FIG. 1, the inference module is a regression or classification module 14 that receives an input feature set 32 comprising the aforementioned D features, again suitably represented without loss of generality as a feature vector of the form x+custom-characterD. The input feature set 32 is (in general) not annotated with values for the P tasks. Rather, the regression or classification module 14 predicts values 34 for the P tasks for the input set of feature values 32 using the optimized Bayesian model 30. The predicted values 34 are suitably represented without loss of generality as an inferred output vector y*custom-characterP, where the value for each task (that is, each element of the output vector y*) is a distribution.


In a regression analysis, the distribution y* 34, or an expectation value or other aggregate value of the distribution y* 34, typically serves as the useful output. In classification, the expectation or other aggregate value is typically thresholded to output a useful discrete (e.g., binary) value, for example to provide a binary decision as to whether or not the input object represented by the input feature set 32 should be assigned to the corresponding class. (Note that the post-inference processing is not illustrated in FIG. 1).


The multi-task regression or classification system of FIG. 1 finds use in various applications. By way of illustrative example pertaining to the previous example of applying textual labels to an image, the training set 22 in this application consists of feature vectors representing images of a set of training images, with each training image annotated by a set of textual labels. The P tasks correspond to the P textual labels of the label vocabulary (which may, in some embodiments, comprise hundreds, thousands, tens of thousands, or more labels). The groupings 20 in this case are suitably generated based on the structure of the feature vectors representing the images, and suitable groupings are typically readily discernable based on expected relationships between the various image features that make up the feature vector. The D features may number in the dozens, hundreds, or higher. The elements of the output distribution y* 34 correspond to the textual labels of the vocabulary, and the value for each element is thresholded to decide whether to assign the corresponding textual label to the image represented by the input vector 32.


The foregoing is merely an illustrative example of an application. The skilled artisan can readily apply the multi-task regression or classification of FIG. 1 to diverse applications such as prediction of tests scores in social sciences, the classification of protein functions in systems biology, the categorisation of scenes in computer vision, database (e.g., Internet) search and ranking, and so forth.


The disclosed multi-task learning techniques have been described herein with reference to FIG. 1. Further description is set forth next using mathematical notation to describe some illustrative examples.


In these illustrative examples, the matrix-variate prior is a matrix-variate Gaussian scaled mixture prior. For a matrix W∈custom-characterP×D, the matrix-variate Gaussian density with mean matrix M∈custom-characterP×D, row covariance Ω∈custom-characterD×D, and column covariance Σ∈custom-characterP×P is given by:














(

M
,
Ω
,


)







-

1
2





vec


(

W
-
M

)


T




(

Ω



)


-
1




vec


(

W
-
M

)









-

1
2



tr


{




Ω

-
1




(

W
-
M

)


T






-
1




(

W
-
M

)



}




,




(
2
)







where the symbol ∝ means “proportional to”.


If we let Σ=E(W−M)(W−M)T, then Ω=E(W−M)T(W−M)/c where c ensures the density integrates to one. While this introduces a scale ambiguity between Σ and Ω (easily removed by means of a prior), the use of a matrix-variate formulation is appealing as it makes explicit the structure vec(W), which is a vector formed by the concatenation of the columns of W. This structure is reflected in its covariance matrix which is not of full rank, but is obtained by computing the Kronecker product of the row and the column covariance matrices.


We seek a solution for which the expectation of W is sparse, i.e., blocks of W are driven to zero. The predicting does not use a feature value of the input set of feature values for predicting the value of a task when the expectation of the element of the matrix-variate prior corresponding to the feature-task pair has a zero value (up to machine precision). A straightforward way to induce sparsity, and which would be equivalent to l1-regularisation on blocks of W, is to consider a Laplace prior (or double exponential). Although applicable in a penalised likelihood framework, the Laplace prior would be computationally difficult in a Bayesian setting as it is not conjugate to the Gaussian likelihood. Hence, using this prior without modification would prevent computation of the posterior in closed form, even in a variational setting. In order to circumvent this problem, a hierarchical Bayesian approach is used in this illustrative embodiment.


Without loss of generality, the matrix-variate prior is partitioned into Q blocks, with each block being of the form Wiεcustom-characterP×Di and with the partitioning meeting the completeness criterion Σi−1QDi=D. We assume that the marginal prior, or effective prior, on each block Wiεcustom-characterP×Di has the form of a matrix-variate Gaussian scale mixture, a generalisation of the multivariate Gaussian scale mixture:






p(Wi)=∫0custom-character(0, γi−1Ωi, Σ) pi) dγi  (3),


where Ωiεcustom-characterDi×Di, Σεcustom-characterP×P and γi>0 is the latent precision (i.e., inverse scale) associated to block Wi.


A sparsity inducing prior for Wi can then be constructed by choosing a suitable hyperprior for γi. We impose a generalised inverse Gaussian prior on the latent precision variables:











γ
i

~




-
1




(

ω
,
χ
,
φ

)



=





χ

-
ω




(

χφ

)


ω


2



K
ω



(

χφ

)






γ
i

ω
-
1







-

1
2




(


χγ
i

-
1


+

φγ
i


)








(
4
)







where Kω(•) is the modified Bessel function of the second kind, ω is the index, √{square root over (χφ)} defines the concentration of the distribution and √{square root over (χ/φ)} defines its scale.


The generalised inverse Gaussian prior is defined as follows:










x
~




-
1




(

ω
,
χ
,
φ

)



=





χ

-
ω




(

χφ

)


ω


2



K
ω



(

χφ

)






x

ω
-
1







-

1
2




(


χ






x

-
1



+

φ





x


)








(
4.1
)







where x>0 and Kω(•) is the modified Bessel function of the second kind with index ωεcustom-character. Depending on the value taken by ω, we have the following constraints on χ and φ:











{





ω
>
0

:





χ

0

,

φ
>
0







ω
=

0
:






χ
>
0

,

φ
>
0








ω
<
0

:





χ
>
0

,

φ

0.










(
4.2
)







The following expectations are useful:












x


=



χ
φ





R
ω



(

χφ

)




,








x

-
1




=



φ
χ





R

-
ω




(

χφ

)




,








ln





x



=


ln



χ
φ



+




ln








K
ω



(

χφ

)





ω








(
4.3
)







where Rω(•)≡K107 +1(•)/Kω(•). When χ=0 and ω>0, the generalised inverse Gaussian distribution reduces to the Gamma distribution








x





(

a
,
b

)



=



b
a


Γ


(
a
)





x

a
-
1






-
bx




,




where a, b>0 and Γ(•) is the (complete) gamma function. The expectations of Equation (4.3) take the following simplified forms:












x


=

a
b


,








x

-
1




=

{





b

a
-
1





a

1









a
<
1




,








ln





x



=


ψ


(
a
)


-

ln





b



,







(
4.4
)







where ψ(•)=InΓ(•)′ is the digamma function. When φ=0 and ω<0, the generalised inverse Gaussian distribution reduces to the inverse Gamma distribution








x





(

a
,
b

)



=



b
a


Γ


(
a
)





x


-
a

-
1






-

b
x





,




where a>0 and b>0. The expectations of Equation (4.3) take the following simplified forms:











x


=

{





b

a
-
1





a

1









a
<
1




,








x

-
1




=

a
b


,








ln





x



=


ln





b

-


ψ


(
a
)


.









(
4.5
)







The effective prior is then a symmetric matrix-variate generalised hyperbolic distribution derived from a matrix-variate Gaussian scale mixture:










p


(

W
i

)







K

ω
+


PD
i

2





(


χ


(

φ
+

tr


{


Ω
i

-
1




W
i
T






-
1




W
i



}



)



)




(



φ
+

tr


{


Ω
i

-
1




W
i
T






-
1




W
i



}



χ


)


ω
+


PD
i

2




.





(
5
)







The marginal has fat tails compared to the matrix-variate Gaussian. In particular, the family contains the matrix-variate Student-t, the matrix-variate Laplace and the matrix-variate Variance-Gamma as special cases.


In optimizing the Bayesian model, {Wi}i=1Q, {Ωi}i=1Q and {γ1, . . . , γD1, . . . γ1, . . . , γDQ} are viewed as latent variables that are to be marginalised over. This is motivated by the fact that overfitting is avoided by integrating out all parameters whose cardinality scales with the model complexity, i.e., the number of dimensions and/or the number of tasks. We further introduce a latent projection matrix Vεcustom-characterP×K and a set of latent matrices {Zi}i=1Q to make a low-rank approximation of the column covariance Σ as explained below. Note also that Ωi, captures the correlations between the rows of group i.


With reference to FIG. 2, the complete probabilistic model is given by:






y
n
|W, x
n˜custom-character(Wxn, σ2IP), V˜custom-character(0, τIP, Iκ),






W
i
|V, Z
iΩiγi˜custom-character(VZi, γi−1Ωi, τIP), Ωi˜custom-character−1(ν, λIDi),






Z
ii, γi˜custom-character(0, γi−1Ωi, Iκ), γi˜custom-character−1(ω, χ, φ),   (6),


where σ2 is the residual noise variance and r is residual variance associated to W. In FIG. 2, the parameters that are optimized by the Bayesian model optimizer (see FIG. 1) are shown encircled by dashed-line circles, while random variables of the Bayesian model are shown encircled by solid-line circles. We reparametrise the inverse Wishart distribution and define it as follows:












Ω
~




-
1




(

v
,
Λ

)



=





Λ





D
+
v
-
1

2





Ω

-
1








2





D

+
v

2



2




(

D
+
v
-
1

)


D

2




Γ
D

(


D
+
v
-
1

2

)








-

1
2



tr


{

ΛΩ

-
1


}





,









v
>
0











where












Γ
p



(
z
)


=


π


p


(

p
-
1

)


4







j
=
1

p








Γ


(

z
+


1
-
j

2


)


.








(
6.1
)







Using the compact notations W=(W1, . . . , WQ, Z=(Z1, . . . , ZQ), Ω={Ω1, . . . , ΩQ} and Γ={γ1. . . , γD1, . . . , γ1, . . . , γDQ}, we can compute the following marginal:











p


(


W

V

,
Ω

)












(


V





Z

,


Γ

-
1



Ω

,

τ






I
P



)







(

0
,


Γ

-
1



Ω

,

I
K


)




p


(
Γ
)





Z




Γ





=







(

0
,


Γ

-
1



Ω

,


V






V
T


+

τ






I
P




)




p


(
Γ
)






Γ

.







(
6.2
)







Thus, the probabilistic model induces sparsity in the blocks of W, while taking correlations between the task parameters into account through the random matrix Σ≈VVT+τIP. In these operations the matrix-variate prior is decomposed into a product of matrices including a matrix V of low rank in the tasks dimension (i.e., the rows dimension in the illustrative examples) that encodes positive or negative correlations between tasks. This is especially useful when there is a large number of tasks.


The latent variables custom-character={W, V, Z, Ω, Γ} are infered by variational expectation-maximization (EM), while the hyperparameters θ={σ2, τ, ν, λ, ω, χ, φ} are estimated by type II maximum likelihood (type II ML). The use of variational inference in the illustrative examples is motivated by the fact that deterministic approximate inference schemes converge faster than traditional sampling methods such as Markov chain Monte Carlo (MCMC), and their convergence can easily be monitored. The choice of learning the hyperparameters by type II ML is advantageous over alternative approaches such as placing vague priors over them, although this is also a contemplated inference approach.


In order to find a tractable solution, we assume that the variational posterior q(custom-character)=q(W,V,Z,Ω,Γ) factorises as q(W)q(V)q(,Z)q(Ω)q(Γ) given the data D={(yn, xn)}n=1N (that is, given the training set 22 of FIG. 1). The variational EM in combination with the type II ML estimation of the hyperparameters cycles through the following two steps until convergence. Step (1) is to update of the approximate posterior of the latent variables and parameters for fixed hyperparameters where the update for W is given by:






q(W)∝custom-character  (7)


and where custom-character/W is the set custom-character with W removed and custom-charactercustom-characterq denotes the expectation with respect to q. The posteriors of the other latent matrices have the same form. Step (2) is to update the hyperparameters for fixed variational posteriors:









ϑ




arg





max

ϑ







ln






p


(


,

,


ϑ


)






q


(

)



.






(
8
)







Variational EM converges to a local maximum of the log-marginal likelihood. The convergence can be checked by monitoring the variational lower bound, which monotonically increases during the optimisation.


Next, we give the explicit expression of the variational EM steps and the updates for the hyperparameters. The variational E step (mean field) is as follows. Assuming a factorised posterior enables us to compute it in closed form as the priors are each conjugate to the Gaussian likelihood. The approximate posterior is given by:










q


(


_

)


=





(


M
W

,

Ω
W

,

S
W


)







(


M
V

,

Ω
V

,

S
V


)











(


M
Z

,

Ω
Z

,

S
Z


)


×



i











-
1




(


v
i

,

Λ
i


)








-
1




(


ω
i

,

χ
i

,

φ
i


)


.








(
9
)







Now, let Xεcustom-characterD×N and Yεcustom-characterP×N. The parameters of the matrix-variate posteriors in Equation (9) are given by:






M
W=(τ−1custom-characterVcustom-charactercustom-characterZcustom-charactercustom-characterΩ−1custom-charactercustom-characterΓcustom-character−2YXTW, SW=IP





ΩW=(τ−1custom-characterΩ−1custom-charactercustom-characterΓcustom-character−2XXT)−1  (9.1),






M
Z

i
−1SZicustom-characterVTcustom-charactercustom-characterWicustom-character, SZi=(τ−1custom-characterVTVcustom-character+Iκ)−1





ΩZi=custom-characterγicustom-character−1custom-characterΩi−1custom-character−1,   (9.2),





and






M
V
=
custom-character
W
custom-character
custom-character
Ω
−1
custom-character
custom-character
Γ
custom-character
custom-character
Z
T
custom-characterΩV, SVτIP





ΩV=(Σicustom-characterγiZiΩi−1ZiTcustom-character+Iκ)−1  (9.3)


where custom-characterΩi−1custom-character=(Dii−1)Λi−1. The posterior parameters of the inverse Wishart are given by νi=ν+P+K and Λi−1custom-characterγi(Wi−VZi)T(Wi−VZi)custom-character+custom-characterγiZiTZicustom-characterDi. Finally, the posterior parameters of the generalised inversed Gaussian are given by








ω
i

=

ω
+



(

P
+
K

)



D
i


2



,




χi=χ and φi=φ+τ−1trcustom-character(Wi−VZii−1(Wi−VZi)Tcustom-character+trcustom-characterZiΩi−1ZiTcustom-character.


The computational bottleneck in the variational EM resides in the inversion of ΩW which is ο(D3) per iteration. When D>N, we can use the Woodbury identity for a matrix inversion of complexity ο(N3) per iteration.


The hyperparameter updates are addressed next. To learn the degree of sparsity from data we optimize the hyperparameters. There are no closed form updates for {ω, χ, φ}. Hence, we need to find the root of the following expressions:









ω


:






Q





ln



φ
χ



-

Q





ln








K
ω



(

χφ

)





ω






i









ln






γ
i







=
0

,





(
10
)










χ


:








Q





ω

χ


-


Q
2




φ
χ





R
ω



(

χφ

)



+


1
2





i









γ
i

-
1







=
0

,





(
11
)






and








φ


:






Q



χ
φ





R
ω



(

χφ

)



-



i









γ
i





=
0

,





(
12
)





where Equation (4.3) is invoked. The root can be found by line search, standard nonlinear optimisation techniques, or so forth. In the general case, the derivative in Equation (10) is estimated numerically. However, when considering special cases of the mixing density such as the Gamma or the inverse Gamma, simplified updates are obtained and no numerical differentiation is required.


The type II ML update for a and r are as follows:







σ
2




1

N





P



tr





(

Y
-
WX

)




(

Y
-
WX

)

T










(
13
)







and






τ







1

P


(

K
+
D

)




tr


{





V
T


V







+






ΓΩ

-
1




(

W
-

V





Z


)


T



(

W
-

V





Z


)





}







,





(
14
)





where X=(x1, . . . , xN) and Y=(y1, . . . , yN).


With reference back to FIG. 1, the foregoing processing is suitably performed by the Bayesian model optimizer sub-module 26 of the multi-task learning module 10 to generate the optimized Bayesian model 30. Next, some illustrative embodiments of inference by the regression or classification module 14 using the optimized Bayesian model 30 is described.


The regression or classification module 14 (see FIG. 1) suitably performs the task value predictions by Bayesian averaging. The predictive distribution is suitably approximated as follows:






p(y*|x*)≈∫p(y*|W,x*)q(W)dW=custom-character(MWx*, (custom-character2+x*TΩWx*)IP)  (15).



FIG. 2 provides a suitable representation of the optimized Bayesian model 30 when the values of the parameters (shown encircled by dashed-line circles in FIG. 2) are set to their optimized values as determined by the Bayesian model optimizer sub-module 26. The output of the optimized Bayesian model 30 for a given input are the values yn for the parameters, which are actually distributions y* in the inference stage as denoted in Equation (15). In a regression analysis, these distributions y*, or an expectation value or other aggregate value of the distribution y*, typically serves as the useful output.


In classification, the expectation or other aggregate value is typically thresholded or otherwise further processed in order to output a useful discrete (e.g., binary) value. This is indicated in FIG. 2 by the dashed line and the last output tn which is the thresholded value. Sparse Bayesian multiple classification can be performed as follows. We restrict ourselves to multiple binary classifiers and consider a probit model in which the likelihood is derived from the Gaussian cumulative density. (A logit model could also be contemplated, the resulting algorithm being adapted accordingly.) A probit model is equivalent to a Gaussian noise and a step function likelihood. Let tnεcustom-characterP be the class label vectors, with tnpε{−1, +1} for all n. The likelihood of Equation (15) is replaced by:











t
n




y
n

~



p







I


(


t
np



y
np


)





,






y
n


W

,


x
n

~




(


Wx
n

,


σ
2



I
P



)



,




(
16
)







where I(z)=1 for z≧0 and 0 otherwise. The rest of the model is as before; we will set σ=1. The latent variables to infer are now Y and Z. Again, we assume a factorized posterior. We further assume the variational posterior q(Y) is a product of truncated Gaussians, yielding:












q


(
Y
)






n









p




I


(


t
np



y
np


)







(


v
np

,
1

)






=





t
np

=

+
1












+



(


v
np

,
1

)








t
np

=

-
1











-



(


v
np

,
1

)






,




(
17
)







where νnp is the pth entry of νn=MWχn. The (positive/negative) truncated Gaussian density is defined as custom-character±(μ, σ2)=Φ(±μ/σ)−1custom-character(μ, σ2), where Φ(α)=∫−∞αcustom-character(0,1)dz is the cumulative density of the unit Gaussian. Let χ±˜custom-character±(μ, σ2). The mean and variance are given by:






custom-characterχ±custom-character=μ±σ2custom-character±(0|μ, σ2)  (17.1)





and






custom-character±custom-characterχ±custom-character)2custom-character2∓σ2μcustom-character±(0|μ, σ2)−σ4custom-character±(0|μ, σ2)2  (17.2)


The other variational and hyperparameter updates are unchanged, except that Y is replaced by matrix ν±. The elements of ν± are defined in Equation (17.1).


In Bayesian classification the goal is to predict the label with highest posterior probability. Based on the variational approximation the following classification rule is appropriate:














t
̑

*

=



arg













max

t
*




P


(


t
*


T

)














arg













max

t
*






p









t

*
p





(


v

*
p


,
1

)






y

*
p















=



arg













max

t
*






p



Φ


(


t

*
p




v

*
p



)






,







(
18
)







where ν*=MWχ*. Hence, to decide whether the label t*p is −1 or +1 it is sufficient to use the sign of ν*p as the decision rule. However, the probability P(t*p|T) tells us also how confident we are in the prediction we make.


With reference to FIGS. 3-7, to verify the expected properties of the disclosed multi-task model a regression problem with known parameters was processed. FIGS. 3-7 shows results for 5 tasks, 50 features, and a matrix W drawn using V=[√{square root over (0.9)}√{square root over (0.9)}√{square root over (0.9)}−√{square root over (0.9)}−√{square root over (0.9)}]T and τ=0.1, i.e. the covariance for vec(W) has 1's on the diagonal and ±0.9 on the off-diagonal elements. The first three tasks and the last two tasks are positively correlated. There is a negative correlation between the two groups. The active features were randomly selected among the 50 candidate features. The models were evaluated with 104 test points and the experiment was repeated 25 times. Gaussian noise was added to the targets (σ=0.1). FIG. 3 shows the prediction accuracy on a test set as a function of training set size. The approach disclosed herein (solid line in FIG. 3) shows lower error achieved with smaller training sets. FIG. 4 shows the estimated task covariance while FIG. 5 shows the true task covariance. Reasonable correspondence is seen, indicating that the disclosed approaches for enforcing sparsity in the matrix-variate prior are effective. FIG. 6 (top) shows the sparsity pattern, and FIG. 6 (bottom) shows the inverse of the posterior mean showing that the sparsity is correctly captured. FIG. 7 shows Hinton diagrams of the true weight matrix (bottom), ordinary least squares learnt weight matrix (middle), and the sparse Bayesian multi-task learnt weight matrix (top). The ordinary least squares learnt contains many non-zero elements, i.e. has less sparsity. It is observed that the disclosed model performs better and converges faster to the optimal performance (as per FIG. 3) when the data set size increases compared ordinary least squares. Note also that both Σ and the sparsity pattern are correctly identified.


Further evaluation was performed using two data sets: Yeast (Elisseeff et al., “A kernel method for multi-labelled classification”, NIPS 2002) and Scene (Boutell et al., “Learning multi-label scene classification”, Pattern Recognition, 37(9):1757-71, 2004), which have been widely used as testbeds to evaluate multi-task learning approaches. These results showed that even for small values of K (that is, fewer parameters in the column covariance) the disclosed model achieved good results. These evaluations indicated substantial advantage to using hierarchical priors.


It will be appreciated that various of the above-disclosed and other features and functions, or alternatives thereof, may be desirably combined into many other different systems or applications. Also that various presently unforeseen or unanticipated alternatives, modifications, variations or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims.

Claims
  • 1. An apparatus comprising: an electronic data processing device configured to perform a method comprising:constructing a Bayesian model representing relationships between a plurality of features and a plurality of tasks wherein the Bayesian model includes a matrix-variate prior having a features dimension and a tasks dimension and wherein the matrix-variate prior is partitioned into a plurality of blocks;generating an optimized Bayesian model by optimizing parameters of the Bayesian model respective to training data comprising sets of feature values annotated with values for tasks of the plurality of tasks wherein the optimizing includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks; andpredicting values of tasks of the plurality of tasks for an input set of feature values using the optimized Bayesian model.
  • 2. The apparatus of claim 1, wherein the optimizing comprises: decomposing the matrix-variate prior into a product of matrices including a matrix of reduced rank in the tasks dimension that encodes positive or negative correlations between tasks of the plurality of tasks.
  • 3. The apparatus of claim 2, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.
  • 4. The apparatus of claim 1, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.
  • 5. The apparatus of claim 4, wherein the predicting does not use a feature value of the input set of feature values for predicting the value of a task when the expectation of the element of the matrix-variate prior corresponding to the feature-task pair has a zero value.
  • 6. The apparatus of claim 1, wherein the predicting does not use a feature value of the input set of feature values for predicting the value of a task when the expectation of the element of the matrix-variate prior corresponding to the feature-task pair has a zero value.
  • 7. The apparatus of claim 1, wherein the optimizing employs a variational expectation-maximization (variational E-M) algorithm.
  • 8. A method comprising: generating an optimized Bayesian model by optimizing parameters of a Bayesian model representing relationships between a plurality of features and a plurality of tasks respective to training data comprising sets of feature values annotated with values for tasks of the plurality of tasks, the Bayesian model including a matrix-variate prior having a features dimension and a tasks dimension, the optimizing including decomposing the matrix-variate prior into a product of matrices including a matrix of reduced rank in the tasks dimension that encodes positive or negative correlations between tasks of the plurality of tasks; andpredicting values of tasks of the plurality of tasks for an input set of feature values using the optimized Bayesian model;wherein the generating and predicting are performed by an electronic data processing device.
  • 9. The method of claim 8, wherein the matrix-variate prior is partitioned into a plurality of blocks and the optimizing of parameters of the Bayesian model includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks.
  • 10. The method of claim 9, wherein the predicting does not use a feature value of the input set of feature values for predicting the value of a task when the expectation of the element of the matrix-variate prior corresponding to the feature-task pair has a zero value.
  • 11. The method of claim 10, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.
  • 12. The method of claim 8, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.
  • 13. The method of claim 1, wherein the optimizing employs a variational expectation-maximization (variational E-M) algorithm.
  • 14. A storage medium storing instructions executable by an electronic data processing device to perform operations including (1) generating an optimized Bayesian model by optimizing parameters of a Bayesian model representing relationships between D features and P tasks, where D≧1 and P≧1, respective to training data comprising sets of values for the D features annotated with values for the P tasks, the Bayesian model including a matrix-variate prior having a features dimension of dimensionality D corresponding to the D features and a tasks dimension of dimensionality P corresponding to the P tasks, wherein the matrix-variate prior is partitioned into a plurality of blocks and the optimizing of parameters of the Bayesian model includes inferring prior distributions for the blocks of the matrix-variate prior that induce sparseness of the plurality of blocks and (2) predicting values of the P tasks for a set of input values for the D features using the optimized Bayesian model.
  • 15. The storage medium of claim 14, wherein the optimizing comprises decomposing the matrix-variate prior into a product of matrices including a matrix of reduced rank in the tasks dimension that encodes positive or negative correlations between tasks of the P tasks.
  • 16. The storage medium of claim 15, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.
  • 17. The storage medium of claim 15, wherein the predicting does not use the input value for a dth feature for predicting the value of a pth task when the element of the matrix-variate prior at the dth feature dimension and pth task dimension has a zero value.
  • 18. The storage medium of claim 15, wherein the optimizing employs a variational expectation-maximization (variational E-M) algorithm.
  • 19. The storage medium of claim 14, wherein the predicting does not use the input value for a dth feature for predicting the value of a pth task when the expectation of the element of the matrix-variate prior at the dth feature dimension and pth task dimension has a zero value.
  • 20. The storage medium of claim 14, wherein the matrix-variate prior comprises a matrix-variate Gaussian scaled mixture prior.