Skip to main content
QUICK REVIEW

[Paper Review] LLM-Assisted Content Analysis: Using Large Language Models to Support Deductive Coding

Robert Chew, John Bollenbacher|arXiv (Cornell University)|Jun 23, 2023
Topic ModelingComputer Science61 citations
TL;DR

This paper proposes LLM-Assisted Content Analysis (LACA) to reduce time in deductive coding by integrating LLMs (GPT-3.5) into the coding workflow, validating the approach with a case study and four public datasets, and benchmarking human–model reliability.

ABSTRACT

Deductive coding is a widely used qualitative research method for determining the prevalence of themes across documents. While useful, deductive coding is often burdensome and time consuming since it requires researchers to read, interpret, and reliably categorize a large body of unstructured text documents. Large language models (LLMs), like ChatGPT, are a class of quickly evolving AI tools that can perform a range of natural language processing and reasoning tasks. In this study, we explore the use of LLMs to reduce the time it takes for deductive coding while retaining the flexibility of a traditional content analysis. We outline the proposed approach, called LLM-assisted content analysis (LACA), along with an in-depth case study using GPT-3.5 for LACA on a publicly available deductive coding data set. Additionally, we conduct an empirical benchmark using LACA on 4 publicly available data sets to assess the broader question of how well GPT-3.5 performs across a range of deductive coding tasks. Overall, we find that GPT-3.5 can often perform deductive coding at levels of agreement comparable to human coders. Additionally, we demonstrate that LACA can help refine prompts for deductive coding, identify codes for which an LLM is randomly guessing, and help assess when to use LLMs vs. human coders for deductive coding. We conclude with several implications for future practice of deductive coding and related research methods.

Motivation & Objective

  • Motivate deductive content analysis and its coding overhead in qualitative research.
  • Introduce LLM-assisted content analysis (LACA) as a workflow that integrates LLMs into coding tasks.
  • Demonstrate validity and reliability of LACA through a case study and four public data sets.
  • Benchmark GPT-3.5 performance against human coders across diverse coding tasks.

Proposed method

  • Define LACA steps aligned with Neuendorf’s content analysis framework.
  • Co-develop codebooks with an LLM and test validity through randomness and justification prompts.
  • Assess human–model reliability using calibration samples and IRR metrics (Gwet’s AC1).
  • Use the LLM to generate final codes when non-inferiority to human coding is established.
  • Compare wall-clock coding time between humans and the LLM.
  • Conduct a case study on Trump Tweets and a summary benchmark across four datasets.
Figure 1: LLM-Assisted Content Analysis (LACA) Process Diagram
Figure 1: LLM-Assisted Content Analysis (LACA) Process Diagram

Experimental results

Research questions

  • RQ1Can GPT-3.5 perform deductive coding at levels comparable to human coders across diverse datasets?
  • RQ2How can LLMs assist codebook development and validity testing in deductive coding?
  • RQ3Under what conditions is human vs. LLM coding preferable for final data?
  • RQ4What reliability benchmarks (IRR) and randomness tests reveal about LLM-assisted coding?
  • RQ5How much time savings does LACA offer relative to traditional coding?

Key findings

  • GPT-3.5 often achieves human‑level agreement with coders on deductive coding tasks.
  • LACA enables codebook co‑development, tests of validity, and reliability assessment before final coding.
  • Tests of randomness can identify codes that the LLM struggles to understand, guiding prompt/codebook refinement.
  • Calibration shows generally high human–model agreement, with some codes showing lower alignment when randomness tests fail.
  • LACA substantially reduces manual coding burden by delegating final coding to the LLM after validation.
  • Prompts that include reasons for decisions aid human reviewers and help diagnose coding disagreements.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.