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
The dangers of using proprietary LLMs for research
Ollion, É., Shen, R., Macanovic, A., & Chatelain, A. (2024) · Nature Machine Intelligence · doi:10.1038/s42256-023-00783-6 · Cited by 62
Inseq: An Interpretability Toolkit for Sequence Generation Models
Sarti, G., Feldhus, N., Sickert, L., & van der Wal, O. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-demo.40 · Cited by 56
Annotated dataset creation through large language models for non-english medical NLP
Frei, J., & Krämer, F. (2023) · Journal of Biomedical Informatics · doi:10.1016/j.jbi.2023.104478 · Cited by 56
Content Moderation As a Political Issue: The Twitter Discourse Around Trump's Ban
Alizadeh, M., Gilardi, F., Hoes, E., Klüser, K. J., Kubli, M., & Marchal, N. (2022) · Journal of Quantitative Description Digital Media · doi:10.51685/jqd.2022.023 · Cited by 35
Self-citationMarchal, N., Hoes, E., Klüser, K. J., Hamborg, F., Alizadeh, M., Kubli, M., & Katzenbach, C. (2024) · Political Communication · doi:10.1080/10584609.2024.2377992 · Cited by 27
Self-citationAlizadeh, M., Hoes, E., & Gilardi, F. (2023) · Scientific Reports · doi:10.1038/s41598-023-40716-2 · Cited by 17
Self-citationIs GPT-3 a Good Data Annotator?
Ding, B., Qin, C., Liu, L., Chia, Y. K., Joty, S., Li, B., & Bing, L. (2022) · arXiv · doi:10.48550/arxiv.2212.10450 · Cited by 15
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
A Survey of GPT-3 Family Large Language Models Including ChatGPT and GPT-4
Kalyan, K. S. (2024) · Natural Language Processing Journal · doi:10.1016/j.nlp.2023.100048 · Cited by 335
Can Generative AI improve social science?
Bail, C. A. (2024) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.2314021121 · Cited by 369
If in a Crowdsourced Data Annotation Pipeline, a GPT-4
He, Z., Huang, C.-Y., Ding, C. C., Rohatgi, S., & Huang, T.-H. (2024) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3613904.3642834 · Cited by 52
Updating “The Future of Coding”: Qualitative Coding with Generative Large Language Models
Than, N., Fan, L., Law, T., Nelson, L. K., & McCall, L. (2025) · Sociological Methods & Research · doi:10.1177/00491241251339188 · Cited by 63
“Fine-tuning can potentially enhance the performance of LLMs by adapting them more speci fi cally to the nuances of the task and data at hand (Alizadeh et al. 2024).”
The shrinking landscape of linguistic diversity in the age of large language models
Sourati, Z., Karimi-Malekabadi, F., Ozcan, M., McDaniel, C., Ziabari, A. S., Trager, J. P., Tak, A. N., Chen, M., Morstatter, F., & Dehghani, M. (2026) · Nature Human Behaviour · doi:10.1038/s41562-026-02550-0 · Cited by 67
“We used OpenAI’s text-embedding-ada-002 model to generate high-dimensional embeddings for both the original and rewritten texts because of their excellent performance on sentence similarity tasks 113,114 and near-human annotation capabilities 115,116 .”
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