Fast and Simple Spectral Clustering in Theory and Practice

Peter Macgregor
2/12/2026

No official code found. Best implementation: pmacg/fast-spectral-clustering (17 stars, MIT, last commit 2025-06-19).

Abstract

Spectral clustering is a popular and effective algorithm designed to find $k$ clusters in a graph $G$. In the classical spectral clustering algorithm, the vertices of $G$ are embedded into $\mathbb{R}^k$ using $k$ eigenvectors of the graph Laplacian matrix. However, computing this embedding is computationally expensive and dominates the running time of the algorithm. In this paper, we present a simple spectral clustering algorithm based on a vertex embedding with $O(\log(k))$ vectors computed by the power method. The vertex embedding is computed in nearly-linear time with respect to the size of the graph, and the algorithm provably recovers the ground truth clusters under natural assumptions on the input graph. We evaluate the new algorithm on several synthetic and real-world datasets, finding that it is significantly faster than alternative clustering algorithms, while producing results with approximately the same clustering accuracy.

View on arXivView PDF

Code Implementations(1)

MIT

Fast spectral clustering, described in the NeurIPS'23 paper "Fast and Simple Spectral Clustering in Theory and Practice"

173PythonOct 17, 20231 years agoMIT

Similar Papers

Cite this paper

@article{macgregor2026fast,
  title  = {Fast and Simple Spectral Clustering in Theory and Practice},
  author = {Peter Macgregor},
  year   = {2026},
  eprint = {2310.10939},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.10939},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.10939.svg)](https://codeofpaper.com/paper/2310.10939)

Discussion