Local hypergraph clustering using capacity releasing diffusion

Rania Ibrahim, David F. Gleich

Abstract

Local graph clustering is an important machine learning task that aims to find a well-connected cluster near a set of seed nodes. Recent results have revealed that incorporating higher order information significantly enhances the results of graph clustering techniques. The majority of existing research in this area focuses on spectral graph theory-based techniques. However, an alternative perspective on local graph clustering arises from using max-flow and min-cut on the objectives, which offer distinctly different guarantees. For instance, a new method called capacity releasing diffusion (CRD) was recently proposed and shown to preserve local structure around the seeds better than spectral methods. The method was also the first local clustering technique that is not subject to the quadratic Cheeger inequality by assuming a good cluster near the seed nodes. In this paper, we propose a local hypergraph clustering technique called hypergraph CRD (HG-CRD) by extending the CRD process to cluster based on higher order patterns, encoded as hyperedges of a hypergraph. Moreover, we theoretically show that HG-CRD gives results about a quantity called motif conductance, rather than a biased version used in previous experiments. Experimental results on synthetic datasets and real world graphs show that HG-CRD enhances the clustering quality.

Introduction

In network analysis, local clustering is the task of finding a well-connected group of nodes around a specific "seed" node without exploring the entire graph. Traditional methods usually treat networks as collections of pairwise edges. However, real-world relationships are often more complex—think of a metabolic reaction involving three chemicals or a research paper with five authors. These are "higher-order" patterns, or motifs.

While researchers have used hypergraphs to model these patterns, most existing tools rely on spectral methods (based on eigenvalues and random walks). These spectral methods suffer from two main drawbacks:

  1. The Quadratic Cheeger Inequality: Theoretically, the quality of the cluster found by spectral methods can be quadratically worse than the best possible cluster.
  2. Global Leakage: Random walks tend to "leak" out of the local neighborhood, exploring far more of the graph than necessary.

Methods: Hypergraph Capacity Releasing Diffusion (HG-CRD)

The authors propose HG-CRD, a flow-based hybrid algorithm that builds on the recently developed Capacity Releasing Diffusion (CRD) framework. Instead of a random walk, HG-CRD uses a push-relabel flow strategy. Imagine "pouring" a fluid (flow) into a seed node. Each node has a limited capacity. When a node is full, it pushes the excess flow to its neighbors. In HG-CRD, this flow is pushed across hyperedges (groups of nodes) rather than single edges.

Illustration of a motif (left) and the difference between standard CRD and HG-CRD clustering (right).

Key technical nuances include:

  • Eligible Hyperedges: Flow is only pushed through a hyperedge if a certain number of its nodes (defined by a parameter $\alpha$) are at a lower "level" than the sender.
  • Bottleneck Detection: If the flow gets stuck (a bottleneck), the algorithm identifies the nodes behind that bottleneck as the cluster.
  • True Motif Conductance: Unlike previous methods that approximate hypergraph properties by converting them back into weighted graphs (clique expansion), HG-CRD operates on the hyperedges directly, providing guarantees based on the true motif conductance.

Experimental Evaluation

The authors evaluated HG-CRD using a mix of synthetic and massive real-world datasets, including LFR benchmark graphs, DBLP (co-authorship), Amazon (product co-purchasing), YouTube (social network), and large hypergraphs from Math Overflow and Stack Overflow.

Key Results

  • Synthetic Performance: On LFR datasets, HG-CRD achieved significantly lower motif conductance and higher F1-scores as the "mixing parameter" (the noise in the graph) increased.
  • Real-World Accuracy: On the YouTube dataset, HG-CRD improved precision by roughly 10% compared to MAPPR.
  • Directed Motifs: In the Email-EU network, HG-CRD was able to distinguish between different types of directed motifs (like cycles vs. feed-forward loops), outperforming both standard CRD and spectral approaches in F1-score.
  • Large-Scale Utility: In the Math Overflow experiment, HG-CRD achieved the best F1-measure among all tested baselines without needing to know the true cluster size in advance.

Discussion and Insights

The most significant theoretical contribution is proving that HG-CRD is not subject to the quadratic Cheeger inequality. If a "good" cluster exists near the seed, HG-CRD is guaranteed to find a cluster with conductance $O(k\phi)$, where $k$ is the motif size and $\phi$ is the target conductance. This is a much tighter bound than spectral methods provide.

Furthermore, because it uses flow and capacities rather than random walks, HG-CRD explores a "vastly smaller region" of the graph. This makes it more efficient and less likely to be distracted by "noisy" connections outside the target community. HG-CRD consistently shows higher precision than spectral methods, ensuring the nodes it returns actually belong to the cluster.

Limitations

While HG-CRD is faster than some spectral methods in "hard-to-recover" scenarios, it is generally slower than the original edge-based CRD due to the complexity of managing hyperedge flows. The algorithm also requires storing hyperedges, which can be memory-intensive. Future work may involve "lazy expansion" to generate hyperedges on the fly and further parameter optimization.

Reference: Ibrahim R, Gleich DF (2020) Local hypergraph clustering using capacity releasing diffusion. PLoS ONE 15(12): e0243485. https://doi.org/10.1371/journal.pone.0243485

Summary updated

BibTeX
@inproceedings{ibrahim2020local,
  author = {Rania Ibrahim and David F. Gleich},
  title = {{Local hypergraph clustering using capacity releasing diffusion}},
  booktitle = {PLoS},
  year = {2020},
  doi = {10.1371/journal.pone.0243485},
}
Figure