On Consistency of Compressive Spectral Clustering
Muni Sreenivas Pydi, Ambedkar Dukkipati

TL;DR
This paper analyzes the consistency of spectral clustering via graph filtering on the stochastic block model, focusing on how sparsity, dimensionality, and approximation errors affect community detection accuracy.
Contribution
It provides a theoretical analysis of spectral clustering with graph filtering, highlighting conditions for consistent community recovery in large graphs.
Findings
Sparsity impacts the accuracy of spectral clustering.
Dimensionality reduction influences clustering consistency.
Approximation errors in graph filtering affect community detection performance.
Abstract
Spectral clustering is one of the most popular methods for community detection in graphs. A key step in spectral clustering algorithms is the eigen decomposition of the graph Laplacian matrix to extract its leading eigenvectors, where is the desired number of clusters among objects. This is prohibitively complex to implement for very large datasets. However, it has recently been shown that it is possible to bypass the eigen decomposition by computing an approximate spectral embedding through graph filtering of random signals. In this paper, we analyze the working of spectral clustering performed via graph filtering on the stochastic block model. Specifically, we characterize the effects of sparsity, dimensionality and filter approximation error on the consistency of the algorithm in recovering planted clusters.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsSpectral Clustering
On Consistency of Compressive Spectral Clustering
\nameMuni Sreenivas Pydi \[email protected]
\addrDepartment of Electrical and Computer Engineering
University of Wisconsin - Madison
Madison, WI - 53726, USA \AND\nameAmbedkar Dukkipati \[email protected]
\addrDepartment of Computer Science and Automation
Indian Institute of Science
Bengaluru - 560012, India
Abstract
Spectral clustering is one of the most popular methods for community detection in graphs. A key step in spectral clustering algorithms is the eigen decomposition of the graph Laplacian matrix to extract its leading eigenvectors, where is the desired number of clusters among objects. This is prohibitively complex to implement for very large datasets. However, it has recently been shown that it is possible to bypass the eigen decomposition by computing an approximate spectral embedding through graph filtering of random signals. In this paper, we analyze the working of spectral clustering performed via graph filtering on the stochastic block model. Specifically, we characterize the effects of sparsity, dimensionality and filter approximation error on the consistency of the algorithm in recovering planted clusters.
Keywords: spectral methods, clustering, stochastic block model
1 Introduction
Detecting communities, or clusters in networks is an important problem in many fields of science (Fortunato, 2010; Jain et al., 1999). Spectral clustering is a widely used algorithm for community detection in networks (Von Luxburg, 2007) because of its strong theoretical grounding (Ng et al., 2002; Shi and Malik, 2000) and recently established consistency results (Rohe et al., 2011; Lei et al., 2015). Spectral clustering works by relaxing the NP-hard discrete optimization problem of graph partitioning, into a continuous optimization problem. As a first step, one computes the the leading eigenvectors of the graph Laplacian matrix, that gives a dimensional ’spectral’ embedding for each vertex of the graph. In the second step, one performs -means on the embedding to retrieve the graph clusters.
However, computing the leading eigenvectors of the graph Laplacian requires eigen decomposition, which is very hard to compute for large datasets. Several approximate algorithms have been proposed to overcome this problem via Nyström sampling (Fowlkes et al., 2004; Li et al., 2011; Choromanska et al., 2013). While these methods do not skip the eigen decomposition, they reduce its complexity via column sampling of the Laplacian. Another class of methods use random projections to reduce the dimensionality of the dataset while obtaining an approximate spectral embedding (Sakai and Imiya, 2009; Gittens et al., 2013). On the other hand, with the emergence of signal processing on graphs (Shuman et al., 2013), there has been the development of techniques based on graph filtering that can side-step the eigen decomposition altogether (Ramasamy and Madhow, 2015; Tremblay et al., 2016b, a). While many of these approaches have been shown to work fairly well on real and synthetic datasets, a rigorous mathematical analysis is still lacking.
In this paper, we consider a variant of the compressive spectral clustering algorithm that uses graph filtering of random signals to compute an approximate spectral embedding of the graph nodes (Tremblay et al., 2016b). For a graph with nodes and clusters, the algorithm proceeds by calculating a dimensional embedding for the graph nodes, where is of the order of . This compressed embedding acts as a substitute for the dimensional spectral embedding of the spectral clustering algorithm and does not need the eigen decomposition of the Laplacian. Instead, the embedding is obtained by filtering out the top frequencies for number of random graph signals using fast graph filtering.
Contributions
In this paper, we analyze the spectral clustering algorithm performed via graph filtering (Algorithm 2) using the stochastic block model (SBM). We derive a bound on the number of vertices that would be incorrectly clustered with the algorithm, and prove that the algorithm can consistently recover planted clusters from SBM under mild assumptions on the sparsity of the graph and the filter approximation used to compute the spectral embedding. For our analysis, we specifically consider the high-dimensional stochastic block model that allows for the number of clusters to grow faster than . This is very important considering that the computational gains of compressive spectral algorithm is more apparent in the high-dimensional case. In proving the weak consistency of Algorithm 2, we primarily use the proof techniques from Rohe et al. (2011), which were originally used to analyze the spectral clustering algorithm under the high-dimensional SBM. Finally, we analyze our consistency result in some special cases of the block model and validate our findings with accompanying experiments.
2 Preliminaries
2.1 Notation
We use capital letters to denote matrices, and specifically their formal script versions for random matrices. We use the superscript (n) to denote matrices corresponding to a graph of nodes. We use for the Euclidean norm of a vector and the spectral norm of a matrix. We use for the Frobenius norm of a matrix. For a matrix , we use and to denote the th row and th column respectively. We also use the standard notation , and to describe the limiting behavior of functions.
2.2 Stochastic Block Model
We consider an undirected, unweighted graph with nodes. Under SBM, each node of the graph is assigned to one of clusters or blocks via the membership matrix . if and only if the node belongs to block . The SBM adjacency matrix is defined as where is the block matrix, whose entry gives the probability of an edge between nodes of cluster and cluster . is full rank and symmetric. The diagonal entries of are set to zero to prevent self edges. From , we define the degree matrix such that and the normalized Laplacian matrix . We define to indicate the level of sparsity in the graph.
To generate a random graph with SBM, we sample a random adjacency matrix from it’s population version, . Let and represent the corresponding degree matrix and the normalized Laplacian for the sampled graph. Using Davis-Kahan theorem, it can be shown that the eigenvectors of and converge asymptotically as becomes large. This is important because the spectral clustering algorithm relies on the eigenvectors of the sampled graph Laplacian to estimate the node membership .
Now, we borrow a result from Rohe et al. (2011) that shows the conditions for convergence of the leading eigenvectors of and .
Theorem 2.2.1** (Convergence of Eigenvalues and Eigenvectors)**
Let be a sequence of adjacency matrices sampled from the SBM with population matrices . Let and be the corresponding graph Laplacians. Let be the matrices that contain the eigenvectors corresponding to the leading eigenvalues of and in absolute sense, respectively. Let be the least non-zero eigenvalue of .
Assumption 1** (Eigengap)**
**
Assumption 2** (Sparsity)**
**
Under Assumptions 1 and 2, for some sequence of orthonormal matrices ,
[TABLE]
**Proof ** Theorem 2.2.1 is a special case of Theorem 2.2 from Rohe et al. (2011). The result follows by setting and .
While Assumption 1 ensures that the eigengap of is high enough to enable the separability of the clusters, Assumption 2 puts a lower bound on the sparsity level of the graph. Under these two assumptions, Theorem 2.2.1 bounds the Frobenius norm of the difference between the top eigenvectors of the population and sampled versions of the graph Laplacian.
2.3 Spectral Clustering
Spectral clustering operates on the leading eigenvectors of i.e. the matrix in Theorem 2.2.1. Each row of is taken as the -dimensional spectral embedding of the corresponding node, and -means is performed on the new data points to retrieve the cluster membership matrix . The spectral clustering algorithm we consider is listed in Algorithm 1.
Note that the -means is performed on the rows of the matrix in Algorithm 1. For this to result in the distinct clusters of the SBM, the rows belonging to nodes in different clusters must be ‘well-separated’ while the rows belonging to nodes in the same cluster must be closely spaced. This property of becomes evident from Theorem 2.3.1 that follows from the work of Rohe et al. (2011).
Theorem 2.3.1** (Separability of Clusters)**
Consider a SBM with blocks. Let be the population version of the graph Laplacian. Let be the matrix containing the eigenvectors corresponding to nonzero eigenvalues of . Let be the number of nodes in the largest block i.e. Then the following statements are true.
There exists a matrix such that . 2. 2.
* i.e. is invertible.* 3. 3.
* for any .*
**Proof ** Statements 1 and 2 of Theorem 2.3.1 follow from Lemma 3.1 from Rohe et al. (2011). Statement 3 is equivalent to Statement D.3 from the proof of Lemma 3.2 in Rohe et al. (2011).
From Theorem 2.3.1, it is evident that performing -means on the rows of would retrieve the block membership of all the nodes in the graph exactly. However, the matrix is hidden, and only its sampled version, can be accessed. But by theorem 2.2.1, we have that is a close approximation of for large . As Algorithm 1 performs -means on , the estimated membership matrix should be close to the true membership matrix .
2.4 Graph Filtering
As in Algorithm 1, extracting the top eigenvectors of the Laplacian is a key step in the spectral clustering algorithm. This can be viewed as extracting the lowest frequencies or Fourier modes of the graph Laplacian. This interpretation allows us to use the fast graph filtering approach (Tremblay et al., 2016b; Ramasamy and Madhow, 2015) to speed up the computation. We briefly describe this here.
A graph signal is a mapping from vertex set of a graph to . If the eigen decomposition of the graph Laplacian is , then the graph Fourier transform of is . The entries of give the Fourier modes of the graph signal . Assuming that the rows of are ordered in the decreasing order (in absolute value) of the corresponding eigenvalues, the top Fourier modes of can be obtained by where is the matrix whose columns are the top eigenvectors of .
A graph filter function is defined over , the range of eigenvalues of the normalized graph Laplacian. The filter operator in the graph domain, is a diagonal matrix defined as where are the eigenvalues of ordered in the decreasing order of absolute value. The equivalent filter operator in the spectral domain, is defined as .
To extract the top Fourier modes of a graph signal, we use an ideal low-pass filter defined as
[TABLE]
The result of graph signal filtered through is given by . Obviously, filtering a graph signal with the ideal filter in (1) needs the eigen decomposition of the graph Laplacian. Now we define , an order polynomial, to be the non-ideal approximation of the filter . The filter operator in spectral domain, can be computed as . The signal filtered by can be computed as , which does not required the eigen decomposition of . Moreover, it only involves computing matrix-vector multiplications.
The method that we use for our analysis is outlined in Algorithm 2.
3 SBM and Spectral Clustering via Graph Filtering
In this section, we lay down the building blocks that make up Algorithm 2. In 3.1 we shall see how a compressed spectral embedding can be computed with graph filtering and prove that the compressed embedding is still a close approximation of the SBM’s population version of graph Laplacian. In Section 3.2 we show the effect of using the fast graph filtering technique to compute the compressed embedding. In Section 3.3 we deal with the estimation of the eigenvalue of the graph Laplacian without resorting to eigen decomposition.
3.1 Compressed Spectral Embedding
From Algorithm 1, it seems that we need the matrix containing the most significant eigenvectors of , in order to retrieve the clusters. Since we only use the rows of as data points for the subsequent -means step, we only need a distance preserving embedding of the rows of . In this section, we see how such an embedding can be obtained through the result of filtering random graph signals. The technique used is similar to that of Tremblay et al. (2016b), except that we employ stricter assumptions to help in proving consistency results.
Consider the matrix whose entries are independent Gaussian random variables with mean [math] and variance . Define whose columns contain the result of filtering the corresponding columns of using the filter . In Theorem 3.1.1, we show that the rows of form an -approximate distance preserving embedding of the rows of for sufficiently large . To analyze the effect of this embedding on the true cluster centers, i.e. the unique rows of , we define the matrix where is the orthonormal rotation matrix as in Theorem 2.2.1. We aim to show that the separability of the true cluster centers is still ensured under the compressed embedding.
Theorem 3.1.1** (Convergence and Separability under Compressed Spectral Embedding)**
For the sequence of adjacency matrices as defined in Theorem 2.2.1, define to be the sequence of populations of the largest block. Let be the compressed embeddings for as defined in Theorem 2.2.1. For and , if
[TABLE]
then with probability at least , we have the following under the assumptions of Theorem 2.2.1.
[TABLE]
for any , where .
**Proof ** See Appendix A.
Theorem 3.1.1 is analogous to the theorems on convergence (Theorem 2.2.1) and separability (Theorem 2.3.1) of the spectral clustering algorithm. It ensures that the approximate spectral embedding converges to the corresponding population version while still ensuring that the true clusters remain separable.
3.2 Efficient Computation via Fast Graph Filtering
Now, we define an additional level of approximation for the spectral embedding using the fast graph filtering technique discussed in Section 2.4. Let to be the output of approximate filtering of the columns of where with entries drawn from . Lemma 3.2.1 bounds the difference between and , which result from approximate and ideal filtering respectively.
Lemma 3.2.1** (Bounding the Approximate Filtering Error)**
For the sequence of adjacency matrices as defined in Theorem 2.2.1, let be the approximation for obtained using the polynomial filter (instead of the ideal filter ). Let be the spectrum of the sampled graph Laplacian . Define the maximum absolute error in the polynomial approximation as . For , with probability at least ,
[TABLE]
**Proof ** See Appendix A.
3.3 Estimation of
Lemma 3.2.1 shows that in order to achieve a fixed error bound between and , the polynomial approximation must be increasingly accurate as grows large. Designing such a polynomial would necessitate knowing the value of . In this section, we explain how that can be done without having to do the eigen decomposition of . First, we state the following Lemma which bounds the output of fast graph filtering, .
Lemma 3.3.1** (Estimation of )**
For the , and given in Lemma 3.2.1, with probability at least we have
[TABLE]
**Proof ** See Appendix A.
For , Lemma 3.3.1 shows that the output of fast graph filtering, is tightly concentrated around , upon normalization by . This can be used to estimate by a dichotomic search in the range as explained in Puy et al. (2016). The basic idea is to make a coarse initial guess on in the interval , compute with the current estimate, and iteratively refine the estimate by comparing with .
Before we move on to proving the consistency of Algorithm 2, let us summarise the results from the previous sections. We have a tractable way to estimate without the eigen decomposition of . Through Lemma 3.2.1, we know that the resultant approximate embedding will be close to the ideal compressed embedding, for reasonably accurate polynomial approximation of the ideal filter. Through Theorem 3.1.1, we showed that a compressed embedding of the leading eigenvectors of converge to the corresponding embedding on . We also showed that the data points corresponding to different clusters are still separable under such an embedding.
4 Consistency of Algorithm SC-GF
4.1 Deriving the Error Bound
Once we get the approximate spectral embedding of the nodes of the graph in the form of , we perform -means with the rows of as data points in . Let be the centroids corresponding to the rows of , out of which only are unique. The unique centroids correspond to the centers of the clusters. Note that the true cluster centers correspond to the rows of , and Theorem 3.1.1 ensures that they are separable from each other. Hence, we say that a node is correctly clustered if its -means cluster center is closer to its true cluster center than it is to any other center , for . In the following Lemma, we lay down the sufficient condition for correctly clustering a node .
Lemma 4.1.1** (Sufficient Condition for Correct Clustering)**
Let be the centroids resulting from performing -means on the rows of . For and as defined in Theorem 3.1.1,
[TABLE]
for any .
**Proof ** See Appendix B.
Following the analysis in (Rohe et al., 2011), we define the set of misclustered vertices as containing the vertices that do not satisfy the sufficient condition in Lemma 4.1.1.
[TABLE]
Now that we have the definition for misclustered vertices, we analyze the performance of -means. Let the matrix be the result of -means clustering where the th row, is the centroid corresponding to the th vertex. where represents the family of matrices with rows out of which only are unique. can be defined as
[TABLE]
The next theorem bounds the number of misclustered vertices, that is the size of the set .
Theorem 4.1.2** (Bound on the number of Misclustered Vertices)**
[TABLE]
**Proof ** See Appendix B.
4.2 Consistency in Special Cases
We consider a simplified SBM with four parameters , , and with blocks each of which contains nodes so that the total number of vertices in the graph, . The probability of an edge between two vertices of the same block is given by and that of different blocks is given by . For the simplified SBM, the population of the largest block, . The smallest non-zero eigenvalue of the sampled graph Laplacian is given by and the parameter (Rohe et al., 2011). The proportion of the misclustered vertices is given by
[TABLE]
For weak consistency, we need . From (3), the condition on the number of clusters for weak consistency is and the worst case condition on the polynomial approximation error is .
5 Experiments
We perform experiments on the simplified four parameter SBM presented in Section 4.2. For polynomial approximation of the ideal filter, we use Chebyshev polynomials with Jackson damping coefficients (Di Napoli et al., 2016).
In our first experiment, we analyze the error rate for Algorithm 2 for fixed number of clusters as the number of nodes is increased. As expected, the proportion of misclustered vertices, tends to zero as grows large. However, for the case of high polynomial error () we see that the error rate diverges. This validates the presence of in (3).
In our second experiment, we analyze the effect of the polynomial error in finer detail, by fixing all the other variables, , , and . From (3) the proportion of misclustered vertices should grow linearly with the squared polynomial error . From Figure 2, this behavior is evident.
6 Conclusion
In this paper, we prove some basic theorems that provide the theoretical basis for spectral clustering done via graph filtering. By Theorem 3.1.1, we prove the fundamental conditions required for the consistency of the spectral clustering algorithm via graph filtering, namely separability and convergence. By Theorem 4.1.2, we have shown that the algorithm can retrieve the planted clusters in a stochastic block model consistently, and derive a bound on the number of misclustered vertices. Through Lemma 3.2.1 and Lemma 3.3.1, we quantify the maximum tolerable filtering error for the algorithm to succeed. We then validate our results by performing experiments on the simulated stochastic block model.
While the results we prove in this paper provide evidence for the weak consistency of Algorithm 2 under the stochastic block model under certain assumptions on sparsity and separability, several problems still remain open. First, the bound on the accuracy of the estimate as given in Lemma 3.3.1 is derived in terms of the polynomial approximation error . However, it is not trivial to estimate the polynomial order required to achieve a specific absolute error ( norm) even in case of popular choices like the Jackson-Chebyshev polynomials Di Napoli et al. (2016). This results in complications in deriving explicit expressions for the algorithm’s computational complexity. It also remains to be seen if the algorithm remains consistent under a milder assumption on the graph sparsity () as is the case with the original spectral clustering algorithm Lei et al. (2015). While it is inevitable that the approximations involved in estimating (Lemma 3.3.1) and in obtaining the approximate spectral embedding (Lemma 3.2.1) will result in a weaker bound on the performance, we do not know if the results we derived are optimal. With this work, we hope to see a renewed interest in graph filtering approaches to spectral algorithms which promise significant speed-ups in computation while (provably) maintaining almost the same performance.
A Proofs for Theorems in Section 3
A.1 Proof of Theorem 3.1.1
**Proof ** For the sake of compactness, we omit the superscript for the sequences of matrices, as the analysis is valid at every .
By Theorem 2.3.1, there are at most unique rows out of the rows of the matrix , while the rows of the matrix , can potentially be unique. The same inference can be made for the matrices and , where is the orthonormal matrix from Theorem 2.2.1.
Treating the combined unique rows of the two matrices as data points in , we can use the Johnson-Lindenstrauss Lemma to approximately preserve the pairwise Euclidian distances between any two rows up to a factor of . Applying Theorem 1.1 from Achlioptas (2003), if is larger than
[TABLE]
then with probability at least , we have
[TABLE]
for any ,
[TABLE]
and
[TABLE]
where .
Combining the inequality on the let side of (4) with Statement 3 of Theorem 2.3.1, we get
[TABLE]
for any . Since is an identity matrix, the rows of are orthogonal. Hence, multiplication of a vector by from the right does not change the norm. By a similar procedure, combining the inequality on the right side of (5) with Theorem 2.2.1, we get
[TABLE]
A.2 Proof of Lemma 3.2.1
**Proof ** Firstly, we note that is a chi-squared random variable with degrees of freedom and mean . Using the Chernoff bound on , we have
[TABLE]
Now to bound the difference between the ideal and polynomial filters,
[TABLE]
Using the result from (6) and (A.2), we can bound the difference between the ideal and approximate spectral embedding as follows.
[TABLE]
where the last step follows with a probability of at least .
A.3 Proof of Lemma 3.3.1
**Proof ** For the sake of compactness, we omit the superscript for the sequences of matrices, as the analysis is valid at every .
From Lemma 3.2.1, we have a bound on the term . So, we proceed to prove Lemma 3.3.1 by bounding the term . For this, we make use of the fact that the columns of are orthonormal.
[TABLE]
Combining (8) with (6), we have the following with probability exceeding .
[TABLE]
Now, we prove the upper bound on .
[TABLE]
where the last statement follows from the fact that the matrices , and are non-negative semi-definite.
[TABLE]
The last statement follows from (6) with a probability of at least .
Using the definition of the maximum filter error , we get
[TABLE]
Combining (10) and (11) with (A.3), we get
[TABLE]
Now we proceed to proving the lower bound.
[TABLE]
[TABLE]
Here, is the Identity matrix. By the definition of , the diagonal entries of are non-negative. Hence, the first term in (A.3) is non-negative. For the second term we have,
[TABLE]
In addition, the term in (13) is non-negative. Combining (15) with (13), we get
[TABLE]
Putting together (12) and (16), we prove Lemma 3.3.1.
B Proofs for Theorems in Section 4
B.1 Proof of Lemma 4.1.1
**Proof ** We follow a similar technique as that of Lemma 3.2 in Rohe et al. (2011). Suppose that for some . For any , we have
[TABLE]
Here we have used the result of Theorem 3.1.1 on the separability of the rows of .
B.2 Proof of Theorem 4.1.2
**Proof ** From the output of the -means we have
[TABLE]
From Theorem 2.3.1 we know that only rows of the matrix are unique out of its rows. The same inference can be made about . Hence, . By the optimality of -means we have
[TABLE]
Hence
[TABLE]
From the definition of the misclustered vertices,
[TABLE]
The last statement follows from Theorem 3.1.1 and Lemma 3.2.1.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Achlioptas (2003) Dimitris Achlioptas. Database-friendly random projections: Johnson-lindenstrauss with binary coins. Journal of computer and System Sciences , 66(4):671–687, 2003.
- 2Choromanska et al. (2013) Anna Choromanska, Tony Jebara, Hyungtae Kim, Mahesh Mohan, and Claire Monteleoni. Fast spectral clustering via the nyström method. In International Conference on Algorithmic Learning Theory , pages 367–381. Springer, 2013.
- 3Di Napoli et al. (2016) Edoardo Di Napoli, Eric Polizzi, and Yousef Saad. Efficient estimation of eigenvalue counts in an interval. Numerical Linear Algebra with Applications , 23(4):674–692, 2016.
- 4Fortunato (2010) Santo Fortunato. Community detection in graphs. Physics reports , 486(3):75–174, 2010.
- 5Fowlkes et al. (2004) Charless Fowlkes, Serge Belongie, Fan Chung, and Jitendra Malik. Spectral grouping using the nystrom method. IEEE transactions on Pattern Analysis and Machine Intelligence , 26(2):214–225, 2004.
- 6Gittens et al. (2013) Alex Gittens, Prabhanjan Kambadur, and Christos Boutsidis. Approximate spectral clustering via randomized sketching. Ebay/IBM Research Technical Report , 2013.
- 7Holland et al. (1983) Paul W Holland, Kathryn Blackmond Laskey, and Samuel Leinhardt. Stochastic blockmodels: First steps. Social networks , 5(2):109–137, 1983.
- 8Jain et al. (1999) Anil K Jain, M Narasimha Murty, and Patrick J Flynn. Data clustering: a review. ACM computing surveys (CSUR) , 31(3):264–323, 1999.
