Text Annotation via Inductive Coding: Comparing Human Experts to LLMs in Qualitative Data Analysis

Angelina Parfenova, Andreas Marfurt, Jürgen Pfeffer, Alexander DenzlerNAACL 2025

Introduction

Qualitative Data Analysis (QDA) is a cornerstone of social science research, yet it remains a labor-intensive and subjective process. A primary challenge is inductive coding, where thematic labels emerge organically from raw data. While automation has succeeded in deductive tasks (assigning text to pre-defined categories), inductive coding requires a higher degree of interpretive synthesis. This study investigates whether Large Language Models (LLMs) can effectively automate this process, comparing their performance against human experts.

Methodology

The researchers evaluated six open-source LLMs: Llama3 (8B), Falcon (7B), Mistral (7B), Vicuna (7B), Gemma (7B), and TinyLlama (1.1B). Performance was assessed across three prompting strategies: zero-shot, few-shot (1-5 examples), and fine-tuning using Low-Rank Adaptation (LoRA).

The evaluation utilized a dataset of 1,000 code-quote pairs derived from social science interviews and consumer reviews (SemEval 2014). Success was measured using automated metrics (ROUGE, BERTScore) and a two-stage blind human expert evaluation where coders rated both peer and AI-generated labels.

Key Insights: The Efficiency of Fine-Tuning

A significant finding for practical research applications is the "100 Example Plateau." Analysis of model performance indicates that the gains from fine-tuning begin to diminish after approximately 100 examples. This suggests that researchers can adapt LLMs to specific qualitative domains without the need for massive, prohibitively expensive datasets.

Model performance (F1 Score) across different fine-tuning sample sizes, showing a plateau around 100 examples.

Results: The Complexity Flip

The study revealed a "peculiar dichotomy" in how humans and LLMs process text. For simple, literal sentences, LLMs proved highly reliable and often more consistent than humans. Human experts tended to "overthink" straightforward data, introducing abstract complexity where a literal summary was more appropriate.

However, as sentence complexity increased, the trend reversed. Human experts remained superior at capturing nuanced, high-level abstractions that LLMs often missed. In blind tests, human-generated labels for complex sentences were consistently preferred by other experts.

Average ratings for human coders and LLMs categorized by sentence difficulty, highlighting the performance crossover.

Among the tested models, Falcon and Mistral emerged as the top performers. Falcon achieved the highest semantic similarity (BERTScore of 0.7642) when fully fine-tuned. Interestingly, while Mistral showed continuous improvement as the number of few-shot examples increased, other models were less consistent in their few-shot learning curves.

Discussion and Limitations

While LLMs show promise for initial "open coding," significant hurdles remain. Inter-coder agreement among humans was notably low (Krippendorff’s alpha of 0.2), suggesting that "ground truth" in qualitative research is often a moving target. Furthermore, this study did not address axial coding—the hierarchical grouping of codes into broader categories—which requires even deeper levels of abstraction. Future research should explore these findings in specialized domains like medicine or law to determine if the "complexity flip" remains consistent.

Summary updated

BibTeX
@inproceedings{parfenova2025text,
  author = {Angelina Parfenova and Andreas Marfurt and Jürgen Pfeffer and Alexander Denzler},
  title = {{Text Annotation via Inductive Coding: Comparing Human Experts to LLMs in Qualitative Data Analysis}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.361},
}
Figure