Genetic Algorithm with Ensemble Learning for Detecting Community Structure in Complex Networks

Dongxiao He, Zhe Wang, Bin Yang, Chunguang ZhouarXiv 2013 · DOI

Abstract

Community detection in complex networks is a topic of considerable recent interest within the scientific community. For dealing with the problem that genetic algorithm are hardly applied to community detection, we propose a genetic algorithm with ensemble learning (GAEL) for detecting community structure in complex networks. GAEL replaces its traditional crossover operator with a multi-individual crossover operator based on ensemble learning. Therefore, GAEL can avoid the problems that are brought by traditional crossover operator which is only able to mix string blocks of different individuals, but not able to recombine clustering contexts of different individuals into new better ones. In addition, the local search strategy, which makes mutated node be placed into the community where most of its neighbors are, is used in mutation operator. At last, a Markov random walk based method is used to initialize population in this paper, and it can provide us a population of accurate and diverse clustering solutions. Those diverse and accurate individuals are suitable for ensemble learning based multi-individual crossover operator. The proposed GAEL is tested on both computer-generated and real-world networks, and compared with current representative algorithms for community detection in complex networks. Experimental results demonstrate that GAEL is highly effective at discovering community structure.

Introduction

Detecting communities—groups of nodes with dense internal connections and sparse external ones—is a fundamental task in network science, with applications ranging from biology to social media analysis. Most algorithms treat this as an optimization problem, specifically trying to maximize Modularity ($Q$). However, maximizing $Q$ is an NP-complete problem.

While Genetic Algorithms (GAs) are typically effective at exploring large search spaces, they struggle with community detection due to two primary issues:

  1. Context Blindness: Traditional crossover operators swap segments of labels between individuals. Since community labels are arbitrary identifiers, swapping them often destroys the clusters the GA is attempting to build.
  2. Slow Convergence: Random initialization and mutations often lead to inefficient exploration of low-quality solutions.

The GAEL Framework

To address these limitations, the GAEL approach introduces three major innovations to the standard GA pipeline:

1. IGMRW Initialization

Instead of starting with a random population, GAEL utilizes Individual Generation based on Markov Random Walk (IGMRW). This method exploits the property that a random walker is more likely to stay within a dense community than to leave it, providing a starting population that is both accurate and diverse.

2. Ensemble Learning Crossover

This is the core of GAEL. Rather than swapping string blocks, the algorithm selects $M$ promising individuals and calculates Edge Join Strength—the probability that a specific edge connects two nodes in the same community across the ensemble. It then uses an agglomerative hierarchical process to build new offspring based on these strengths, focusing on relational properties rather than arbitrary labels.

3. Local Search Mutation

Instead of flipping a node's label at random, the mutation operator uses a local search strategy where a node adopts the label held by the majority of its neighbors. This targeted refinement "cleans up" misplaced nodes and significantly speeds up convergence.

Experimental Results

Performance on Synthetic Networks

The authors evaluated GAEL using computer-generated networks of 128 nodes divided into four communities. The difficulty was tuned by varying $P_{out}$ (the fraction of edges connecting different communities). As shown in the figure below, GAEL demonstrates remarkable robustness to noise.

Accuracy comparison on synthetic networks showing GAEL's stability as P_out increases.

As the network became more "fuzzy" ($P_{out}$ increased), GAEL maintained nearly 100% accuracy, while classical algorithms like Girvan-Newman (GN) and Newman-fast (FN) saw their accuracy plummet to below 30% and 70%, respectively.

Real-World Benchmarks

GAEL was also tested on classic benchmarks including Zachary’s Karate Club and the American College Football network.

  • Zachary’s Karate Club: GAEL identified a division with a modularity of $Q=0.4198$, which is higher than the modularity of the historically observed split ($Q=0.3715$).
  • American College Football: GAEL consistently achieved higher modularity and clustering accuracy compared to GN and FN, effectively identifying conference-based structures.
Community structures detected by GAEL in the Karate Club (a) and Football (b) networks.

Conclusion

GAEL effectively overcomes the traditional weaknesses of GAs in community detection by prioritizing relational context over label identifiers. By combining ensemble learning with local search and intelligent initialization, it provides a robust solution for identifying structures in complex, noisy networks. Future work will focus on improving the efficiency of the ensemble crossover for massive datasets and applying the framework to functional modules in biological networks.

Summary updated

BibTeX
@misc{he2013genetic,
  author = {Dongxiao He and Zhe Wang and Bin Yang and Chunguang Zhou},
  title = {{Genetic Algorithm with Ensemble Learning for Detecting Community Structure in Complex Networks}},
  year = {2013},
  eprint = {1303.5673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1303.5673},
}
Figure