arXiv:2611.08846cs.AINov 2026

Manuscript Offprint

arXiv:2611.08846

When F1 Is Not Enough: Auditing Codebooks for LLM-Assisted Annotation

Yuehong Cassandra Tai, Qunhua Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) are increasingly used for text annotation in social science, but standard performance metrics do not explain why errors occur. Low F1 may reflect limitations of the annotation system, defects in the written codebook, or inconsistency in reference labels. We propose a pre-deployment codebook audit for LLM-assisted annotation. The audit uses class-specific metrics and confusion matrices to identify problematic classes and boundaries, structured document-level review to attribute error sources, and targeted codebook revision followed by held-out evaluation. We apply the audit to two published multi-class codebooks from distinct domains. In both applications, the audit identifies under-specified or conflicting coding rules, and targeted revisions reduce the diagnosed errors on held-out data. Analyses with two LLM annotators show that some problematic boundaries and codebook revisions transfer across models, whereas other revision effects are annotator-specific. The results show that LLM annotation errors can help identify weaknesses in the written measurement instrument, not only in the model. Codebook auditing complements prompting, retrieval, and fine-tuning by clarifying whether persistent errors call for model improvement, codebook revision, or renewed scrutiny of reference labels.

*Corresponding Author, Assistant Research Professor, Center for Social Data Analytics, Pennsylvania State University, https://orcid.org/0000-0001-7303-7443, United States, yhcasstai@psu.edu.

†Professor, Department of Statistics, Pennsylvania State University, http://orcid.org/0000-0003-0675-7648, United States, qu112@psu.edu.

1 Introduction

Large language models are becoming part of the measurement infrastructure of social science. Researchers increasingly use LLMs to annotate stance, frames, topics, attribution, and political events at a scale that would be costly or infeasible with manual coding alone. Recent methodological work has largely focused on how to obtain reliable model outputs: whether zero- or few-shot prompting is sufficient, when structured prompting or retrieval helps, and when supervised fine-tuning is worth the cost (Gilardi, Alizadeh, and Kubli 2023; Ornstein, Blasingame, and Truscott 2025; Halterman and Keith 2026a; Benoit et al. 2025; Griswold, Robbins, and Pollard 2025; Alizadeh et al. 2025). Performance is typically evaluated against human-coded reference labels using F1 or related metrics.

This focus leaves an important diagnostic question underdeveloped. When an LLM disagrees with a reference label, what is the source of the disagreement? The model may fail to apply a clear rule; the written codebook may be incomplete, ambiguous, or internally inconsistent; or the released codebook may not support the reference label. Aggregate F1 cannot distinguish among these possibilities. It measures agreement with reference labels, not why disagreement occurs.

The distinction matters because the remedies differ. Prompt design, retrieval, calibration, or fine-tuning may help when the annotation system fails to implement a clear rule. If the written codebook does not state the operative criterion clearly, however, model-side changes may improve agreement with existing labels without resolving the underlying measurement problem. If the reference labels themselves are ambiguous or inconsistent, higher agreement may not imply better measurement. Codebook-based LLM annotation therefore requires evaluating the annotation system and the written instrument together.

We propose a pre-deployment codebook audit for LLM-assisted annotation. The audit treats the codebook and annotator as a codebook-annotator system: observed errors depend on both the written operationalization and the model applying it. Class-specific metrics and confusion matrices identify weak classes and systematic confusions, and structured document-level review then distinguishes among LLM errors, repairable codebook defects, reference-label issues, and disagreements that would require a new substantive coding rule. Only repairable codebook defects motivate targeted revisions, which are evaluated on held-out data. The goal is not simply to increase F1, but to determine what an error pattern implies about implementation, codebook specification, and reference labels.

We demonstrate the audit with two published multi-class codebooks from distinct substantive domains: the BFRS political-violence event taxonomy (Bueno de Mesquita et al. 2015; Halterman and Keith 2026a) and the EU credit-claiming codebook (Hunter 2025). In both applications, targeted revisions reduce the diagnosed errors on held-out data. Analyses with Llama and Gemma further show that some problematic boundaries recur across LLMs and some revisions transfer across LLMs, while other revision effects depend on the annotator.

This diagnostic contribution complements recent work showing that LLMs may rely on label semantics or internalized priors rather than supplied definitions and can be sensitive to codebook presentation (Halterman and Keith 2026a; Casanova, Kocielnik, and Alvarez 2026; He et al. 2026). These studies examine whether models follow a supplied codebook; our audit adds a procedure for diagnosing whether persistent errors reveal a repairable problem in the written codebook itself and for evaluating targeted revisions. More broadly, the audit connects LLM evaluation to the construct-validity concern that measurement quality depends not only on predictive accuracy, but also on whether an operationalization represents the intended concept (Adcock and Collier 2001).