BotDGT: Dynamicity-aware Social Bot Detection with Dynamic Graph Transformers

Buyun He, Yingguang Yang, Qi Wu, Hao Liu, Renyu Yang, Hao Peng, Xiang Wang, Yong Liao, Pengyuan Zhou · DOI

Social media bots have evolved from simple spam scripts into sophisticated "chameleons." Modern advanced bots meticulously engineer their interactions to mimic human behavior, making them increasingly difficult to detect using traditional methods. While graph-based detection—analyzing the "who-follows-whom" structure—has been effective, its reliance on static snapshots of a network is a significant vulnerability.

A new framework, BotDGT (Bot detection with Dynamic Graph Transformers), addresses this by treating social networks as dynamic entities. Rather than looking at a single point in time, BotDGT analyzes how a user's social footprint evolves, uncovering the "trail" of interactions that reveal a bot's true nature.

The Challenge of Bot Evolution

Bot operators have learned to bypass both feature-based detection (profile bios, tweet frequency) and static graph-based detection. They achieve this by slowly "growing" into the network, forging connections with legitimate users over time until their final network structure appears human.

Figure 1: Comparison of human and bot interaction patterns over time. While bots may appear similar to humans in current snapshots, their historical evolution often reveals distinct patterns.

Static Graph Neural Networks (GNNs) fail here because they ignore historical context and the specific "velocity" of social circle formation. If a bot has successfully completed its "disguise" by the time of analysis, it becomes indistinguishable from a benign user in a static view.

Methodology: The BotDGT Framework

BotDGT introduces a three-stage approach to capture these temporal nuances:

  1. Dynamic Graph Construction: The network is represented as a series of snapshots ($G^{t1}, G^{t2}, \dots, G^{tN}$) captured at fixed intervals.
  2. Structural Module: For each snapshot, a message-passing mechanism using scaled dot-product attention captures local topological features, defining the user's "neighborhood" at that specific time.
  3. Temporal Module: A Transformer-based self-attention mechanism aggregates these representations across all snapshots. To enhance social context, the model incorporates domain-specific position embeddings such as the Local Clustering Coefficient (LCC) and the Bidirectional Links Ratio (BLR).
Figure 2: The BotDGT architecture, featuring dynamic graph construction, a structural module for snapshot analysis, and a temporal module for cross-snapshot aggregation.

By tracking the evolution of metrics like LCC and BLR, the model can detect bots attempting to mimic human clustering patterns over time.

Key Insights and Results

The researchers evaluated BotDGT on two major benchmarks, TwiBot-20 and the more challenging, imbalanced TwiBot-22.

  • Superior Performance: BotDGT consistently outperformed feature-based and static graph-based baselines (such as GCN, GAT, and BotRGCN). It achieved an accuracy of 87.25% on TwiBot-20 and 79.33% on TwiBot-22.
  • High Recall: The model achieved a recall of 94.24% on TwiBot-20, demonstrating an exceptional ability to "catch" bots that evade other models.
  • Optimal Granularity: Experiments revealed that a 12-month interval between snapshots provided the best balance between signal and noise.
  • Importance of History: Ablation studies showed that removing the Temporal Module led to the most significant performance drops, confirming that historical interaction patterns are the primary driver of successful detection.

Conclusion

BotDGT demonstrates that history is much harder to forge than a current profile. By shifting the focus from static snapshots to dynamic evolution, the framework provides a more robust defense against the next generation of social bots. While computationally more intensive, the gain in detection accuracy—particularly in identifying "chameleon" bots—marks a significant step forward in social media integrity.

Summary updated

BibTeX
@inproceedings{he2024botdgt,
  author = {Buyun He and Yingguang Yang and Qi Wu and Hao Liu and Renyu Yang and Hao Peng and Xiang Wang and Yong Liao and Pengyuan Zhou},
  title = {{BotDGT: Dynamicity-aware Social Bot Detection with Dynamic Graph Transformers}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=TZ8gNsfUW7},
}
Figure