Masked AutoEncoder for Graph Clustering without Pre-defined Cluster Number k

Yuanchi Ma, Hui He, Zhongxiang Lei, Zhendong NiuarXiv 2024

Abstract

Graph clustering algorithms with autoencoder structures have recently gained popularity due to their efficient performance and low training cost. However, for existing graph autoencoder clustering algorithms based on GCN or GAT, not only do they lack good generalization ability, but also the number of clusters clustered by such autoencoder models is difficult to determine automatically. To solve this problem, we propose a new framework called Graph Clustering with Masked Autoencoders (GCMA). It employs our designed fusion autoencoder based on the graph masking method for the fusion coding of graph. It introduces our improved density-based clustering algorithm as a second decoder while decoding with multi-target reconstruction. By decoding the mask embedding, our model can capture more generalized and comprehensive knowledge. The number of clusters and clustering results can be output end-to-end while improving the generalization ability. As a nonparametric class method, extensive experiments demonstrate the superiority of GCMA over state-of-the-art baselines.

Introduction

In real-world scenarios, graph data rarely comes with labels or a pre-defined number of clusters ($k$). Most high-performance graph clustering algorithms are parametric, requiring users to guess $k$ accurately to avoid significant drops in clustering quality. Furthermore, existing Graph Autoencoders (GAEs) often suffer from "over-smoothing" or over-emphasizing local proximity at the expense of node features, leading to poor generalization. This paper introduces GCMA (Graph Clustering with Masked Autoencoders), a non-parametric framework designed to automatically identify the optimal number of clusters while learning robust, generalized representations.

Methodology

The GCMA architecture integrates several innovative components to address the limitations of traditional GAEs:

  1. Masking Fusion Encoder: To prevent the model from simply memorizing the adjacency matrix, GCMA randomly masks both edges and node features. This forces the encoder to reconstruct missing information, leading to more robust embeddings. It utilizes a linear fusion mechanism to balance structural information from a Graph Neural Network (GNN) with attribute information from a standard Autoencoder (AE).
  2. Multi-Target Decoder: The model reconstructs multiple targets simultaneously using Mutual Information (MI) as a loss basis, ensuring that the learned embeddings capture essential information across different modalities.
  3. Improved CFSFDP Decoder: This is the core component for automatic $k$ determination. By modifying the "Clustering by Fast Search and Find of Density Peaks" (CFSFDP) algorithm with a Gaussian-based density threshold, the model identifies density peaks representing cluster centers end-to-end.
  4. Self-Optimizing Module: A self-supervised approach based on Student’s t-distribution is employed to minimize intra-cluster distances and sharpen cluster boundaries.
The GCMA framework architecture, illustrating the masking process, fusion encoder, and the density-based clustering decoder for automatic k determination.

Experimental Results

The researchers evaluated GCMA on five datasets, including citation networks (Cora, Citeseer, DBLP), large-scale graphs (ogbn-arxiv), and non-graph datasets (USPS, HHAR).

Automatic Cluster Identification

GCMA demonstrated remarkable consistency in identifying the correct number of clusters. On the Cora and Citeseer datasets, GCMA correctly identified $k=7$ and $k=6$ respectively in 10 out of 10 trials, significantly outperforming other non-parametric methods like DeepDPM.

Clustering Performance

GCMA achieved a state-of-the-art Clustering Accuracy (ACC) of 74.74% on the Cora dataset. As shown in the performance analysis, GCMA maintains high accuracy even as a non-parametric method, surpassing established parametric models like DFCN.

Clustering accuracy (ACC) comparison across different values of k, highlighting GCMA's peak performance at the optimal cluster count.

Conclusion

GCMA effectively solves the challenge of clustering graph data without prior knowledge of the cluster count. By combining masking-based regularization with an improved density-based decoder, it achieves superior generalization and accuracy. Future work may focus on reducing the computational complexity of density-based clustering for massive graphs and extending the framework to dynamic, time-varying graph structures.

Summary updated

BibTeX
@misc{ma2024masked,
  author = {Yuanchi Ma and Hui He and Zhongxiang Lei and Zhendong Niu},
  title = {{Masked AutoEncoder for Graph Clustering without Pre-defined Cluster Number k}},
  year = {2024},
  eprint = {2401.04741},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04741},
}
Figure