HW-GNN: Homophily-Aware Gaussian-Window Constrained Graph Spectral Network for Social Network Bot Detection
Zida Liu, Jun Gao, Zhang Ji, Li Zhao
TL;DR
HW-GNN tackles bot detection by addressing limitations of broad-spectrum spectral GNNs through a Gaussian-window spectral network that concentrates on bot-discriminative frequency bands. It injects domain knowledge via a homophily-aware adaptation mechanism, using an MLP-driven parameter learning pipeline and a frequency distribution loss to align spectral focus with network structure. The method demonstrates state-of-the-art F1-score improvements (average 4.3%) across five benchmarks and remains compatible as a plug-in for existing spectral GNNs. This approach enhances robustness to heterophily and scalability by leveraging polynomial approximations and a multi-band filtering strategy, offering practical impact for scalable, accurate social bot detection. Future work includes dynamic networks and potential integration with large language models for improved detection capabilities.
Abstract
Social bots are increasingly polluting online platforms by spreading misinformation and engaging in coordinated manipulation, posing severe threats to cybersecurity. Graph Neural Networks (GNNs) have become mainstream for social bot detection due to their ability to integrate structural and attribute features, with spectral-based approaches demonstrating particular efficacy due to discriminative patterns in the spectral domain. However, current spectral GNN methods face two limitations: (1) their broad-spectrum fitting mechanisms degrade the focus on bot-specific spectral features, and (2) certain domain knowledge valuable for bot detection, e.g., low homophily correlates with high-frequency features, has not been fully incorporated into existing methods. To address these challenges, we propose HW-GNN, a novel homophily-aware graph spectral network with Gaussian window constraints. Our framework introduces two key innovations: (i) a Gaussian-window constrained spectral network that employs learnable Gaussian windows to highlight bot-related spectral features, and (ii) a homophily-aware adaptation mechanism that injects domain knowledge between homophily ratios and frequency features into the Gaussian window optimization process. Through extensive experimentation on multiple benchmark datasets, we demonstrate that HW-GNN achieves state-of-the-art bot detection performance, outperforming existing methods with an average improvement of 4.3% in F1-score, while exhibiting strong plug-in compatibility with existing spectral GNNs.
