Skip to main content
QUICK REVIEW

[논문 리뷰] Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuning

Meysam Alizadeh, Maël Kubli|arXiv (Cornell University)|2023. 07. 05.
Topic ModelingComputer Science인용 수 20
한 줄 요약

연구는 11개의 텍스트 주석 과제에서 오픈소스 LLM(HuggingChat, FLAN)과 ChatGPT, MTurk를 비교하고 제로샷 및 퓨샷 설정에서 서로 다른 온도와 함께 탐구하며, 오픈소스 LLM이 종종 MTurk를 능가하고 ChatGPT에 근접할 수 있음을 발견한다.

ABSTRACT

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.

연구 동기 및 목표

  • Assess open-source LLMs (HuggingChat, FLAN) versus ChatGPT and MTurk on multiple text-annotation tasks.
  • Investigate zero-shot and few-shot learning across varying temperature settings.
  • Examine how model size and prompts influence annotation accuracy and intercoder agreement.
  • Evaluate practical aspects: cost, data protection, and reproducibility of open-source LLMs.
  • Provide guidance on model setting choices for text-annotation tasks.

제안 방법

  • Compare ChatGPT, HuggingChat, and FLAN across 11 annotation tasks on 4 datasets.
  • Test ChatGPT and HuggingChat with zero-shot and several temperature settings; FLAN tested in zero-shot across L/XL/XXL sizes.
  • Use two runs per setting to compute intercoder agreement.
  • Apply few-shot prompting with Chain-of-Thought (CoT) using two human-annotated examples per class.
  • Measure accuracy against trained annotators and MTurk as gold standards.
Figure 1: Accuracy of ChatGPT, open-source LLMs, and MTurk. Accuracy means agreement with trained annotators. Bars indicate average accuracy, while whiskers range from minimum to maximum accuracy across models with different parameters and/or prompts (zero vs few shot).
Figure 1: Accuracy of ChatGPT, open-source LLMs, and MTurk. Accuracy means agreement with trained annotators. Bars indicate average accuracy, while whiskers range from minimum to maximum accuracy across models with different parameters and/or prompts (zero vs few shot).

실험 결과

연구 질문

  • RQ1Do open-source LLMs outperform crowd workers and approach ChatGPT in text-annotation tasks?
  • RQ2How do zero-shot versus few-shot prompting and temperature settings affect performance across tasks?
  • RQ3What are the cost and data-protection implications of using open-source LLMs for annotation compared to proprietary models and MTurk?
  • RQ4How consistent are model outputs with human annotators as measured by intercoder agreement?

주요 결과

  • ChatGPT generally achieves the highest average accuracy across tasks.
  • Open-source LLMs surpass MTurk in the majority of tasks and, for top models, can outperform ChatGPT in some tasks.
  • Top-performing open-source LLMs beat MTurk in nine of eleven tasks and approach ChatGPT in several others.
  • Performance varies by dataset and task; no single setting universally maximizes performance for all models.
  • Lower temperature settings often improve HuggingChat performance, while FLAN’s larger size does not guarantee better results (FLAN tested only in zero-shot).
  • Open-source LLMs offer substantial cost advantages (free to use) and enhanced data protection (no third-party data sharing).
Figure S1: ChatGPT
Figure S1: ChatGPT

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.