NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Scalable Spectral Clustering via Spectrum-Preserving Sparsification

Yongyu Wang, Zhuo Feng

Introduction

Spectral clustering (SC) is a premier technique in machine learning for identifying complex, non-convex clusters. By analyzing the "spectrum" (eigenvalues and eigenvectors) of a graph's Laplacian matrix, SC identifies natural partitions within data. However, the computational cost is prohibitive for large-scale applications; calculating eigenvectors for $n$ points typically requires $O(n^3)$ or $O(n^2)$ time. While approximation methods like the Nyström method or landmark-based sampling exist, they often degrade the graph's spectral properties, leading to significant drops in clustering accuracy. This research addresses the challenge of creating ultra-sparse graph representations that preserve the "spectral soul" of the original data.

Proposed Framework

The authors introduce a SGD-based Two-Phase Spectral Graph Sparsification framework designed to maintain spectral integrity while drastically reducing edge count.

Overview of the proposed two-phase spectral graph sparsification framework.

Phase 1: Topology Sparsification

The process begins with a Low-Stretch Spanning Tree (LSST) to establish the graph's backbone. To ensure connectivity and spectral stability, the algorithm identifies "spectrally critical" off-tree edges using a concept analogous to electrical "Joule heat." An Eigenvalue Stability Checking scheme determines the optimal number of edges to reintegrate, stopping once the bottom eigenvalues stabilize.

Phase 2: Subgraph Scaling via SGD

To ensure the sparse graph behaves like the original, edge weights are optimized using Stochastic Gradient Descent (SGD). This step minimizes the spectral mismatch between the original and sparsified graphs. Finally, an Iterative Eigenvector Filtering step (weighted Jacobi iteration) is applied to remove high-frequency noise introduced by sparsification before the final k-means clustering.

Experimental Evaluation

The framework was tested on five benchmark datasets ranging from image data (COIL-20) to large-scale forest cover types (Covtype). The datasets varied in size from 1,440 to over 581,000 instances, providing a robust test of scalability.

Key Results and Insights

The quantitative results demonstrate that the proposed method significantly outperforms existing approximation techniques in both speed and accuracy.

Comparison of clustering accuracy and runtime across various datasets.
  • Massive Speedups: On the Covtype dataset (581k points), the method achieved a 9,703x speedup, reducing runtime from over 25 hours to just 9.43 seconds. Similarly, it achieved a 3,571x speedup on the MNIST dataset.
  • Accuracy Preservation: Unlike landmark-based methods where accuracy often plummets (e.g., from 48% to 22% on Covtype), this framework maintained or even slightly improved accuracy (48.86% vs. 48.83% original).
  • Sparsification as Noise Reduction: The results suggest that spectral sparsification acts as a low-pass filter. By focusing on spectrally critical edges and removing "spurious" noise, the algorithm can actually enhance the underlying cluster structure.

Conclusion and Future Work

This framework proves that ultra-sparse graphs—often requiring less than 15% of off-tree edges—can effectively represent massive datasets for spectral clustering. Future research may focus on reducing the bottleneck of initial k-nearest neighbor (kNN) graph construction and extending these spectral preservation guarantees to directed graphs.

Summary updated

BibTeX
@inproceedings{wang2017towards,
  author = {Yongyu Wang and Zhuo Feng},
  title = {{Towards Scalable Spectral Clustering via Spectrum-Preserving Sparsification}},
  booktitle = {BMVC},
  year = {2017},
}
Figure