NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Comprehensive, Efficient Large-Scale Community Detection via Structural Entropy Game

Pu Li, Yantuan Xian, Hao Peng, Huafeng Li, Zhengtao Yu, Yan Xiang, Philip S. YuarXiv 2026

TL;DR

The paper introduces CoDeSEG, a highly efficient community detection algorithm that models network partitioning as a game where nodes choose community affiliations to minimize the network's two-dimensional (2D) structural entropy. By optimizing this game-theoretic framework, CoDeSEG handles non-overlapping, overlapping, and dynamic community detection at massive scales (millions of nodes and billions of edges), delivering up to a 33× speedup over state-of-the-art baselines while improving accuracy.

What Problem Does This Paper Address?

Community detection—identifying clusters of densely interconnected nodes—is foundational to social network analysis, bioinformatics, and modern knowledge-graph applications like GraphRAG. However, real-world networks are massive, frequently containing millions of nodes and billions of edges.

Existing algorithms face three major bottlenecks:

  1. Scalability: Minimizing global network metrics (like structural entropy) is often computationally prohibitive at scale.
  2. Rigid Graph Assumptions: Many popular methods (e.g., Louvain, BigClam) only work on specific graph types, such as unweighted or undirected networks.
  3. Dynamic Evolution: Real-world networks change over time. Re-running static algorithms on every new snapshot is highly inefficient, while incremental methods often sacrifice accuracy by focusing too narrowly on local changes.

The authors address these gaps by creating a unified, game-theoretic framework that is fast, versatile, and natively supports static, overlapping, and dynamic networks.

Fig. 1: Illustration of different community structures in a network.

Methods

CoDeSEG stands for Community Detection via Structural Entropy Game. It operates by framing community detection as a potential game, where individual nodes act as rational players trying to maximize their own utility.

1. The Structural Entropy Potential Game

The global objective is to minimize the network's 2D Structural Entropy (SE), a metric from information theory that quantifies graph disorder. CoDeSEG uses 2D SE as the game's potential function. In each round, a node evaluates three strategies: Stay in its current community, Leave to be alone, or Transfer to an adjacent community.

Crucially, the authors derive a mathematical shortcut: by caching community volumes and cut-edge sums, the change in structural entropy ($\Delta_L$) resulting from a node's movement can be computed in constant time, $O(1)$. This reduces the complexity of a full game iteration to linear time relative to the number of edges.

Fig. 2: A toy of the 2D Encoder Tree and potential game.

2. Two-Stage Overlapping Detection

To detect nodes belonging to multiple communities, CoDeSEG first runs the non-overlapping game to find stable base clusters. It then applies a structural entropy-based node overlap heuristic, greedily copying nodes into neighboring communities if the action reduces entropy past a dynamically calculated threshold.

3. Cascading Influence Propagation-based Adaptive (CIPA) Strategy

For dynamic networks, CoDeSEG avoids full re-computation using the CIPA strategy. When an edge or node changes, CIPA identifies directly affected nodes. As these nodes play the community game, their changing strategies cascade to indirectly affected neighbors. Stable nodes are adaptively removed from the active pool, focusing computational power only on perturbed regions.

Fig. 3: Overview of the proposed CoDeSEG algorithm.

Datasets

The algorithm was evaluated across 14 large-scale networks:

  • Real-World Static/Overlapping (SNAP): Amazon, YouTube, DBLP, LiveJournal, Orkut, Friendster, and Wiki (a directed network).
  • Synthetic Benchmarks: LFR networks ranging from 50,000 to 1,000,000 nodes to test scalability.
  • Real-World Dynamic Networks: X12 (Tweet12) and X18 (Tweet18), which track evolving Twitter/X event networks over time.

Key Insights and Ideas

  • Local Actions, Global Optimization: By proving that 2D structural entropy fits a potential game framework, the authors show that selfish, localized node decisions naturally guide the entire network toward a globally optimized, low-entropy state (Nash equilibrium).
  • The Power of Caching: The $O(1)$ utility computation is the secret sauce. Instead of recalculating graph-wide metrics when a node moves, updating simple cached sums (volumes and cuts) keeps the algorithm incredibly lightweight.
  • Dynamic Hysteresis: In dynamic tracking, treating directly and indirectly affected nodes differently prevents the algorithm from over-correcting, ensuring stable community boundaries across time steps.

Key Results

  • Speed: CoDeSEG is currently the fastest known algorithm for large-scale community detection. For overlapping community detection, it achieved an average 33× speedup over the fastest baseline. On the massive Friendster dataset (~65M nodes, 1.8B edges), it finished in under 1.6 hours, whereas some baselines failed to finish within a week.
  • Dynamic Efficiency: In dynamic tasks, CoDeSEG delivered an 80× speedup over the top-performing accuracy baseline (QCA) by avoiding redundant computations.
  • Accuracy: CoDeSEG consistently ranked first or second in Overlapping Normalized Mutual Information (ONMI) and F1-scores. It showed massive improvements on directed graphs (like Wiki), where traditional undirected baselines suffered severe performance drops.

Limitations and Future Work

While CoDeSEG is highly versatile, the current implementation focuses primarily on homogeneous networks (where all nodes and edges are of the same type). The authors note that extending this structural entropy game framework to heterogeneous networks (e.g., graphs with different node types like "users" and "products") remains an open challenge. Additionally, they plan to explore distributed computing paradigms to scale the algorithm even further.

Summary updated

BibTeX
@misc{li2026comprehensive,
  author = {Pu Li and Yantuan Xian and Hao Peng and Huafeng Li and Zhengtao Yu and Yan Xiang and Philip S. Yu},
  title = {{Comprehensive, Efficient Large-Scale Community Detection via Structural Entropy Game}},
  year = {2026},
  eprint = {2607.13713},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.13713},
}
Figure