Introduction
Spectral clustering has long been a cornerstone of unsupervised machine learning, prized for its ability to transform complex graph-cutting problems into manageable continuous optimization tasks via eigenvector decomposition. However, a persistent bottleneck remains: the "last mile" step. After obtaining continuous solutions (eigenvectors), practitioners typically apply K-Means to discretize these values into cluster assignments. This paper argues that K-Means is a flawed heuristic for this purpose and introduces Spectral Rotation (SR) as a mathematically rigorous alternative.
The Problem with K-Means in Spectral Clustering
The core of spectral clustering involves finding the eigenvectors of a graph Laplacian. While these eigenvectors provide a continuous embedding of the data, they do not directly provide cluster labels. The standard approach treats the rows of the eigenvector matrix as points in a new space and clusters them using K-Means.
The authors contend that this approach is sub-optimal because the continuous solution can deviate significantly from the ideal discrete indicator matrix. K-Means attempts to minimize the distance to cluster centroids in a fixed coordinate system, often failing to find the global minimum of the original graph cut objective (such as Ratio Cut or Normalized Cut).
Methodology: The Spectral Rotation Algorithm
To bridge the gap between continuous embeddings and discrete clusters, the authors propose an iterative Spectral Rotation algorithm. The key insight is that spectral solutions are rotationally invariant. If a matrix $Q$ contains the optimal eigenvectors, then any rotated version $QR$ (where $R$ is an orthonormal matrix) is also a valid solution.
Instead of the standard K-Means objective, SR minimizes the distance between the rotated spectral matrix $QR$ and a discrete indicator matrix $G$. The optimization follows an alternating strategy:
- Update $G$ (Assignment): With the rotation $R$ fixed, each data point is assigned to the nearest cluster in the rotated space, similar to the K-Means assignment step.
- Update $R$ (Rotation): With the indicators $G$ fixed, the optimal orthonormal rotation $R$ is calculated. The authors prove this can be solved efficiently using Singular Value Decomposition (SVD) of $G^TQ$.
This approach ensures that the algorithm searches for the best coordinate alignment to match the discrete cluster structure. Remarkably, the computational complexity remains $O(tnK^2)$, ensuring SR is as efficient as traditional K-Means.
Experimental Evaluation
The performance of Spectral Rotation was tested against K-Means across 12 diverse datasets, including nine high-dimensional image datasets (e.g., MNIST, COIL20, YaleB) and three general-purpose UCI datasets (Abalone, Ecoli, Scale). These benchmarks represent a wide range of observations, dimensions, and cluster counts.
Key Results and Discussion
The experimental findings consistently favored Spectral Rotation over K-Means across multiple metrics and objectives.
Superior Graph Cuts
SR consistently achieved lower objective function values for both Ratio Cut and Normalized Cut compared to K-Means. Statistical analysis using T-tests and U-tests confirmed that these improvements were not due to chance but represented a significant refinement in the clustering process.
Enhanced Accuracy
In terms of clustering accuracy and Normalized Mutual Information (NMI), SR demonstrated clear advantages. For instance, on the COIL20 dataset, accuracy improved from approximately 61.2% using K-Means to 67.5% with Spectral Rotation.
As shown in the results table, combining standard spectral objectives (NC or RC) with Spectral Rotation (SR) almost universally outperformed their K-Means (KM) counterparts. The method also proved competitive against other advanced techniques like Non-negative Matrix Factorization (NMF).
Conclusion
Spectral Rotation addresses a long-standing heuristic gap in spectral clustering. By replacing K-Means with a rotation-based alignment strategy, the algorithm achieves more accurate and mathematically sound clusterings without increasing computational overhead. While the method still requires a pre-defined number of clusters and depends on the quality of the initial similarity graph, it represents a significant step forward in making spectral clustering more robust for high-dimensional data analysis.
Summary updated