Spectral Subspace Clustering for Attributed Graphs

Xiaoyang Lin, Renchi Yang, Haoran Zheng, Xiangyu Ke

Introduction

Attributed graph clustering is a fundamental task in data science, aimed at grouping nodes based on both their structural connectivity and their associated feature vectors. This task is critical for applications ranging from social network analysis to biological data interpretation. However, existing methods often face a trade-off between accuracy and scalability. Graph Neural Networks (GNNs) provide high performance but are computationally intensive and often act as "black boxes." Conversely, traditional subspace clustering (SC) methods offer theoretical robustness but suffer from quadratic complexity ($O(n^2)$) due to the construction of an $n \times n$ self-expressive matrix, making them impractical for large-scale graphs.

This paper introduces Spectral Subspace Clustering for Attributed Graphs (SCAG), specifically the $S^2CAG$ and $M-S^2CAG$ algorithms. These methods bridge the gap by transforming the complex subspace clustering objective into a simple singular value decomposition (SVD) problem, achieving state-of-the-art accuracy with linear scalability.

Methodology

The SCAG framework leverages several key innovations to achieve its performance:

Normalized Smoothed Representations (NSR)

To integrate graph topology with node attributes, the authors employ a "smoothed" attribute representation. Unlike standard smoothing, which can lead to "over-smoothing" where node features become indistinguishable, NSR incorporates normalization steps. This ensures that the scale of different attributes is preserved while effectively capturing the local graph structure.

The Orthogonal Procrustes Transformation

The core technical contribution is the mathematical transformation of the subspace clustering optimization problem. By reframing the objective—which typically involves heavy low-rank and orthogonality constraints—as an Orthogonal Procrustes problem, the authors prove it can be solved via truncated SVD.

Linear Time Complexity

A major bottleneck in subspace clustering is the $n \times n$ self-expressive matrix. $S^2CAG$ and $M-S^2CAG$ bypass this entirely. By utilizing randomized SVD and power iterations, the algorithms operate only on "tall-and-skinny" matrices. This reduces the computational complexity to $O(n)$, allowing the methods to scale to graphs with millions of edges.

Algorithmic Variants

The authors propose two variants based on classical graph metrics:

  • $S^2CAG$: Theoretically linked to minimizing conductance, ensuring that clusters are well-separated with minimal "leaky" edges.
  • $M-S^2CAG$: Designed to maximize modularity, focusing on increasing the density of internal edges within clusters relative to a null model.

Experimental Evaluation

The algorithms were tested on eight diverse real-world datasets, including citation networks (CiteSeer, PubMed, Cora, ACM, DBLP, ArXiv) and web/product graphs (Wiki, Photo).

Accuracy and Efficiency

$M-S^2CAG$ and $S^2CAG$ consistently outperformed 17 competitors, including state-of-the-art GNNs. On the ArXiv dataset (~169k nodes), $M-S^2CAG$ achieved a 2.2% accuracy improvement over the previous best method.

The efficiency gains are even more pronounced. As shown in Figure 1, the proposed methods are orders of magnitude faster than existing baselines. For instance, on the CiteSeer dataset, $S^2CAG$ achieved a 183x speedup compared to DCRN. On the large-scale DBLP graph (2.5 million edges), the algorithms completed in approximately 7 seconds, whereas many competitors either failed due to memory constraints or required significantly more time.

Clustering efficiency (time in seconds) across various datasets, demonstrating the significant speed advantage of S2CAG and M-S2CAG.

Sensitivity and Limitations

While the SCAG framework is robust, it is not without limitations. The $M-S^2CAG$ variant introduces a hyperparameter $\gamma$ to weight the modularity term. As illustrated in Figure 4, the clustering accuracy can be sensitive to this parameter, typically peaking at a specific value (e.g., $\gamma=1.0$). Currently, identifying the optimal $\gamma$ requires empirical grid searching.

Impact of varying the modularity weight parameter gamma on clustering accuracy (ACC) for M-S2CAG.

Furthermore, the current framework is designed for static graphs and produces disjoint (hard) clusters. Future research directions include extending these linear-time optimizations to dynamic graph environments and adapting the model for overlapping community detection.

Summary updated

BibTeX
@inproceedings{lin2024spectral,
  author = {Xiaoyang Lin and Renchi Yang and Haoran Zheng and Xiangyu Ke},
  title = {{Spectral Subspace Clustering for Attributed Graphs}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure