Skip to main content
QUICK REVIEW

[Paper Review] Heterogeneity-aware Twitter Bot Detection with Relational Graph Transformers

Shangbin Feng, Zhaoxuan Tan|arXiv (Cornell University)|Sep 7, 2021
Misinformation and Its ImpactsSocial Sciences11 citations
TL;DR

This paper proposes a heterogeneity-aware Twitter bot detection framework using relational graph transformers to model relation and influence heterogeneity in user interaction networks. By constructing a heterogeneous information network and leveraging multi-head attention in relational graph transformers, the method achieves state-of-the-art performance on benchmark datasets, outperforming prior graph-based and non-graph-based approaches through improved representation learning and robustness to data sparsity.

ABSTRACT

Twitter bot detection has become an important and challenging task to combat misinformation and protect the integrity of the online discourse. State-of-the-art approaches generally leverage the topological structure of the Twittersphere, while they neglect the heterogeneity of relations and influence among users. In this paper, we propose a novel bot detection framework to alleviate this problem, which leverages the topological structure of user-formed heterogeneous graphs and models varying influence intensity between users. Specifically, we construct a heterogeneous information network with users as nodes and diversified relations as edges. We then propose relational graph transformers to model heterogeneous influence between users and learn node representations. Finally, we use semantic attention networks to aggregate messages across users and relations and conduct heterogeneity-aware Twitter bot detection. Extensive experiments demonstrate that our proposal outperforms state-of-the-art methods on a comprehensive Twitter bot detection benchmark. Additional studies also bear out the effectiveness of our proposed relational graph transformers, semantic attention networks and the graph-based approach in general.

Motivation & Objective

  • To address the limitations of existing Twitter bot detection methods that overlook relation and influence heterogeneity in social networks.
  • To improve bot detection performance by modeling diverse interaction types (e.g., retweet, like, block) and varying influence intensities between users.
  • To develop an end-to-end, graph-based framework that integrates heterogeneous information network construction with attention-based message passing for robust detection.
  • To validate the effectiveness of relational graph transformers and semantic attention networks in capturing subtle bot-like behaviors.
  • To evaluate data efficiency and representation quality under limited annotation and feature availability.

Proposed method

  • Construct a heterogeneous information network (HIN) where users are nodes and diverse social interactions (e.g., retweet, reply, block) are labeled edges.
  • Propose relational graph transformers that use multi-head self-attention to model heterogeneous influence intensity between users, learning relation-specific attention weights.
  • Integrate semantic attention networks to aggregate messages across users and relations, enabling context-aware representation learning.
  • Train the end-to-end model using supervised learning on labeled Twitter datasets to classify accounts as bots or genuine users.
  • Leverage node representations from relational graph transformers as input to a final classifier for bot detection.
  • Apply ablation studies and visualization techniques (e.g., t-SNE, attention weight analysis) to interpret model decisions and validate design choices.

Experimental results

Research questions

  • RQ1Can modeling relation heterogeneity—such as different types of interactions (e.g., retweet vs. block)—improve Twitter bot detection performance?
  • RQ2Does incorporating influence heterogeneity through attention mechanisms enhance the model’s ability to detect bot clusters and coordinated behavior?
  • RQ3How does the proposed framework compare to state-of-the-art methods in terms of detection accuracy, robustness, and data efficiency?
  • RQ4To what extent do attention weights in the relational graph transformer reflect meaningful patterns in bot behavior and user influence?
  • RQ5Can the model maintain high performance under data sparsity, such as reduced training data or masked user features?

Key findings

  • The proposed method consistently outperforms state-of-the-art baselines on a comprehensive Twitter bot detection benchmark, demonstrating superior detection accuracy.
  • Ablation studies confirm that both the relational graph transformer and semantic attention network are essential, with multi-head attention significantly improving performance over single-head or non-attention variants.
  • The model achieves strong performance with as little as 40% of the training data, indicating high data efficiency and robustness to label scarcity.
  • Visualization of attention weights reveals that bots in coordinated clusters exhibit higher mutual influence scores, confirming the model’s ability to detect group-based bot behavior.
  • t-SNE visualization shows that the model learns more discriminative and well-separated representations for genuine users and bots compared to baselines.
  • The method demonstrates significant performance gains in the first, second, and third quartiles of multiple runs, indicating consistent and reliable detection across different data splits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.