Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Community Detection with Modularity-Based Attention Model

Ivan Lobov, Sergey Ivanov|arXiv (Cornell University)|May 20, 2019
Advanced Graph Neural NetworksComputer Science22 references6 citations
TL;DR

This paper proposes a novel unsupervised community detection model that combines attention mechanisms with a differentiable soft modularity loss to optimize node clustering on graphs. By initializing with Bethe Hessian embeddings and training end-to-end on a single graph, the model achieves competitive performance—matching or exceeding both classical algorithms and supervised GNNs—particularly excelling in modularity and NMI metrics on both associative and disassociative SSBM regimes.

ABSTRACT

In this paper we take a problem of unsupervised nodes clustering on graphs and show how recent advances in attention models can be applied successfully in a "hard" regime of the problem. We propose an unsupervised algorithm that encodes Bethe Hessian embeddings by optimizing soft modularity loss and argue that our model is competitive to both classical and Graph Neural Network (GNN) models while it can be trained on a single graph.

Motivation & Objective

  • To develop a fully unsupervised community detection method that does not require labeled data or multiple graphs.
  • To integrate attention mechanisms with a differentiable soft modularity objective for end-to-end training on a single graph.
  • To evaluate the model’s performance against classical algorithms and state-of-the-art supervised GNNs in both associative and disassociative SSBM regimes.
  • To demonstrate that modularity-based loss with proper initialization enables strong performance without supervision.
  • To explore the trade-offs between computational efficiency, model capacity, and clustering accuracy in unsupervised settings.

Proposed method

  • The model uses Bethe Hessian embeddings as initial node representations, derived from the spectral properties of the non-backtracking operator.
  • An encoder-based Transformer architecture with multi-head self-attention processes these embeddings to produce soft cluster assignments for each node.
  • The loss function is a differentiable soft modularity objective: $ M = -\text{tr}(UBU^T)/||A||_1 $, where $ U $ is the node-to-community probability matrix and $ B = A - dd^T/||A||_1 $.
  • A regularization term $ R = \sum_c (\sum_i U_{ic} - 1/C)^2 $ encourages balanced community sizes.
  • For disassociative regimes (SNR ≤ 1), the loss is negated: $ L_d = -M + \lambda R $, to align with modularity’s sign convention.
  • The model is trained end-to-end using Adam optimizer with early stopping, and results are evaluated using modularity, NMI, and overlap metrics.

Experimental results

Research questions

  • RQ1Can a differentiable, attention-based model achieve competitive community detection performance without labeled data?
  • RQ2How does the choice of node embedding initialization (e.g., Bethe Hessian vs. random) affect clustering performance?
  • RQ3Does a modularity-based loss function enable effective unsupervised training on a single graph?
  • RQ4How does the proposed model compare to supervised GNNs (e.g., LGNN) and classical algorithms (e.g., Louvain, Bethe Hessian) in both associative and disassociative SSBM regimes?
  • RQ5Can the model generalize across different graph topologies and community structures without inductive bias from labels?

Key findings

  • The Attention-Beteh Hessian (Attention-BH) model achieved the highest modularity score of 0.51 on the associative dataset, outperforming all baselines including supervised LGNN (0.50).
  • On the disassociative dataset, the Attention-BH model achieved a modularity of -0.18, the closest to the optimal -0.20, and outperformed all other models in NMI (0.11) and overlap (0.22).
  • The model with Bethe Hessian initialization consistently outperformed random initialization across all metrics, demonstrating the importance of inductive bias in unsupervised learning.
  • The soft modularity loss function enabled effective training without labels, achieving competitive results even in the information-computation gap regime (SNR ≤ 1).
  • The model matched or surpassed classical baselines (e.g., Bethe Hessian, Louvain) in NMI and overlap, with the added benefit of differentiability and end-to-end optimization.
  • The ablation study confirmed that the combination of attention mechanism and modularity-based loss is key to performance, as models with random initialization or no attention underperformed significantly.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.