Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuning
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
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 324
- 2023Can Large Language Models Transform Computational Social Science?cited by 250
- 2022Is GPT-3 a Good Data Annotator?cited by 208
- 2019Structured Pruning of Large Language Modelscited by 203
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
Built on by
Citing papers per year: 2023: 1; 2024: 11; 2025: 13; 2026: 7.
32 papers.
Sort:
By area:
- 2024If in a Crowdsourced Data Annotation Pipeline, a GPT-4cited by 38
- 2025The Shrinking Landscape of Linguistic Diversity in the Age of Large Language Modelscited by 29
- 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Executioncited by 26
- 2023Large Language Models for Propaganda Span Annotationcited by 19
- 2024SpeechGuard: Exploring the Adversarial Robustness of Multimodal Large Language Modelscited by 18
- 2024Just ASR + LLM? A Study on Speech Large Language Models' Ability to Identify and Understand Speaker in Spoken Dialoguecited by 16
- 2024Modelling Political Coalition Negotiations Using LLM-based Agentscited by 13
- 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMscited by 9
- 2024Adversarial Text Purification: A Large Language Model Approach for Defensecited by 8
- 2025Comprehensive Analysis of Transparency and Accessibility of ChatGPT, DeepSeek, And other SoTA Large Language Modelscited by 8
- 2025A validity-guided workflow for robust large language model research in psychologycited by 8
- 2024Global-Liar: Factuality of LLMs over Time and Geographic Regionscited by 6
20 more
- 2025Labeling Free-text Data using Language Model Ensemblescited by 5
- 2026Gender Dynamics and Homophily in a Social Network of LLM Agentscited by 5
- 2024Benchmarking LLMs in Political Content Text-Annotation: Proof-of-Concept with Toxicity and Incivility Datacited by 4
- 2024Fact or Fiction? Can LLMs be Reliable Annotators for Political Truths?cited by 3
- 2024Transferring Natural Language Datasets Between Languages Using Large Language Models for Modern Decision Support and Sci-Tech Analytical Systemscited by 2
- 2025Deep literature reviews: an application of fine-tuned language models to migration researchcited by 2
- 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
- 2026Large language models struggle with ethnographic text annotationcited by 2
- 2024Entity-Level Sentiment: More than the Sum of Its Partscited by 1
- 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciencescited by 1
- 2025Reliable Decision Support with LLMs: A Framework for Evaluating Consistency in Binary Text Classification Applicationscited by 1
- 2025LaajMeter: A Framework for LaaJ Evaluationcited by 1
- 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
- 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerablecited by 1
- 2024Human-LLM Collaborative Construction of a Cantonese Emotion Lexiconcited by 0
- 2025Are Large Language Models the future crowd workers of Linguistics?cited by 0
- 2025Synthetic News Generation for Fake News Classificationcited by 0
- 2026Magic Words or Methodical Work? Challenging Conventional Wisdom in LLM-Based Political Text Annotationcited by 0
- 2026Framing Migration News with LLMs: Structured CoT as a Support for Human Interpretationcited by 0
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate Newscited by 0
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate News25 Jun 2026
- 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerable9 Jun 2026
- 2026Framing Migration News with LLMs: Structured CoT as a Support for Human Interpretation2 Jun 2026
- 2026Magic Words or Methodical Work? Challenging Conventional Wisdom in LLM-Based Political Text Annotation27 Mar 2026
- 2026Gender Dynamics and Homophily in a Social Network of LLM Agents2 Feb 2026
- 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMs22 Jan 2026
- 2026Large language models struggle with ethnographic text annotation17 Jan 2026
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
- 2025LaajMeter: A Framework for LaaJ Evaluation13 Aug 2025
- 2025Introducing HALC: A general pipeline for the systematic and reliable construction of prompts for automated coding with LLMs in the computational social sciences29 Jul 2025
- 2025A validity-guided workflow for robust large language model research in psychology6 Jul 2025
- 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Execution1 Jun 2025
20 more
- 2025Reliable Decision Support with LLMs: A Framework for Evaluating Consistency in Binary Text Classification Applications20 May 2025
- 2025Deep literature reviews: an application of fine-tuned language models to migration research17 Apr 2025
- 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciences4 Apr 2025
- 2025Synthetic News Generation for Fake News Classification31 Mar 2025
- 2025Comprehensive Analysis of Transparency and Accessibility of ChatGPT, DeepSeek, And other SoTA Large Language Models21 Feb 2025
- 2025The Shrinking Landscape of Linguistic Diversity in the Age of Large Language Models16 Feb 2025
- 2025Are Large Language Models the future crowd workers of Linguistics?14 Feb 2025
- 2025Labeling Free-text Data using Language Model Ensembles14 Jan 2025
- 2024Fact or Fiction? Can LLMs be Reliable Annotators for Political Truths?8 Nov 2024
- 2024Transferring Natural Language Datasets Between Languages Using Large Language Models for Modern Decision Support and Sci-Tech Analytical Systems17 Oct 2024
- 2024Human-LLM Collaborative Construction of a Cantonese Emotion Lexicon15 Oct 2024
- 2024Benchmarking LLMs in Political Content Text-Annotation: Proof-of-Concept with Toxicity and Incivility Data15 Sep 2024
- 2024Just ASR + LLM? A Study on Speech Large Language Models' Ability to Identify and Understand Speaker in Spoken Dialogue7 Sep 2024
- 2024Entity-Level Sentiment: More than the Sum of Its Parts4 Jul 2024
- 2024SpeechGuard: Exploring the Adversarial Robustness of Multimodal Large Language Models14 May 2024
- 2024If in a Crowdsourced Data Annotation Pipeline, a GPT-426 Feb 2024
- 2024Modelling Political Coalition Negotiations Using LLM-based Agents18 Feb 2024
- 2024Adversarial Text Purification: A Large Language Model Approach for Defense5 Feb 2024
- 2024Global-Liar: Factuality of LLMs over Time and Geographic Regions31 Jan 2024
- 2023Large Language Models for Propaganda Span Annotation16 Nov 2023
- 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Executioncited by 26
- 2024Modelling Political Coalition Negotiations Using LLM-based Agentscited by 13
- 2026Gender Dynamics and Homophily in a Social Network of LLM Agentscited by 5
- 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerablecited by 1
- 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerable9 Jun 2026
- 2026Gender Dynamics and Homophily in a Social Network of LLM Agents2 Feb 2026
- 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Execution1 Jun 2025
- 2024Modelling Political Coalition Negotiations Using LLM-based Agents18 Feb 2024
- 2024If in a Crowdsourced Data Annotation Pipeline, a GPT-4cited by 38
- 2025The Shrinking Landscape of Linguistic Diversity in the Age of Large Language Modelscited by 29
- 2023Large Language Models for Propaganda Span Annotationcited by 19
- 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMscited by 9
- 2024Adversarial Text Purification: A Large Language Model Approach for Defensecited by 8
- 2025Comprehensive Analysis of Transparency and Accessibility of ChatGPT, DeepSeek, And other SoTA Large Language Modelscited by 8
- 2025A validity-guided workflow for robust large language model research in psychologycited by 8
- 2024Global-Liar: Factuality of LLMs over Time and Geographic Regionscited by 6
- 2025Labeling Free-text Data using Language Model Ensemblescited by 5
- 2024Benchmarking LLMs in Political Content Text-Annotation: Proof-of-Concept with Toxicity and Incivility Datacited by 4
- 2024Fact or Fiction? Can LLMs be Reliable Annotators for Political Truths?cited by 3
- 2024Transferring Natural Language Datasets Between Languages Using Large Language Models for Modern Decision Support and Sci-Tech Analytical Systemscited by 2
12 most cited of 26 All 26 (JSON)
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate News25 Jun 2026
- 2026Framing Migration News with LLMs: Structured CoT as a Support for Human Interpretation2 Jun 2026
- 2026Magic Words or Methodical Work? Challenging Conventional Wisdom in LLM-Based Political Text Annotation27 Mar 2026
- 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMs22 Jan 2026
- 2026Large language models struggle with ethnographic text annotation17 Jan 2026
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
- 2025LaajMeter: A Framework for LaaJ Evaluation13 Aug 2025
- 2025Introducing HALC: A general pipeline for the systematic and reliable construction of prompts for automated coding with LLMs in the computational social sciences29 Jul 2025
- 2025A validity-guided workflow for robust large language model research in psychology6 Jul 2025
- 2025Reliable Decision Support with LLMs: A Framework for Evaluating Consistency in Binary Text Classification Applications20 May 2025
- 2025Deep literature reviews: an application of fine-tuned language models to migration research17 Apr 2025
- 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciences4 Apr 2025
12 newest of 26 All 26 (JSON)