Frontier Data Review

Inter-Annotator Agreement: How to Measure It and What the Number Means

Which agreement metric fits your labelling project, how to compute it, and how to read the score without fooling yourself.

Updated

What inter-annotator agreement measures

Inter-annotator agreement (IAA) is how often independent annotators give the same item the same label. In a training-data project it answers one question before any model sees the data: is the labelling task defined well enough that different people, working alone, produce the same answer?

The simplest measure is percent agreement: the share of items on which annotators matched. It is easy to explain and easy to inflate. Two annotators who both label 90% of items "safe" will match on most items by chance alone, whether or not they understand the guidelines. Chance-corrected coefficients (kappa, pi and alpha) subtract the agreement you would expect from each annotator's label frequencies, so the score reflects agreement beyond chance.

Agreement is a property of the task, the guidelines and the annotator pool together, measured on a specific sample. A score from one batch says little about a later batch with new annotators or a revised label set, so measure it again whenever any of those change.

Choosing a metric

The right coefficient depends on how many annotators label each item, whether every annotator labels every item, and what kind of label you collect.

Common agreement coefficients and when each fits
MetricAnnotatorsLabelsUse it when
Percent agreementAnyAnyYou need a quick, readable check alongside a chance-corrected score. Never report it alone.
Cohen's kappa (κ)Exactly twoNominal (categories)Two annotators labelled the same items, for example a primary annotator and a reviewer.
Weighted kappaExactly twoOrdinal (e.g. a 1–5 rating)Near-misses should count as partial agreement. Linear or quadratic weights set how much.
Scott's pi (π)Exactly twoNominalYou want chance agreement estimated from both annotators' pooled label frequencies rather than each one's own.
Fleiss' kappaThree or moreNominalEach item gets the same number of labels, though not necessarily from the same people.
Krippendorff's alpha (α)Any numberNominal, ordinal, interval or ratioAnnotators label different subsets, some labels are missing, or labels are scores rather than categories.

For most crowd or vendor labelling, where annotators come and go and no one labels every item, Krippendorff's alpha is the safest default: it handles missing labels and any number of annotators, and the same coefficient works for categories and scores once you pick the matching level of measurement. Use Cohen's kappa when you genuinely have two fixed annotators, since it is the figure most readers already know how to interpret.

For pairwise preference data of the kind used in RLHF, a choice between response A and response B (with or without a tie option) is a nominal label. If annotators instead rate the strength of a preference on a graded scale, treat it as ordinal and use weighted kappa or alpha at the ordinal level, so "A is slightly better" against "A is much better" is not scored as a full disagreement.

A worked example: Cohen's kappa by hand

Kappa compares the agreement you observed (pₒ) with the agreement expected by chance (pₑ): κ = (pₒ − pₑ) / (1 − pₑ). A score of 1 is perfect agreement, 0 is exactly what chance would produce, and negative values mean annotators agree less often than chance.

Take an illustrative batch: two annotators each label the same 100 model responses as acceptable or unacceptable.

Illustrative batch A: labels from two annotators on 100 responses
Annotator 2: acceptableAnnotator 2: unacceptableTotal
Annotator 1: acceptable451055
Annotator 1: unacceptable103545
Total5545100
  1. Observed agreement: they matched on 45 + 35 = 80 items, so pₒ = 0.80.
  2. Chance agreement: each annotator called 55% of items acceptable and 45% unacceptable, so pₑ = (0.55 × 0.55) + (0.45 × 0.45) = 0.3025 + 0.2025 = 0.505.
  3. Kappa: κ = (0.80 − 0.505) / (1 − 0.505) = 0.295 / 0.495 ≈ 0.60.

Now keep the same 80% raw agreement but skew the labels, as happens when most responses in a batch are fine:

Illustrative batch B: same 80% agreement, skewed labels
Annotator 2: acceptableAnnotator 2: unacceptableTotal
Annotator 1: acceptable751085
Annotator 1: unacceptable10515
Total8515100

Here pₑ = (0.85 × 0.85) + (0.15 × 0.15) = 0.745, and κ = (0.80 − 0.745) / (1 − 0.745) ≈ 0.22. Same raw agreement, a much lower kappa, because when nearly everything is acceptable, matching on "acceptable" proves little. The annotators agreed on only 5 of the 25 items either of them flagged, and those flagged items are usually the ones the dataset exists to catch.

This is the prevalence effect Feinstein and Cicchetti described as a paradox of kappa: high agreement, low kappa. It is not a flaw to work around. Report the label distribution and per-class agreement next to kappa, and when the class you care about is rare, sample enough of it for the agreement study to mean something.

How to read the score

There is no universal pass mark. Two published conventions are the ones you will see cited most:

Landis and Koch (1977) labels for kappa
KappaLabel
Below 0.00Poor
0.00–0.20Slight
0.21–0.40Fair
0.41–0.60Moderate
0.61–0.80Substantial
0.81–1.00Almost perfect
  • Landis and Koch proposed the bands above in 1977 and said themselves that they were arbitrary. McHugh (2012) argues they are too generous where decisions depend on the labels, and proposes stricter ones.
  • Krippendorff, in Content Analysis: An Introduction to Its Methodology, recommends relying on data with α ≥ 0.800 and using data between 0.667 and 0.800 only for tentative conclusions.

Treat these as reference points, not targets. A subjective task (helpfulness, tone, harm severity) will settle lower than an objective one (language identification, whether code compiles), and a high score on an easy, skewed batch can hide disagreement on the hard items. Set the threshold for your project from what an error costs downstream, write it down before you measure, and compare each new measurement with your own earlier ones.

Running an agreement study on a labelling project

  1. Draw an overlap sample: a set of items every annotator in the study labels. Stratify it so rare classes and known hard cases are present, not just the common easy ones.
  2. Have annotators label it independently, without discussion and without seeing each other's labels.
  3. Compute the chance-corrected coefficient that fits your design, plus percent agreement and the label distribution. Report the number of items and annotators with it.
  4. Break the score down: agreement per class, per annotator (each against the rest), and the confusion matrix of which labels get swapped for which.
  5. Read the disagreements. Sort each into a guideline gap (the instructions do not decide the case), an annotator error (the instructions do decide it and someone missed it), or genuine ambiguity (reasonable people can differ).
  6. Fix guideline gaps with a rule and an example (our guide to writing annotation guidelines covers how), retrain or replace annotators for errors, and decide deliberately how to record genuine ambiguity. Then measure again on a fresh overlap sample, not the one the guidelines were tuned on.
  7. Keep measuring in production: route a steady share of live items to more than one annotator so drift shows up while it can still be fixed.

Agreement and accuracy are different checks. Annotators can agree with each other and all be wrong in the same way, for example if the guidelines encode a mistake. Pair agreement with a gold set: items whose correct label an expert has settled, mixed into the queue to check each annotator against the answer rather than against each other.

The same study works when one of the annotators is a language model: compare its labels with the humans' and with how often the humans agree with each other. Our guide to LLM-as-a-judge covers how to validate a model annotator this way.

When low agreement is the finding

On preference and safety data, some disagreement does not mean the task is broken. People hold different, defensible views on which answer is more helpful or which joke crosses a line, and forcing those views into one majority label throws away information a model could learn from. We cover this in Annotator Disagreement as a Signal in RLHF Pipelines.

The agreement study is how you tell the cases apart. Disagreement that shrinks when the guidelines are clarified was a guideline gap. Disagreement that persists among careful, trained annotators on items they all understood is a property of the item. For those items, keep the full label distribution rather than a single vote, and say in the dataset's documentation which items they are.

Computing it in Python and R

You rarely need to implement these coefficients yourself. In Python:

# Two annotators: Cohen's kappa (scikit-learn)
from sklearn.metrics import cohen_kappa_score
kappa = cohen_kappa_score(labels_a, labels_b)                       # nominal
weighted = cohen_kappa_score(labels_a, labels_b, weights="quadratic")  # ordinal

# Three or more annotators, same number of labels per item: Fleiss' kappa (statsmodels)
from statsmodels.stats.inter_rater import aggregate_raters, fleiss_kappa
table, _ = aggregate_raters(item_by_annotator)  # rows = items, columns = annotators
fk = fleiss_kappa(table)

# Any design, missing labels allowed: Krippendorff's alpha (krippendorff on PyPI)
import krippendorff
alpha = krippendorff.alpha(
    reliability_data=annotator_by_item,  # rows = annotators, columns = items, NaN = missing
    level_of_measurement="nominal",      # or "ordinal", "interval", "ratio"
)
  • NLTK's nltk.metrics.agreement.AnnotationTask takes (annotator, item, label) triples and computes kappa, multi-annotator kappa, Scott's pi and Krippendorff's alpha from the same data.
  • In R, the irr package provides kappa2 (Cohen's kappa, weighted or not), kappam.fleiss and kripp.alpha.

Check each library's documentation for how it expects the data laid out (items by annotators or annotators by items) and how it encodes a missing label. A transposed matrix gives a wrong answer without an error.

What to report

Whether the reader is a model team deciding whether to train on a batch or a vendor's customer reviewing a delivery, an agreement figure is only comparable when it comes with:

  • The coefficient used, and for alpha its level of measurement; for weighted kappa, the weights.
  • The number of items in the overlap sample, how they were drawn, and the number of annotators.
  • The label distribution, and per-class agreement for any class that matters on its own.
  • Which version of the guidelines the annotators worked from.
  • Percent agreement alongside the chance-corrected score.
  • A confidence interval where you can compute one, for example by bootstrapping over items.

Sources

  1. Cohen (1960), A Coefficient of Agreement for Nominal Scales

    The original definition of kappa for two annotators.

  2. Fleiss (1971), Measuring Nominal Scale Agreement Among Many Raters

    Extends kappa to more than two annotators per item.

  3. Landis and Koch (1977), The Measurement of Observer Agreement for Categorical Data

    Source of the slight-to-almost-perfect interpretation bands.

  4. Feinstein and Cicchetti (1990), High Agreement but Low Kappa: I. The Problems of Two Paradoxes

    Describes how skewed label distributions lower kappa at the same raw agreement.

  5. McHugh (2012), Interrater Reliability: The Kappa Statistic

    Argues for stricter interpretation of kappa than Landis and Koch.

  6. Krippendorff (2011), Computing Krippendorff's Alpha-Reliability

    How alpha is computed across levels of measurement and with missing data.

  7. Artstein and Poesio (2008), Inter-Coder Agreement for Computational Linguistics

    Survey of agreement coefficients as used for language annotation.

  8. scikit-learn: cohen_kappa_score
  9. statsmodels: fleiss_kappa
  10. krippendorff (Python package)
  11. NLTK: nltk.metrics.agreement