Graph Clustering with Graph Neural Networks

Anton Tsitsulin, John Palowitch, Bryan Perozzi, Emmanuel Müller

TL;DR

Deep Modularity Networks (DMoN) is a novel unsupervised pooling method that enables Graph Neural Networks (GNNs) to excel at graph clustering. By optimizing a differentiable version of the modularity quality function paired with a clever "collapse regularization," DMoN outperforms existing pooling methods by over 40% on real-world datasets.

What Problem Does This Paper Address?

While GNNs have revolutionized supervised tasks like node classification, they have surprisingly struggled with unsupervised graph clustering—the process of grouping nodes into communities with high internal density and low external density.

The authors point out a paradox: GNNs frequently use "pooling" layers to coarsen graphs, which is conceptually identical to clustering. However, existing pooling methods (like DiffPool or MinCutPool) often fail to recover basic cluster structures that even simple k-means on learned embeddings can find. The challenges are twofold:

  1. Optimization Traps: Unsupervised objectives often have trivial local minima (e.g., putting all nodes into one cluster).
  2. Scalability: Many methods rely on quadratic $O(n^2)$ operations, making them unusable for large, sparse real-world graphs.

Methods

The authors introduce Deep Modularity Networks (DMoN), which bridges the gap between traditional graph theory and deep learning.

1. Differentiable Modularity

DMoN optimizes for modularity, a classic metric that compares the actual edge density within clusters to the expected density under a random "null model." The authors formulate a fully differentiable version of this objective, allowing a GCN to learn cluster assignments ($C$) directly: $$C = \text{softmax}(GCN(\tilde{A}, X))$$

2. Collapse Regularization

To prevent the model from falling into the trivial solution where all nodes belong to one cluster, the authors introduce collapse regularization. Unlike the harsh orthogonality constraints used in prior work (like MinCutPool), this regularizer uses the Frobenius norm of cluster membership counts. It encourages balanced cluster sizes without suffocating the primary modularity objective.

Optimization progress of MinCut and DMoN. DMoN's objective improves steadily, while MinCut's harsh constraints can trap the model.

3. Efficiency

By decomposing the modularity matrix into sparse components and rank-one updates, DMoN achieves a time complexity of $O(d^2n + m)$, where $n$ is nodes, $m$ is edges, and $d$ is the embedding dimension. This makes it highly scalable for sparse graphs.

Datasets

The paper evaluates DMoN across a massive suite of benchmarks:

  • 11 Real-World Datasets: Including citation networks (Cora, Citeseer, Pubmed), co-purchase graphs (Amazon PC, Photo), and large-scale co-authorship networks (Coauthor CS, Phys, etc.), as well as the OGB-arXiv dataset.
  • Synthetic ADC-SBM: An Attributed, Degree-Corrected Stochastic Block Model used to test how models handle varying levels of noise in both graph structure and node attributes.

Key Insights and Ideas

  • The Pooling Paradox: The authors prove that standard GNN pooling methods are not inherently good clustering algorithms. They often ignore the "null model" of the graph, leading to clusters that don't represent true community structure.
  • Soft Assignments vs. Hard Constraints: Figure 1 illustrates that MinCutPool's orthogonality constraint can be too restrictive when combined with softmax assignments, causing the clustering term to actually worsen during training. DMoN’s more relaxed collapse regularization avoids this pitfall.
  • Joint Information Leverage: DMoN effectively fuses topology and attributes. In synthetic tests, it maintains high performance even when the graph structure is near-random, provided the node features contain a signal—a feat many baselines cannot match.
  • Theoretical Consistency: The authors provide theoretical proofs showing that DMoN is "consistent" under the Stochastic Block Model, meaning it is mathematically guaranteed to recover the true clusters as the graph grows larger.

Key Results

  • State-of-the-Art Performance: DMoN achieves a 40% average improvement over other neural pooling methods across metrics like Normalized Mutual Information (NMI) and Conductance.
  • Scalability: Unlike DiffPool, which fails on large graphs due to memory constraints, DMoN scales easily to the OGB-arXiv dataset (~170k nodes).
  • Robustness: In synthetic scenarios (Table 3), DMoN proved significantly more resilient to "extreme" power-law degree distributions and noisy features than its competitors.
Table 1: Related work in terms of six desirable clustering properties outlined in Section 2.

Limitations and Future Work

  • Non-Overlapping Clusters: DMoN is designed for disjoint partitions. Extending it to handle nodes that belong to multiple communities (overlapping clusters) is a noted area for future research.
  • Transductive Nature: The current implementation is primarily transductive, meaning it clusters a fixed graph. Adapting the framework for inductive settings (clustering unseen nodes) would be a valuable next step.
  • Hyperparameter Sensitivity: While DMoN is more stable than others, unsupervised learning always carries the challenge of model selection without ground truth labels.

Summary updated

BibTeX
@article{tsitsulin2023graph,
  author = {Anton Tsitsulin and John Palowitch and Bryan Perozzi and Emmanuel Müller},
  title = {{Graph Clustering with Graph Neural Networks}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=GvdE7kpnRG},
}
Figure