Understanding Transformers for Bot Detection in Twitter

Andres Garcia-Silva, Cristian Berrio, Jose Manuel Gomez-Perez
4/13/2021
cs.CLcs.LG
transformer-attention

Official code: botonobot/Understanding-Transformers-for-Bot-Detection-Twitter (4 stars, Jupyter Notebook, last commit 2020-11-24).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

This repository includes full-size images, tables and jupyter notebooks with the experiments reported in the paper Understanding Transformers for Bot Detection in Twitter submitted for revision to Coling'2020.

41Jupyter Notebook, PythonJun 30, 20206 years ago

Similar Papers

Cite this paper

@article{garciasilva2021understanding,
  title  = {Understanding Transformers for Bot Detection in Twitter},
  author = {Andres Garcia-Silva and Cristian Berrio and Jose Manuel Gomez-Perez},
  year   = {2021},
  eprint = {2104.06182},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.06182}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.06182.svg)](https://codeofpaper.com/paper/2104.06182)

Discussion