Community Detection in Large-Scale Complex Networks via Structural Entropy Game

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

Abstract

Community detection is a fundamental task in network science, yet existing methods often struggle with the scale and complexity of modern datasets. This paper introduces CoDeSEG, an algorithm that leverages 2D structural entropy and game theory to identify both disjoint and overlapping communities. By optimizing a node-level utility function in constant time, CoDeSEG achieves significant speedups—averaging 45x over high-performance baselines—while maintaining state-of-the-art accuracy on networks with up to billions of edges.

Introduction: The Challenge of Modern Networks

In the era of big data, complex networks—ranging from social platforms to biological systems—exhibit intricate community structures. These communities are clusters of nodes more densely connected internally than to the rest of the network. Identifying these structures is critical for applications such as recommendation systems, epidemic modeling, and drug discovery.

However, three primary challenges hinder current community detection methods:

  1. Scalability: Modern networks frequently encompass millions of nodes and billions of edges, often causing traditional algorithms to fail or require prohibitive computation time.
  2. Overlapping Communities: Real-world entities often belong to multiple groups simultaneously (e.g., a person in family, professional, and social circles). Detecting these overlaps is computationally intensive.
  3. Generality: Many existing tools are limited to simple undirected graphs, failing to handle the directed or weighted edges common in real-world data.

CoDeSEG: Bridging Information Theory and Game Theory

The proposed CoDeSEG (Community Detection via Structural Entropy Game) framework addresses these limitations by combining Information Theory with Game Theory. The algorithm utilizes 2D structural entropy as a global metric to quantify the "disorder" of a network's community structure. The objective is to find a partition that minimizes this entropy, representing the most natural organization of the network.

To achieve this optimization efficiently, the authors model the process as a Potential Game. In this game, each node acts as a "rational player" seeking to maximize its own utility. The mathematical breakthrough of CoDeSEG is the derivation of a node utility function that directly corresponds to the reduction of global structural entropy. Crucially, by caching community-level statistics such as volume and cut weights, this utility can be calculated in $O(1)$ constant time, regardless of the network's total size.

The Two-Stage Detection Process

CoDeSEG operates in two distinct phases to handle both disjoint and overlapping community structures.

The evolution of community detection from a raw network (a) to disjoint communities (b) and finally overlapping structures (c).
  1. Disjoint Phase: Nodes iteratively evaluate their utility and move to the community (their own, a neighbor's, or a new one) that best reduces entropy. This continues until a Nash Equilibrium is reached, where no single node can improve its utility by moving.
  2. Overlapping Phase: Once the disjoint structure is established, a specialized heuristic identifies nodes that significantly contribute to entropy reduction if assigned to multiple communities. This allows the model to capture the multi-faceted nature of real-world nodes.

Empirical Performance and Scalability

The researchers evaluated CoDeSEG against state-of-the-art baselines using nine diverse datasets, including the massive Friendster network (65 million nodes and 1.8 billion edges).

Speed and Efficiency

CoDeSEG demonstrated remarkable efficiency, achieving an average 45x speedup over competing high-performance algorithms. On the Wikipedia hyperlink dataset (Wiki), it was 163 times faster than the next best method. Most notably, it processed the 1.8-billion-edge Friendster network in approximately 94 minutes, a task that caused several other baselines to crash or exceed a one-week time limit.

Accuracy and Robustness

Despite its speed, CoDeSEG does not sacrifice accuracy. It consistently ranked first or second in Overlapping Normalized Mutual Information (ONMI) and F1 scores across all benchmarks. Furthermore, the algorithm is inherently robust, performing well on directed and weighted graphs (such as the Tweet12 and Tweet18 event detection datasets) without requiring specialized modifications.

Conclusion and Future Directions

CoDeSEG represents a significant advancement in scalable community detection. By decomposing a global entropy objective into local, constant-time game-theoretic moves, it enables the analysis of massive networks that were previously inaccessible.

Future work may address the algorithm's sensitivity to hyperparameters like the termination threshold and overlap factor. Additionally, extending the framework to dynamic graphs—where the network topology evolves in real-time—and exploring higher-dimensional structural entropy for deeper hierarchical detection remain promising avenues for research.

Summary updated

BibTeX
@inproceedings{xian2025community,
  author = {Yantuan Xian and Pu Li and Hao Peng and Zhengtao Yu and Yan Xiang and Philip S. Yu},
  title = {{Community Detection in Large-Scale Complex Networks via Structural Entropy Game}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure