CALICO: A Human-Centered, Codebook-Aligned System for Annotation

Boqin Yuan, Xiaoyi Gu, Fiona Li, Chang Wan, Angel Hsing-Chi Hwang, Jieyu ZhaoarXiv 2026

TL;DR

CALICO is an open-source web application that transforms large language model (LLM) prompts from hidden, static instructions into editable, versioned, and optimizable artifacts for qualitative data annotation. By bridging the gap between non-technical domain experts and automated prompt engineering, it significantly improves how AI aligns with nuanced human interpretations.

What Problem Does This Paper Address?

In qualitative research across psychology, medicine, and social sciences, experts rely on a codebook—a strict guide containing dimensions, labels, and decision rules—to manually categorize raw data. While using LLMs as automated annotators ("LLM-as-a-judge") helps scale this labor-intensive process, a major bottleneck remains: translating a codebook into a highly reliable prompt requires technical prompt engineering skills that domain experts rarely possess.

Furthermore, existing annotation tools treat prompts as static, black-box instructions. When an LLM violates a codebook guideline, non-technical experts have no intuitive way to diagnose, debug, or iteratively refine the underlying prompt. Traditional tools allow humans to correct mislabeled data, but the underlying prompt never learns from those corrections.

Methods

The authors introduce CALICO (Codebook-Aligned LLM-assisted Iterative Coding and Optimization), a human-centered workflow designed to manage the entire lifecycle of LLM annotation.

Comparison of prompt optimization backends

The system consists of four modular components:

  1. Codebook Parsing Agent: Automatically ingests raw codebooks from common formats (PDF, Word, Excel) and structures them into a canonical schema, flagging inconsistencies or duplicate labels.
  2. Prompt Generator: Translates the parsed schema into executable, dimension-specific prompts, keeping hierarchical constraints intact.
  3. Human-in-the-Loop Feedback: For "cold-start" scenarios (no initial labeled data), users can review draft annotations and provide natural language feedback. CALICO summarizes this feedback into structured calibration guidance and saves it as a new prompt version.
  4. Prompt Optimizer: For label-supervised scenarios, CALICO integrates existing prompt optimizers (MIPROv2, OPRO, GEPA) alongside a novel, internal reflection-based optimizer called REFLECTAGENT.

Unlike standard few-shot prompt engineering, REFLECTAGENT proactively analyzes model errors against expert labels, abstracts generalized decision principles (e.g., identifying label boundaries and semantic cues), and appends these rules into a human-readable rule library.

Datasets

The system was evaluated using real-world data from an AI-companion chatbot conversation analysis project, utilizing two distinct expert codebooks:

  • Self-Disclosure Codebook: Used to annotate user messages across four single-label dimensions (level, depth, intimacy, and confession).
  • AI Behavior Codebook: Used to annotate AI responses across multi-label themes, specifically focusing on listening strategies.

The datasets were independently coded by two trained human experts (Coder A and Coder B). Notably, the human coders exhibited substantial disagreement (e.g., only 34.8% raw agreement on the Intimacy dimension), which highlighted the need to evaluate the system against each coder individually rather than forcing a single consensus dataset.

Key Insights and Ideas

  • Prompts as Auditable Artifacts: Instead of hiding the prompt from the user, CALICO treats prompts, feedback, and optimization trajectories as version-controlled, inspectable history. This allows researchers to maintain scientific auditability.
  • Capturing Coder Nuance: Subjective annotation tasks often suffer from low inter-rater reliability. CALICO demonstrates that prompt optimization doesn't just fix generic codebook ambiguities; it actually molds the LLM to mirror the specific, subjective interpretation of an individual human coder.
  • Inspectability vs. Pure Performance: While black-box optimizers like MIPROv2 and GEPA achieved slightly higher raw accuracy scores in testing, REFLECTAGENT provides a distinct advantage for scientific workflows by generating an explicit, human-editable rule library.

Key Results

CALICO was evaluated using gpt-5.4-mini (simulated/placeholder model name in text) as the base annotator.

  • Performance Boost: Compared to a vanilla zero-shot prompt initialized straight from the codebook, REFLECTAGENT improved mean held-out accuracy by +13.0 absolute percentage points for Coder A and +7.4 absolute percentage points for Coder B on the Self-Disclosure task.
  • Backend Flexibility: Testing across multiple optimization backends showed that CALICO successfully supports diverse algorithms, with MIPROv2 and GEPA leading mean accuracy, closely followed by REFLECTAGENT.
Comparison of prompt optimization backends
  • Coder Specificity Confirmation: To test if the optimization truly captured individual coder preferences, the authors ran a cross-evaluation matrix. Prompts optimized on Coder A's labels performed exceptionally well against Coder A (75.2%) but poorly against Coder B (41.0%), proving that the optimization successfully captured coder-specific boundaries.

Limitations and Future Work

The authors acknowledge several limitations in the current version of CALICO:

  • No Live User Study: The evaluation was strictly based on offline agreement metrics; future work is required to measure actual usability gains and workflow speedups for humans in real-time.
  • No Model Fine-Tuning: CALICO optimizes prompts and rule libraries but does not alter model weights. The authors suggest exploring task-specific fine-tuning for better scalability.
  • Granularity Control: The system currently offers limited control over chunking long text messages into smaller, distinct annotation units.

Summary updated

BibTeX
@misc{yuan2026calico,
  author = {Boqin Yuan and Xiaoyi Gu and Fiona Li and Chang Wan and Angel Hsing-Chi Hwang and Jieyu Zhao},
  title = {{CALICO: A Human-Centered, Codebook-Aligned System for Annotation}},
  year = {2026},
  eprint = {2609.14726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.14726},
}
Figure