A versatile framework for attributed network clustering via K-nearest neighbor augmentation

Yiran Li, Gongyao Guo, Jieming Shi, Renchi Yang, Shiqi Shen, Qing Li, Jun Luo

Abstract

Clustering attributed networks—where nodes possess both topological connections and feature-based attributes—is a fundamental task in graph mining. This paper introduces ANCKA, a versatile and highly efficient framework designed to handle a wide range of network types, from simple graphs to complex hypergraphs and multi-layer multiplex graphs. By combining a controllable K-Nearest Neighbor (KNN) attribute augmentation strategy with a joint random walk model and GPU acceleration, ANCKA achieves state-of-the-art clustering quality. Experimental results on million-scale datasets demonstrate that ANCKA is orders of magnitude faster than existing methods while maintaining superior accuracy.

Introduction

Real-world networks are rarely defined by connections alone; nodes often carry specific features, such as user profiles in social networks or keywords in research papers. The primary challenge in clustering these attributed networks lies in effectively fusing two distinct signals: topology (who is connected to whom) and attributes (who is similar based on features).

Illustration of an attributed network where node features and topological edges are integrated to define clusters.

Existing solutions frequently suffer from two major drawbacks: they are often specialized for a single network type or they possess high computational complexity ($O(n^2)$), making them impractical for massive datasets like Amazon's product graph or the Microsoft Academic Graph.

Methodology

ANCKA addresses these challenges through a three-pronged approach:

  1. KNN Augmentation: Rather than calculating similarity between every node pair, ANCKA builds a sparse KNN graph based on attribute similarity. This augmented structure highlights both physical and feature-based closeness while remaining computationally efficient.
  2. Joint Random Walk ($(\alpha, \beta, \gamma)$-walk): The framework employs a unified random walk model capable of traversing both original edges and new KNN attribute edges. This allows the algorithm to capture "multi-hop" relationships, identifying clusters where nodes share common neighborhoods of attributes and structure even if they are not directly connected.
  3. Efficient Optimization (ANCKA-GPU): The clustering problem is formulated as a matrix trace maximization problem solved via iterative orthogonal iteration. To bypass CPU bottlenecks, the authors developed custom CUDA kernels for heavy-duty matrix operations and KNN construction.
The iterative workflow of the ANCKA framework, illustrating the cycle from initialization to termination via orthogonal iteration and MHC evaluation.

Experimental Setup

The framework was evaluated against 17 real-world datasets across three categories:

  • Attributed Hypergraphs (AHC): Including Cora-CA, DBLP, and the 2.3M-node MAG-PM.
  • Attributed Graphs (AGC): Including Wiki, TWeibo (2.3M nodes), and Amazon2M (2.4M nodes).
  • Attributed Multiplex Graphs (AMGC): Including ACM, IMDB, and DBLP-MG.

Key Results and Discussion

ANCKA consistently outperformed dozens of competitors across metrics such as Accuracy, F1-score, and NMI. Key insights from the study include:

  • The Power of Sparsity: Restricting the attribute signal to a sparse KNN graph actually improves performance by filtering out the "noise" of distant, irrelevant nodes.
  • Unified Mathematical Framework: By generalizing the random walk transition matrix, the authors demonstrate that hypergraphs, simple graphs, and multiplex graphs can be treated under a single mathematical umbrella.
  • Scalability and Speed: On the Amazon dataset (2.27M nodes), ANCKA achieved a 10x speedup and a 4.8% accuracy improvement over the previous state-of-the-art. The GPU-accelerated version showed speedup ratios of up to 70x compared to 16-thread CPU implementations.

Conclusion

ANCKA represents a significant step forward in scalable attributed network clustering. While currently optimized for static networks, future work will focus on extending the framework to dynamic, evolving networks and implementing distributed KNN construction to handle "billion-scale" datasets. Additionally, exploring automated layer weighting for multiplex graphs could further refine clustering precision.

Summary updated

BibTeX
@inproceedings{li2024versatile,
  author = {Yiran Li and Gongyao Guo and Jieming Shi and Renchi Yang and Shiqi Shen and Qing Li and Jun Luo},
  title = {{A versatile framework for attributed network clustering via K-nearest neighbor augmentation}},
  booktitle = {VLDB J},
  year = {2024},
  url = {https://openreview.net/forum?id=a8RWMFsJ8Q},
}
Figure