Taking Advantage of Sparsity in Multi-Task Learning

Karim Lounici, Massimiliano Pontil, Alexandre B. Tsybakov, Sara van de Geer

Introduction

We study the problem of estimating multiple regression equations under sparsity assumptions on the underlying regression coefficients. More precisely, we consider multiple Gaussian regression models,

where, for each t=1,…,Tt=1,\dots,T, we let XtX_{t} be a prescribed n×Mn\times M design matrix, βt∗\beta_{t}^{*} the unknown vector of regression coefficients and yty_{t} an nn-dimensional vector of observations. We assume that W1,…,WTW_{1},\dots,W_{T} are i.i.d. zero mean random vectors.

We are interested in estimation methods which work well even when the number of parameters in each equation is much larger than the number of observations, that is, M≫nM\gg n. This situation may arise in many practical applications in which the predictor variables are inherently high dimensional, or it may be “costly” to observe response variables, due to difficult experimental procedures, see, for example for a discussion.

Examples in which this estimation problem is relevant range from multi-task learning and conjoint analysis (see, for example, and references therein) to longitudinal data analysis as well as the analysis of panel data , among others. In particular, multi-task learning provides a main motivation for our study. In that setting each regression equation corresponds to a different learning task (the classification case can be treated similarly); in addition to the requirement that M≫nM\gg n, we are also interested in the case that the number of tasks TT is much larger than nn. Following we assume that there are only few common important variables which are shared by the tasks. A general goal of this paper is to study the implications of this assumption from a statistical learning view point, in particular, to quantify the advantage provided by the large number of tasks to learn both the underlying vectors β1∗,…,βT∗\beta^{*}_{1},\dots,\beta^{*}_{T} as well as to select common variables shared by the tasks.

In this paper, we assume that the vectors β1∗,…,βT∗\beta_{1}^{*},\dots,\beta^{*}_{T} are not only sparse but also have the same sparsity pattern. This means that the set of indices which correspond to non zero components of βt∗\beta_{t}^{*} is the same for every t=1,…,Tt=1,\dots,T. In other words, the response variable associated with each equation in (1.1) depends only on a small subset (of size s≪Ms\ll M) of the corresponding predictor variables and the set of relevant predictors is preserved across the different equations. This assumption, that we further refer to as structured sparsity assumption, is motivated by some recent work on multi-task learning . It naturally leads to an extension of the Lasso method, the so-called group Lasso , in which the error term is the average residual error across the different equations and the penalty term is a mixed (2,1)(2,1)-norm. The structured sparsity assumption induces a relation between the responses and, as we shall see, can be used to improve estimation.

The paper is organized as follows. In Section 2 we define the estimation method and comment on previous related work. In Section 3 we study the oracle properties of this estimator when the errors WtW_{t} are Gaussian. Our main results concern upper bounds on the prediction error and the distance between the estimator and the true regression vector β∗\beta^{*}. Specifically, Theorem 3.1 establishes that under the above structured sparsity assumption on β∗\beta^{*}, the prediction error is essentially of the order of s/ns/n. In particular, in the multi-task learning scenario, in which TT can grow, we are able to remove completely the effect of the number of predictor variables in the bounds. Next, in Section 4, under a stronger condition on the design matrices, we describe a simple modification of our method and show that it selects the correct sparsity pattern with an overwhelming probability (Theorem 4.1). We also find the rates of convergence of the estimators for mixed (2,1)(2,1)-norms with 1≤p≤∞1\leq p\leq\infty (Theorem 4.2). The techniques of proofs build upon and extend those of and . Finally, in Section 5 we discuss how our results can be extended to more general noise distributions, of which we only require the variance to be finite.

Method and related work

where ∥⋅∥\|\cdot\| is the standard Euclidean norm.

We have now accumulated the sufficient information to introduce the estimation method. We define the empirical residual error

and, for every λ>0\lambda>0, we let our estimator β^{\hat{\beta}} be a solution of the optimization problem

In order to study the statistical properties of this estimator, it is useful to derive the optimality condition for a solution of the problem (2.2). Since the objective function in (2.2) is convex, β^{\hat{\beta}} is a solution of (2.2) if and only if (the MTMT-dimensional zero vector) belongs to the subdifferential of the objective function. In turn, this condition is equivalent to the requirement that

where ∂\partial denotes the subdifferential (see, for example, for more information on convex analysis). Note that

Thus, β^{\hat{\beta}} is a solution of (2.2) if and only if

Finally, let us comment on previous related work. Our estimator is a special case of the group Lasso estimator . Several papers analyzing statistical properties of the group Lasso appeared quite recently . Most of them are focused on the group Lasso for additive models or generalized linear models . Special choice of groups is studied in . Discussion of the group Lasso in a relatively general setting is given by Bach and Nardi and Rinaldo . Bach assumes that the predictors xtix_{ti} are random with a positive definite covariance matrix and proves results on consistent selection of sparsity pattern J(β∗)J(\beta^{*}) when the dimension of the model (p=MTp=MT in our case) is fixed and n→∞n\to\infty. Nardi and Rinaldo consider a setting that covers ours and address the issue of sparsity oracle inequalities in the spirit of . However, their bounds are too coarse (see comments in Section 3 below). Obozinski et al. replace in (2.2) the (2,1)(2,1)-norms by (q,1)(q,1)-norms with q>1q>1 and show that the resulting estimator achieves consistent selection of the sparsity pattern under the assumption that all the rows of matrices XtX_{t} are independent Gaussian random vectors with the same covariance matrix.

This literature does not demonstrate theoretical advantages of the group Lasso as compared to the usual Lasso. One of the aims of this paper is to show that such advantages do exist in the multi-task learning setup. In particular, our Theorem 3.1 implies that the prediction bound for the group Lasso estimator that we use here is by at least a factor of TT better than for the standard Lasso under the same assumptions. Furthermore, we demonstrate that as the number of tasks TT increases the dependence of the bound on MM disappears, provided that MM grows at the rate slower than exp⁡(T)\exp({\sqrt{T}}).

Sparsity oracle inequality

Let 1≤s≤M1\leq s\leq M be an integer that gives an upper bound on the structured sparsity M(β∗)M(\beta^{*}) of the true regression vector β∗\beta^{*}. We make the following assumption.

There exists a positive number κ=κ(s)\kappa=\kappa(s) such that

where JcJ^{c} denotes the complement of the set of indices JJ.

Several simple sufficient conditions for Assumption 3.1 with T=1T=1 are given in . Similar sufficient conditions can be stated in our more general setting. For example, it is enough to suppose that each of the matrices Xt⊤Xt/nX_{t}^{\scriptscriptstyle\top}X_{t}/n is positive definite or satisfies a Restricted Isometry condition as in or the coherence condition (cf. Lemma 4.1 below).

Consider the model (1.1) for M≥2M\geq 2 and T,n≥1T,n\geq 1. Assume that the random vectors W1,…,WTW_{1},\dots,W_{T} are i.i.d. Gaussian with zero mean and covariance matrix σ2In×n\sigma^{2}I_{n\times n}, all diagonal elements of the matrix X⊤X/nX^{\scriptscriptstyle\top}X/n are equal to 11 and M(β∗)≤sM(\beta^{*})\leq s. Let

where ϕmax\phi_{\rm max} is the maximum eigenvalue of the matrix X⊤X/nX^{\scriptscriptstyle\top}X/n.

which, using y=Xβ∗+Wy=X\beta^{*}+W, is equivalent to

Since we assume all diagonal elements of the matrix X⊤X/nX^{\scriptscriptstyle\top}X/n to be equal to 11, the random variables

t=1,…,Tt=1,\dots,T, are i.i.d. standard Gaussian. Using this fact we can write, for any j=1,…,Mj=1,\dots,M,

where χT2\chi_{T}^{2} is a chi-square random variable with TT degrees of freedom. We now apply Lemma A.1, the union bound and the fact that A>8A>8 to get

It follows from (3.4) that, on the event A{\cal A}.

which coincides with (3.1). To prove (3.2), we use the inequality

which follows from (2.3) and (2.4). Then,

where we have used y=Xβ∗+Wy=X\beta^{*}+W and the triangle inequality. The result then follows by combining the last inequality with inequality (3.5) and using the definition of the event A{\cal A}.

Finally, we prove (3.3). First, observe that, on the event A{\cal A},

This fact follows from (2.3), (2.1) and the definition of the event A{\cal A}. The following chain yields the result:

We are now ready to state the main result of this section.

Consider the model (1.1) for M≥2M\geq 2 and T,n≥1T,n\geq 1. Assume that the random vectors W1,…,WTW_{1},\dots,W_{T} are i.i.d. Gaussian with zero mean and covariance matrix σ2In×n\sigma^{2}I_{n\times n}, all diagonal elements of the matrix X⊤X/nX^{\scriptscriptstyle\top}X/n are equal to 11 and M(β∗)≤sM(\beta^{*})\leq s. Furthermore let Assumption 3.1 hold with κ=κ(s)\kappa=\kappa(s) and let ϕmax\phi_{\rm max} be the largest eigenvalue of the matrix X⊤X/nX^{\scriptscriptstyle\top}X/n. Let

where A>8A>8 and let q=min⁡(8log⁡M,AT/8)q=\min(8\log M,A\sqrt{T}/8). Then with probability at least 1−M1−q1-M^{1-q}, for any solution β^{\hat{\beta}} of problem (2.2) we have

If, in addition, Assumption RE(2ss) holds, then with the same probability for any solution β^{\hat{\beta}} of problem (2.2) we have

We act similarly to the proof of Theorem 6.2 in . Let J=J(β∗)={j:(β∗)j≠0}J=J(\beta^{*})=\{j:(\beta^{*})^{j}\neq 0\}. By inequality (3.1) with β=β∗\beta=\beta^{*} we have, on the even A{\cal A}, that

Moreover by the same inequality, on the event A{\cal A}, we have ∑j=1M∥β^j−β∗j∥≤4∑j∈J∥β^j−β∗j∥\sum_{j=1}^{M}\|{\hat{\beta}}^{j}-\beta^{*j}\|\leq 4\sum_{j\in J}\|{\hat{\beta}}^{j}-\beta^{*j}\|, which implies that ∑j∈Jc∥β^j−β∗j∥≤3∑j∈J∥β^j−β∗j∥\sum_{j\in J^{c}}\|{\hat{\beta}}^{j}-\beta^{*j}\|\leq 3\sum_{j\in J}\|{\hat{\beta}}^{j}-\beta^{*j}\|. Thus, by Assumption 3.1

Now, (3.6) follows from (3.10) and (3.11). Inequality (3.7) follows again by noting that

and then using (3.6). Inequality (3.8) follows from (3.3) and (3.6).

Finally, we prove (3.9). Let Δ=β^−β∗\Delta={\hat{\beta}}-\beta^{*} and let J′J^{\prime} be the set of indices in JcJ^{c} corresponding to ss maximal in absolute value norms ∥Δj∥\|\Delta^{j}\|. Consider the set J2s=J∪J′J_{2s}=J\cup J^{\prime}. Note that ∣J2s∣=2s|J_{2s}|=2s. Let ∥ΔJc(k)∥\|\Delta_{J^{c}}^{(k)}\| denote the kk-th largest norm in the set {∥Δj∥: j∈Jc}\{\|\Delta^{j}\|:\,j\in J^{c}\}. Then, clearly,

This and the fact that ∥ΔJc∥2,1≤3∥ΔJ∥2,1\|\Delta_{J^{c}}\|_{2,1}\leq 3\|\Delta_{J}\|_{2,1} on the event A{\cal A} implies

In addition, ∥ΔJc∥2,1≤3∥ΔJ∥2,1\|\Delta_{J^{c}}\|_{2,1}\leq 3\|\Delta_{J}\|_{2,1} easily implies that

Combining these facts and (3.13) with Assumption RE(2ss) we find that on the event A{\cal A} the following holds:

This inequality and (3.12) yield (3.9). ∎

Theorem 3.1 is valid for any fixed n,M,Tn,M,T; the approach is non-asymptotic. Some relations between these parameters are relevant in the particular applications and various asymptotics can be derived as corollaries. For example, in multi-task learning it is natural to assume that T≥nT\geq n, and the motivation for our approach is the strongest if also M≫nM\gg n. The bounds of Theorem 3.1 are meaningful if the sparsity index ss is small as compared to the sample size nn and the logarithm of the dimension log⁡M\log M is not too large as compared to T\sqrt{T}.

Several important conclusions can be drawn from Theorem 3.1.

The dependence on the dimension MM is negligible for large TT. Indeed, the bounds of Theorem 3.1 become independent of MM if we choose the number of tasks TT larger than log⁡2M\log^{2}M. A striking fact is that no relation between the sample size nn and the dimension MM is required. This is quite in contrast to the previous results on sparse recovery where the assumption log⁡M=o(n)\log M=o(n) was considered as sine qua non constraint. For example, Theorem 3.1 gives meaningful bounds if M=exp⁡(nγ)M=\exp({n^{\gamma}}) for arbitrarily large γ>0\gamma>0, provided that T>n2γT>n^{2\gamma}. This is due to the structured sparsity assumption that we naturally exploit in the multi-task scenario.

Our estimator is better than the standard Lasso in the multi-task setup. Theorem 3.1 witnesses that our group Lasso estimator admits substantially better error bounds than the usual Lasso. Let us explain this considering the example of the prediction error bound (3.9). Indeed, for the same multi-task setup, we can apply a usual Lasso estimator β^L\hat{\beta}^{L}, that is a solution of the following optimization problem

Assume, for instance, that we are in the most favorable situation where M<nM<n, each of the matrices 1nXtTXt\frac{1}{n}X^{T}_{t}X_{t} is positive definite and has minimal eigenvalue greater than κ2\kappa^{2} (this, of course, implies Assumption 3.1). We can then apply inequality (7.8) from with

where A>22A>2\sqrt{2}, to obtain that, with probability at least 1−(MT)1−A281-(MT)^{1-\frac{A^{2}}{8}}, it holds

Indeed, when applying (7.8) of we account for the fact that the parameters nn, MM, ss therein correspond to nTnT, MTMT, sTsT in our setup, and the minimal eigenvalue of the matrix 1nTXTX\frac{1}{nT}X^{T}X is greater than κ2/T\kappa^{2}/T. Comparison with (3.9) leads to the conclusion that the prediction bound for our estimator is by at least a factor of TT better than for the standard Lasso under the same assumptions. Let us emphasize that the improvement is due to the property that β∗\beta^{*} is structured sparse. The second inherent property of our setting, that is, the fact that the matrix X⊤X{X^{\scriptscriptstyle\top}}X is block-diagonal, can be characterized as important but not indispensable. We discuss this in the next remark.

Theorem 3.1 applies to the general group Lasso setting. Indeed, the proofs in this section do not use the fact that the matrix X⊤X{X^{\scriptscriptstyle\top}}X is block-diagonal. The only restriction on X⊤X{X^{\scriptscriptstyle\top}}X is given in Assumption 3.1. For example, Assumption 3.1 is obviously satisfied if X⊤X/(nT){X^{\scriptscriptstyle\top}}X/(nT) (the correctly normalized Gram matrix of the regression model (2.1)) has a positive minimal eigenvalue. However, the price for having this property (or Assumption 3.1 in general), as well as the resulting error bounds, can be different for the block-diagonal (multi-task) setting and the full matrix XX setting.

Finally, we note that follow the scheme of the proof of to derive similar in spirit to ours but coarse oracle inequalities. Their results do not explain the advantages discussed in the points 1–3 above. Indeed, the tuning parameter λ\lambda chosen in , pp. 614–615, is larger than our λ\lambda by at least a factor of T\sqrt{T}. As a consequence, the corresponding bounds in the oracle inequalities of are larger than ours by positive powers of TT.

Coordinate-wise estimation and selection of sparsity pattern

In this section, we show how from any solution of the problem (2.2) we can reliably estimate the correct sparsity pattern with high probability.

We first introduce some more notation. We define the Gram matrix of the design Ψ=1nX⊤X\Psi=\frac{1}{n}X^{\scriptscriptstyle\top}X. Note that Ψ\Psi is a MT×MTMT\times MT block-diagonal matrix with TT blocks of dimension M×MM\times M each. We denote these blocks by Ψt=1nXt⊤Xt≡(Ψtj,tk)j,k=1,…,M\Psi_{t}=\frac{1}{n}X_{t}^{\scriptscriptstyle\top}X_{t}\equiv(\Psi_{tj,tk})_{j,k=1,\dots,M}.

In this section we assume that the following condition holds true.

The elements Ψtj,tk\Psi_{tj,tk} of the Gram matrix Ψ\Psi satisfy

for some integer s⩾1s\geqslant 1 and some constant α>1\alpha>1.

Note that the above assumption on Ψ\Psi implies Assumption 3.1 as we prove in the following lemma.

Let Assumption 4.1 be satisfied. Then Assumption 3.1 is satisfied with κ=1−1α\kappa=\sqrt{1-\frac{1}{\alpha}}.

where we have used Assumption 4.1 and the Cauchy-Schwarz inequality. Next, using consecutively Assumption 4.1, the Cauchy-Schwarz inequality and the inequality ∥ΔJc∥2,1⩽3∥ΔJ∥2,1\|\Delta_{J^{c}}\|_{2,1}\leqslant 3\|\Delta_{J}\|_{2,1} we obtain

Note also that, by an argument as in , it is not hard to show that under Assumption 4.1 the vector β∗\beta^{*} satisfying (2.1) is unique.

Theorem 3.1 provides bounds for compound measures of risk, that is, depending simultaneously on all the vectors βj\beta^{j}. An important question is to evaluate the performance of estimators for each of the components βj\beta^{j} separately. The next theorem provides a bound of this type and, as a consequence, a result on the selection of sparsity pattern.

Consider the model (1.1) for M⩾2M\geqslant 2 and T,n⩾1T,n\geqslant 1. Let the assumptions of Lemma 3.1 be satisfied and let Assumption 4.1 hold with the same ss. Set

Let λ\lambda, AA and W1,…,WTW_{1},\dots,W_{T} be as in Lemma 3.1. Then with probability at least 1−M1−q1-M^{1-q}, where q=min⁡(8log⁡M,AT/8)q=\min(8\log M,A\sqrt{T}/8), for any solution β^\hat{\beta} of problem (2.2) we have

then with the same probability for any solution β^\hat{\beta} of problem (2.2) the set of indices

estimates correctly the sparsity pattern J(β∗)J(\beta^{*}), that is,

Set Δ=β^−β∗\Delta=\hat{\beta}-\beta^{*}. Using Assumption 4.1 we obtain

Thus, by Lemma 3.1 and Theorem 3.1, with probability at least 1−M1−q1-M^{1-q},

By Lemma 4.1, ακ2=α−1\alpha\kappa^{2}=\alpha-1, which yields the first result of the theorem. The second result follows from the first one in an obvious way. ∎

Assumption of type (4.2) is inevitable in the context of selection of sparsity pattern. It says that the vectors (β∗)j(\beta^{*})^{j} cannot be arbitrarily close to 0 for jj in the pattern. Their norms should be at least somewhat larger than the noise level.

The second result of Theorem 4.1 (selection of sparsity pattern) can be compared with who considered the Group Lasso. There are several differences. First, our estimator J^\hat{J} is based on thresholding of the norms ∥β^j∥\|\hat{\beta}^{j}\|, while take instead the set where these norms do not vanish. In practice, the latter is known to be a poor selector; it typically overestimates the true sparsity pattern. Second, consider specific asymptotic settings, while our result holds for any fixed n,M,Tn,M,T. Different kinds of asymptotics can be therefore obtained as simple corollaries. Finally, note that the estimator β^\hat{\beta} is not necessarily unique. Though does not discuss this fact, the proof there only shows that there exists a subsequence of solutions β^\hat{\beta} of (2.2) such that the set {j:∥β^j∥≠0}\{j:\|\hat{\beta}^{j}\|\neq 0\} coincides with the sparsity pattern J(β∗)J(\beta^{*}) in some specified asymptotics (we note here the “if and only if” claim before formula (23) in is not proved). In contrast, the argument in Theorem 4.1 does not require any analysis of the uniqueness issues, though it is not excluded that the solution is indeed unique. It guarantees that simultaneously for all solutions β^\hat{\beta} of (2.2) and any fixed n,M,Tn,M,T the correct selection is done with high probability.

Theorems 3.3 and 4.1 imply the following corollary.

Consider the model (1.1) for M⩾2M\geqslant 2 and T,n⩾1T,n\geqslant 1. Let the assumptions of Lemma 3.1 be satisfied and let Assumption 4.1 holds with the same ss. Let λ\lambda, AA and W1,…,WTW_{1},\dots,W_{T} be as in Lemma 3.1. Then with probability at least 1−M1−q1-M^{1-q}, where q=min⁡(8log⁡M,AT/8)q=\min(8\log M,A\sqrt{T}/8), for any solution β^\hat{\beta} of problem (2.2) and any 1≤p<∞1\leq p<\infty we have

If, in addition, (4.2) holds, then with the same probability for any solution β^\hat{\beta} of problem (2.2) and any 1≤p<∞1\leq p<\infty we have

Set Δ=β^−β\Delta=\hat{\beta}-\beta. For any p⩾1p\geqslant 1 we have

Combining (3.7), (4.1) with κ=1−1α\kappa=\sqrt{1-\frac{1}{\alpha}} and the above display yields the first result. ∎

Inequalities (4.1) and (4.5) provide confidence intervals for the unknown parameter β∗\beta^{*} in mixed (2,pp)-norms.

Consider the threshold τ=cn1+Alog⁡MT\tau=\frac{c}{\sqrt{n}}\sqrt{1+\frac{A\log M}{\sqrt{T}}} and define a thresholded estimator

This assumption says that we cannot recover arbitrarily small components. Similar assumptions are standard in the literature on sign consistency (see, for example, for more details and references).

Consider the model (1.1) for M⩾2M\geqslant 2 and T,n⩾1T,n\geqslant 1. Let the assumptions of Lemma 3.1 be satisfied and let Assumption 4.1 hold with the same ss. Let λ\lambda and AA be defined as in Lemma 3.1 and cc as in Theorem 4.1. Then with probability at least 1−M1−q1-M^{1-q}, where q=min⁡(8log⁡M,AT/8)q=\min(8\log M,A\sqrt{T}/8), for any solution β^\hat{\beta} of problem (2.2) we have

The proof is then similar to that of Theorem 4.1. ∎

Non-Gaussian noise

This assumption is quite mild. It is satisfied for example, if all (xti)j(x_{ti})_{j} are bounded in absolute value by a constant uniformly in i,t,ji,t,j. We have the two following theorems.

Then with probability at least 1−(2elog⁡M−e)c′(log⁡M)1+δ1-\frac{(2e\log M-e)c^{\prime}}{(\log M)^{1+\delta}}, for any solution β^{\hat{\beta}} of problem (2.2) we have

If, in addition, Assumption RE(2ss) holds, then with the same probability for any solution β^{\hat{\beta}} of problem (2.2) we have

Consider the model (1.1) for M⩾3M\geqslant 3 and T,n⩾1T,n\geqslant 1. Let the assumptions of Theorem 5.1 be satisfied and let Assumption 4.1 hold with the same ss. Set

Let λ\lambda be as in Theorem as in 5.1. Then with probability at least 1−(2elog⁡M−e)c′(log⁡(MT))1+δ1-\frac{(2e\log M-e)c^{\prime}}{(\log(MT))^{1+\delta}}, for any solution β^\hat{\beta} of problem (2.2) we have

then with the same probability for any solution β^\hat{\beta} of problem (2.2) the set of indices

estimates correctly the sparsity pattern J(β∗)J(\beta^{*}):

The proofs of these theorems are similar to the ones of Theorems 3.1 and 4.1 up to a modification of the bound on P(Ac)P(\mathcal{A}^{c}) in Lemma 3.1. We consider now the event

Then we use Lemma A.2 given below with the random vectors

By the definition of λ\lambda in Theorem 5.2 and Assumption 5.1 we obtain

Thus, we see that under the finite variance assumption on the noise, the dependence on the dimension MM cannot be made negligible for large TT.

Appendix A Auxiliary results

Here we collect two auxiliary results which are used in the above analysis. The first result is a useful bound on the tail of the chi-square distribution.

Let χT2\chi_{T}^{2} be a chi-square random variable with TT degrees of freedom. Then

where N{\mathcal{N}} is the standard normal random variable and z(x)=x−Tlog⁡(1+x/T)z(x)=\sqrt{x-T\log(1+x/T)}. The result now follows from inequalities Pr(N>z(x))≤exp⁡(−z2(x)/2){\rm Pr}({\mathcal{N}}>z(x))\leq\exp(-z^{2}(x)/2) and

The next result is a version of Nemirovski’s inequality (see , Corollary 2.4 page 5).

References