The DOI matches its DataCite record; 17 of the 17 references it cites were found in a registry or an index.
Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuning
Open accessAbstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source says what the claim attributes to it.
In the citing paper
“In the domain of text annotations in general, both proprietary and open-source LLMs have shown remarkable effectiveness [1, 2, 13, 18, 25].”
From UMBRELA: UMbrela is the (Open-Source Reproduction of the) Bing RELevance Assessor (2024) · cites this paper as [1]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., & Neubig, G. (2023) · ACM Computing Surveys · doi:10.1145/3560815 · Cited by 4,361
ChatGPT: five priorities for research
van Dis, E. A. M., Bollen, J., Zuidema, W., van Rooij, R., & Bockting, C. L. (2023) · Nature · doi:10.1038/d41586-023-00288-7 · Cited by 1,842
ChatGPT outperforms crowd workers for text-annotation tasks
Gilardi, F., Alizadeh, M., & Kubli, M. (2023) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.2305016120 · Cited by 1,197
Self-citationCan Large Language Models Transform Computational Social Science?
Ziems, C., Held, W., Shaikh, O., Chen, J., Zhang, Z., & Yang, D. (2024) · Computational Linguistics · doi:10.1162/coli_a_00502 · Cited by 585
LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language ModelsPreprint
Hu, Z., Wang, L., Lan, Y.-H., Xu, W., Lim, E.-P., Bing, L., Xu, X., Poria, S., & Lee, R. K.-W. (2023) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2304.01933 · Cited by 547
Structured Pruning of Large Language Models
Wang, Z.-H., Wohlwend, J., & Lei, T. (2019) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.1910.04732 · Cited by 363
Digitization of healthcare sector: A study on privacy and security concerns
Paul, M., Maglaras, L. A., Ferrag, M., & Almomani, I. (2023) · ICT express · doi:10.1016/j.icte.2023.02.007 · Cited by 284
Automated Text Classification of News Articles: A Practical Guide
Barberá, P., Boydstun, A., Linn, S., McMahon, R., & Nagler, J. (2020) · Political Analysis · doi:10.1017/pan.2020.8 · Cited by 156
Liesenfeld, A., Lopez, A., & Dingemanse, M. (2023) · Proceedings of the 5th International Conference on Conversational User Interfaces · doi:10.1145/3571884.3604316 · Cited by 111
Why open-source generative AI models are an ethical way forward for science
Spirling, A. (2023) · Nature · doi:10.1038/d41586-023-01295-4 · Cited by 104
Research works printed but not linked: 23
- Binz, Marcel and Eric Schulz. 2023. 'Turning large language models into cognitive models.' arXiv:2306.03917 . · arXiv
- Brown, Tom, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell et al. 2020. 'Language models are few-shot learners.' Advances in neural information processing systems 33:1877-1901.
- Card, Dallas, Amber Boydstun, Justin H Gross, Philip Resnik and Noah A Smith. 2015. The media frames corpus: Annotations of frames across issues. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers) . pp. 438-444.
- Chung, Hyung Won, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma et al. 2022. 'Scaling instruction-finetuned language models.' arXiv:2210.11416 . · arXiv
- Dettmers, Tim, Artidoro Pagnoni, Ari Holtzman and Luke Zettlemoyer. 2024. 'Qlora: Efficient finetuning of quantized llms.' Advances in Neural Information Processing Systems 36.
- He, Junxian, Chunting Zhou, Xuezhe Ma, Taylor Berg-Kirkpatrick and Graham Neubig. 2021. 'Towards a unified view of parameter-efficient transfer learning.' arXiv:2110.04366 . · arXiv
- Hoffmann, Jordan, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark et al. 2022. 'Training compute-optimal large language models.' arXiv:2203.15556 . · arXiv
- Howard, Jeremy and Sebastian Ruder. 2018. 'Universal language model fine-tuning for text classification.' arXiv:1801.06146 . · arXiv
- Hu, Edward J, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang and Weizhu Chen. 2021. 'Lora: Low-rank adaptation of large language models.' arXiv:2106.09685 . · arXiv
- Kojima, Takeshi, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo and Yusuke Iwasawa. 2022. 'Large language models are zero-shot reasoners.' arXiv:2205.11916 . · arXiv
- Murdoch, Blake. 2021. 'Privacy and artificial intelligence: challenges for protecting health information in a new era.' BMC Medical Ethics 22(1):1-5.
- Ouyang, Long, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems , ed. S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho and A. Oh. Vol. 35 Curran Associates, Inc. pp. 27730-27744.
- Pangakis, Nicholas, Samuel Wolken and Neil Fasching. 2023. 'Automated Annotation with Generative AI Requires Validation.' arXiv:2306.00176 . · arXiv
- Ray, Partha Pratim. 2023. 'ChatGPT: A comprehensive review on background, applications, key challenges, bias, ethics, limitations and future scope.' Internet of Things and Cyber-Physical Systems .
- Schick, Timo, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda and Thomas Scialom. 2024. 'Toolformer: Language models can teach themselves to use tools.' Advances in Neural Information Processing Systems 36.
- Shen, Yongliang, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu and Yueting Zhuang. 2024. 'Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face.' Advances in Neural Information Processing Systems 36.
- Törnberg, Petter. 2023 b . 'Chatgpt-4 outperforms experts and crowd workers in annotating political twitter messages with zero-shot learning.' arXiv:2304.06588 . · arXiv
- Touvron, Hugo, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale et al. 2023. 'Llama 2: Open foundation and fine-tuned chat models.' arXiv:2307.09288 . · arXiv
- Wei, Jason, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le and Denny Zhou. 2022. 'Chain of thought prompting elicits reasoning in large language models.' arXiv:2201.11903 . · arXiv
- Yang, Jingfeng, Hongye Jin, Ruixiang Tang, Xiaotian Han, Qizhang Feng, Haoming Jiang, Bing Yin and Xia Hu. 2023. 'Harnessing the power of llms in practice: A survey on chatgpt and beyond.' arXiv:2304.13712 . · arXiv
- Yang, Wen, Chong Li, Jiajun Zhang and Chengqing Zong. 2023. 'BigTrans: Augmenting Large Language Models with Multilingual Translation Capability over 100 Languages.' arXiv:2305.18098 . · arXiv
- Zhang, Biao, Zhongtao Liu, Colin Cherry and Orhan Firat. 2024. 'When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Method.' arXiv:2402.17193 . · arXiv
- Zhang, Zhuosheng, Aston Zhang, Mu Li, Hai Zhao, George Karypis and Alex Smola. 2023. 'Multimodal chain-of-thought reasoning in language models.' arXiv:2302.00923 . · arXiv
Cited by
Sorted by citations
Items 101–114 of 114
AI-enhanced therapeutic alliance: bridging AI innovation and mental health care
Manimegalai, R., Vijay Raj Kumar, M., B., T., & Kumar, M. R. (2025) · Mental Health and Social Inclusion · doi:10.1108/mhsi-10-2025-0281
Using Chat-GPT for coding properties in semantic memory studies
Á., D. R., Moreno, S., Canessa, E., & Chaigneau, S. E. (2025) · 2025 15th IEEE International Conference on Pattern Recognition Systems (ICPRS) · doi:10.1109/icprs66293.2025.11302840
“Even though Large Language Models have been extensively used as annotators for different tasks [13, 14, 15], most of these tasks are focused on sentences and a few classes (usually binary).”
Network Architecture for Value Enhanced LLM Use Considering Volunteer Computing Paradigm
Periola, A., Alonge, A., & Ogudo, K. (2025) · Proceedings of the 2025 International Conference on Artificial Intelligence, Big Data, Computing and Data Communication Systems · doi:10.1145/3759023.3759092
Zhou, G.-Y., Yu, T., Zhang, K.-L., Ru, C.-X., Gao, Y., & Song, Y. (2025) · Proceedings of the 2025 8th International Conference on Computer Information Science and Artificial Intelligence · doi:10.1145/3773365.3773373
“Knowledge injection involves integrating external knowledge into pre-trained language models and is crucial for enhancing their performance in knowledge-intensive tasks [12] [13].”
LegSegSC: A Silver-Standard Rhetorical Role Labeled Dataset of Indian Supreme Court Judgments
Sharma, S., Singh, P., & Verma, A. (2025) · SN Computer Science · doi:10.1007/s42979-025-04359-6
“This study not only advances legal NLP by improving the quality of RR-labeling but also addresses the scalability and efficiency challenges associated with manual annotation [16, 17].”
Cao, Y., & Gu, N.-J. (2025) · International Conference on Networking and Network Applications · doi:10.1109/nana66698.2025.00026
“Large Language Models (LLMs) are pre-trained on extensive volumes of unannotated textual data sourced from the internet [5].”
Zhang, R.-W., Liu, B., Cao, J.-X., & Zhao, H.-T. (2025) · Expert systems with applications · doi:10.1016/j.eswa.2025.129093
Are Large Language Models the future crowd workers of Linguistics?Preprint
Ferrazzo, I. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2502.10266
From Binary to Multi-Class: LLM-Judged Synthetic Annotation Applied to Hate Speech Detection
Moreno-Cediel, A., García‐Cabot, A., & García‐López, E. (2026) · Computers, materials & continua/Computers, materials & continua (Print) · doi:10.32604/cmc.2026.083252
“While some studies support the deployment of LLMs in a broad spectrum of text annotation applications [17,18], others question the reliability of the use of LLMs for annotation purposes [16,19].”
Lin, C., Xu, Z., Wu, K., & Bai, O. (2026) · IEEE Access · doi:10.1109/access.2026.3736407
“They also found fine-tuning to be more effective than few-shot learning in these contexts [51].”
Sufi, F., & Alsulami, M. (2026) · Computers, Materials & Continua · doi:10.32604/cmc.2026.090635
“Evidence from annotation research suggests that large language models can perform complex classification and text labelling tasks with substantial efficiency and, in specific settings, performance that equals or exceeds conventional crowd based workflows [6,8,9].”
François, M., Gay, P., Dugué, N., Auvet, B., & de Sartre, X. A. (2026) · Procedia Computer Science · doi:10.1016/j.procs.2026.09.187
Evaluating Large Language Model Versus Human Performance in Islamophobia Dataset Annotation
Daud, R., Basir, N., Heng, N. F. N. M. R., Sepli, M. M. S. M., & Melinda, M. (2025) · International Journal of Advanced Computer Science and Applications · doi:10.14569/ijacsa.2025.0160512 · Cited by 1
“Additionally, open-source LLMs such as HuggingChat and FLAN have demonstrated superior performance in specific tasks, offering cost-effective alternatives to proprietary models [44].”
Reich, A., Thoms, C., & Schrimpf, T. (2025) · arXiv.org · doi:10.48550/arxiv.2507.21831
“After all, there are many factors involved in their performance so that differences between models cannot be automatically ruled out (Alizadeh et al., 2024).”
Metadata
- Authors
- Alizadeh, M., Kubli, M., Samei, Z., Dehghani, S., Zahedivafa, M., Bermeo, J. D., Korobeynikova, M., & Gilardi, F.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2307.02179
- OpenAlex
- W4383473003
- Cited by
- 18
- References
- 17
- Citations by year
- 2025: 5 · 2024: 11 · 2023: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Social Sciences › General Social Sciences › Computational and Text Analysis Methods
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Sentiment Analysis and Opinion Mining
- Keywords
- open-source large language models, text classification, textual annotation, fine-tuning, zero-shot learning, few-shot learning, stance detection, topic classification, relevance classification, political science research, news articles, tweets, GPT-3.5, GPT-4
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review