GA-Based Q-Attack on Community Detection

Jinyin Chen, Lihong Chen, Yixian Chen, Minghao Zhao, Shanqing Yu, Qi Xuan, Xiaoniu Yang · DOI

Abstract Community detection in social networks, while valuable for analysis, presents significant privacy risks through "information over-mining." This paper introduces Q-Attack, a Genetic Algorithm (GA)-based adversarial method designed to deceive community detection algorithms by subtly rewiring network connections. By minimizing network modularity ($Q$) while preserving node degrees, Q-Attack effectively hides underlying community structures. Experimental results on benchmark datasets demonstrate that Q-Attack outperforms traditional heuristic attacks and exhibits high transferability across different detection algorithms.

Introduction

Community detection is a cornerstone of social network analysis, used to group individuals into clusters based on their interactions. While useful for sociology and marketing, it poses a significant privacy risk: even if a user attempts to remain private, their associations can reveal sensitive personal information. The challenge of community deception is to modify a network so that detection algorithms fail to find the true underlying structure. To be effective, these modifications must be "stealthy," meaning they should not drastically change the network's basic properties, such as node degrees.

Methodology

The authors propose three attack strategies, with the third being their primary contribution:

  1. Community Detection Attack (CDA): A heuristic that deletes links within a community and adds links between different communities.
  2. Degree Based Attack (DBA): A heuristic targeting "hubs" (nodes with many connections), assuming that disrupting these central players will collapse the community structure.
  3. Q-Attack (The GA Approach): This core innovation uses a Genetic Algorithm to search for the optimal set of "rewirings."
Overview of the Q-Attack framework, showing the transition from an original network to an adversarial network through heuristic and GA-based attacks.

The Q-Attack Mechanism

Unlike simple addition or deletion, Q-Attack employs a rewiring strategy: it adds one link and deletes another for the same node. This keeps the node's degree constant, making the attack difficult to detect via standard statistical analysis. The GA seeks to minimize Modularity ($Q$), a standard metric for community strength, using the fitness function $f = e^{-Q}$.

The Genetic Algorithm process in Q-Attack, illustrating selection, crossover, and mutation operators applied to individuals representing sets of rewirings.

The algorithm employs standard evolutionary operators—selection (roulette wheel), crossover, and mutation—alongside an Elitism strategy to preserve the most effective attack schemes across generations.

Experimental Results

The researchers evaluated their methods on four classic real-world network benchmarks, including Zachary’s Karate Club and the American College Football network, against six different community detection algorithms (e.g., Louvain, Infomap, Fast Newman).

  • Superior Performance: Q-Attack consistently outperformed heuristics. On the Karate Club network, Q-Attack reduced modularity by approximately 40%, compared to only 14% by the best heuristic (DBA).
  • Disrupting Ground Truth: Using Normalized Mutual Information (NMI) to measure similarity to true labels, Q-Attack caused a much sharper decline in detection accuracy than other methods.
  • Transferability: A key finding was that adversarial networks generated to fool one specific algorithm often fooled others just as effectively. This suggests Q-Attack targets fundamental structural properties rather than specific algorithmic quirks.

Discussion and Future Work

Q-Attack demonstrates the power of evolutionary computation in network security. By exploring a wider search space than greedy heuristics, the GA finds non-obvious combinations of changes with massive cumulative effects on modularity.

However, limitations remain. Genetic Algorithms can be computationally expensive, posing challenges for scaling to massive networks with millions of nodes. Future research may explore multi-objective optimization to balance modularity reduction with other constraints, such as maintaining network connectivity or addressing overlapping communities.

Summary updated

BibTeX
@article{chen2018ga,
  author = {Jinyin Chen and Lihong Chen and Yixian Chen and Minghao Zhao and Shanqing Yu and Qi Xuan and Xiaoniu Yang},
  title = {{GA-Based Q-Attack on Community Detection}},
  journal = {IEEE Trans. Comput. Soc. Syst.},
  year = {2018},
  doi = {10.1109/tcss.2019.2912801},
}
Figure