TL;DR
This paper introduces NS4GC, a novel contrastive graph clustering framework that explicitly learns a reliable node similarity matrix to guide representation learning. By incorporating node-neighbor alignment and semantic-aware sparsification, NS4GC effectively captures underlying semantic relationships, leading to state-of-the-art clustering performance on various benchmark datasets.
What Problem Does This Paper Address?
Graph clustering aims to partition nodes in a graph into distinct groups, a task crucial for many applications like social network analysis and recommender systems. Deep graph clustering methods, particularly those using contrastive learning, have shown promise by learning node representations that are invariant to graph augmentations. However, a key limitation of existing contrastive methods is their inadequate handling of node-wise similarity. Some methods implicitly assume a trivial node similarity matrix (e.g., an identity matrix), while others lack explicit constraints, leading to either overly sparse or overly dense similarity matrices. This paper argues that an ideal node similarity matrix should accurately reflect semantic relationships between nodes, and proposes a method to learn such a matrix to guide representation learning for better clustering.
Methods
The proposed framework, NS4GC, consists of three main components:
- Graph Augmentation Generator: Similar to existing contrastive learning methods, NS4GC uses random augmentations like feature masking and edge dropping to create two distinct views of the input graph.
- Shared GNN Encoder: A Graph Convolutional Network (GCN) is used as a shared encoder to extract node representations from these augmented views.
- Novel Objective Function: This is the core of NS4GC. It aims to learn an approximately ideal node similarity matrix by combining three loss terms:
- Self-Alignment Loss ($L_{ali}$): Encourages consistency between representations of the same node across different views, aiming to align diagonal elements of the cross-view similarity matrix to 1.
- Node-Neighbor Alignment Loss ($L_{nei}$): Leverages the homophily assumption (connected nodes tend to be similar) to align representations of neighboring nodes, pushing their similarity towards 1.
- Semantic-Aware Sparsification Loss ($L_{spa}$): This is a novel component that adaptively sparsifies the node similarity matrix. It uses a differentiable sigmoid function to estimate a binary node similarity matrix, penalizing non-diagonal entries based on their similarity score relative to a split point 's'. This ensures that only pairs with high semantic similarity are retained, creating a sparse yet informative similarity matrix.
Datasets
The paper evaluates NS4GC on eight real-world datasets:
- Citation Networks: Cora, Citeseer, Pubmed, CoraFull
- Reference Network: WikiCS
- Co-purchase Networks: Photo, Computer
- Co-authorship Network: CoauthorCS
Key Insights and Ideas
- The Node Similarity Matrix is Key: The paper strongly emphasizes that the quality of the node similarity matrix within the representation space is paramount for effective graph clustering.
- Existing Methods are Extremes: Contrastive methods either assume a trivial (identity) similarity matrix or lack explicit structure, leading to suboptimal representations.
- Homophily as a Guiding Principle: The homophily property of graphs (connected nodes are often similar) is a valuable prior that can be leveraged for learning better node representations.
- Semantic-Aware Sparsification: The novel $L_{spa}$ loss is crucial for creating a reliable and sparse node similarity matrix, avoiding the pitfalls of overly dense or sparse matrices. It adaptively decides which non-neighboring node pairs should be considered similar.
- Balancing Alignment and Sparsity: The framework effectively balances aligning similar nodes (self-alignment, node-neighbor alignment) with enforcing sparsity on dissimilar nodes (semantic-aware sparsification).
Key Results
- State-of-the-Art Performance: NS4GC consistently outperforms 15 baseline methods across all four evaluation metrics (NMI, ARI, ACC, F1) on the eight benchmark datasets. For instance, on CoauthorCS, it improves performance by up to 9.88% in ARI.
- Learned Similarity Matrix: Visualizations and quantitative comparisons show that the node similarity matrix learned by NS4GC is significantly closer to the ideal node similarity matrix compared to GRACE and CCASSG.
- Ablation Studies: Removing any of the three loss components ($L_{ali}$, $L_{nei}$, $L_{spa}$) leads to a performance drop, highlighting the importance of each component. Specifically, the semantic-aware sparsification term significantly improves performance by preventing representation collapse.
- Robustness to Hyperparameters: NS4GC demonstrates robustness to variations in hyperparameters like the split value 's', temperature 'τ', and trade-off weights 'λ' and 'γ', with recommended values generally performing well across datasets.
Limitations and Future Work
- Homophily Assumption: The paper acknowledges that NS4GC's reliance on node-neighbor alignment makes it most suitable for homophilous graphs. Its performance on non-homophilous graphs might be limited.
- Future Work: The authors suggest exploring NS4GC's applicability to non-homophilous graphs and investigating more advanced augmentation strategies.
Summary updated