cs.CLOct 26, 2026

High Scores, Hidden Failures: Evaluating Codebook-Based LLM Content Analysis

Authors: Elena Senger, Yuri Campbell, Rob van der Goot, Barbara Plank

Organizations: MaiNLP, Center for Information and Language Processing, LMU Munich & MCML, Germany · Fraunhofer Institute for Systems and Innovation Research ISI, Germany · Department of Computer Science, IT University of Copenhagen, Denmark

Abstract

Large language models (LLMs) are increasingly used for codebook-based content analysis in computational social science, where codebooks translate theoretical concepts into labeling schemes. While prior work reports strong predictive performance, it remains unclear whether these systems produce reliable and robust text annotations. We conduct a large-scale empirical failure-mode analysis of LLM-based coding pipelines across four datasets and five models by systematically evaluating their stability, robustness, and conceptual validity under controlled perturbations, domain shifts, and optimization procedures. We uncover multiple failure modes that are largely invisible under standard metrics, showing that high aggregate scores frequently coexist with severe label-level disparities, instability across runs, domain sensitivity, and shifts in label interpretation. Importantly, these failure modes persist under widely used optimization strategies and remain largely invisible under standard metrics such as accuracy and micro-F1. Our results demonstrate that current LLM-based coding pipelines cannot be treated as stable measurement tools without targeted validation beyond aggregate performance.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Can Large Language Models Replace Human Coders? Introducing ContentBench

    Feb 23, 2026Michael HamanLLM-Assisted AnnotationLLM Evaluation

  2. Experts Rise Where LLMs Disagree: Using Cross-Model Disagreement to Target Expert Effort in LLM Codebook Revision for Large-Scale Annotation

    Sep 22, 2026Zeyu He, Zhuqian Zhou, Kirk Vanacore +2LLM-Assisted AnnotationHuman-in-the-Loop Annotation

  3. Operational Robustness of LLMs on Code Generation

    Feb 21, 2026Debalina Ghosh Paul, Hong Zhu, Ian BayleyLanguage Model RobustnessLLM Code Generation