Structure-Enhanced Contrastive Learning for Graph Clustering

Xunlian Wu, Jingqi Hu, Anqi Zhang, Yining Quan, Qiguang Miao, Peng Gang Sun

TL;DR

SECL is a novel graph clustering framework that eliminates the need for manual, error-prone data augmentation by leveraging a graph's inherent structural properties. By combining cross-view contrastive learning with modularity maximization, it captures both local node features and "mesoscopic" community structures, setting a new state-of-the-art performance across multiple benchmarks.

What Problem Does This Paper Address?

Graph clustering—the task of partitioning nodes into groups with dense internal connections—is a cornerstone of network analysis. Recently, Contrastive Learning (CL) has become the go-to approach. However, standard CL methods suffer from two major bottlenecks:

  1. Over-reliance on Data Augmentation: Most methods create "views" of a graph by randomly dropping edges or perturbing attributes. If these changes are too aggressive, they cause "semantic drift," where the learned representations no longer accurately reflect the original data.
  2. Ignoring Community Structure: Many models focus on local node-to-node similarities but overlook the "mesoscopic" level—the intermediate organization where nodes form distinct communities.

The authors propose Structure-enhanced Contrastive Learning (SECL) to move away from "trial-and-error" augmentations and explicitly bake community-oriented information into the learning process.

Methods

SECL consists of three primary modules designed to work in synergy:

  • Dual Encoders (Structure & Attribute): Instead of augmenting the graph, SECL creates two distinct views from the raw data. One Multi-Layer Perceptron (MLP) encodes the raw adjacency matrix (structure), while another encodes the attribute matrix after it has been processed by a Laplacian filter to smooth out high-frequency noise.
  • Cross-view & Structural Contrastive Modules: The model uses a contrastive loss to "pull" the embeddings of the same node from both views together while "pushing" different nodes apart. Crucially, it includes a structural consistency loss that aligns the cross-view similarity matrix with the actual graph adjacency matrix, ensuring the model respects the network's physical topology.
  • Modularity Maximization Module: This is the "secret sauce." The authors integrate a loss function based on modularity—a classic metric from network science that measures the strength of community division. This forces the embeddings to reflect the global community structure of the graph, not just local neighbor similarities.

Datasets

The authors evaluated SECL on six diverse real-world datasets:

  • Citation Networks: CORA and CITESEER (papers as nodes, citations as edges).
  • Purchase Graphs: AMAP (Amazon products as nodes, joint purchases as edges).
  • Air Traffic Networks: BAT, EAT, and UAT (airports as nodes, passenger movements as edges).

Key Insights and Ideas

  • Augmentation-Free Learning: By using the inherent duality of graph data (structure vs. attributes) as the two "views" for contrastive learning, SECL avoids the noise and semantic drift introduced by random edge-dropping or feature-masking.
  • Bridging the Mesoscopic Gap: Most deep clustering methods are great at local features but blind to global topology. By incorporating modularity maximization, SECL bridges the gap between local node connections and the global organization of the entire graph.
  • Synergy of Losses: The ablation studies reveal that the modularity loss and the structural contrastive loss are mutually reinforcing. Removing either leads to a significant drop in Accuracy (ACC) and Normalized Mutual Information (NMI).

Key Results

SECL consistently outperformed 12 state-of-the-art baselines (including GAE, DAEGC, and SCGC) across all six datasets.

  • Performance Gains: On the CORA dataset, SECL improved Accuracy by approximately 60.84% over the classic DEC method and 6.19% over the strong DAEGC baseline.
  • Robustness: The model showed superior performance in Adjusted Rand Index (ARI) and F1-score, indicating that the clusters found are both highly accurate and stable.
  • Visualization: t-SNE visualizations (Figure 6 in the paper) show that SECL produces much tighter, more distinct clusters with greater inter-cluster distances compared to other deep learning methods.

Limitations and Future Work

While SECL is highly effective, the authors note a few areas for growth:

  • Computational Cost: There is a "marginal increase" in computational overhead compared to the simplest baselines due to the complexity of calculating modularity and cross-view similarities.
  • Scalability: The current approach is tested on medium-sized benchmarks; the authors aim to extend the framework to handle large-scale and dynamic (time-varying) graphs in future research.
  • Hyper-parameter Sensitivity: The model relies on trade-off parameters ($\lambda_1, \lambda_2$) to balance the different loss functions, which may require tuning for specific new domains.

Summary updated

BibTeX
@article{wu2026structure,
  author = {Xunlian Wu and Jingqi Hu and Anqi Zhang and Yining Quan and Qiguang Miao and Peng Gang Sun},
  title = {{Structure-Enhanced Contrastive Learning for Graph Clustering}},
  journal = {IEEE Trans. Network Science \& Engineering},
  year = {2026},
  doi = {10.1109/tnse.2025.3595737},
}
Figure