Skip to main navigation Skip to search Skip to main content

From codebooks to scalable frame detection with LLMs: A zero-shot approach via binary questions

Research output: Contribution to journal › Article › Scientific › peer-review

1 Downloads (Pure)

Abstract

Framing analysis is essential for understanding how media and political discourse shape public perception, yet automating it at scale remains challenging and often relies on large annotated datasets. Large language models (LLMs) offer a promising alternative, but their use has been limited by reliance on lengthy, abstract codebook prompts and a focus on proprietary models. This study investigates a zero-shot approach using open-source LLMs prompted with binary questions derived from simplified, descriptive codebook statements. Using the Gun Violence Frame Classification (GVFC) dataset, three approaches are compared: (1) binary indicator questions based on simplified codebook entries, (2) direct classification using full codebook descriptions, and (3) a sentence similarity baseline. The binary question approach achieves performance comparable to fine-tuned models (accuracy of 0.81 vs. 0.84) without any training or fine-tuning and outperforms the full codebook prompting method by over 20% in accuracy. Furthermore, the binary questions approach enhances transparency by linking decisions directly to specific natural language statements. These results demonstrate that simplifying prompts for LLMs is a feasible way to bridge the gap between qualitative codebooks and scalable, transparent frame classification. The study provides a comparative evaluation of LLM-based strategies and models, along with practical guidance for application and reproducibility.
Original languageEnglish
Number of pages37
JournalComputational Communication Research
Volume8
Issue number1
DOIs
Publication statusPublished - Sept 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 16 - Peace, Justice and Strong Institutions
    SDG 16 Peace, Justice and Strong Institutions

Keywords

  • framing analysis
  • zero-shot classification
  • large language models
  • codebooks
  • computational social science

Fingerprint

Dive into the research topics of 'From codebooks to scalable frame detection with LLMs: A zero-shot approach via binary questions'. Together they form a unique fingerprint.

Cite this