Abstract
Twitter bots have evolved from simple spam generators into sophisticated agents that mimic human behavior by mixing stolen genuine content with malicious tweets. Traditional detection methods, which often rely on isolated text or graph features, struggle to identify these "stealthy" bots. This paper presents BIC (Twitter Bot detection with text-graph Interaction and semantic Consistency), a novel framework designed to bridge these gaps. BIC employs a deep interaction module that enables iterative information exchange between textual and relational data. Furthermore, it introduces a semantic consistency module that leverages Transformer attention weights to detect the disjointed nature of bot timelines. Experimental results on benchmark datasets and a newly curated COVID-19 dataset demonstrate that BIC significantly outperforms existing state-of-the-art models.
1. Introduction: The Challenge of Evolved Bots
The landscape of social media manipulation is shifting. Modern bots no longer rely solely on repetitive patterns; instead, they employ "dilution" strategies, interspersing legitimate user content with their own malicious messaging. This behavior creates two primary challenges for current research. First, most existing models utilize "shallow integration," treating text and social graph data as independent signals rather than exploiting their complex interplay. Second, while individual tweets from a bot may appear genuine, the overall timeline often lacks the semantic flow characteristic of human users.
As illustrated in Figure 1, traditional text-based or graph-based methods fail to capture the holistic profile of a user. BIC addresses this by focusing on the "semantic inconsistency" that arises when bots aggregate disparate content, creating detectable "jumps" in meaning across their timelines.
2. Methodology
The BIC framework is composed of four integrated components designed to capture both the content and the context of user behavior.
2.1 Text and Graph Modules
The Text Module utilizes a pre-trained RoBERTa model to encode user descriptions and tweet content into high-dimensional feature vectors. Simultaneously, the Graph Module employs Relational Graph Convolutional Networks (R-GCN) with multi-head attention to model the user's position and influence within the broader social network.
2.2 Text-Graph Interaction Module
A core innovation of BIC is its interaction module. Unlike shallow methods that simply concatenate features, BIC uses an iterative process where text and graph representations exchange information. By calculating similarity weights, the model determines how much the textual view of a user should inform the network view, and vice versa. This "de-noises" the signals, as network ties can clarify ambiguous text, and textual content can reveal the nature of social connections.
2.3 Semantic Consistency Module
To detect bots that steal content, BIC analyzes the internal attention weight matrices of the RoBERTa model. By down-sampling these matrices, the framework identifies inconsistencies in thematic flow. Human users typically maintain a logical thread in their communications, whereas bots pulling from multiple sources produce "noisy" attention maps that signal automated behavior.
3. Experimental Evaluation
BIC was evaluated against three datasets: the classic Cresci-15, the large-scale TwiBot-20, and a newly collected COVID-19 Dataset (2022) designed to test against modern, evolved bot behaviors.
3.1 Performance Results
BIC consistently outperformed state-of-the-art baselines, including RGT and SATAR. On the Cresci-15 dataset, BIC achieved an accuracy of 98.35%, while on the more challenging TwiBot-20, it reached 87.61%. Notably, on the 2022 COVID-19 dataset, BIC's accuracy of 67.25% significantly surpassed the industry-standard Botometer (55.35%), highlighting its effectiveness against contemporary threats.
3.2 Robustness and Ablation
Ablation studies confirmed that both the interaction and semantic consistency modules are vital to the model's success. Furthermore, BIC demonstrated remarkable resilience to data loss, maintaining high performance even when up to 80% of a user's tweets or neighbors were removed from the input.
4. Conclusion
BIC represents a significant step forward in bot detection by treating text and network data as complementary, interacting signals. By focusing on semantic consistency, it provides a robust defense against stealthy bots that mimic human content. Future work will explore the model's performance in diverse contexts like political elections and financial scams, while also addressing potential social biases inherent in social media data.
Summary updated