[Paper Review] HOFA: Twitter Bot Detection with Homophily-Oriented Augmentation and Frequency Adaptive Attention
HOFA proposes a novel graph-based Twitter bot detection framework that combats the heterophilous disguise challenge—where bots evade detection by following genuine users—through homophily-oriented graph augmentation (Homo-Aug) and a frequency adaptive attention mechanism (FaAt). The method achieves state-of-the-art performance on three benchmarks, significantly outperforming existing graph-based and heterophilic baselines.
Twitter bot detection has become an increasingly important and challenging task to combat online misinformation, facilitate social content moderation, and safeguard the integrity of social platforms. Though existing graph-based Twitter bot detection methods achieved state-of-the-art performance, they are all based on the homophily assumption, which assumes users with the same label are more likely to be connected, making it easy for Twitter bots to disguise themselves by following a large number of genuine users. To address this issue, we proposed HOFA, a novel graph-based Twitter bot detection framework that combats the heterophilous disguise challenge with a homophily-oriented graph augmentation module (Homo-Aug) and a frequency adaptive attention module (FaAt). Specifically, the Homo-Aug extracts user representations and computes a k-NN graph using an MLP and improves Twitter's homophily by injecting the k-NN graph. For the FaAt, we propose an attention mechanism that adaptively serves as a low-pass filter along a homophilic edge and a high-pass filter along a heterophilic edge, preventing user features from being over-smoothed by their neighborhood. We also introduce a weight guidance loss to guide the frequency adaptive attention module. Our experiments demonstrate that HOFA achieves state-of-the-art performance on three widely-acknowledged Twitter bot detection benchmarks, which significantly outperforms vanilla graph-based bot detection techniques and strong heterophilic baselines. Furthermore, extensive studies confirm the effectiveness of our Homo-Aug and FaAt module, and HOFA's ability to demystify the heterophilous disguise challenge.
Motivation & Objective
- To address the growing threat of Twitter bots that evade detection by following large numbers of genuine users, a tactic known as heterophilous disguise.
- To overcome the limitations of existing graph-based bot detection methods, which rely on the homophily assumption and suffer from feature over-smoothing due to neighborhood averaging.
- To design a framework that can adaptively filter information based on edge type—applying low-pass filtering on homophilic edges and high-pass filtering on heterophilic edges.
- To improve model robustness and generalization by introducing a weight guidance loss to supervise the frequency adaptive attention mechanism.
- To validate the effectiveness of the proposed components through extensive ablation and benchmarking on standard Twitter bot detection datasets.
Proposed method
- Homo-Aug performs graph data augmentation by computing a k-nearest neighbors (k-NN) graph using an MLP to extract user representations, thereby enhancing graph homophily and reducing the impact of heterophilic connections.
- The FaAt module applies an attention mechanism that adaptively acts as a low-pass filter on homophilic edges (smoothing features) and a high-pass filter on heterophilic edges (preserving dissimilarities) to prevent over-smoothing of bot features.
- The attention weights are learned via a learnable frequency response function that distinguishes between homophilic and heterophilic edges based on node representation similarity.
- A weight guidance loss (WeGL) is introduced to supervise the FaAt module, encouraging it to assign higher attention to edges that are critical for distinguishing bots from genuine users.
- The framework uses a two-stage training pipeline: first training the Homo-Aug module to generate an augmented graph, then fine-tuning the FaAt-based GNN for final bot classification.
- User representations are encoded using a pretrained language model (PLM), and the final GNN layers aggregate features through the frequency-adaptive attention mechanism to produce final predictions.

Experimental results
Research questions
- RQ1Can a graph-based bot detection model effectively detect bots that disguise themselves by following large numbers of genuine users (heterophilous disguise) despite relying on the homophily assumption?
- RQ2To what extent can homophily-oriented graph augmentation improve the robustness of graph neural networks against heterophilic edge interference in bot detection?
- RQ3Can a frequency adaptive attention mechanism dynamically adjust filtering behavior based on edge type (homophilic vs. heterophilic), thereby reducing over-smoothing of bot features?
- RQ4How does the integration of a weight guidance loss improve the attention mechanism’s ability to distinguish between genuine and bot accounts?
- RQ5Does the proposed HOFA framework generalize better than existing graph-based and heterophilic baselines across multiple benchmark datasets?
Key findings
- HOFA achieves state-of-the-art performance on three widely used Twitter bot detection benchmarks: TwiBot-20, MGTAB-22, and another unnamed benchmark, with an accuracy of 82.29% on TwiBot-20 and 88.68% on MGTAB-22.
- The ablation study shows that removing the Homo-Aug module reduces accuracy by 0.36% on TwiBot-20 and 0.25% on MGTAB-22, confirming its critical role in improving graph homophily.
- Replacing FaAt with vanilla attention or mean pooling leads to a significant drop in F1-score (by 4.14% on MGTAB-22), demonstrating the superiority of frequency-adaptive filtering.
- The removal of the weight guidance loss (WeGL) reduces F1-score by 0.95% on TwiBot-20 and 0.98% on MGTAB-22, proving its effectiveness in guiding the attention mechanism.
- Attention weights between bot pairs are consistently positive (indicating low-pass filtering), while those between bots and genuine users are negative (indicating high-pass filtering), validating the adaptive behavior of FaAt.
- The model successfully mitigates the heterophilous disguise challenge, as evidenced by the attention mechanism’s ability to preserve distinguishing features of bots even when surrounded by genuine users.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.