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:
- Community Detection Attack (CDA): A heuristic that deletes links within a community and adds links between different communities.
- Degree Based Attack (DBA): A heuristic targeting "hubs" (nodes with many connections), assuming that disrupting these central players will collapse the community structure.
- Q-Attack (The GA Approach): This core innovation uses a Genetic Algorithm to search for the optimal set of "rewirings."
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 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