Introduction
Spectral clustering is a cornerstone of machine learning, renowned for its ability to identify non-linear cluster boundaries that traditional $k$-means often misses. However, its computational cost—typically $O(n^2)$ in time and memory for $n$ data points—renders it impractical for modern "big data" applications. While coresets (small, weighted subsets that approximate the full dataset) have successfully accelerated $k$-means, applying them to spectral clustering is challenging. The equivalent problem, kernel $k$-means, is notoriously prone to local optima, especially with the sparse kernels typical of graph data.
This paper introduces Coreset Spectral Clustering (CSC), a framework that bridges coreset theory with spectral methods to enable efficient clustering of graphs with up to 65 million nodes.
Methodology: The CSC Pipeline
The CSC approach transforms the large-scale spectral clustering problem into a manageable task by operating on a compressed representation of the data. The pipeline consists of four primary stages:
- Kernel Mapping: The input graph's adjacency matrix is treated as a kernel similarity matrix, mapping the graph into a high-dimensional kernel space.
- Fast Coreset Construction: The authors develop an optimized version of $D^2$-sampling (the foundation of $k$-means++). By utilizing a specialized sampling tree data structure, the algorithm exploits graph sparsity. In sparse graphs, selecting a new center only updates distances for a few neighbors, reducing complexity from $\tilde{O}(nk)$ to $\tilde{O}(n \cdot \min\{k, d_{avg}\})$.
- Coreset Graph Clustering: Instead of running error-prone kernel $k$-means on the coreset, the method constructs a "coreset graph" and performs spectral clustering on this significantly smaller proxy.
- Label Inference: Final labels are assigned by projecting the coreset's cluster assignments back onto the original graph nodes based on their proximity in kernel space.
The core technical contribution to efficiency is the FAST $D^2$-SAMPLING algorithm, which allows for rapid coreset generation even as the number of clusters $k$ grows.
Experimental Evaluation
The authors evaluated CSC against massive real-world datasets and standard benchmarks, including the Friendster social network (65M nodes, 1.8B edges), MNIST, and synthetic Stochastic Block Model (SBM) graphs.
Key Results
- Scalability: On the Friendster graph, CSC's coreset construction outperformed existing state-of-the-art methods by orders of magnitude. The algorithm can cluster 250,000 nodes into 250 clusters in under 3 seconds.
- Accuracy and Robustness: CSC maintained the accuracy of full spectral clustering while using a coreset comprising less than 5% of the original data. Crucially, while coreset-based kernel $k$-means failed on SBM graphs beyond 50 clusters due to local optima, CSC remained accurate up to 250 clusters.
- Theoretical Soundness: The authors proved that an $\alpha$-approximation on the coreset graph yields an $O(\alpha)$-approximation for the original problem, providing a rigorous foundation for the empirical success.
Discussion and Future Work
The primary insight of this work is that sparsity is a powerful lever for speed, and spectral methods are inherently more robust than $k$-means when applied to coresets. By avoiding the local optima traps of kernel $k$-means, CSC provides a reliable path to scaling spectral clustering.
While highly effective, the current implementation faces a "labeling bottleneck," where assigning original nodes to coreset centers can become slow for extremely large $n$. Future research may focus on optimizing this final inference step and exploring advanced spectral solvers to further push the boundaries of graph scale.
Reference: Jourdan, B., Schwartzman, G., Macgregor, P., & Sun, H. (2025). Coreset Spectral Clustering. ICLR 2025.
Summary updated