TL;DR
TwiBot-22 is a massive new benchmark dataset and evaluation framework designed to advance graph-based Twitter bot detection. By providing a large-scale heterogeneous graph containing 1 million users, 4 entity types, and 14 relation types annotated via high-quality weak supervision, it addresses the critical scale and structural limitations of previous datasets.
What Problem Does This Paper Address?
Twitter bots have become sophisticated tools for spreading misinformation, manipulating elections, and promoting conspiracy theories. As bot operators adapt, traditional detection methods—which rely on hand-crafted user metadata features or text analysis of tweets—struggle to keep pace because modern bots easily mimic human profiles and blend stolen genuine content with malicious tweets.
Graph-based detection methods using Graph Neural Networks (GNNs) have emerged as the state-of-the-art solution because they analyze the structural relationships of the social network, which is much harder for bots to fake. However, progress has been bottlenecked by existing datasets, which suffer from three major flaws: limited scale, incomplete graph structures (usually only mapping user-to-user follow edges), and low annotation quality due to noisy crowdsourcing.
Methods
To build a more realistic and robust benchmark, the authors introduced several novel approaches to data collection and annotation:
- Diversity-Aware Sampling: To ensure the dataset includes a wide variety of human and bot behaviors rather than a narrow subset, the authors augmented a standard Breadth-First Search (BFS) network collection with distribution diversity and value diversity sampling strategies based on user metadata (e.g., follower count, account age, verified status).
- Heterogeneous Graph Construction: Instead of a simple homogeneous user network, TwiBot-22 maps Twitter as it actually exists: a heterogeneous information network. It tracks 4 entity types (Users, Tweets, Lists, and Hashtags) and 14 relation types (such as following, followers, post, pinned, like, retweeted, mentioned, and discuss).
- Weak Supervision Annotation: Manually labeling a million-user graph is impossible, and crowdsourcing introduces too much noise. The authors leveraged the Snorkel framework for weak supervision. They had experts label a small golden set of 1,000 users, trained 7 diverse models and 8 heuristic labeling functions, filtered out the top 40% most uncertain predictions to minimize noise, and aggregated the remaining labels to train a final high-quality classifier.
Datasets
The paper introduces TwiBot-22, which contains 1,000,000 users, 92,932,326 total nodes, and 170,185,937 edges.
To ensure a fair and comprehensive benchmark, the authors built an evaluation framework that re-implements 35 baseline models and evaluates them across 9 distinct datasets from the Bot Repository:
- cresci-2015
- gilani-2017
- cresci-2017
- midterm-18
- cresci-stock-2018
- cresci-rtbust-2019
- botometer-feedback-2019
- TwiBot-20
- TwiBot-22
Key Insights and Ideas
- Graphs are Essential: Graph-based approaches are definitively superior. The top 5 performing models on both TwiBot-20 and TwiBot-22 are all graph-based, outperforming the global baseline average by 13.8% and 8.2% respectively.
- The Scalability Wall: TwiBot-22 exposes severe scalability limitations in existing GNN bot-detection architectures. Several models that achieved near-SOTA performance on smaller datasets failed to scale or ran into out-of-memory errors when confronted with TwiBot-22's 92 million nodes.
- Evasion and Evolution: Baseline models performed an average of 2.7% worse on TwiBot-22 compared to TwiBot-20. This indicates that TwiBot-22 represents a more challenging, realistic, and modern slice of the Twitter network where bots are better disguised.
- Generalization vs. Accuracy: High accuracy on a single dataset split does not guarantee good generalization. In sub-community generalization tests (training on one cluster and testing on another), some simpler feature-based models generalized better than highly parameterized GNNs like GAT.
Key Results
- Scale: TwiBot-22 establishes the largest benchmark to date, providing roughly 5 times more users than the second-largest dataset (TwiBot-20).
- Annotation Quality: The weak supervision pipeline achieved a 90.5% accuracy standard against expert ground truth, a massive leap from the ~80% standard typical of crowdsourced datasets.
- Graph Ablation: A graph component removal study proved that stripping the network structure from graph-based models causes significant performance drops across the board, particularly for SOTA models like BotRGCN and RGT.
Limitations and Future Work
- Lack of Multi-modal Data: Due to storage constraints, the dataset does not directly store user media (images and videos), though media links are provided. The authors note that integrating multi-modal features is a promising future direction.
- Coordination Campaigns: Current baselines focus heavily on individual account analysis. The authors suggest moving toward subgraph-level and temporal analysis to catch coordinated bot networks acting in groups.
- Dual-Use Risk: There is a minor risk that bot operators could abuse this open benchmark to analyze the characteristics of bots that successfully evade detection, allowing them to design more evasive bot algorithms.
Summary updated