mlsanityData to 14 Oct 2026

Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuning

arXiv 2307.02179 ↗First posted 5 Jul 2023cs.CLcited by 32

Not on the map. Why?

Abstract (arXiv)

This paper studies the performance of open-source Large Language Models (LLMs) in text classification tasks typical for political science research. By examining tasks like stance, topic, and relevance classification, we aim to guide scholars in making informed decisions about their use of LLMs for text analysis. Specifically, we conduct an assessment of both zero-shot and fine-tuned LLMs across a range of text annotation tasks using news articles and tweets datasets. Our analysis shows that fine-tuning improves the performance of open-source LLMs, allowing them to match or even surpass zero-shot GPT-3.5 and GPT-4, though still lagging behind fine-tuned GPT-3.5. We further establish that fine-tuning is preferable to few-shot training with a relatively modest quantity of annotated text. Our findings show that fine-tuned open-source LLMs can be effectively deployed in a broad spectrum of text annotation applications. We provide a Python notebook facilitating the application of LLMs in text annotation for other researchers.

Key facts. Cited by 32 papers in the map (data through 14 Oct 2026). Builds on 7 of its 17 references that are in the map. First posted on arXiv 5 Jul 2023.

Builds on

7 of 17 references.

References · 7

  1. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  2. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
  3. 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 324
  4. 2023Can Large Language Models Transform Computational Social Science?cited by 250
  5. 2022Is GPT-3 a Good Data Annotator?cited by 208
  6. 2019Structured Pruning of Large Language Modelscited by 203
  7. 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 11; 2025: 13; 2026: 7.

32 papers.

Sort:

By area:

  1. 2024If in a Crowdsourced Data Annotation Pipeline, a GPT-4cited by 38
  2. 2025The Shrinking Landscape of Linguistic Diversity in the Age of Large Language Modelscited by 29
  3. 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Executioncited by 26
  4. 2023Large Language Models for Propaganda Span Annotationcited by 19
  5. 2024SpeechGuard: Exploring the Adversarial Robustness of Multimodal Large Language Modelscited by 18
  6. 2024Just ASR + LLM? A Study on Speech Large Language Models' Ability to Identify and Understand Speaker in Spoken Dialoguecited by 16
  7. 2024Modelling Political Coalition Negotiations Using LLM-based Agentscited by 13
  8. 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMscited by 9
  9. 2024Adversarial Text Purification: A Large Language Model Approach for Defensecited by 8
  10. 2025Comprehensive Analysis of Transparency and Accessibility of ChatGPT, DeepSeek, And other SoTA Large Language Modelscited by 8
  11. 2025A validity-guided workflow for robust large language model research in psychologycited by 8
  12. 2024Global-Liar: Factuality of LLMs over Time and Geographic Regionscited by 6
20 more
  1. 2025Labeling Free-text Data using Language Model Ensemblescited by 5
  2. 2026Gender Dynamics and Homophily in a Social Network of LLM Agentscited by 5
  3. 2024Benchmarking LLMs in Political Content Text-Annotation: Proof-of-Concept with Toxicity and Incivility Datacited by 4
  4. 2024Fact or Fiction? Can LLMs be Reliable Annotators for Political Truths?cited by 3
  5. 2024Transferring Natural Language Datasets Between Languages Using Large Language Models for Modern Decision Support and Sci-Tech Analytical Systemscited by 2
  6. 2025Deep literature reviews: an application of fine-tuned language models to migration researchcited by 2
  7. 2025Introducing HALC: A general pipeline for the systematic and reliable construction of prompts for automated coding with LLMs in the computational social sciencescited by 2
  8. 2026Large language models struggle with ethnographic text annotationcited by 2
  9. 2024Entity-Level Sentiment: More than the Sum of Its Partscited by 1
  10. 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciencescited by 1
  11. 2025Reliable Decision Support with LLMs: A Framework for Evaluating Consistency in Binary Text Classification Applicationscited by 1
  12. 2025LaajMeter: A Framework for LaaJ Evaluationcited by 1
  13. 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
  14. 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerablecited by 1
  15. 2024Human-LLM Collaborative Construction of a Cantonese Emotion Lexiconcited by 0
  16. 2025Are Large Language Models the future crowd workers of Linguistics?cited by 0
  17. 2025Synthetic News Generation for Fake News Classificationcited by 0
  18. 2026Magic Words or Methodical Work? Challenging Conventional Wisdom in LLM-Based Political Text Annotationcited by 0
  19. 2026Framing Migration News with LLMs: Structured CoT as a Support for Human Interpretationcited by 0
  20. 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate Newscited by 0