Abstract
Community detection (CD) is a cornerstone of network analysis, yet traditional methods struggle to balance high accuracy with computational efficiency. Most existing approaches are transductive, requiring costly re-optimization for every new graph instance. This paper proposes Inductive Community Detection (ICD), a framework that leverages an adversarial dual Graph Neural Network (GNN) to learn structural regularities across historical graphs. By training offline on system-specific distributions, ICD enables near-instantaneous, high-quality community detection on unseen graphs through a single feed-forward pass. Experimental results across synthetic and real-world datasets demonstrate that ICD offers a superior trade-off between speed and accuracy compared to state-of-the-art transductive and inductive baselines.
Introduction: The Efficiency-Quality Dilemma
Community detection—the process of partitioning a network into dense groups of nodes—is a fundamental but NP-hard problem. Traditionally, researchers have faced a binary choice between high-quality, low-efficiency methods and low-quality, high-efficiency heuristics. Advanced machine learning methods, such as non-negative matrix factorization (NMF) or deep graph embeddings, produce accurate results but require expensive, iterative optimization for every new graph. Conversely, fast heuristics like greedy modularity maximization are quick but often sacrifice significant accuracy.
A major limitation of existing high-quality methods is their transductive nature. They are independently optimized for a single graph and cannot share "knowledge" across different snapshots of the same system (e.g., a social network evolving over time). The authors address this by introducing an inductive approach that learns the underlying "rules" of a system's community structure from historical data, allowing it to generalize to new, unseen graphs instantly.
The ICD Framework
The core philosophy of ICD is that real-world systems—such as traffic patterns in a specific city or email interactions within a corporation—generate graphs that follow similar underlying distributions. Rather than re-learning what a community looks like for every update, the ICD framework learns these patterns offline.
As shown in the figure above, the framework consists of two phases:
- Offline Training: An inductive dual GNN is trained on historical graphs using ground-truth or high-quality baseline results as training labels.
- Online Generalization: The trained model parameters are fixed. For any new graph from the same system, the model performs a single feed-forward pass to generate embeddings, followed by a simple clustering step.
Adversarial Dual GNN Architecture
The technical heart of the proposal is the Adversarial Dual GNN, which is designed to handle the arbitrary nature of community labels (permutation invariance) and varying graph sizes.
Feature Extraction via Graph Coarsening
To handle graphs with varying numbers of nodes ($N$), the authors utilize Heavy-Edge Matching (HEM). Unlike standard dimensionality reduction techniques like PCA, HEM is a fast, graph-native method that reduces dimensionality while preserving critical structural properties, such as modularity and Laplacian characteristics. This provides the GNN with highly informative structural features without the computational overhead of traditional methods.
The Generator and Discriminator
The architecture employs an adversarial setup to ensure the learned embeddings are robust:
- The Generator ($G$): This module contains two encoders with shared parameters. One processes the original graph, while the other processes an "auxiliary label-induced graph" created from historical partitions. This dual-stream approach helps the model learn to produce embeddings that naturally reflect community structures.
- The Discriminator ($D$): The discriminator attempts to distinguish between the embeddings of the real graph and those of the label-induced graph. This adversarial pressure forces the generator to capture the structural essence of partitions rather than memorizing specific label indices, effectively solving the permutation invariance problem.
Experimental Evaluation
The authors evaluated ICD on a diverse set of benchmarks, including synthetic power-law networks (LFR-Net) and real-world systems like Beijing taxi trajectories, Reddit discussion threads, and Autonomous Systems (AS) internet routing snapshots.
To quantify the balance between performance and speed, the authors proposed the Trade-Off Score (TOS), measuring the area covered by a method in a 2D space of Quality vs. Efficiency. ICD consistently achieved the highest or second-highest TOS across almost all datasets. Notably, on the AS dataset, ICD was roughly 10-20x faster than high-quality transductive methods like M-NMF while maintaining comparable accuracy.
Conclusion and Future Work
ICD represents a significant step toward making high-quality community detection viable for real-time applications. By shifting the heavy lifting to an offline training phase, the framework achieves a superior efficiency-quality trade-off. Future research directions include integrating the downstream clustering step into an end-to-end (E2E) module to further reduce bottlenecks and incorporating node attributes to complement topological data. Additionally, scaling the framework to ultra-large graphs with millions of nodes remains a key challenge for future development.
Summary updated