TL;DR
Graph Neural Networks (GNNs) excel at many tasks but struggle with unsupervised graph clustering. This paper introduces Deep Modularity Networks (DMoN), a novel GNN pooling method that effectively captures cluster structures in attributed graphs, achieving state-of-the-art results and significantly outperforming existing methods.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have revolutionized graph-based machine learning, achieving top performance in tasks like node classification and link prediction. However, a key unsupervised task, graph clustering, has remained a challenge for GNNs. While GNNs often employ "pooling" mechanisms to aggregate information and learn representations, these mechanisms don't inherently translate to good clustering performance. In fact, the paper highlights that current GNN pooling methods often fail to recover cluster structures, even when simpler methods like k-means on learned representations succeed. This gap exists despite the fact that graph clustering is a valuable goal in itself for tasks like data exploration and understanding complex network structures. The paper aims to bridge this gap by developing a GNN-based approach specifically designed for unsupervised graph clustering, leveraging both graph structure and node attributes.
Methods
The core contribution is Deep Modularity Networks (DMoN), an unsupervised graph clustering method built upon GNNs. DMoN tackles the problem by:
- Architecture for Cluster Assignment: DMoN uses a GNN (specifically, a modified GCN) to learn node embeddings. The output of this GNN is then passed through a softmax function to produce soft cluster assignments for each node. This soft assignment is crucial for enabling end-to-end differentiability.
- Objective Function: The primary objective function is inspired by the modularity metric, a well-established measure of cluster quality. This objective is formulated to be differentiable and incorporates a "null model" to account for graph inhomogeneities.
- Collapse Regularization: To prevent trivial solutions (e.g., all nodes assigned to a single cluster), DMoN introduces a novel "collapse regularization" term. This is a relaxed constraint compared to strict orthogonality, aiming to discourage unbalanced cluster assignments without hindering the optimization of the main modularity objective.
- End-to-End Training: The entire process, from learning node embeddings to optimizing cluster assignments, is designed to be end-to-end differentiable, allowing for seamless training.
Datasets
The paper evaluates DMoN on a variety of datasets:
- Synthetic Data: An attributed, degree-corrected stochastic block model (ADC-SBM) is used to generate synthetic graphs. This model allows for controlled manipulation of graph structure (cluster mixing signal, degree distribution) and node features (feature cluster variance, nesting, grouping) to test the robustness of DMoN and baselines under different signal-to-noise scenarios.
- Real-World Data:
- Citation Networks: Cora, Citeseer, and PubMed.
- Co-purchase Networks: Amazon PC and Amazon Photo.
- Co-authorship Networks: Coauthor CS, Coauthor Phys, Coauthor Med, Coauthor Chem, and Coauthor Eng.
- Paper Co-citation Network: OGB-arXiv.
Key Insights and Ideas
- GNN Pooling ≠ Graph Clustering: A significant finding is that standard GNN pooling mechanisms, often designed as regularizers for supervised tasks, do not inherently perform well for unsupervised graph clustering. This highlights a specific challenge in adapting GNNs for unsupervised objectives.
- Modularity as a Differentiable Objective: Adapting the well-established modularity metric into a differentiable objective function for GNNs is a key innovation. This allows for leveraging the strengths of modularity while benefiting from deep learning optimization.
- The Need for Relaxed Regularization: Strict orthogonality constraints, as seen in some prior work, can be overly restrictive for soft cluster assignments, leading to poor performance. DMoN's "collapse regularization" offers a more flexible approach that effectively prevents trivial solutions without dominating the optimization.
- Leveraging Both Graph and Attributes: DMoN demonstrates a strong ability to effectively integrate information from both the graph structure and node attributes, leading to superior clustering performance compared to methods that rely on only one.
Key Results
- State-of-the-Art Performance: DMoN consistently achieves state-of-the-art results across multiple metrics (conductance, modularity, NMI) on both synthetic and real-world datasets.
- Significant Improvement: DMoN shows over 40% improvement compared to other pooling methods on real-world data.
- Robustness to Noise: On synthetic data, DMoN demonstrates superior robustness to varying levels of graph cluster mixing signal and feature noise compared to baselines like MinCutPool and DiffPool.
- Effective Feature Utilization: Even when the graph structure is weak (close to random), DMoN can still achieve strong clustering by effectively leveraging feature information.
- Scalability: DMoN is designed to work efficiently with sparse graphs, with a computational complexity that scales well.
Limitations and Future Work
- Hyperparameter Tuning: While the paper aims to keep hyperparameters constant for unbiased comparison, tuning hyperparameters for unsupervised methods remains a challenge.
- Dropout Setting: The dropout setting used in DMoN does not benefit all baselines, making a unified parameter setting across all methods difficult.
- Future Work: The paper suggests that this work will further advancements in unsupervised learning for GNNs and attributed graph clustering, implying potential for further research in refining these methods and exploring new applications. The theoretical analysis of consistency under the DC-SBM model also opens avenues for further theoretical exploration.
Summary updated