Robust and efficient multi-way spectral clustering

Anil Damle, Victor Minden, Lexing YingarXiv 2016

Abstract

We present a new algorithm for spectral clustering based on a column-pivoted QR factorization that may be directly used for cluster assignment or to provide an initial guess for k-means. Our algorithm is simple to implement, direct, and requires no initial guess. Furthermore, it scales linearly in the number of nodes of the graph and a randomized variant provides significant computational gains. Provided the subspace spanned by the eigenvectors used for clustering contains a basis that resembles the set of indicator vectors on the clusters, we prove that both our deterministic and randomized algorithms recover a basis close to the indicators in Frobenius norm. We also experimentally demonstrate that the performance of our algorithm tracks recent information theoretic bounds for exact recovery in the stochastic block model. Finally, we explore the performance of our algorithm when applied to a real world graph.

1. Introduction

Spectral clustering is a cornerstone of modern network analysis, used to identify community structures by embedding nodes into a low-dimensional space derived from the graph's Laplacian eigenvectors. However, the standard pipeline faces a significant bottleneck in its final stage: the use of $k$-means to assign nodes to clusters. $k$-means is an iterative algorithm that is notoriously sensitive to its initial "seed" points. Even with improvements like $k$-means++, the algorithm can become trapped in local minima, leading to inconsistent and suboptimal cluster assignments. This paper introduces a robust, non-iterative alternative that replaces $k$-means with a column-pivoted QR (CPQR) factorization, providing a stable "one-shot" method for cluster recovery.

2. The Orthogonal Cone Structure (OCS)

The proposed methodology is built upon the geometric insight that in well-clustered graphs, the rows of the eigenvector matrix are not randomly distributed. Instead, they form an Orthogonal Cone Structure (OCS), where points belonging to the same cluster cluster into "cones" that point in nearly orthogonal directions.

Transformation of eigenvector embeddings into an axis-aligned basis.

As illustrated in the figure above, the algorithm identifies these cones and applies a transformation—specifically a polar factorization—to align these cones with the coordinate axes. This geometric approach allows for a deterministic assignment of nodes to clusters based on their proximity to these newly aligned axes.

3. Methodology

3.1 CPQR Factorization

Instead of iterative refinement, the algorithm applies a column-pivoted QR factorization to the transposed eigenvector matrix ($V_k^T$). This greedy process identifies $k$ "pivot" nodes that are as geometrically distinct as possible. These pivots serve as the representative centers for each cluster, effectively replacing the need for random initialization.

3.2 Polar Factorization and Assignment

Once the pivots are identified, a polar factorization is used to find the closest orthogonal matrix to these pivots. This creates a refined coordinate system. Nodes are then assigned to clusters by identifying which coordinate has the largest magnitude in this new system, a process that is both direct and computationally efficient.

3.3 Randomized Variant

To address the challenges of massive datasets, the authors introduce a randomized variant. By sampling nodes based on "leverage scores" (the squared norms of the rows of the eigenvector matrix), the computational cost of finding the clustering transformation becomes independent of the total number of nodes ($n$), allowing the algorithm to scale linearly.

4. Experimental Evaluation

4.1 Stochastic Block Models (SBM)

The algorithm was tested against synthetic SBMs to evaluate its ability to achieve "exact recovery" of ground truth clusters. The CPQR-based method demonstrated a sharp phase transition, perfectly recovering clusters up to the theoretical information-theoretic limits of graph noise. In contrast, $k$-means++ frequently failed to recover clusters even in relatively low-noise scenarios due to its susceptibility to local minima.

4.2 Real-World Performance: arXiv Astrophysics

When applied to the arXiv Astrophysics collaboration network (18,772 nodes, 198,110 edges), the algorithm significantly outperformed the industry standard. The CPQR algorithm achieved a multi-way cut metric of 1.92, a substantial improvement over the $k$-means++ average of 8.48.

5. Conclusion

By shifting the focus from iterative optimization to the underlying geometry of eigenvector embeddings, this paper provides a more robust and efficient framework for spectral clustering. The CPQR-based approach eliminates the instability of random seeding while maintaining high performance on both synthetic benchmarks and real-world datasets. While current theoretical bounds are somewhat pessimistic compared to empirical success, the algorithm's ability to track information-theoretic limits makes it a powerful tool for large-scale network analysis.

Summary updated

BibTeX
@misc{damle2016robust,
  author = {Anil Damle and Victor Minden and Lexing Ying},
  title = {{Robust and efficient multi-way spectral clustering}},
  year = {2016},
  eprint = {1609.08251},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.08251},
}
Figure