arXiv:2611.09457cs.AINov 2026

Manuscript Offprint

arXiv:2611.09457

Definitions, Label Names, or Demonstrations? Auditing What Governs LLM Annotation

Viraj Mishra, Shubham Gupta, Dhruv Gupta, 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 to annotate social-science texts, but high accuracy does not establish that they apply researcher-supplied category definitions: predictions may instead reflect prior associations with category labels or labeled demonstrations. We introduce a counterfactual audit that reassigns definitions among output labels, distinguishing adherence to supplied definitions from preservation of a dataset's original mapping. Across three political-text datasets, models rarely follow reassigned definitions, and standard fine-tuning strengthens the original mapping without reliably increasing definition adherence. We then study retrieval-augmented annotation. Retrieving the nearest training examples generally outperforms retrieving examples separately within each category despite using fewer demonstrations. On the two tasks with substantial gains, direct k-nearest-neighbor classification recovers 74–93% of the improvement, indicating that neighborhood labels provide much of the predictive signal. Relabeling fixed demonstrations redirects predictions, whereas aligning demonstrations with reassigned definitions substantially increases adherence to the new mapping. Thus, accuracy-improving interventions need not increase codebook adherence; definitions, category labels, demonstrations, retrieval, and training data should be aligned and validated jointly. Code and data for all experiments are available at https://anonymous.4open.science/r/llm-annotation-FD2D.

1 Introduction

Social scientists use annotation codebooks to translate theoretical concepts into observable categories in text. The resulting annotations measure substantively important constructs, such as forms of protest, types of political violence, and policy positions in party platforms (Grimmer et al., 2022).

Large language models (LLMs) offer a scalable approach to producing such annotations and can approach or exceed crowd-worker performance on many classification tasks (Gilardi et al., 2023; Ziems et al., 2024; Törnberg, 2025). Yet predictive accuracy alone leaves a fundamental question unanswered: what annotation rule is the model actually applying?

A correct prediction may reflect the supplied definition in the codebook, prior associations with a category label, or patterns in labeled demonstrations. Because these sources normally imply the same answer, conventional evaluation cannot distinguish them. This matters for construct validity: a model may reproduce historical labels while failing to implement the researcher's intended operationalization, particularly when definitions change or prior annotations depart from the written rules.

Prior work shows that category labels, definitions, and demonstrations all affect LLM classification. Replacing informative labels with generic identifiers, swapping label–definition pairings, or ablating codebook components can substantially change performance (Halterman and Keith, 2026a), and models use definitions and demonstrations un-evenly (Milios et al., 2023; Mohammadi et al., 2025). We ask whether task-specific fine-tuning increases responsiveness to supplied definitions or strengthens reproduction of the original mapping, and how predictions respond when definition and demonstration mappings are varied independently.

We study how LLM annotators combine three sources of guidance: (1) category labels and their prior associations, (2) written definitions, and (3) labeled demonstrations. Our counterfactual audit reassigns definitions among output labels, placing the supplied definition mapping in conflict with the dataset's original mapping. We use it to test whether predictions follow the definitions, preserve the original mapping, or follow neither, and whether fine-tuning changes this behavior. We ex-

*Corresponding authors.

tend the framework to retrieval-augmented annotation. We compare Global Example-RAG, which retrieves the nearest examples across the training pool, with Class-wise Example-RAG, which retrieves examples separately within each category. Holding the retrieved texts fixed, we then independently manipulate definition and demonstration-label mappings to test which mapping governs predictions.

We ask four questions. Q1: When supplied definitions conflict with the original mapping, which mapping do LLM annotators follow? Q2: Do accuracy-improving interventions, including fine-tuning and retrieval, increase adherence to supplied definitions? Q3: How do retrieval strategy and neighborhood label composition affect annotation accuracy? Q4: When definitions and retrieved demonstrations encode conflicting mappings, which source governs predictions?

Across three political-text codebooks, models rarely treat reassigned definitions as authoritative, and fine-tuning reinforces the original mapping without reliably increasing definition adherence. On the more complex tasks, Global Example-RAG outperforms both Class-wise Example-RAG and annotation without retrieval, but direct nearest-neighbor classification recovers much of the gain. Relabeling fixed demonstrations redirects predictions; written definitions moderate but do not eliminate this influence. Thus, higher accuracy need not imply more faithful application of the supplied codebook.

We contribute a behavioral audit that separates definition adherence from preservation of the original mapping; controlled analyses of retrieval architecture, neighborhood composition, and demonstration mappings; and practical guidance for aligning and validating the label system, codebook, retrieval procedure, and demonstration bank as a joint measurement instrument.