Latent structure blockmodels for Bayesian spectral graph clustering

Francesco Sanna Passino, Nicholas A. Heard

TL;DR

Standard network clustering methods assume that communities look like simple, spherical "blobs" when mapped into a latent space, but real-world networks often form complex, overlapping curves. This paper introduces Latent Structure Blockmodels (LSBMs), a Bayesian approach that uses Gaussian Processes to cluster nodes based on these community-specific curves, drastically improving clustering accuracy on complex biological and computer networks.

What Problem Does This Paper Address?

A common first step in analyzing a network (like a social network or a brain connectome) is spectral embedding—a mathematical trick that translates the graph's adjacency matrix into a set of points in a low-dimensional "latent" space. Once the nodes are plotted as points, researchers typically use standard clustering algorithms like $k$-means or Gaussian Mixture Models (GMMs) to find communities.

However, these standard algorithms implicitly assume the data was generated by a basic model like the Stochastic Blockmodel (SBM), which results in communities looking like distinct, spherical clusters. In reality, nodes in a community often share continuous underlying traits (like age, popularity, or physical location) that cause them to form 1D submanifolds—essentially, curves or trajectories—in the latent space. When communities form overlapping parabolas or cubic curves, standard clustering algorithms fail completely. The authors tackle the problem of how to accurately cluster graph nodes when their latent representations live on unknown, community-specific curves.

Methods

The authors propose the Latent Structure Blockmodel (LSBM). Instead of assuming communities are static points with noise, LSBM assumes each community is defined by a 1D curve in the latent space. Each node is assigned a position along its community's curve.

To make this work without knowing the exact mathematical shape of the curves beforehand, the authors use a Bayesian nonparametric approach:

  1. Spectral Embedding: They first embed the graph using Adjacency Spectral Embedding (ASE) or Directed ASE (DASE).
  2. Gaussian Processes (GPs): They place GP priors on the unknown functions that define the curves. This allows the model to flexibly learn lines, parabolas, cubic curves, or even complex splines.
  3. MCMC Inference: They use a Markov Chain Monte Carlo (MCMC) algorithm to simultaneously figure out which node belongs to which community, where it sits on the curve, and what the curve itself looks like.
  4. Unknown Cluster Count: The algorithm includes split/merge moves to automatically infer the optimal number of communities ($K$).

Datasets

The authors evaluated their model on synthetic data and three real-world networks:

  • Simulated Data: Graphs generated using SBMs, Degree-Corrected SBMs (DCSBMs), and complex curved models (Quadratic and Hardy-Weinberg models).
  • Harry Potter Enmity Graph: A 51-node undirected network of characters from the novels, connected if they are enemies.
  • Drosophila Connectome: A directed graph of 213 neurons in a fruit fly brain, categorized into four known biological types (e.g., Kenyon Cells).
  • Imperial College London (ICL) NetFlow: A bipartite computer network graph connecting 439 client machines to over 60,000 internet servers, with the goal of clustering the clients by their physical university department.

Key Insights and Ideas

  • Generalizing Graph Models: Traditional models like SBMs and DCSBMs are actually just special, restrictive cases of the LSBM. An SBM is an LSBM where the "curve" is just a single point; a DCSBM is an LSBM where the curve is a straight line passing through the origin.
  • Geometry Matters: Visualizing the latent space of real-world networks (like the ICL computer network) clearly shows nodes distributed along overlapping quadratic curves. Ignoring this geometry guarantees poor clustering.
  • Flexibility via Splines: By using regression splines with a truncated power basis within the GP framework, the model can accurately cluster nodes even when the researchers have absolutely no idea what the underlying parametric shape of the curve should be.

Key Results

The LSBM dramatically outperforms standard spectral clustering on networks with curved latent structures:

  • Drosophila Connectome: The Kenyon Cells in this brain network form a distinct quadratic/cubic curve, while other neurons form linear rays. By modeling this, LSBM achieved an Adjusted Rand Index (ARI) of 0.875 (only 10 misclassified nodes out of 213). Standard GMM clustering scored a dismal 0.599.
  • ICL NetFlow: Despite massive overlap between the four university departments in the latent space, the LSBM successfully untangled the overlapping parabolas, achieving an ARI of 0.940 (only 9 misclassified nodes out of 439). GMMs averaged an ARI of 0.766.
  • Harry Potter Graph: The model successfully split the network into two main linear factions (roughly Gryffindor vs. Slytherin/Voldemort's followers) and correctly inferred that $K=2$ was the optimal number of communities.

Limitations and Future Work

  • Variance Assumption: For mathematical tractability, the authors assumed that the variance (noise) around the curves depends only on the community a node belongs to. However, theoretical theorems for spectral embedding (the ASE-CLT) state that variance actually depends on the specific latent position of the node.
  • Future Work: The authors suggest that future research should develop efficient algorithms capable of estimating these parameters when the variance is explicitly modeled as a function of the node's position on the curve, which would make the model even more theoretically sound.

Summary updated

BibTeX
@article{passino2022latent,
  author = {Francesco Sanna Passino and Nicholas A. Heard},
  title = {{Latent structure blockmodels for Bayesian spectral graph clustering}},
  journal = {Stat. Comput.},
  year = {2022},
  doi = {10.1007/s11222-022-10082-6},
}
Figure