Benchmarking LLMs in Political Content Text-Annotation: Proof-of-Concept with Toxicity and Incivility Data
Preprint
Abstract
This article benchmarked the ability of OpenAI's GPTs and a number of open-source LLMs to perform annotation tasks on political content. We used a novel protest event dataset comprising more than three million digital interactions and created a gold standard that includes ground-truth labels annotated by human coders about toxicity and incivility on social media. We included in our benchmark Google's Perspective algorithm, which, along with GPTs, was employed throughout their respective APIs while the open-source LLMs were deployed locally. The findings show that Perspective API using a laxer threshold, GPT-4o, and Nous Hermes 2 Mixtral outperform other LLM's zero-shot classification annotations. In addition, Nous Hermes 2 and Mistral OpenOrca, with a smaller number of parameters, are able to perform the task with high performance, being attractive options that could offer good trade-offs between performance, implementing costs and computing time. Ancillary findings using experiments setting different temperature levels show that although GPTs tend to show not only excellent computing time but also overall good levels of reliability, only open-source LLMs ensure full reproducibility in the annotation.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Open-source LLMs for text annotation: a practical guide for model setting and fine-tuningJournal of Computational Social Science, 2024
- Quantifying the uncertainty of LLM hallucination spreading in complex adaptive social networksScientific Reports, 2024
- Large language models know how the personality of public figures is perceived by the general publicScientific Reports, 2024
- Assessing the Prevalence and Predictors of Incivility in Online News Comments Across Six CountriesJournalism Practice, 2023
- ChatGPT outperforms crowd workers for text-annotation tasksProceedings of the National Academy of Sciences of the United States of America, 2023
- Why open-source generative AI models are an ethical way forward for scienceNature, 2023
- Out of One, Many: Using Language Models to Simulate Human SamplesPolitical Analysis, 2023
- Developing an Incivility Dictionary for German Online Discussions – a Semi-Automated Approach Combining Human and Artificial KnowledgeCommunication Methods and Measures, 2023
- Automated dictionary generation for political eventcodingPolitical Science Research and Methods, 2019
- Online Incivility and Public Debate2017