Sparse Inverse Covariance Selection via Alternating Linearization Methods

Katya Scheinberg, Shiqian Ma, Donald Goldfarb

Introduction

Note that (1) can be rewritten as min⁡X∈S++nmax⁡∥U∥∞≤ρ−log⁡det⁡X+⟨Σ^+U,X⟩,\min_{X\in S^{n}_{++}}\max_{\|U\|_{\infty}\leq\rho}-\log\det X+\langle\hat{\Sigma}+U,X\rangle, where ∥U∥∞\|U\|_{\infty} is the largest absolute value of the entries of UU. By exchanging the order of max and min, we obtain the dual problem max⁡∥U∥∞≤ρmin⁡X∈S++n−log⁡det⁡X+⟨Σ^+U,X⟩,\max_{\|U\|_{\infty}\leq\rho}\min_{X\in S^{n}_{++}}-\log\det X+\langle\hat{\Sigma}+U,X\rangle, which is equivalent to

Both the primal and dual problems have strictly convex objectives; hence, their optimal solutions are unique. Given a dual solution WW, X=W−1X=W^{-1} is primal feasible resulting in the duality gap

Although developed independently, our method is closely related to Yuan’s method . Both methods exploit the special form of the primal problem (1) by alternatingly minimizing one of the terms of the objective function plus an approximation to the other term. The main difference between the two methods is in the construction of these approximations. As we will show, our method has a theoretically justified interpretation and is based on an algorithmic framework with complexity bounds, while no complexity bound is available for Yuan’s method. Also our method has an intuitive interpretation from a learning perspective. Extensive numerical test results on both synthetic data and real problems have shown that our ALM algorithm significantly outperforms other existing algorithms, such as the PSM algorithm proposed by Duchi et al. and the VSM algorithm proposed by Lu . Note that it is shown in and that PSM and VSM outperform the BCD method in and glassoglasso in .

Organization of the paper. In Section 2 we briefly review alternating linearization methods for minimizing the sum of two convex functions and establish convergence and iteration complexity results. We show how to use ALM to solve SICS problems and give intuition from a learning perspective in Section 3. Finally, we present some numerical results on both synthetic and real data in Section 4 and compare ALM with PSM algorithm and VSM algorithm .

Alternating Linearization Methods

We consider here the alternating linearization method (ALM) for solving the following problem:

where ff and gg are both convex functions. An effective way to solve (4) is to “split” ff and gg by introducing a new variable, i.e., to rewrite (4) as

and apply an alternating direction augmented Lagrangian method to it. Given a penalty parameter 1/μ1/\mu, at the kk-th iteration, the augmented Lagrangian method minimizes the augmented Lagrangian function

with respect to xx and yy, i.e., it solves the subproblem

and updates the Lagrange multiplier λ\lambda via:

Since minimizing L(x,y;λ)\mathcal{L}(x,y;\lambda) with respect to xx and yy jointly is usually difficult, while doing so with respect to xx and yy alternatingly can often be done efficiently, the following alternating direction version of the augmented Lagrangian method (ADAL) is often advocated (see, e.g., ):

If we also update λ\lambda after we solve the subproblem with respect to xx, we get the following symmetric version of the ADAL method.

Algorithm (16) has certain theoretical advantages when ff and gg are smooth. In this case, from the first-order optimality conditions for the two subproblems in (16), we have that:

Substituting these relations into (16), we obtain the following equivalent algorithm for solving (4), which we refer to as the alternating linearization minimization (ALM) algorithm.

Algorithm 1 can be viewed in the following way: at each iteration we construct a quadratic approximation of the function g(x)g(x) at the current iterate yky^{k} and minimize the sum of this approximation and f(x)f(x). The approximation is based on linearizing g(x)g(x) (hence the name ALM) and adding a “prox” term 12μ∥x−yk∥22\frac{1}{2\mu}\|x-y^{k}\|_{2}^{2}. When μ\mu is small enough (μ≤1/L(g)\mu\leq 1/L(g), where L(g)L(g) is the Lipschitz constant for ∇g\nabla g) this quadratic function, g(yk)+⟨∇g(yk),x−yk⟩+12μ∥x−yk∥22g(y^{k})+\left\langle\nabla g(y^{k}),x-y^{k}\right\rangle+\frac{1}{2\mu}\|x-y^{k}\|_{2}^{2} is an upper approximation to g(x)g(x), which means that the reduction in the value of F(x)F(x) achieved by minimizing Qg(x,yk)Q_{g}(x,y^{k}) in Step 1 is not smaller than the reduction achieved in the value of Qg(x,yk)Q_{g}(x,y^{k}) itself. Similarly, in Step 2 we build an upper approximation to f(x)f(x) at xk+1x^{k+1}, f(xk+1)+⟨∇f(xk+1),y−xk+1⟩+12μ∥y−xk+1∥22,f(x^{k+1})+\left\langle\nabla f(x^{k+1}),y-x^{k+1}\right\rangle+\frac{1}{2\mu}\|y-x^{k+1}\|_{2}^{2}, and minimize the sum Qf(xk+1,y)Q_{f}(x^{k+1},y) of it and g(y)g(y).

Let us now assume that f(x)f(x) is in the class C1,1C^{1,1} with Lipschitz constant L(f)L(f), while g(x)g(x) is simply convex. Then from the first-order optimality conditions for the second minimization in (16), we have −λyk+1∈∂g(yk+1)-\lambda_{y}^{k+1}\in\partial g(y^{k+1}), the subdifferential of g(y)g(y) at y=yk+1y=y^{k+1}. Hence, replacing ∇g(yk)\nabla g(y^{k}) in the definition of Qg(x,yk)Q_{g}(x,y^{k}) by −λyk+1-\lambda_{y}^{k+1} in (16), we obtain the following modified version of (16).

Algorithm 2 is identical to the symmetric ADAL algorithm (16) as long as F(xk+1)≤Q(xk+1,yk)F(x^{k+1})\leq Q(x^{k+1},y^{k}) at each iteration (and to Algorithm 1 if g(x)g(x) is in C1,1C^{1,1} and μ≤1/max⁡{L(f),L(g)}\mu\leq 1/\max\{L(f),L(g)\}). If this condition fails, then the algorithm simply sets xk+1←ykx^{k+1}\leftarrow y^{k}. Algorithm 2 has the following convergence property and iteration complexity bound. For a proof see the Appendix.

Assume ∇f\nabla f is Lipschitz continuous with constant L(f)L(f). For β/L(f)≤μ≤1/L(f)\beta/L(f)\leq\mu\leq 1/L(f) where 0<β≤10<\beta\leq 1, Algorithm 2 satisfies

where x∗x^{*} is an optimal solution of (4) and knk_{n} is the number of iterations until the k−thk-th for which F(xk+1)≤Q(xk+1,yk)F(x^{k+1})\leq Q(x^{k+1},y^{k}). Thus Algorithm 2 produces a sequence which converges to the optimal solution in function value, and the number of iterations needed is O(1/ϵ)O(1/\epsilon) for an ϵ\epsilon-optimal solution.

If g(x)g(x) is also a smooth function in the class C1,1C^{1,1} with Lipschitz constant L(g)≤1/μL(g)\leq 1/\mu, then Theorem 2.1 also applies to Algorithm 1 since in this case kn=kk_{n}=k (i.e., no “skipping” occurs). Note that the iteration complexity bound in Theorem 2.1 can be improved. Nesterov proved that one can obtain an optimal iteration complexity bound of O(1/ϵ)O(1/\sqrt{\epsilon}), using only first-order information. His acceleration technique is based on using a linear combination of previous iterates to obtain a point where the approximation is built. This technique has been exploited and extended by Tseng , Beck and Teboulle , Goldfarb et al. and many others. A similar technique can be adopted to derive a fast version of Algorithm 2 that has an improved complexity bound of O(1/ϵ)O(1/\sqrt{\epsilon}), while keeping the computational effort in each iteration almost unchanged. However, we do not present this method here, since when applied to the SICS problem, it did not work as well as Algorithm 2.

ALM for SICS

where f(X)=−log⁡det⁡(X)+⟨Σ^,X⟩f(X)=-\log\det(X)+\langle\hat{\Sigma},X\rangle and g(X)=ρ∥X∥1g(X)=\rho\|X\|_{1}, is of the same form as (4). However, in this case neither f(X)f(X) nor g(X)g(X) have Lipschitz continuous gradients. Moreover, f(X)f(X) is only defined for positive definite matrices while g(X)g(X) is defined everywhere. These properties of the objective function make the SICS problem especially challenging for optimization methods. Nevertheless, we can still apply (16) to solve the problem directly. Moreover, we can apply Algorithm 2 and obtain the complexity bound in Theorem 2.1 as follows.

The log⁡det⁡(X)\log\det(X) term in f(X)f(X) implicitly requires that X∈S++nX\in S^{n}_{++} and the gradient of f(X)f(X), which is given by −X−1+Σ^-X^{-1}+\hat{\Sigma}, is not Lipschitz continuous in S++nS^{n}_{++}. Fortunately, as proved in Proposition 3.1 in , the optimal solution of (19) X∗⪰αIX^{*}\succeq\alpha I, where α=1∥Σ^∥+nρ.\alpha=\frac{1}{\|\hat{\Sigma}\|+n\rho}. Therefore, if we define C:={X∈Sn:X⪰α2I}\mathcal{C}:=\{X\in S^{n}:X\succeq\frac{\alpha}{2}I\}, the SICS problem (19) can be formulated as:

We can include constraints X∈CX\in\mathcal{C} in Step 1 and Y∈CY\in\mathcal{C} in Step 3 of Algorithm 2. Theorem 2.1 can then be applied as discussed in . However, a difficulty now arises when performing the minimization in YY. Without the constraint Y∈CY\in\mathcal{C}, only a matrix shrinkage operation is needed, but with this additional constraint the problem becomes harder to solve. Minimization in XX with or without the constraint X∈CX\in\mathcal{C} is accomplished by performing an SVD. Hence the constraint can be easily imposed.

Instead of imposing constraint Y∈CY\in\mathcal{C} we can obtain feasible solutions by a line search on μ\mu. We know that the constraint X⪰α2IX\succeq\frac{\alpha}{2}I is not tight at the solution. Hence if we start the algorithm with X⪰αIX\succeq\alpha I and restrict the step size μ\mu to be sufficiently small then the iterates of the method will remain in C\mathcal{C}.

Note however, that the bound on the Lipschitz constant of the gradient of f(X)f(X) is 1/α21/\alpha^{2} and hence can be very large. It is not practical to restrict μ\mu in the algorithm to be smaller than α2\alpha^{2}, since μ\mu determines the step size at each iteration. Hence, for a practical approach we can only claim that the theoretical convergence rate bound holds in only a small neighborhood of the optimal solution. We now present a practical version of our algorithm applied to the SICS problem.

We now show how to solve the two optimization problems in Algorithm 3. The first-order optimality conditions for Step 1 in Algorithm 3, ignoring the constraint X∈CX\in\mathcal{C} are:

Consider V\mboxDiag(d)V⊤V\mbox{Diag}(d)V^{\top} - the spectral decomposition of Yk+μk+1(Λk−Σ^)Y^{k}+\mu_{k+1}(\Lambda^{k}-\hat{\Sigma}) and let

Since ∇f(X)=−X−1+Σ^\nabla f(X)=-X^{-1}+\hat{\Sigma}, it is easy to verify that Xk+1:=V\mboxDiag(γ)V⊤X^{k+1}:=V\mbox{Diag}(\gamma)V^{\top} satisfies (21). When the constraint X∈CX\in\mathcal{C} is imposed, the optimal solution changes to Xk+1:=V\mboxDiag(γ)V⊤X^{k+1}:=V\mbox{Diag}(\gamma)V^{\top} with γi=max⁡{α/2,(di+di2+4μk+1)/2},i=1,…,n.\gamma_{i}=\max\left\{\alpha/2,\left(d_{i}+\sqrt{d_{i}^{2}+4\mu_{k+1}}\right)/2\right\},i=1,\ldots,n. We observe that solving (21) requires approximately the same effort (O(n3)O(n^{3})) as is required to compute ∇f(Xk+1)\nabla f(X^{k+1}). Moreover, from the solution to (21), ∇f(Xk+1)\nabla f(X^{k+1}) is obtained with only a negligible amount of additional effort, since (Xk+1)−1:=V\mboxDiag(γ)−1V⊤(X^{k+1})^{-1}:=V\mbox{Diag}(\gamma)^{-1}V^{\top}.

The first-order optimality conditions for Step 2 in Algorithm 3 are:

Since g(Y)=ρ∥Y∥1g(Y)=\rho\|Y\|_{1}, it is well known that the solution to (23) is given by

The O(n3)O(n^{3}) complexity of Step 1, which requires a spectral decomposition, dominates the O(n2)O(n^{2}) complexity of Step 2 which requires a simple shrinkage. There is no closed-form solution for the subproblem corresponding to YY when the constraint Y∈CY\in\mathcal{C} is imposed. Hence, we neither impose this constraint explicitly nor do so by a line search on μk\mu_{k}, since in practice this degrades the performance of the algorithm substantially. Thus, the resulting iterates YkY^{k} may not be positive definite, while the iterates XkX^{k} remain so. Eventually due to the convergence of YkY^{k} and XkX^{k}, the YkY^{k} iterates become positive definite and the constraint Y∈CY\in\mathcal{C} is satisfied.

Let us now remark on the learning based intuition behind Algorithm 3. We recall that −Λk∈∂g(Yk)-\Lambda^{k}\in\partial g(Y^{k}). The two steps of the algorithm can be written as

The SICS problem is trying to optimize two conflicting objectives: on the one hand it tries to find a covariance matrix X−1X^{-1} that best fits the observed data, i.e., is as close to Σ^\hat{\Sigma} as possible, and on the other hand it tries to obtain a sparse matrix XX. The proposed algorithm address these two objectives in an alternating manner. Given an initial “guess” of the sparse matrix YkY^{k} we update this guess by a subgradient descent step of length μk+1\mu_{k+1}: Yk+μk+1ΛkY^{k}+\mu_{k+1}\Lambda^{k}. Recall that −Λk∈∂g(Yk)-\Lambda^{k}\in\partial g(Y^{k}). Then problem (24) seeks a solution XX that optimizes the first objective (best fit of the data) while adding a regularization term which imposes a Gaussian prior on XX whose mean is the current guess for the sparse matrix: Yk+μk+1ΛkY^{k}+\mu_{k+1}\Lambda^{k}. The solution to (24) gives us a guess for the inverse covariance Xk+1X^{k+1}. We again update it by taking a gradient descent step: Xk+1−μk+1(Σ^−(Xk+1)−1)X^{k+1}-\mu_{k+1}(\hat{\Sigma}-(X^{k+1})^{-1}). Then problem (25) seeks a sparse solution YY while also imposing a Gaussian prior on YY whose mean is the guess for the inverse covariance matrix Xk+1−μk+1(Σ^−(Xk+1)−1)X^{k+1}-\mu_{k+1}(\hat{\Sigma}-(X^{k+1})^{-1}). Hence the sequence of XkX^{k}’s is a sequence of positive definite inverse covariance matrices that converge to a sparse matrix, while the sequence of YkY^{k}’s is a sequence of sparse matrices that converges to a positive definite inverse covariance matrix.

An important question is how to pick μk+1\mu_{k+1}. Theory tells us that if we pick a small enough value, then we can obtain the complexity bounds. However, in practice this value is too small. We discuss the simple strategy that we use in the next section.

Numerical Experiments

In this section, we present numerical results on both synthetic and real data to demonstrate the efficiency of our SICS ALM algorithm. Our codes for ALM were written in MATLAB. All numerical experiments were run in MATLAB 7.3.0 on a Dell Precision 670 workstation with an Intel Xeon(TM) 3.4GHZ CPU and 6GB of RAM.

Since −Λk∈∂g(Yk)-\Lambda^{k}\in\partial g(Y^{k}), ∥Λk∥∞≤ρ\|\Lambda^{k}\|_{\infty}\leq\rho; hence Σ^−Λk\hat{\Sigma}-\Lambda^{k} is a feasible solution to the dual problem (2) as long as it is positive definite. Thus the duality gap at the kk-th iteration is given by:

We define the relative duality gap as: Rel.gap:=Dgap/(1+∣pobj∣+∣dobj∣),Rel.gap:=Dgap/(1+|pobj|+|dobj|), where pobjpobj and dobjdobj are respectively the objective function values of the primal problem (19) at point XkX^{k}, and the dual problem (2) at Σ^−Λk\hat{\Sigma}-\Lambda^{k}. Defining dk(ϕ(x))≡max⁡{1,ϕ(xk),ϕ(xk−1)}d_{k}(\phi(x))\equiv\max\{1,\phi(x^{k}),\phi(x^{k-1})\}, we measure the relative changes of objective function value F(X)F(X) and the iterates XX and YY as follows:

Note that in (26), computing log⁡det⁡(Xk)\log\det(X^{k}) is easy since the spectral decomposition of XkX^{k} is already available (see (21) and (22)), but computing log⁡det⁡(Σ^−Λk)\log\det(\hat{\Sigma}-\Lambda^{k}) requires another expensive spectral decomposition. Thus, in practice, we only check (27)(i) every NgapN_{gap} iterations. We check (27)(ii) at every iteration since this is inexpensive.

A continuation strategy for updating μ\mu is also crucial to ALM. In our experiments, we adopted the following update rule. After every NμN_{\mu} iterations, we set μ:=max⁡{μ⋅ημ,μˉ}\mu:=\max\{\mu\cdot\eta_{\mu},\bar{\mu}\}; i.e., we simply reduce μ\mu by a constant factor ημ\eta_{\mu} every NμN_{\mu} iterations until a desired lower bound on μ\mu is achieved.

We compare ALM (i.e., Algorithm 3 with the above stopping criteria and μ\mu updates), with the projected subgradient method (PSM) proposed by Duchi et al. in and implemented by Mark Schmidt The MATLAB can be downloaded from http://www.cs.ubc.ca/∼\simschmidtm/Software/PQN.html and the smoothing method (VSM) The MATLAB code can be downloaded from http://www.math.sfu.ca/∼\simzhaosong proposed by Lu in , which are considered to be the state-of-the-art algorithms for solving SICS problems. The per-iteration complexity of all three algorithms is roughly the same; hence a comparison of the number of iterations is meaningful. The parameters used in PSM and VSM are set at their default values. We used the following parameter values in ALM: ϵgap=10−3,ϵrel=10−8,Ngap=20,Nμ=20,μˉ=max⁡{μ0ημ8,10−6},ημ=1/3,\epsilon_{gap}=10^{-3},\epsilon_{rel}=10^{-8},N_{gap}=20,N_{\mu}=20,\bar{\mu}=\max\{\mu_{0}\eta_{\mu}^{8},10^{-6}\},\eta_{\mu}=1/3, where μ0\mu_{0} is the initial μ\mu which is set according to ρ\rho; specifically, in our experiments, μ0=100/ρ,\mu_{0}=100/\rho, if ρ<0.5\rho<0.5, μ0=ρ\mu_{0}=\rho if 0.5≤ρ≤100.5\leq\rho\leq 10, and μ0=ρ/100\mu_{0}=\rho/100 if ρ>10\rho>10.

From Table 1 we see that on these randomly created SICS problems, ALM outperforms PSM and VSM in both accuracy and CPU time with the performance gap increasing as ρ\rho increases. For example, for ρ=1.0\rho=1.0 and n=2000n=2000, ALM achieves Dgap=9.58e−4Dgap=9.58e-4 in about 1 hour and 15 minutes, while PSM and VSM need about 3 hours and 25 minutes and 10 hours and 23 minutes, respectively, to achieve similar accuracy.

2 Experiments on real data

We tested ALM on real data from gene expression networks using the five data sets from provided to us by Kim-Chuan Toh: (1) Lymph node status; (2) Estrogen receptor; (3) Arabidopsis thaliana; (4) Leukemia; (5) Hereditary breast cancer. See and references therein for the descriptions of these data sets. Table 2 presents our test results. As suggested in , we set ρ=0.5\rho=0.5. From Table 2 we see that ALM is much faster and provided more accurate solutions than PSM and VSM.

3 Solution Sparsity

In this section, we compare the sparsity patterns of the solutions produced by ALM, PSM and VSM. For ALM, the sparsity of the solution is given by the sparsity of YY. Since PSM and VSM solve the dual problem, the primal solution XX, obtained by inverting the dual solution WW, is never sparse due to floating point errors. Thus it is not fair to measure the sparsity of XX or a truncated version of XX. Instead, we measure the sparsity of solutions produced by PSM and VSM by appealing to complementary slackness. Specifically, the (i,j)(i,j)-th element of the inverse covariance matrix is deemed to be nonzero if and only if ∣Wij−Σ^ij∣=ρ|W_{ij}-\hat{\Sigma}_{ij}|=\rho. We give results for a random problem (n=500n=500) and the first real data set in Table 3. For each value of ρ\rho, the first three rows show the number of nonzeros in the solution and the last three rows show the number of entries that are nonzero in the solution produced by one of the methods but are zero in the solution produced by the other method. The sparsity of the ground truth inverse covariance matrix of the synthetic data is 6.76%.

From Table 3 we can see that when ρ\rho is relatively large (ρ≥0.5\rho\geq 0.5), all three algorithms produce solutions with exactly the same sparsity patterns. Only when ρ\rho is very small, are there slight differences. We note that the ROC curves depicting the trade-off between the number of true positive elements recovered versus the number of false positive elements as a function of the regularization parameter ρ\rho are also almost identical for the three methods.

Acknowledgements

We would like to thank Professor Kim-Chuan Toh for providing the data set used in Section 4.2. The research reported here was supported in part by NSF Grants DMS 06-06712 and DMS 10-16571, ONR Grant N00014-08-1-1118 and DOE Grant DE-FG02-08ER25856.

References

Appendix

where γψ(v)\gamma_{\psi}(v) is any subgradient in the subdifferential ∂ψ(v)\partial\psi(v) of ψ(v)\psi(v) at the point vv, and

Let Φ(⋅)=ϕ(⋅)+ψ(⋅)\Phi(\cdot)=\phi(\cdot)+\psi(\cdot). For any vv, if

Now since ϕ\phi and ψ\psi are convex we have

where γϕ(⋅)\gamma_{\phi}(\cdot) is a subgradient of ϕ(⋅)\phi(\cdot) and γϕ(pψ(v))\gamma_{\phi}(p_{\psi}(v)) satisfies the first-order optimality conditions for (28), i.e.,

Therefore, from (33), (36) and (37) it follows that

Let II be the set of all iteration indices until k−1k-1-st for which no skipping occurs and let IcI_{c} be its complement. Let I={ni}, i=0,…,kn−1I=\{n_{i}\},\ i=0,\ldots,k_{n}-1. It follows that for all n∈Icn\in I_{c} xn+1=ynx^{n+1}=y^{n}.

For n∈In\in I we can apply Lemma 5.1 to obtain the following inequalities. In (30), by letting ψ=f\psi=f, ϕ=g\phi=g, u=x∗u=x^{*} and u=xn+1u=x^{n+1}, we get pψ(v)=yn+1p_{\psi}(v)=y^{n+1}, Φ=F\Phi=F and

Similarly, by letting ψ=g\psi=g, ϕ=f\phi=f, u=x∗u=x^{*} and v=ynv=y^{n} in (30) we get pg(v)=xn+1p_{g}(v)=x^{n+1}, Φ=F\Phi=F and

Taking the summation of (38) and (39) we get

due to the fact that xn+1=ynx^{n+1}=y^{n} in this case.

Summing (40) and (41) over n=0,1,…,k−1n=0,1,\ldots,k-1 we get

For any nn, since Lemma 5.1 holds for any uu, letting u=xn+1u=x^{n+1} instead of x∗x^{*} we get from (38) that

Similarly, for n∈In\in I by letting u=ynu=y^{n} instead of x∗x^{*} we get from (39) that

On the other hand, for n∈Icn\in I_{c}, (45) also holds because xn+1=ynx^{n+1}=y^{n}, and hence holds for all nn.

(46) and (47) show that the sequences F(yn)F(y^{n}) and F(xn)F(x^{n}) are non-increasing. Thus we have,

From (44) we know that F(xk)≥F(yk)F(x^{k})\geq F(y^{k}). Thus (49) implies that

Also, for any given ϵ>0\epsilon>0, as long as k≥L(f)∥x0−x∗∥22βϵk\geq\frac{L(f)\|x^{0}-x^{*}\|^{2}}{2\beta\epsilon}, we have from (18) that F(yk)−F(x∗)≤ϵF(y^{k})-F(x^{*})\leq\epsilon; i.e., the number of iterations needed is O(1/ϵ)O(1/\epsilon) for an ϵ\epsilon-optimal solution. ∎