Truncated Power Method for Sparse Eigenvalue Problems

Xiao-Tong Yuan, Tong Zhang

Introduction

where AA is the empirical covariance matrix, Aˉ\bar{A} is the true covariance matrix, and EE is a random perturbation due to having only a finite number of empirical samples. If we assume that the largest eigenvector xˉ\bar{x} of Aˉ\bar{A} is sparse, then a natural question is to recover xˉ\bar{x} from the noisy observation AA when the error EE is “small”. In this context, the problem (1.1) is also referred to as sparse principal component analysis (sparse PCA).

In general, problem (1.1) is non-convex. In fact, it is also NP-hard because it can be reduced to the subset selection problem for ordinary least squares regression (Moghaddam et al., 2006), which is known to be NP hard. Various researchers have proposed approximate optimization methods: some are based on greedy procedures (e.g., Moghaddam et al., 2006; Jolliffe et al., 2003; d’Aspremont et al., 2008), and some others are based on various types of convex relaxation or reformulation (e.g., d’Aspremont et al., 2007; Zou et al., 2006; Journée et al., 2010). Although many algorithms have been proposed, almost no satisfactory theoretical results exist for this problem. The only exception is the analysis of the convex relaxation method (d’Aspremont et al., 2007) by Amini & Wainwright (2009) under the high dimensional spiked covariance model (Johnstone, 2001). However, the result was concerned with variable selection consistency under a very simple and specific example with limited general applicability.

This paper proposes a new computational procedure called truncated power iteration method that approximately solves (1.1). This method is similar to the classical power method, with an additional truncation operation to ensure sparsity. We show that if the true matrix Aˉ\bar{A} has a sparse (or approximately sparse) dominant eigenvector xˉ\bar{x}, then under appropriate assumptions, this algorithm can recover xˉ\bar{x} when the spectral norm of sparse submatrices of the perturbation EE is small. Moreover, this result can be proved under relative generality without restricting ourselves to the rather specific spiked covariance model. Therefore our analysis provides strong theoretical support for this new method, and this differentiates our proposal from previous studies. We have applied the proposed method to sparse PCA and to the densest kk-subgraph finding problem (with proper modification). Extensive experiments on synthetic and real-world large scale datasets demonstrate both the competitive sparse recovering performance and the computational efficiency of our method.

It is worth mentioning that the truncated power method developed in this paper can also be applied to the smallest kk-sparse eigenvalue problem given by:

which also has many applications in machine learning.

Finally, we denote by Ip×pI_{p\times p} the p×pp\times p identity matrix.

2 Paper Organization

The remaining of this paper is organized as follows: Section 2 describes the truncated power iteration algorithm that approximately solves problem (1.1). In Section 3 we analyze the solution quality of the proposed algorithm. Section 4 evaluates the practical performance of the proposed algorithm in applications of sparse PCA and the densest kk-subgraph finding problems. We conclude this work and discuss potential extensions in Section 5.

Truncated Power Method

Since λmax⁡(A,k)\lambda_{\max}(A,k) equals λmax⁡(Ak∗)\lambda_{\max}(A^{*}_{k}) where Ak∗A^{*}_{k} is the k×kk\times k principal submatrix of AA with the largest eigenvalue, one may solve (1.1) by exhaustively enumerate all subsets of {1,…,p}\{1,\ldots,p\} of size kk in order to find Ak∗A^{*}_{k}. However, this procedure is impractical even for moderate sized kk since the number of subsets is exponential in kk.

Therefore in order to solve the spare eigenvalue problem (1.1) more efficiently, we consider an iterative procedure based on the standard power method for eigenvalue problems, while maintaining the desired sparsity for the intermediate solutions. The procedure, presented in Algorithm 2, generates a sequence of intermediate kk-sparse eigenvectors x0,x1,…x_{0},x_{1},\ldots from an initial sparse approximation x0x_{0}. At each step tt, the intermediate vector xt−1x_{t-1} is multiplied by AA, and then the entries are truncated to zeros except for the largest kk entries. The resulting vector is then normalized to unit length, which becomes xtx_{t}. It will be assumed throughout the paper that the cardinality kk of supp(x∗)\text{supp}(x_{*}) is available a prior; in practice this quantity may be regarded as a tuning parameter of the algorithm.

Given a vector xx and an index set FF, we define the truncation operation Truncate(x,F)\text{Truncate}(x,F) to be the vector obtained by restricting xx to FF, that is

Sparse Recovery Analysis

We consider the general noisy matrix model (1.2), and are specially interested in the high dimensional situation where the dimension pp of AA is large. We assume that the noise matrix EE is a dense p×pp\times p matrix such that its sparse submatrices have small spectral norm ρ(E,s)\rho(E,s) for ss in the same order of kk. We refer to this quantity as restricted perturbation error. However, the spectral norm of the full matrix perturbation error ρ(E)\rho(E) can be large. For example, if the original covariance is corrupted by an additive standard Gaussian iid noise vector, then ρ(E,s)=O(slog⁡p/n)\rho(E,s)=O(\sqrt{s\log p/n}), which grows linearly in s\sqrt{s}, instead of ρ(E)=O(p/n)\rho(E)=O(\sqrt{p/n}), which grows linearly in p\sqrt{p}. The main advantage of the sparse eigenvalue formulation (1.1) over the standard eigenvalue formulation is that the estimation error of its optimal solution depends on ρ(E,s)\rho(E,s) with respectively a small s=O(k)s=O(k) rather than ρ(E)\rho(E). This linear dependency on sparsity kk instead of the original dimension pp is analogous to similar results for sparse regression (or compressive sensing) such as (Candes & Tao, 2005). In fact the restricted perturbation error considered here is analogous to the idea of restricted isometry property (RIP) considered in (Candes & Tao, 2005).

The purpose of the section is to show that if matrix Aˉ\bar{A} has a unique sparse (or approximately sparse) dominant eigenvector, then under suitable conditions, TPower can (approximately) recover this eigenvector from the noisy observation AA.

We want to show that under Assumption 1, if the spectral norm ρ(E,s)\rho(E,s) of the error matrix is small for an appropriately chosen s>kˉs>\bar{k}, then it is possible to approximately recover xˉ\bar{x}. Note that in the extreme case of s=ps=p, this result follows directly from the standard eigenperturbation analysis (which does not require Assumption 1).

We now state our main result as below, which shows that under appropriate conditions, the TPower method can recover the sparse eigenvector. The final error bound is a direct generalization of standard matrix perturbation result that depends on the full matrix perturbation error ρ(E)\rho(E). Here this quantity is replaced by the restricted perturbation error ρ(E,s)\rho(E,s).

We assume that Assumption 1 holds. Let s=2k+kˉs=2k+\bar{k} with k≥4kˉk\geq 4\bar{k}. Assume that ρ(E,s)≤Δλ/2\rho(E,s)\leq\Delta\lambda/2. Define

If ∣x0⊤xˉ∣≥u+δ(s)|x_{0}^{\top}\bar{x}|\geq u+\delta(s) for some ∥x0∥0≤k\|x_{0}\|_{0}\leq k, ∥x0∥=1\|x_{0}\|=1, and u∈u\in such that

then let μ=max⁡(1−μ1,μ2)\mu=\max(\sqrt{1-\mu_{1}},\mu_{2}), we have

We only state our result with a relatively simple but easy to understand quantity ρ(E,s)\rho(E,s), which we refer to as restricted perturbation error. It is analogous to the RIP concept in (Candes & Tao, 2005), and is also directly comparable to the traditional full matrix perturbation error ρ(E)\rho(E). While it is possible to obtain sharper results with additional quantities, we intentionally keep the theorem simple so that its consequence is relatively easy to interpret.

Although we state the result by assuming that the dominant eigenvector xˉ\bar{x} is sparse, the theorem can also be applied to certain situations that xˉ\bar{x} is only approximately sparse. In such case, we simply let xˉ′\bar{x}^{\prime} be a kˉ\bar{k} sparse approximation of xˉ\bar{x}. If xˉ′−xˉ\bar{x}^{\prime}-\bar{x} is sufficiently small, then xˉ′\bar{x}^{\prime} is the dominant eigenvector of a symmetric matrix Aˉ′\bar{A}^{\prime} that is close to Aˉ\bar{A}; hence the theorem can be applied with the decomposition A=Aˉ′+E′A=\bar{A}^{\prime}+E^{\prime} where E′=E+A−Aˉ′E^{\prime}=E+A-\bar{A}^{\prime}.

Note that we did not make any attempt to optimize the constants in Theorem 1, which are relatively large. Therefore in the discussion, we shall ignore the constants, and focus on the main message of Theorem 1. If ρ(E,s)\rho(E,s) is smaller than the eigen-gap Δλ/2>0\Delta\lambda/2>0, then γ(s)<1\gamma(s)<1 and δ(s)=O(ρ(E,s))\delta(s)=O(\rho(E,s)). It follows that under appropriate conditions, as long as we can find an initial x0x_{0} such that

for some constant cc, then 1−∣xt⊤xˉ∣1-|x_{t}^{\top}\bar{x}| converges geometrically until

This result is similar to the standard eigenvector perturbation result stated in Lemma 2 of Appendix A, except that we replace the spectral error ρ(E,p)\rho(E,p) of the full matrix by ρ(E,s)\rho(E,s) that can be significantly smaller when s≪ps\ll p. To our knowledge, this is the first sparse recovery result for the sparse eigenvalue problem in a relatively general setting. This theorem can be considered as a strong theoretical justification of the proposed TPower algorithm that distinguishes it from earlier algorithms without theoretical guarantees. Specifically, the replacement of the full matrix perturbation error ρ(E)2\rho(E)^{2} with ρ(E,s)2\rho(E,s)^{2} gives the theoretical insights on why TPower works well in practice.

To illustrate our result, we briefly describe a consequence of the theorem under the spiked covariance model of (Johnstone, 2001) which was investigated by Amini & Wainwright (2009). We assume that the observations are pp dimensional vectors

for i=1,…,ni=1,\ldots,n, where ϵ∼N(0,Ip×p)\epsilon\sim N(0,I_{p\times p}). For simplicity, we assume that ∥xˉ∥=1\|\bar{x}\|=1. The true covariance is

Let E=A−AˉE=A-\bar{A}, then random matrix theory implies that with large probability,

Now assume that max⁡j∣xˉj∣\max_{j}|\bar{x}_{j}| is sufficiently large. In this case, we can run TPower with a starting point x0=ejx_{0}=e_{j} for some vector eje_{j} (where eje_{j} is the vector of zeros except the jj-th entry being one) so that ∣ej⊤xˉ∣=∣xˉj∣|e_{j}^{\top}\bar{x}|=|\bar{x}_{j}| is sufficiently large, and the assumption for the initial vector ∣x0⊤xˉ∣≥c(ρ(E,s)+(kˉ/k)1/2)|x_{0}^{\top}\bar{x}|\geq c(\rho(E,s)+(\bar{k}/k)^{1/2}) is satisfied with s=O(kˉ)s=O(\bar{k}). We may run TPower with an appropriate initial vector to obtain an approximate solution xtx_{t} of error

This is optimal. Note that our results are not directly comparable to those of Amini & Wainwright (2009), which studied support recovery. Nevertheless, it is worth noting that if max⁡j∣xˉj∣\max_{j}|\bar{x}_{j}| is sufficiently large, then our result becomes meaningful when n=O(kˉln⁡p)n=O(\bar{k}\ln p); however their result requires n=O(kˉ2ln⁡p)n=O(\bar{k}^{2}\ln p) to be meaningful, although this is for the pessimistic case of xˉ\bar{x} having equal nonzero values of 1/kˉ1/\sqrt{\bar{k}}.

Finally we note that if we cannot find a large initial value with ∣x0⊤xˉ∣|x_{0}^{\top}\bar{x}|, then it may be necessary to take a relatively large kk so that the requirement ∣x0⊤xˉ∣≥c((kˉ/k)1/2)|x_{0}^{\top}\bar{x}|\geq c((\bar{k}/k)^{1/2}) is satisfied. With such a kk, ρ(E,s)\rho(E,s) may be relatively large and hence the theorem indicates that xtx_{t} may not converge to xˉ\bar{x} accurately. Nevertheless, as long as ∣xt⊤xˉ∣|x_{t}^{\top}\bar{x}| converges to a value that is not too small (e.g., can be much larger than ∣x0⊤xˉ∣|x_{0}^{\top}\bar{x}|), we may reduce kk and rerun the algorithm with xtx_{t} as initial vector together with a small kk. In this two stage process, the vector found from the first stage (with large kk) is used to as the initial value of the second stage (with small kk). Therefore we may also regard it as an initialization method to TPower. In practice, one may use other methods to obtain an approximate x0x_{0} to initialize TPower, not necessarily restricted to running TPower with larger kk. Some practical alternatives are discussed in Section 4.

Applications

In this section, we illustrate the effectiveness of TPower method when applied to sparse principal component analysis (sparse PCA) (in Section 4.1) and the densest kk-subgraph (DkS) finding problem (in Section 4.2). The Matlab code for reproducing the experimental results reported in this section is online available at https://sites.google.com/site/xtyuan1980/publications.

The TPower method proposed in this paper can be directly applied to solve the above problem. One advantage of TPower for Sparse PCA is that it directly addresses the constraint on cardinality kk. To find the top mm rather than the top one sparse loading vectors, a common approach in the literature (d’Aspremont et al., 2007; Moghaddam et al., 2006; Mackey, 2008) is to use the iterative deflation method for PCA: subsequent sparse loading vectors can be obtained by recursively removing the contribution of the previously found loading vectors from the covariance matrix. Here we employ a projection deflation scheme from (Mackey, 2008), which deflates an vector x^\hat{x} using the formula:

Obviously, Σ′\Sigma^{\prime} remains positive semidefinite. Moreover, Σ′\Sigma^{\prime} is rendered left and right orthogonal to x^\hat{x}.

Given the covariance matrix Σ=D⊤D\Sigma=D^{\top}D, it is easy to verify that TPower optimizes the following constrained low-1 and semidefinite approximation problem

Essentially, TPower, GPower and sPCA-rSVD all use certain power-truncation type procedure to generate sparse loadings. However, the difference between TPower and GPower (sPCA-rSVD) is also clear: the former performs rank-1, semidefinite and sparse approximation to covariance matrix while the latter performs rank-1 and sparse approximation to the data matrix. One important benefit of TPower is that we are able to analyze solution quality such as sparse recovery capability, while analogous results are not available for GPower and sPCA-rSVD.

Our method is also related to PathSPCA (d’Aspremont et al., 2008) that directly addresses the formulation (1.1). The PathSPCA method is a greedy forward selection procedure which starts from the empty set and at each iteration it selects the most relevant variable and adds it to the current variable set; it then re-estimates the leading eigenvector on the augmented variable set. Both TPower and PathSPCA output sparse solutions with exact cardinality kk.

1.2 On Initialization

Theorem 1 suggests that the TPower algorithm can benefit from a good initial vector x0x_{0}. In a practical implementation, the following three initialization schemes can be considered.

One simple method is to set [x0]j=1[x_{0}]_{j}=1 on index j=arg⁡max⁡i[A]iij=\mathop{\arg\max}_{i}[A]_{ii} and otherwise. This initialization provides a 1/k1/k-approximation to the optimal value, i.e., Q(x0)≥λmax⁡(A,k)/kQ(x_{0})\geq\lambda_{\max}(A,k)/k. Indeed, if we let Ak∗A^{*}_{k} be the k×kk\times k principle submatrix of AA supported on supp(x∗)\text{supp}(x_{*}), then it is easy to verify that [A]jj≥Tr(Ak∗)/k≥λmax⁡(A,k)/k[A]_{jj}\geq\text{Tr}(A^{*}_{k})/k\geq\lambda_{\max}(A,k)/k. In the setup of sparse PCA, this corresponds to initializing by selecting the variable with the largest variance, which is known to perform well for PathSPCA (d’Aspremont et al., 2008). Alternatively, we may initialize x0x_{0} as the indicator vector of the top kk values of the variances {[A]ii}\{[A]_{ii}\}, as is considered by Amini & Wainwright (2009).

A two-stage warm-start strategy suggested at the end of Section 3. In the first stage we may run TPower with a relatively large kk and use the output as the initial value of the next stage with a decreased kk. Repeat this procedure if necessary until the desired cardinality is reached. More generally, one may use other algorithms to warm start TPower.

When k≈pk\approx p, an initialization scheme suggested in (Moghaddam et al., 2006) can be employed. This scheme is motivated from the following observation: among all the mm possible (m−1)×(m−1)(m-1)\times(m-1) principal submatrices of AmA_{m}, obtained by deleting the jj-th row and column, there is at least one submatrix Am−1=Am\jA_{m-1}=A_{m\backslash j} whose maximal eigenvalue is a major fraction of its parent (see, e.g., Horn & Johnson, 1991):

A greedy backward elimination method is suggested using the above bound (Moghaddam et al., 2006): start with the full index set {1,...,p}\{1,...,p\}, and sequentially delete the variable jj which yields the maximum λmax⁡(Am\j)\lambda_{\max}(A_{m\backslash j}) until only kk elements remain. It is immediate from the bound (4.2) that this procedure will guarantee a k/pk/p-approximation to the optimal objective value. This scheme works well for relatively small pp. When pp is large, however, such a greedy initialization scheme will be computationally prohibitive since it involves (p−k)p(p-k)p times of dominant eigenvalue calculation for matrices of scale O(p×p)O(p\times p).

1.3 Results on Toy Dataset

Consider a setup with p=500p=500, n=50n=50, and the first m=2m=2 dominant eigenvectors of Σ\Sigma are sparse. Here the first two dominant eigenvectors are specified as follows:

The remaining eigenvectors vjv_{j} for j≥3j\geq 3 are chosen arbitrarily, and the eigenvalues are fixed at the following values:

In this experiment, we regard the true model to be successfully recovered when both quantities ∣v1⊤u1∣|v_{1}^{\top}u_{1}| and ∣v2⊤u2∣|v_{2}^{\top}u_{2}| are greater than 0.990.99. We also assume that the cardinality k=10k=10 of the underlying sparse eigenvectors is known a prior. Table 4.1 lists the recovering results by the tested methods. It can be observed that TPower, PathPCA and GPower all successfully recover the ground truth sparse PC vectors with extremely high rate of success. SPCA frequently fails to recover the spares loadings on this dataset. The potential reason is that SPCA is initialized with the ordinary principal components which in many random data matrices are far away from the truth sparse solution. Traditional PCA always fails to recover the sparse PC loadings on this dataset. The success of TPower and the failure of traditional PCA can be well explained by our sparse recovery result in Theorem 1 (for TPower) in comparison to the traditional eigenvector perturbation theory in Lemma 2 (for traditional PCA), which we have already discussed in Section 3. However, the success of other methods suggests that it might be possible to prove sparse recovery results similar to Theorem 1 for some of these alternative algorithms.

1.4 Speed and Scaling Test

To study the computational efficiency of TPower, we list in Table 4.2 the CPU running time (in seconds) by TPower on several datasets at different scales. The datasets are generalized as n×pn\times p Gaussian random matrices with fixed n=500n=500, and exponentially increasing values of dimension pp. We set the termination criteria for TPower to be ∥Q(xt)−Q(xt−1)∥≤10−4\|Q(x_{t})-Q(x_{t-1})\|\leq 10^{-4}. It can be observed from Table 4.2 that TPower can exit within seconds or tens of seconds on all the datasets under a wider range of cardinality kk.

1.5 Results on PitProps Data

The Pitprops dataset (Jeffers, 1967), which consists of 180 observations with 13 measured variables, has been a standard benchmark to evaluate algorithms for sparse PCA (See, e.g., Zou et al., 2006; Shen & Huang, 2008; Journée et al., 2010). Following these previous studies, we also consider to compute the first six sparse PCs of the data. In Table 4.3, we list the total cardinality and the proportion of adjusted variance (Zou et al., 2006) explained by six components computed with TPower, PathSPCA (d’Aspremont et al., 2008), GPower (Journée et al., 2010) and SPCA (Zou et al., 2006). From these results we can see that on this relatively simple dataset, TPower, PathSPCA and GPower perform quite similarly. SPCA is inferior to the other three algorithms.

Table 4.4 lists the six extracted PCs by TPower with cardinality setting 7-2-1-1-1-1. We can see that the important variables associated with the six principal components do not overlap, which leads to a clear interpretation of the extracted components. The same loadings are extracted by both PathSPCA and GPower under the parameters listed in Table 4.3.

1.6 Results on Biological Data

We have also evaluated the performance of TPower on two gene expression datasets, one is the Colon cancer data from (Alon et al., 1999), the other is the Lymphoma data from (Alizadeh et al., 2000). Following the experimental setup in (d’Aspremont et al., 2008), we consider the 500500 genes with the largest variances. We plot the variance versus cardinality tradeoff curves in Figure 4.1, together with the result from PathSPCA (d’Aspremont et al., 2008) and the upper bounds of optimal values from (d’Aspremont et al., 2008). Note that our method performs almost identical to the PathSPCA which is demonstrated to have optimal or very close to optimal solutions in many cardinalities. The computational time of the two methods on both datasets is comparable and is less than two seconds.

1.7 Results on Document Data

In this section we evaluate the practical performance of TPower for key terms extraction on a document dataset 20 Newsgroups (20NG). The 20NG http://people.csail.mit.edu/jrennie/20Newsgroups/ is a dataset collected and originally used for document classification by Lang (1995). A total number of 18,84618,846 documents, evenly distributed across 20 classes, are left after removing duplicates and newsgroup-identifying headers. This corpus contains 26,21426,214 distinct terms after stemming and stop word removal. Each document is then represented as a term-frequency vector and normalized to one. We use the top 1,000 terms according to the DF (document frequency) of the terms in the corpus. We extract 5 sparse PCs on this dataset. The cardinality setting for the 5 sparse PCs is 20-20-10-10-10. Table 4.5 lists the terms associated with the 1st, 2nd and 5th sparse PCs. The interpretation is quite clear: the 1st sparse PC is about figures, the 2nd is about computer science, and the 5th is on religion. We have observed that quite similar terms are extracted by PathSPCA under the same cardinality setting. Here we do not list the 3rd and 4th PCs since they overlap with the listed ones due to the non-orthogonality of sparse PCs.

1.8 Summary

To summarize this group of experiments on sparse PCA, the basic finding is that TPower performs quite competitively in terms of the trade-off between explained variance and representation sparsity. The performance is comparable to PathSPCA (d’Aspremont et al., 2008) and GPower (Journée et al., 2010) both on the synthetic and on the real datasets. It is observed that TPower, PathSPCA and GPower outperform SPCA (Zou et al., 2006) on the benchmark data Pitprops. Although performing quite similarly, TPower, PathSPCA and GPower are different algorithms: TPower is a power iteration method while PathSPCA is a greedy forward selection method, both directly address the cardinality constrained sparse eigenvalue problem (1.1), while GPower is a power iteration method for certain regularized versions of sparse eigenvalue problem (see the previous Section 4.1.1). While strong theoretical guarantee can be established for the TPower method, it remains open to show that PathSPCA and GPower have a similar sparse recovery performance.

2 Densest k𝑘k-Subgraph Finding

As another concrete application, we show that with proper modification, TPower can be applied to the densest kk-subgraph finding problem. Given an undirected graph G=(V,E)G=(V,E), ∣V∣=n|V|=n, and integer 1≤k≤n1\leq k\leq n, the densest kk-subgraph (DkS) problem is to find a set of kk vertices with maximum average degree in the subgraph induced by this set. In the weighted version of DkS we are also given nonnegative weights on the edges and the goal is to find a kk-vertex induced subgraph of maximum average edge weight. Algorithms for finding DkS are useful tools for analyzing networks. In particular, they have been used to select features for ranking (Geng et al., 2007), to identify cores of communities (Kumar et al., 1999), and to combat link spam (Gibson et al., 2005).

It has been shown that the DkS problem is NP hard for bipartite graphs and chordal graphs (Corneil & Perl, 1984), and even for graphs of maximum degree three (Feige et al., 2001). A large body of algorithms have been proposed based on a variety of techniques including greedy algorithms (Feige et al., 2001; Asahiro et al., 2002; Ravi et al., 1994), linear programming (Billionnet & Roupin, 2004; Khuller & Saha, 2009), and semidefinite programming (Srivastav & Wolf, 1998; Ye & Zhang, 2003). For general kk, the algorithm developed by Feige et al. (2001) achieves the best approximation ratio of O(nϵ)O(n^{\epsilon}) where ϵ<1/3\epsilon<1/3. Ravi et al. (1994) proposed 4-approximation algorithms for weighted DkS on complete graphs for which the weights satisfy the triangle inequality. Liazi et al. (2008) has presented a 3-approximation algorithm for DkS for chordal graphs. Recently, Jiang et al. (2010) proposed to reformulate DkS as a 1-mean clustering problem and developed a 22-approximation to the reformulated clustering problem. Moreover, based on this reformulation, Yang (2010) proposed a 1+ϵ1+\epsilon-approximation algorithm with certain exhaustive (and thus expensive) initialization procedure. In general, however, Khot (2006) showed that DkS has no polynomial time approximation scheme (PTAS), assuming that there are no sub-exponential time algorithms for problems in NP.

Mathematically, DkS can be restated as the following binary quadratic programming problem:

where WW is the (non-negative weighted) adjacency matrix of GG. If GG is an undirected graph, then WW is symmetric. If GG is directed, then AA could be asymmetric. In this latter case, from the fact that π⊤Wπ=π⊤W+W⊤2π\pi^{\top}W\pi=\pi^{\top}\frac{W+W^{\top}}{2}\pi, we may equivalently solve Problem (4.3) by replacing WW with W+W⊤2\frac{W+W^{\top}}{2}. Therefore, in the following discussion, we always assume that the affinity matrix WW is symmetric (or GG is undirected).

We propose the TPower-DkS algorithm as a slight modification of TPower, to solve the DkS problem. The process generates a sequence of intermediate vectors π0,π1,...\pi_{0},\pi_{1},... from a starting vector π0\pi_{0}. At each step tt the vector πt−1\pi_{t-1} is multiplied by the matrix WW, then πt\pi_{t} is set to be the indicator vector of the top kk entries in Wπt−1W\pi_{t-1}. The TPower-Dks is formally given in Algorithm 2.

By relaxing the constraint π∈{0,1}n\pi\in\{0,1\}^{n} to ∥π∥=k\|\pi\|=\sqrt{k}, we may convert the densest kk-subgraph problem (4.3) to the standard sparse eigenvalue problem (1.1) (up to a scaling) and then directly apply TPower (in Algorithm 1) for solution. Our numerical experience shows that such a relaxation strategy also works satisfactory in practice, although is slightly inferior to TPower-DkS (in Algorithm 2) which directly addresses the original problem.

Note that in Algorithm 2 we require that WW is positive semidefinite. The motivation of this requirement is to guarantee the convexity of the objective in problem (4.3), and thus following the similar arguments in (Journée et al., 2010) it can be shown that the objective value will be monotonically increasing during the iterations. In many real-world DkS problems, however, it is often the case that the affinity matrix WW is not positive semi-definite. In this case, the objective is non-convex and thus the monotonicity of TPower-DkS does not hold. However, this complication can be circumvented by instead running the algorithm with the shifted quadratic function:

2.2 On Initialization

Since TPower-DkS is a monotonically increasing procedure, it guarantees to improve the initial point π0\pi_{0}. Basically, any existing approximation DkS method, e.g., greedy algorithms (Feige et al., 2001; Ravi et al., 1994), can be used to initialize TPower-DkS. In our numerical experiments, we observe that by simply setting π0\pi_{0} as the indicator vector of the vertices with the top kk (weighted) degrees, our method can achieve very competitive results on all the real-world datasets we have tested on.

2.3 Results on Web Graphs

We have tested TPower on four page-level web graphs: cnr-2000, amazon-2008, ljournal-2008, hollywood-2009, from the WebGraph framework provided by the Laboratory for Web Algorithms Datasets are available at http://lae.dsi.unimi.it/datasets.php. We treated each directed arc as an undirected edge. Table 4.6 lists the statistics of the datasets used in the experiment.

We compare our TPower-DkS method with two greedy methods for the DkS problem. One greedy method is proposed by Ravi et al. (1994) which is referred to as Greedy-Ravi in our experiments. The Greedy-Ravi algorithm works as follows: it starts from a heaviest edge and repeatedly adds a vertex to the current subgraph to maximize the weight of the resulting new subgraph; this process is repeated until kk vertices are chosen. The other greedy method is developed by Feige et al. (2001, Procedure 2) which is referred as Greedy-Feige in our experiments. The procedure works as follows: let SS denote the k/2k/2 vertices with the highest degrees in GG; let CC denote the k/2k/2 vertices in the remaining vertices with largest number of neighbors in SS; return S∪CS\cup C.

Figure 4.2 shows the density value π⊤Wπ/k\pi^{\top}W\pi/k and CPU time versus the cardinality kk. From the density curves we can observe that on cnr-2000, ljournal-2008 and hollywood-2009, TPower-DkS consistently outputs denser subgraphs than the two greedy algorithms, while on amazon-2008, TPower-DkS and Greedy-Ravi are comparable and both are better than Greedy-Feige. For CPU running time, it can be seen from the right column of Figure 4.2 that Greedy-Feige is the fastest among the three methods while TPower-DkS is only slightly slower. This is due to the fact that TPower-DkS needs iterative matrix-vector products while Greedy-Feige only needs a few degree sorting outputs. Although TPower-DkS is slightly slower than Greedy-Feige, it is still quite efficient. For example, on hollywood-2009 which has hundreds of millions of arcs, for each kk, Greedy-Feige terminates within about 1 second while TPower terminates within about 10 seconds. The Greedy-Ravi method is however much slower than the other two on all the graphs when kk is large.

2.4 Results on Air-Travel Routine

We have applied TPower-DkS to identify subsets of American and Canadian cities that are most easily connected to each other, in terms of estimated commercial airline travel time. The graph The data is available at www.psi.toronto.edu/affinitypropogation is of size ∣V∣=456|V|=456 and ∣E∣=71,959|E|=71,959: the vertices are 456456 busiest commercial airports in United States and Canada, while the weight wijw_{ij} of edge eije_{ij} is set to the inverse of the mean time it takes to travel from city ii to city jj by airline, including estimated stopover delays. Due to the headwind effect, the transit time can depend on the direction of travel; thus 36%36\% of the weight are asymmetric. Figure 3(a) shows a map of air-travel routine.

As in the previous experiment, we compare TPower-DkS to Greedy-Ravi and Greedy-Feige on this dataset. For all the three algorithms, the densities of kk-subgraphs under different kk values are shown in Figure 3(b), and the CPU running time curves are given in Figure 3(c). From the former figure we observe that TPower-DkS consistently outperforms the other two greedy algorithms in terms of the density of the extracted kk-subgraphs. From the latter figure we can see that TPower-DkS is slightly slower than Greed-Feige but much faster than Greedy-Ravi. Figure 3(d),3(e), and 3(f) illustrate the densest kk-subgraph with k=30k=30 outputted by the three algorithms. In each of these three subgraph, the red dot indicates the representing city with the largest (weighted) degree. Both TPower-DkS and Greedy-Feige reveal 30 cities in east US. The former takes Cleveland as the representing city while the latter Cincinnati. Greedy-Ravi reveals 30 cities in west US and CA and takes Vancouver as the representing city. Visual inspection shows that the subgraph recovered by TPower-DkS is the densest among the three.

After discovering the densest kk-subgraph, we can eliminate their nodes and edges from the graph and then apply the algorithms on the reduced graph to search for the next densest subgraph. Such a sequential procedure can be repeated to find multiple densest kk-subgraphs. Figure 3(g),3(h), and 3(i) illustrate sequentially estimated six densest 3030-subgraphs by the three algorithms. Again, visual inspection shows that our method output more geographically compact subsets of cities than the other two. As a quantitative result, the total density of the six subgraphs discovered by the three algorithms is: 1.14 (TPower-DkS), 0.90 (Greedy-Feige) and 0.99 (Greedy-Ravi), respectively.

Conclusion and Future Work

The sparse eigenvalue problem has been widely studied in machine learning with applications such as sparse PCA. TPower is a truncated power iteration method that approximately solves the nonconvex sparse eigenvalue problem. Our analysis shows that when the underlying matrix has sparse eigenvectors, under proper conditions TPower can approximately recover the true sparse solution. The theoretical benefit of this method is that with appropriate initialization, the reconstruction quality depends on the restricted matrix perturbation error at size ss that is comparable to the sparsity kˉ\bar{k}, instead of the full matrix dimension pp. This explains why this method has good empirical performance. To our knowledge, this is the first theoretical result of this kind, although our empirical study suggests that it might be possible to prove related sparse recovery results for some other algorithms we have tested.

We have applied TPower to two concrete applications: sparse PCA and the densest kk-subgraph finding problem. Extensive experimental results on synthetic and real-world datasets validate the effectiveness and efficiency of the TPower algorithm.

References

Appendix A Proof of Theorem 1

We state the following standard result from the perturbation theory of symmetric eigenvalue problem. It can be found for example in (Golub & Van Loan, 1996).

If BB and B+UB+U are p×pp\times p symmetric matrices, then ∀1≤k≤p\forall 1\leq k\leq p,

where λk(B)\lambda_{k}(B) denotes the kk-th largest eigenvalue of matrix BB.

Consider set FF such that supp(xˉ)⊆F\text{supp}(\bar{x})\subseteq F with ∣F∣=s|F|=s. If ρ(E,s)≤Δλ/2\rho(E,s)\leq\Delta\lambda/2, then the ratio of the second largest (in absolute value) to the largest eigenvalue of sub matrix AFA_{F} is no more than γ(s)\gamma(s). Moreover,

We may use Lemma 1 with B=AˉFB=\bar{A}_{F} and U=EFU=E_{F} to obtain

This implies the first statement of the lemma.

Now let x(F)x(F), the largest eigenvector of AFA_{F}, be αxˉ+βx′\alpha\bar{x}+\beta x^{\prime}, where ∥xˉ∥2=∥x′∥2=1\|\bar{x}\|_{2}=\|x^{\prime}\|_{2}=1, xˉ⊤x′=0\bar{x}^{\top}x^{\prime}=0 and α2+β2=1\alpha^{2}+\beta^{2}=1, with eigenvalue λ′≥λ−ρ(E,s)\lambda^{\prime}\geq\lambda-\rho(E,s). This implies that

where t=ρ(E,s)/(Δλ−2ρ(E,s))t=\rho(E,s)/(\Delta\lambda-2\rho(E,s)). This implies that α2(1+t2)≥α2+β2=1\alpha^{2}(1+t^{2})\geq\alpha^{2}+\beta^{2}=1, and thus α2≥1/(1+t2)\alpha^{2}\geq 1/(1+t^{2}). Without loss of generality, we may assume that α>0\alpha>0, because otherwise we can replace xˉ\bar{x} with −xˉ-\bar{x}. It follows that

The following result measures the progress of untruncated power method.

Let yy be the eigenvector with the largest (in absolute value) eigenvalue of a symmetric matrix AA, and let γ<1\gamma<1 be the ratio of the second largest to largest eigenvalue in absolute values. Given any xx such that ∥x∥=1\|x\|=1 and y⊤x>0y^{\top}x>0; let x′=Ax/∥Ax∥x^{\prime}=Ax/\|Ax\|, then

Without loss of generality, we may assume that λ1(A)=1\lambda_{1}(A)=1 is the largest eigenvalue in absolute value, and ∣λj(A)∣≤γ|\lambda_{j}(A)|\leq\gamma when j>1j>1. We can decompose xx as x=αy+βy′x=\alpha y+\beta y^{\prime}, where y⊤y′=0y^{\top}y^{\prime}=0, ∥y∥=∥y′∥=1\|y\|=\|y^{\prime}\|=1, and α2+β2=1\alpha^{2}+\beta^{2}=1. Then ∣α∣=∣x⊤y∣|\alpha|=|x^{\top}y|. Let z′=Ay′z^{\prime}=Ay^{\prime}, then ∥z′∥≤γ\|z^{\prime}\|\leq\gamma and y⊤z′=0y^{\top}z^{\prime}=0. This means Ax=αy+βz′Ax=\alpha y+\beta z^{\prime}, and

The last inequality is due to 1/1−z≥1+z/21/\sqrt{1-z}\geq 1+z/2 for z∈[0,1)z\in[0,1). This proves the desired bound. ∎

Consider xˉ\bar{x} with supp(xˉ)=Fˉ\text{supp}(\bar{x})=\bar{F} and kˉ=∣Fˉ∣\bar{k}=|\bar{F}|. Consider yy and let F=supp(y,k)F=\text{supp}(y,k) be the indices of yy with the largest kk absolute values. If ∥xˉ∥=∥y∥=1\|\bar{x}\|=\|y\|=1, then

Without loss of generality, we assume that y⊤xˉ=Δ>0y^{\top}\bar{x}=\Delta>0. We can also assume that Δ≥kˉ/(kˉ+k)\Delta\geq\sqrt{\bar{k}/(\bar{k}+k)} because otherwise the right hand side is smaller than zero, and thus the result holds trivially.

Let F1=Fˉ∖FF_{1}=\bar{F}\setminus F, and F2=Fˉ∩FF_{2}=\bar{F}\cap F, and F3=F∖FˉF_{3}=F\setminus\bar{F}. Now, let αˉ=∥xˉF1∥\bar{\alpha}=\|\bar{x}_{F_{1}}\|, βˉ=∥xˉF2∥\bar{\beta}=\|\bar{x}_{F_{2}}\|, α=∥yF1∥\alpha=\|y_{F_{1}}\|, β=∥yF2∥\beta=\|y_{F_{2}}\|, and γ=∥yF3∥\gamma=\|y_{F_{3}}\|. let k1=∣F1∣k_{1}=|F_{1}|, k2=∣F2∣k_{2}=|F_{2}|, and k3=∣F3∣k_{3}=|F_{3}|. It follows that α2/k1≤γ2/k3\alpha^{2}/k_{1}\leq\gamma^{2}/k_{3}. Therefore

where the second inequality follows from kˉ<k\bar{k}<k and the last inequality follows from the assumption Δ≥kˉ/(kˉ+k)\Delta\geq\sqrt{\bar{k}/(\bar{k}+k)}. Now by solving the following inequality for αˉ\bar{\alpha}:

where the second inequality follows from the Cauchy-Schwartz inequality and Δ≤1\Delta\leq 1, 1−α2≤1\sqrt{1-\alpha^{2}}\leq 1, while the last inequality follows from (A.1). Finally,

where the last inequality follows from (A.1) and (A.2). This leads to the desired bound. ∎

Next is our main lemma, which says each step of sparse power method improves eigenvector estimation.

If ∣xt−1⊤xˉ∣>1/3+δ(s)|x_{t-1}^{\top}\bar{x}|>1/\sqrt{3}+\delta(s), then

Let F=Ft−1∪Ft∪supp(xˉ)F=F_{t-1}\cup F_{t}\cup\text{supp}(\bar{x}). Consider the following vector

where the first inequality follows from Lemma 3, and the second is from Lemma 2 and ∣xt−1⊤xˉ∣≥∣xt−1⊤x(F)∣−δ(s)|x_{t-1}^{\top}\bar{x}|\geq|x^{\top}_{t-1}x(F)|-\delta(s), and the fact that x(1+(1−γ2)(1−x2)/2)x(1+(1-\gamma^{2})(1-x^{2})/2) is increasing when x∈x\in. We can now use Lemma 2 again, and the preceding inequality implies that

This leads to the first desired inequality.

Next we will prove the second inequality. Without loss of generality and for simplicity, we may assume that xt′⊤x(F)≥0x^{\prime\top}_{t}x(F)\geq 0 and xt−1⊤xˉ≥0x_{t-1}^{\top}\bar{x}\geq 0, because otherwise we can simply do appropriate sign changes in the proof. We obtain from Lemma 3 that

where in the derivation of the second inequality, we have used Lemma 2 and the assumption of the lemma that implies xt−1⊤x(F)≥xt−1⊤xˉ−δ(s)≥1/3x_{t-1}^{\top}x(F)\geq x_{t-1}^{\top}\bar{x}-\delta(s)\geq 1/\sqrt{3}. We thus have

Next we can apply Lemma 4 and use kˉ/k≤0.25\bar{k}/k\leq 0.25 to obtain

This proves the second desired inequality. ∎

We know if ∣xt−1⊤xˉ∣≥u+δ(s)|x_{t-1}^{\top}\bar{x}|\geq u+\delta(s), then Lemma 5 implies:

The first inequality uses Lemma 5; the second inequality uses z(1+(1−γ2)(1−z2)/2)z(1+(1-\gamma^{2})(1-z^{2})/2) is an increasing function of z∈z\in; and the third inequality uses the assumption of uu in the theorem. This implies (by an easy induction argument) that we have ∣x^t⊤xˉ∣≥u+δ|\hat{x}_{t}^{\top}\bar{x}|\geq u+\delta for all t≥0t\geq 0.

Now we can prove the theorem by induction. The bound clearly holds at t=0t=0. Assume it holds at some t−1t-1. If we have ∣x^t−1⊤xˉ∣≤1/3+δ(s)|\hat{x}_{t-1}^{\top}\bar{x}|\leq 1/\sqrt{3}+\delta(s), then since z(1−z2)z(1-z^{2}) is increasing in [0,1/3][0,1/\sqrt{3}], and from Lemma 5 we have

Combing this inequality with ∣xt⊤xˉ∣=∣x^t⊤xˉ∣/∥x^t∥≥∣x^t⊤xˉ∣|x_{t}^{\top}\bar{x}|=|\hat{x}_{t}^{\top}\bar{x}|/\|\hat{x}_{t}\|\geq|\hat{x}_{t}^{\top}\bar{x}| we get

If ∣x^t−1⊤xˉ∣≥1/3+δ(s)|\hat{x}_{t-1}^{\top}\bar{x}|\geq 1/\sqrt{3}+\delta(s), then we have from Lemma 5

which implies the theorem at tt. This finishes induction.