Abstract
This paper focuses on scalability and robustness of spectral clustering for extremely large-scale datasets with limited resources. Two novel algorithms are proposed, namely, ultra-scalable spectral clustering (U-SPEC) and ultra-scalable ensemble clustering (U-SENC). In U-SPEC, a hybrid representative selection strategy and a fast approximation method for K-nearest representatives are proposed for the construction of a sparse affinity sub-matrix. By interpreting the sparse sub-matrix as a bipartite graph, the transfer cut is then utilized to efficiently partition the graph and obtain the clustering result. In U-SENC, multiple U-SPEC clusterers are further integrated into an ensemble clustering framework to enhance the robustness of U-SPEC while maintaining high efficiency. Based on the ensemble generation via multiple U-SEPC's, a new bipartite graph is constructed between objects and base clusters and then efficiently partitioned to achieve the consensus clustering result. It is noteworthy that both U-SPEC and U-SENC have nearly linear time and space complexity, and are capable of robustly and efficiently partitioning ten-million-level nonlinearly-separable datasets on a PC with 64GB memory.
Introduction
Spectral clustering is a powerful technique for grouping complex, non-linear data by leveraging connectivity rather than simple distance metrics. However, its traditional formulation is notoriously computationally expensive, requiring $O(N^3)$ time and $O(N^2)$ memory for $N$ data points. While recent landmark-based approximations have reduced this to $O(Np)$ (where $p$ is the number of representatives), even this linear scaling becomes a bottleneck when dealing with tens of millions of data points on standard hardware. This paper introduces U-SPEC and U-SENC, two algorithms designed to shatter this bottleneck and achieve near-linear scalability.
Ultra-Scalable Spectral Clustering (U-SPEC)
U-SPEC achieves its efficiency through a three-pronged approach to graph construction and partitioning:
- Hybrid Representative Selection: To avoid the high cost of running k-means on the entire dataset, U-SPEC employs a hybrid strategy. It first randomly samples a candidate set $p'$, then runs k-means only on these candidates to find $p$ high-quality representatives. This provides the clustering quality of k-means with the speed of random sampling.
- Approximate K-Nearest Representatives: Standard methods calculate distances from every data point to every representative. U-SPEC introduces a hierarchical search: representatives are grouped into sub-regions, and data points only calculate distances to representatives within their local region. This reduces complexity from $O(Np)$ to $O(Np^{1/2})$.
- Bipartite Graph Partitioning: The relationships between $N$ data points and $p$ representatives are modeled as a bipartite graph. By utilizing a "transfer cut" mathematical framework, the algorithm solves the massive graph problem by solving a much smaller $p \times p$ graph problem.
Ultra-Scalable Ensemble Clustering (U-SENC)
While U-SPEC is highly efficient, single-shot approximations can sometimes be unstable. To enhance robustness, the authors propose U-SENC. This method runs multiple U-SPEC instances with different random seeds to generate an ensemble of base clusterings. A new bipartite graph is then constructed to connect the original data points to the various clusters generated by the ensemble. Partitioning this consensus graph yields a result that is both highly robust and computationally efficient, even for datasets exceeding 10 million points.
Experimental Results
The authors evaluated their methods on 10 large-scale datasets, including real-world sets like MNIST and Covertype, and synthetic sets up to 20 million points.
Scalability and Speed
U-SPEC and U-SENC successfully clustered the 20-million point Flower-20M dataset on a standard PC (Intel i5, 64GB RAM), a feat where most baseline spectral methods failed due to memory constraints at much smaller scales. On the 1-million point TB-1M dataset, U-SPEC completed in approximately 10 seconds, compared to over 100 seconds for competing large-scale methods like Nyström and LSC-K.
Accuracy
U-SENC consistently achieved the highest Normalized Mutual Information (NMI) and Clustering Accuracy (CA) across nearly all test cases. The ensemble approach effectively mitigated the noise inherent in fast approximation methods, providing superior performance on complex, non-spherical data shapes.
Conclusion
U-SPEC and U-SENC represent a significant step forward in making spectral clustering viable for truly massive datasets. By combining hierarchical representative search with bipartite graph partitioning, these algorithms maintain the power of spectral methods while achieving the efficiency required for modern data science. Future work may involve extending this framework to multi-view clustering or distributed computing environments.
Summary updated