When would you choose spectral clustering over k-means?
Last updated
Choose spectral clustering when clusters are defined by connectivity, not compactness: rings, moons, manifolds, or data given only as a similarity graph.
Laplacian eigenvectors unroll connected structures (approximating normalized cut), where k-means' convex Voronoi boundaries fail.
Prefer k-means for large n (spectral costs up to O(n²) memory and O(n³) time), compact blobs, or cheap out-of-sample assignment. Spectral is also sensitive to affinity parameters.