Simple Contrastive Graph Clustering

Yue Liu, Xihong Yang, Sihang Zhou, Xinwang Liu

TL;DR

Deep graph clustering methods are notoriously slow and memory-heavy due to complex graph convolutions and augmentations. This paper introduces Simple Contrastive Graph Clustering (SCGC), a streamlined framework that decouples graph structure aggregation into a pre-processing step and uses simple MLPs with latent-space perturbations to achieve state-of-the-art accuracy with a 7x speedup and 59% less GPU memory.

What Problem Does This Paper Address?

Deep graph clustering combines graph neural networks (GNNs) with unsupervised learning to divide nodes into disjoint groups based on both their attributes and topological structures. While contrastive learning has recently boosted performance in this domain, existing state-of-the-art methods suffer from severe efficiency bottlenecks:

  1. Entangled Operations: Standard Graph Convolutional Networks (GCNs) entangle feature transformation and neighborhood aggregation during every training epoch, leading to high computational and time costs.
  2. Complex Augmentations: Existing contrastive methods rely on complicated graph-level data augmentations (like graph diffusion or randomly adding/dropping edges). These are not only time-consuming but can also introduce "semantic drift," inadvertently altering the graph's underlying meaning.
  3. Pre-training Dependency: Many traditional deep clustering methods rely on cluster-guided loss functions that require tedious manual trial-and-error pre-training to find good initial cluster centers.

The authors set out to design a method that strips away this complexity without sacrificing clustering accuracy.

Methods

SCGC re-engineers the contrastive graph clustering pipeline from three perspectives: network architecture, data augmentation, and the objective function.

+---------------------------+     +-----------------------------------------+
|  Low-pass Denoising       |     |  Structural Contrastive Module (SCM)    |
|  (Pre-processing)         |     |  (Training)                             |
|                           |     |                                         |
|  Raw Attributes (X)       |     |       +--> MLP_1 --> View 1 (Z^v1) --+  |
|          |                |     |       |                              |  |
|  Stacked Laplacian Filter | --> |  X_s -+                              |  | --> Neighbor-oriented Loss
|          v                |     |       |                              |  |
|  Smoothed Attributes (X_s)|     |       +--> MLP_2 --> View 2 (Z^v2) --+  |
+---------------------------+     +-----------------------------------------+
  1. Low-pass Denoising (Pre-processing): Instead of performing graph convolutions during training, SCGC applies stacked graph Laplacian filters ($H = I - \tilde{L}$) as a one-time pre-processing step. This filters out high-frequency noise and aggregates neighbor information before the network trains.
  2. Siamese MLP Backbone: Because neighborhood aggregation is handled in pre-processing, the training backbone is simplified into two parallel Multi-Layer Perceptrons (MLPs) with parameter un-shared weights ($MLP_1$ and $MLP_2$).
  3. Latent Space Data Augmentation: Rather than manipulating the graph topology, SCGC constructs two distinct views of the same node purely in the embedding space. It passes the smoothed features through the un-shared MLPs and adds random Gaussian noise directly to the embeddings of the second view ($Z^{v2}$).
  4. Neighbor-Oriented Contrastive Loss: The authors design a novel objective function that forces the cross-view sample similarity matrix ($S$) to approximate the self-looped adjacency matrix ($\hat{A}$). This pulls topological neighbors together across different views while pushing non-neighbors apart.
Figure 1: Illustration of the Simple Contrastive Graph Clustering (SCGC) algorithm. In our proposed algorithm, we firstly pre- process the node attributes by the low-pass denoising operation. Then, the structural contrastive module encodes the smoothed node attributes with merely two MLPs, and constructs augmented views of node embeddings by designing parameter un-shared siamese encoders and perturbing the node embeddings. Moreover, a novel neighbor-oriented contrastive loss is designed to keep the cross-view structural consistency, thus improving the discriminative capability of the network.

After training, the embeddings from both views are linearly fused ($Z = \frac{1}{2}(Z^{v1} + Z^{v2})$), and a standard K-means algorithm is applied to get the final clustering results.

Datasets

The proposed model was evaluated on seven widely recognized benchmark datasets:

  • Citation Networks: CORA, CITESEER, and CORAFULL
  • Air-Traffic Networks: Brazil Air-Traffic (BAT), Europe Air-Traffic (EAT), and USA Air-Traffic (UAT)
  • Co-purchase Network: Amazon Photo (AMAP)

No new datasets or benchmarks were introduced in this work.

Key Insights and Ideas

  • Decoupling is Key: Neighborhood aggregation does not need to happen dynamically during neural network execution. Doing it once via a low-pass filter pre-processing step preserves structural information while drastically simplifying the training pipeline.
  • Graph Manipulation is Overkill: Complex topological augmentations (like edge dropping) can harm performance by disrupting the true graph semantics. Perturbing the latent embeddings via un-shared weights and Gaussian noise is a cleaner, more effective alternative.
  • Structure as a Contrastive Target: By aligning cross-view sample similarity directly with the adjacency matrix, the network inherently learns to preserve local structures without needing explicit cluster-center supervision or pre-training.

Key Results

The simplified architecture achieved remarkable empirical success across all seven datasets, evaluated on four metrics: Accuracy (ACC), Normalized Mutual Information (NMI), Adjusted Rand Index (ARI), and F1-score.

  • Superior Performance: SCGC consistently outperformed 13 baseline methods (including advanced contrastive models like MVGRL and SCAGC). For example, on the BAT dataset, SCGC exceeded the runner-up by over 10% in accuracy.
  • Massive Speedup: SCGC achieved at least a 7x speedup on average compared to recent contrastive deep clustering competitors due to its lightweight MLP architecture and pre-processed filtering.
  • Memory Efficiency: The method saved roughly 59% GPU memory on average compared to other contrastive methods, allowing it to run easily on standard hardware where other methods hit Out-Of-Memory (OOM) limits (e.g., MCGC on the AMAP dataset).
Figure 2: GPU memory costs of six methods on four datasets.

Limitations and Future Work

While SCGC demonstrates exceptional efficiency and eliminates the need for tedious pre-training, the authors note that scaling deep graph clustering methods to handle truly massive, large-scale graph data remains an open challenge. Future work will focus on adapting these simplified contrastive strategies to web-scale or industrial-scale graph systems.

Summary updated

BibTeX
@article{liu2022simple,
  author = {Yue Liu and Xihong Yang and Sihang Zhou and Xinwang Liu},
  title = {{Simple Contrastive Graph Clustering}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
}
Figure