Sparse Inverse Covariance Selection via Alternating Linearization Methods
Katya Scheinberg, Shiqian Ma, Donald Goldfarb
Introduction
Note that (1) can be rewritten as where is the largest absolute value of the entries of . By exchanging the order of max and min, we obtain the dual problem which is equivalent to
Both the primal and dual problems have strictly convex objectives; hence, their optimal solutions are unique. Given a dual solution , 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 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 and are both convex functions. An effective way to solve (4) is to “split” and 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 , at the -th iteration, the augmented Lagrangian method minimizes the augmented Lagrangian function
with respect to and , i.e., it solves the subproblem
and updates the Lagrange multiplier via:
Since minimizing with respect to and jointly is usually difficult, while doing so with respect to and 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 after we solve the subproblem with respect to , we get the following symmetric version of the ADAL method.
Algorithm (16) has certain theoretical advantages when and 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 at the current iterate and minimize the sum of this approximation and . The approximation is based on linearizing (hence the name ALM) and adding a “prox” term . When is small enough (, where is the Lipschitz constant for ) this quadratic function, is an upper approximation to , which means that the reduction in the value of achieved by minimizing in Step 1 is not smaller than the reduction achieved in the value of itself. Similarly, in Step 2 we build an upper approximation to at , and minimize the sum of it and .
Let us now assume that is in the class with Lipschitz constant , while is simply convex. Then from the first-order optimality conditions for the second minimization in (16), we have , the subdifferential of at . Hence, replacing in the definition of by in (16), we obtain the following modified version of (16).
Algorithm 2 is identical to the symmetric ADAL algorithm (16) as long as at each iteration (and to Algorithm 1 if is in and ). If this condition fails, then the algorithm simply sets . Algorithm 2 has the following convergence property and iteration complexity bound. For a proof see the Appendix.
Assume is Lipschitz continuous with constant . For where , Algorithm 2 satisfies
where is an optimal solution of (4) and is the number of iterations until the for which . Thus Algorithm 2 produces a sequence which converges to the optimal solution in function value, and the number of iterations needed is for an -optimal solution.
If is also a smooth function in the class with Lipschitz constant , then Theorem 2.1 also applies to Algorithm 1 since in this case (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 , 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 , 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 and , is of the same form as (4). However, in this case neither nor have Lipschitz continuous gradients. Moreover, is only defined for positive definite matrices while 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 term in implicitly requires that and the gradient of , which is given by , is not Lipschitz continuous in . Fortunately, as proved in Proposition 3.1 in , the optimal solution of (19) , where Therefore, if we define , the SICS problem (19) can be formulated as:
We can include constraints in Step 1 and 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 . Without the constraint , only a matrix shrinkage operation is needed, but with this additional constraint the problem becomes harder to solve. Minimization in with or without the constraint is accomplished by performing an SVD. Hence the constraint can be easily imposed.
Instead of imposing constraint we can obtain feasible solutions by a line search on . We know that the constraint is not tight at the solution. Hence if we start the algorithm with and restrict the step size to be sufficiently small then the iterates of the method will remain in .
Note however, that the bound on the Lipschitz constant of the gradient of is and hence can be very large. It is not practical to restrict in the algorithm to be smaller than , since 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 are:
Consider - the spectral decomposition of and let
Since , it is easy to verify that satisfies (21). When the constraint is imposed, the optimal solution changes to with We observe that solving (21) requires approximately the same effort () as is required to compute . Moreover, from the solution to (21), is obtained with only a negligible amount of additional effort, since .
The first-order optimality conditions for Step 2 in Algorithm 3 are:
Since , it is well known that the solution to (23) is given by
The complexity of Step 1, which requires a spectral decomposition, dominates the complexity of Step 2 which requires a simple shrinkage. There is no closed-form solution for the subproblem corresponding to when the constraint is imposed. Hence, we neither impose this constraint explicitly nor do so by a line search on , since in practice this degrades the performance of the algorithm substantially. Thus, the resulting iterates may not be positive definite, while the iterates remain so. Eventually due to the convergence of and , the iterates become positive definite and the constraint is satisfied.
Let us now remark on the learning based intuition behind Algorithm 3. We recall that . 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 that best fits the observed data, i.e., is as close to as possible, and on the other hand it tries to obtain a sparse matrix . The proposed algorithm address these two objectives in an alternating manner. Given an initial “guess” of the sparse matrix we update this guess by a subgradient descent step of length : . Recall that . Then problem (24) seeks a solution that optimizes the first objective (best fit of the data) while adding a regularization term which imposes a Gaussian prior on whose mean is the current guess for the sparse matrix: . The solution to (24) gives us a guess for the inverse covariance . We again update it by taking a gradient descent step: . Then problem (25) seeks a sparse solution while also imposing a Gaussian prior on whose mean is the guess for the inverse covariance matrix . Hence the sequence of ’s is a sequence of positive definite inverse covariance matrices that converge to a sparse matrix, while the sequence of ’s is a sequence of sparse matrices that converges to a positive definite inverse covariance matrix.
An important question is how to pick . 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 , ; hence is a feasible solution to the dual problem (2) as long as it is positive definite. Thus the duality gap at the -th iteration is given by:
We define the relative duality gap as: where and are respectively the objective function values of the primal problem (19) at point , and the dual problem (2) at . Defining , we measure the relative changes of objective function value and the iterates and as follows:
Note that in (26), computing is easy since the spectral decomposition of is already available (see (21) and (22)), but computing requires another expensive spectral decomposition. Thus, in practice, we only check (27)(i) every iterations. We check (27)(ii) at every iteration since this is inexpensive.
A continuation strategy for updating is also crucial to ALM. In our experiments, we adopted the following update rule. After every iterations, we set ; i.e., we simply reduce by a constant factor every iterations until a desired lower bound on is achieved.
We compare ALM (i.e., Algorithm 3 with the above stopping criteria and 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/schmidtm/Software/PQN.html and the smoothing method (VSM) The MATLAB code can be downloaded from http://www.math.sfu.ca/zhaosong 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: where is the initial which is set according to ; specifically, in our experiments, if , if , and if .
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 increases. For example, for and , ALM achieves 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 . 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 . Since PSM and VSM solve the dual problem, the primal solution , obtained by inverting the dual solution , is never sparse due to floating point errors. Thus it is not fair to measure the sparsity of or a truncated version of . Instead, we measure the sparsity of solutions produced by PSM and VSM by appealing to complementary slackness. Specifically, the -th element of the inverse covariance matrix is deemed to be nonzero if and only if . We give results for a random problem () and the first real data set in Table 3. For each value of , 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 is relatively large (), all three algorithms produce solutions with exactly the same sparsity patterns. Only when 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 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 is any subgradient in the subdifferential of at the point , and
Let . For any , if
Now since and are convex we have
where is a subgradient of and satisfies the first-order optimality conditions for (28), i.e.,
Therefore, from (33), (36) and (37) it follows that
Let be the set of all iteration indices until -st for which no skipping occurs and let be its complement. Let . It follows that for all .
For we can apply Lemma 5.1 to obtain the following inequalities. In (30), by letting , , and , we get , and
Similarly, by letting , , and in (30) we get , and
Taking the summation of (38) and (39) we get
due to the fact that in this case.
Summing (40) and (41) over we get
For any , since Lemma 5.1 holds for any , letting instead of we get from (38) that
Similarly, for by letting instead of we get from (39) that
On the other hand, for , (45) also holds because , and hence holds for all .
(46) and (47) show that the sequences and are non-increasing. Thus we have,
From (44) we know that . Thus (49) implies that
Also, for any given , as long as , we have from (18) that ; i.e., the number of iterations needed is for an -optimal solution. ∎