[Paper Review] Decoding Complexity: Exploring Human-AI Concordance in Qualitative Coding
The paper evaluates how GPT-3.5 and GPT-4 perform LLM-assisted qualitative data coding across three tasks of increasing complexity, comparing to human coders using Cohen’s kappa, and finds GPT-4 generally aligns more with humans, with task-specific limits.
Qualitative data analysis provides insight into the underlying perceptions and experiences within unstructured data. However, the time-consuming nature of the coding process, especially for larger datasets, calls for innovative approaches, such as the integration of Large Language Models (LLMs). This short paper presents initial findings from a study investigating the integration of LLMs for coding tasks of varying complexity in a real-world dataset. Our results highlight the challenges inherent in coding with extensive codebooks and contexts, both for human coders and LLMs, and suggest that the integration of LLMs into the coding process requires a task-by-task evaluation. We examine factors influencing the complexity of coding tasks and initiate a discussion on the usefulness and limitations of incorporating LLMs in qualitative research.
Motivation & Objective
- Investigate feasibility and accuracy of LLM-assisted qualitative coding (QDA) using real-world German interview data.
- Compare LLM performance to human coders across semantic vs latent coding tasks.
- Identify factors affecting coding task complexity and model agreement, and discuss practical integration considerations.
Proposed method
- Provide German interview segments (n=47) to both human coders and LLMs with a shared human-generated codebook.
- Prompt LLMs (GPT-3.5 and GPT-4) to assign zero, one, or more codes per segment under controlled temperatures (0).
- Experiment with zero-shot, one-shot, and few-shot prompting to assess effects on coding outputs and hallucinations.
- Compute inter-rater reliability (IRR) using Cohen’s kappa between humans, and between humans and models across three tasks with varying complexity.
- Analyze three coding tasks (Task A: semantic tagging of Internet-connected devices; Task B: apps/services/use cases with hierarchical data; Task C: trusted sources requiring latent interpretation).
- Use three prompt variants and two models to evaluate agreement across tasks.
Experimental results
Research questions
- RQ1How well do LLMs (GPT-3.5 and GPT-4) align with human coders in QDA tasks of increasing complexity?
- RQ2Does prompt design (zero-shot, one-shot, few-shot) impact agreement and codebook hallucinations?
- RQ3What factors (segment length, codebook size, semantic vs latent themes) influence coding task difficulty for humans and LLMs?
- RQ4Is GPT-4 consistently closer to human coding than GPT-3.5 across all tasks?
Key findings
- GPT-4 consistently achieves higher agreement with humans than GPT-3.5 across all tasks.
- Inter-human agreement is almost perfect for Task A, substantial for Task C, and lower for Task B.
- GPT-4 attains almost perfect agreement with humans on Task A in all settings; GPT-3.5 reaches similar levels only with multiple in-prompt examples.
- Agreement declines from Task A to Task C for both humans and models, with a widening gap between model-human and inter-human scores as task complexity increases.
- Few-shot prompting mitigates some GPT-3.5 limitations (e.g., formatting errors and hallucinations) but does not universally improve performance, while GPT-4 shows robust performance with or without few-shot prompts.
- GPT-3.5 produced more incorrect codes than GPT-4 (up to 47 new codes in Task B without prompts; reduced with examples).
- GPT-4 provides better alignment yet still exhibits task-specific limitations, indicating the need for task-by-task evaluation when integrating LLMs into QDA.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.