Compressive Spectral Clustering

Nicolas Tremblay, Gilles Puy, Rémi Gribonval, Pierre Vandergheynst

Compressive Spectral Clustering: Scaling Community Detection to Massive Graphs

Spectral clustering is a powerful tool for finding communities in complex data, but its computational cost—specifically the eigendecomposition of the Laplacian and the subsequent $k$-means clustering—prevents it from scaling to millions of nodes. This paper introduces Compressive Spectral Clustering (CSC), a framework that bypasses these bottlenecks using graph signal processing techniques. By replacing exact eigenvector computation with fast graph filtering and $k$-means on the full dataset with clustering on a small sampled subset, CSC achieves orders of magnitude speedups while maintaining high recovery accuracy.

The Scalability Challenge in Spectral Clustering

Spectral Clustering (SC) is widely regarded as a gold standard for community detection due to its ability to identify non-convex clusters and its solid theoretical foundation in graph theory. However, the algorithm faces a significant "computational wall" when applied to large-scale datasets. The primary bottlenecks include:

  1. Graph Construction: Building a similarity matrix for $N$ objects.
  2. Eigendecomposition: Finding the first $k$ eigenvectors of a Laplacian matrix, which is computationally expensive for large $N$ and $k$.
  3. $k$-means Clustering: Running $k$-means on $N$ feature vectors in $k$-dimensional space, which often becomes the dominant cost for massive datasets.

While many existing works address the eigendecomposition problem, the $k$-means step remains a silent killer of performance. CSC aims to circumvent both the eigendecomposition and the $k$-means bottlenecks simultaneously.

Methodology: A Compressive Pipeline

Compressive Spectral Clustering addresses these challenges by leveraging concepts from Graph Signal Processing (GSP). The pipeline consists of three main stages:

  1. Feature Generation via Graph Filtering: Instead of computing exact eigenvectors, CSC passes random Gaussian noise through a low-pass graph filter. Using fast polynomial approximations (e.g., Chebyshev polynomials), the method produces feature vectors that span the same low-frequency subspace as the eigenvectors, preserving essential distance information without solving an eigenvalue problem.
  2. Random Downsampling: Rather than clustering all $N$ nodes, CSC randomly samples a small subset of $n = O(k \log k)$ nodes. This is justified by the observation that cluster indicator vectors are "smooth" (bandlimited) on the graph, meaning a small sample contains sufficient information to represent the global structure.
  3. Interpolation: After clustering the sampled subset, the labels are propagated to the remaining $N-n$ nodes by solving a regularized optimization problem, treating cluster assignments as signals to be reconstructed from a few samples.

Key Results and Performance

The authors evaluated CSC on both synthetic Stochastic Block Models (SBM) and real-world datasets like the Amazon co-purchasing network. Recovery performance on SBM graphs shows that CSC closely tracks the performance of traditional SC. As shown in Figure 1, even with a small number of samples $n$, the recovery performance remains robust across varying noise levels ($\epsilon$).

The most dramatic advantage of CSC is its computational efficiency. On the Amazon dataset ($N \approx 335,000$, $k=1000$), standard SC required over 17 hours for eigendecomposition, and the $k$-means step failed to complete within 21 hours. In contrast, CSC finished the entire process in approximately 10 hours. Figure 4 illustrates how the computation time for CSC scales much more favorably with the number of classes $k$ compared to traditional methods.

Computation time comparison showing the favorable scaling of CSC as the number of classes $k$ increases.

Furthermore, the authors provide theoretical guarantees, proving that the error introduced by using filtered random signals instead of exact eigenvectors can be strictly controlled, ensuring that CSC is a reliable approximation rather than a mere heuristic.

Conclusion and Future Directions

CSC shifts the computational complexity of spectral clustering from being dominated by $N$ and $k^2$ to being nearly linear in the number of edges. By treating clusters as bandlimited signals, the framework provides a rigorous and scalable alternative to traditional SC. While the method currently requires an estimate of the $k$-th eigenvalue for filter design, it represents a significant step toward practical spectral clustering for massive graphs. Future work may explore variable density sampling to further enhance performance on highly unbalanced or irregular graphs.

Summary updated

BibTeX
@inproceedings{tremblay2016compressive,
  author = {Nicolas Tremblay and Gilles Puy and Rémi Gribonval and Pierre Vandergheynst},
  title = {{Compressive Spectral Clustering}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=BkNSgo-ubr},
}
Figure