BotPercent: Estimating Bot Populations in Twitter Communities

Zhaoxuan Tan, Shangbin Feng, Melanie Sclar, Herun Wan, Minnan Luo, Yejin Choi, Yulia Tsvetkov

TL;DR

BotPercent is a new framework that shifts the focus from identifying individual Twitter bots to accurately estimating bot populations within specific social communities. By ensembling multi-modal models and applying rigorous confidence calibration, the researchers demonstrate that bot activity is highly heterogeneous, with significant spikes in cryptocurrency circles, partisan news, and during major socio-political events.

What Problem Does This Paper Address?

While individual bot detection has seen significant research, these models are often "community-agnostic," meaning they don't account for the social context in which a bot operates. Furthermore, standard classifiers are frequently miscalibrated: a model might give an account a "bot score" of 0.8, but that doesn't necessarily mean there is an 80% probability it is a bot.

When you aggregate these biased individual scores to estimate a community's total bot percentage, the errors compound, leading to wild over- or under-estimations. This makes it difficult for platform moderators to allocate resources or for users to gauge the authenticity of a digital discourse. BotPercent aims to provide a calibrated, unbiased estimator for bot populations across diverse Twitter communities.

Figure 1: Beyond individual bot detection, our work proposes a socially contextualized community-level bot detection and analysis of bot populations within differ- ent communities on Twitter.

Methods

The authors propose a multi-stage pipeline called BotPercent:

  1. Multi-modal Ensemble: The system combines three distinct types of models to capture different bot behaviors:
  2. Feature-based: Uses metadata like follower counts and account age (Random Forest, AdaBoost).
  3. Text-based: Analyzes tweets and descriptions using pretrained language models (RoBERTa, T5).
  4. Graph-based: Examines the social network structure using Graph Neural Networks (GNNs) like RGT and BotRGCN.
  5. Knowledge Distillation: To solve the scalability issues of GNNs (which require expensive multi-hop neighborhood lookups), the authors distill the knowledge from complex graph models into efficient linear layers for faster inference.
  6. Confidence Calibration: This is the "secret sauce." They use temperature scaling to post-process model outputs, ensuring that the predicted scores align with actual empirical probabilities.
  7. Weighted Combination: Finally, they learn optimal weights to combine these calibrated predictions into a single community-level estimate.
Figure 2: Overview of BotPercent. BotPercent first trains multiple models on merged datasets and then uses confidence calibration to conduct accurate bot percentage estimation. Finally, it combines the predictions with learnable weights to obtain the final result.

Datasets

The researchers merged nine existing Twitter bot datasets (including CRESCI, GILANI, and TwiBot-20/22) to create a massive training pool of over 1.2 million users. This diversity helps the model generalize across different "eras" and types of bots. For evaluation, they utilized the TwiBot-22 benchmark, which includes 10 distinct sub-communities centered around figures like Elon Musk and Barack Obama.

Key Insights and Ideas

  • The Calibration Necessity: The paper highlights that even state-of-the-art individual detectors fail at population estimation if they aren't calibrated. Without it, models tend to be "overconfident," leading to massive biases in community-level stats.
  • Spatial-Temporal Heterogeneity: Bot activity isn't a "global constant." It varies wildly by topic and time. For instance, cryptocurrency celebrities (like Vitalik Buterin) see significantly higher bot interaction (~40%) compared to sports stars (~2-9%).
  • Partisanship as a Magnet: There is a strong correlation between a news outlet's political leaning and bot interference. Centrist media generally have the lowest bot percentages in their comments, while hyper-partisan outlets (both left and right) attract more automated manipulation.
  • Robustness to Policy Changes: In a "feature perturbation" study, BotPercent remained accurate even when the "verified" status (the blue checkmark) was randomized or removed—a critical finding given recent changes to Twitter’s verification systems.

Key Results

BotPercent achieved state-of-the-art performance on the TwiBot-22 benchmark. In experiments with imbalanced communities (where bot percentages ranged from 10% to 90%), BotPercent consistently tracked the ground truth, whereas baseline models often deviated by 20-30% or more.

Performance in imbalanced settings

Real-world findings include: * Elon Musk's Polls: Approximately 8-14% of interactions in the polls regarding Donald Trump’s reinstatement and Musk’s CEO status were driven by bots. * Event Spikes: Bot activity regarding immigration spiked during the 2017 "Muslim ban" period, and abortion-related bot activity surged following the Roe v. Wade Supreme Court leaks.

Limitations and Future Work

  • API Constraints: The scale of analysis is currently limited by the Twitter API's rate limits and data accessibility.
  • Distillation Trade-offs: While distillation makes the model faster, it results in a slight performance drop compared to using full, computationally-heavy GNNs.
  • Cold Start: The model may struggle with new accounts that haven't engaged enough with the platform to leave a detectable behavioral footprint.
  • Bias Inheritance: As an ensemble of existing models and LLMs, BotPercent may inherit underlying social biases present in its training data. The authors suggest future work should integrate explicit bias detection and mitigation techniques.

Summary updated

Abstract

Twitter bot detection is vital in combating misinformation and safeguarding the integrity of social media discourse. While malicious bots are becoming more and more sophisticated and personalized, standard bot detection approaches are still agnostic to social environments (henceforth, communities) the bots operate at. In this work, we introduce community-specific bot detection, estimating the percentage of bots given the context of a community. Our method -- BotPercent -- is an amalgamation of Twitter bot detection datasets and feature-, text-, and graph-based models, adjusted to a particular community on Twitter. We introduce an approach that performs confidence calibration across bot detection models, which addresses generalization issues in existing community-agnostic models targeting individual bots and leads to more accurate community-level bot estimations. Experiments demonstrate that BotPercent achieves state-of-the-art performance in community-level Twitter bot detection across both balanced and imbalanced class distribution settings, %outperforming existing approaches and presenting a less biased estimator of Twitter bot populations within the communities we analyze. We then analyze bot rates in several Twitter groups, including users who engage with partisan news media, political communities in different countries, and more. Our results reveal that the presence of Twitter bots is not homogeneous, but exhibiting a spatial-temporal distribution with considerable heterogeneity that should be taken into account for content moderation and social media policy making. The implementation of BotPercent is available at https://github.com/TamSiuhin/BotPercent.
BibTeX
@inproceedings{tan2023botpercent,
  author = {Zhaoxuan Tan and Shangbin Feng and Melanie Sclar and Herun Wan and Minnan Luo and Yejin Choi and Yulia Tsvetkov},
  title = {{BotPercent: Estimating Bot Populations in Twitter Communities}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.954},
}
Figure