mlsanityData to 14 Oct 2026

Understanding Transformers for Bot Detection in Twitter

arXiv 2104.06182 ↗First posted 13 Apr 2021cs.CL cs.LGcited by 1

On the map: Mechanistic interpretability → Knowledge and representations inside LLMs

Abstract (arXiv)

In this paper we shed light on the impact of fine-tuning over social media data in the internal representations of neural language models. We focus on bot detection in Twitter, a key task to mitigate and counteract the automatic spreading of disinformation and bias in social media. We investigate the use of pre-trained language models to tackle the detection of tweets generated by a bot or a human account based exclusively on its content. Unlike the general trend in benchmarks like GLUE, where BERT generally outperforms generative transformers like GPT and GPT-2 for most classification tasks on regular text, we observe that fine-tuning generative transformers on a bot detection task produces higher accuracies. We analyze the architectural components of each transformer and study the effect of fine-tuning on their hidden states and output representations. Among our findings, we show that part of the syntactical information and distributional properties captured by BERT during pre-training is lost upon fine-tuning while the generative pre-training approach manage to preserve these properties.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 21 of its 38 references that are in the map. First posted on arXiv 13 Apr 2021.

Builds on

21 of 38 references.

References · 21

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  7. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  8. 2018Deep contextualized word representationscited by 2,290
  9. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
  10. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  11. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  12. 2018Neural Network Acceptability Judgmentscited by 958
9 more
  1. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  2. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  3. 2019Defending Against Neural Fake Newscited by 559
  4. 2019Revealing the Dark Secrets of BERTcited by 301
  5. 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
  6. 2019A BERT-Based Transfer Learning Approach for Hate Speech Detection in Online Social Mediacited by 96
  7. 2017The spread of low-credibility content by social botscited by 73
  8. 2017Online Human-Bot Interactions: Detection, Estimation, and Characterizationcited by 64
  9. 2018Universal Language Model Fine-tuning for Text Classificationcited by 52

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2021Neural Models for Offensive Language Detection
  2. 2026Detecting AI-Generated Content on Social Media with Multi-modal Language Models
  3. 2026Detecting the Machine: A Comprehensive Benchmark of AI-Generated Text Detectors Across Architectures, Domains, and Adversarial Conditions
  4. 2026Social bot detection in the age of ChatGPT: Challenges and opportunities
  5. 2023NLP-LTU at SemEval-2023 Task 10: The Impact of Data Augmentation and Semi-Supervised Learning Techniques on Text Classification Performance on an Imbalanced Dataset
  6. 2026Enhancing Hate Speech Detection on Social Media: A Comparative Analysis of Machine Learning Models and Text Transformation Approaches
  7. 2025Layer-Wise Evolution of Representations in Fine-Tuned Transformers: Insights from Sparse AutoEncoders
  8. 2024Manipulating and Mitigating Generative Model Biases without Retraining