DIGRAC: Digraph Clustering Based on Flow Imbalance

Yixuan He, Gesine Reinert, Mihai Cucuringu

Abstract

Node clustering is a powerful tool in the analysis of networks. We introduce a graph neural network framework, named DIGRAC, to obtain node embeddings for directed networks in a self-supervised manner, including a novel probabilistic imbalance loss, which can be used for network clustering. Here, we propose directed flow imbalance measures, which are tightly related to directionality, to reveal clusters in the network even when there is no density difference between clusters. In contrast to standard approaches in the literature, in this paper, directionality is not treated as a nuisance, but rather contains the main signal. DIGRAC optimizes directed flow imbalance for clustering without requiring label supervision, unlike existing graph neural network methods, and can naturally incorporate node features, unlike existing spectral methods. Extensive experimental results on synthetic data, in the form of directed stochastic block models, and real-world data at different scales, demonstrate that our method, based on flow imbalance, attains state-of-the-art results on directed graph clustering when compared against 10 state-of-the-art methods from the literature, for a wide range of noise and sparsity levels, graph structures, and topologies, and even outperforms supervised methods.

Introduction

Most graph clustering algorithms rely on the principle of homophily, seeking groups of nodes with high internal edge density. However, in directed graphs (digraphs), structural significance often lies in the flow between clusters rather than just density. For instance, in a social network, a cluster of "influencers" might primarily send edges to a cluster of "followers" without a reciprocal density. Standard clustering methods often miss these patterns by symmetrizing the graph or treating directionality as secondary.

DIGRAC (Digraph Clustering) addresses this by treating directionality as the primary signal. It is a self-supervised Graph Neural Network (GNN) framework designed to uncover latent network structures—such as source-sink or core-periphery patterns—by maximizing "flow imbalance" between communities.

Methodology

The DIGRAC framework consists of two primary components:

  1. DIMPA (Directed Mixed Path Aggregation): This directed GNN aggregator generates node embeddings by separately processing "source" and "target" roles across multiple hops. This allows the model to capture the direction and distance of connections, distinguishing between nodes that primarily initiate flow and those that receive it.
  2. Probabilistic Imbalance Loss: This core innovation defines probabilistic versions of "cuts" (edges from cluster A to B) and "volumes" (total edges in a cluster). The loss function encourages partitions that maximize the normalized difference in flow between cluster pairs.
Overview of flow imbalance (a), meta-graph structures (c), and application to migration data (b, d).

The framework is end-to-end, learning embeddings and cluster assignments simultaneously. It offers three variants for optimizing cluster pairs: naive (all pairs), std (statistically significant imbalances), and sort (top imbalanced pairs).

Experimental Setup

The model was evaluated against 10 state-of-the-art methods using diverse datasets:

  • Synthetic Benchmarks: Directed Stochastic Block Models (DSBM) with various meta-graph topologies (cycles, paths, stars).
  • Real-World Networks:
    • US Migration: County-to-county migration flows (3,075 nodes).
  • Telegram: Political influence network showing core-periphery structures.
  • WikiTalk: Large-scale communication between Wikipedia users (>2M nodes).
  • Financial Data: Lead-lag relationships between stocks over 19 years.
  • Political Blogs: Hyperlinks between US political blogs.

Results and Discussion

DIGRAC demonstrates state-of-the-art performance across a wide range of noise levels and graph topologies.

Key Insights

  • Flow vs. Density: DIGRAC identifies clusters even with zero edge density difference, relying purely on edge direction.
  • Self-Supervised Superiority: It frequently outperforms supervised GNNs on synthetic data, suggesting that the flow imbalance objective is a more natural fit for directed clustering than label-based supervision.
  • Robustness: The "std" and "sort" loss variants effectively ignore random noise, focusing on strong structural flow signals.

Real-World Discovery

On the US Migration dataset, DIGRAC uncovered non-trivial migration patterns, such as coastal-to-interior trends, which traditional density-based methods failed to detect. In the Lead-Lag financial dataset, it identified clusters of stocks that consistently lead or lag the market, providing structural insights into market dynamics.

Conclusion

DIGRAC offers a robust, scalable, and self-supervised approach to digraph clustering. While it currently requires a pre-specified number of clusters ($K$), it sets a new benchmark for leveraging directionality in network analysis. Future work will focus on automatic $K$ detection and further scaling to industrial-sized graphs with billions of edges.

Summary updated

BibTeX
@inproceedings{he2022digrac,
  author = {Yixuan He and Gesine Reinert and Mihai Cucuringu},
  title = {{DIGRAC: Digraph Clustering Based on Flow Imbalance}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=UqamDYtuh9},
}
Figure