[Paper Review] Scalable Qualitative Coding with LLMs: Chain-of-Thought Reasoning Matches Human Performance in Some Hermeneutic Tasks
GPT-4 achieves human-equivalent qualitative coding on a case study with zero-shot prompts, with chain-of-thought reasoning boosting reliability; GPT-3.5 largely underperforms.
Qualitative coding, or content analysis, extracts meaning from text to discern quantitative patterns across a corpus of texts. Recently, advances in the interpretive abilities of large language models (LLMs) offer potential for automating the coding process (applying category labels to texts), thereby enabling human researchers to concentrate on more creative research aspects, while delegating these interpretive tasks to AI. Our case study comprises a set of socio-historical codes on dense, paragraph-long passages representative of a humanistic study. We show that GPT-4 is capable of human-equivalent interpretations, whereas GPT-3.5 is not. Compared to our human-derived gold standard, GPT-4 delivers excellent intercoder reliability (Cohen's $κ\geq 0.79$) for 3 of 9 codes, and substantial reliability ($κ\geq 0.6$) for 8 of 9 codes. In contrast, GPT-3.5 greatly underperforms for all codes ($mean(κ) = 0.34$; $max(κ) = 0.55$). Importantly, we find that coding fidelity improves considerably when the LLM is prompted to give rationale justifying its coding decisions (chain-of-thought reasoning). We present these and other findings along with a set of best practices for adapting traditional codebooks for LLMs. Our results indicate that for certain codebooks, state-of-the-art LLMs are already adept at large-scale content analysis. Furthermore, they suggest the next generation of models will likely render AI coding a viable option for a majority of codebooks.
Motivation & Objective
- Adapt a human codebook for LLM-driven qualitative coding in a humanities-like task.
- Assess whether state-of-the-art LLMs can match human intercoder reliability across multiple codes.
- Evaluate the impact of prompting strategies, including chain-of-thought, on coding fidelity.
- Provide best-practice guidance for designing LLM-assisted coding workflows.
Proposed method
- Use a human-derived codebook for nine codes across three categories.
- Compare GPT-4 and GPT-3.5 on 111 gold-standard passages mentioning Du Bois (average ~94 words).
- Evaluate zero-shot prompts with Per Code vs Full Codebook task presentations.
- Incorporate chain-of-thought prompting to assess impact of rationale on coding decisions.
- Test Prompting variations (rationale, one code at a time vs full codebook) and report intercoder reliability (Cohen’s kappa).
- Provide practical best-practice guidance for adapting codebooks to LLMs.

Experimental results
Research questions
- RQ1Can GPT-4 and GPT-3.5 achieve intercoder reliability comparable to human coders on qualitative coding tasks?
- RQ2Does chain-of-thought prompting improve coding fidelity for LLMs in humanities-like codebooks?
- RQ3Is presenting codes as separate prompts (one code per task) more effective than a full codebook prompt for LLM-based coding?
- RQ4What codebook adaptations and prompt designs maximize alignment with human gold standards?
Key findings
- GPT-4 achieves human-equivalent interpretation for several codes with zero-shot prompts (e.g., 3 of 9 codes exceed a kappa of 0.75).
- GPT-4 shows substantial reliability (kappa ≥ 0.6) for 8 of 9 codes and excellent reliability (kappa ≥ 0.79) for 3 codes in Per Code prompts.
- GPT-3.5 underperforms across codes (mean kappa ≈ 0.34; max ≈ 0.55).
- Prompting GPT-4 to provide rationale (chain-of-thought) improves coding fidelity (average kappa, Per Code: 0.68 with CoT vs. 0.59 without; Full Codebook: 0.60 with CoT vs. 0.46 without).
- Presenting each code as a separate prompt yields higher reliability than the full codebook approach (average kappa 0.68 vs. 0.60 in the reported comparisons).
- Rationale and per-code prompting are identified as practical best practices for improving LLM-guided qualitative coding.

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.