Inter-Annotator Agreement › Krippendorff's Alpha
Language AI HandbookAll chapters Inter-Annotator Agreement › Krippendorff's AlphaOne section · Sections in this chapter5 / 11 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Krippendorff's alpha () represents the most general agreement coefficient available. It accommodates:
- Any number of raters (varying per item if needed)
- Any number of categories
- Any measurement scale (nominal, ordinal, interval, ratio)
- Missing data, where some items receive fewer ratings than others
This flexibility makes it the preferred metric for complex annotation schemes in modern NLP, particularly when different items might have different numbers of ratings, when using ordinal scales like Likert items, or when the annotation project spans a long period where not all raters annotate all items. Klaus Krippendorff, who introduced the metric in 1970 and refined it extensively in subsequent decades, designed it explicitly for the messiness of real-world content analysis.
The General Form
Krippendorff's alpha uses a disagreement-based formulation rather than an agreement-based one, but the underlying logic is identical to the chance-correction framework we have seen throughout this chapter:
where:
- : Krippendorff's alpha coefficient
- : the observed disagreement among raters
- : the expected disagreement by chance
When (perfect agreement), . When (agreement equals chance), . When (worse than chance), .
For nominal data (categories without order), the observed disagreement for an item is the proportion of rater pairs that disagree:
where:
- : the observed disagreement for an item
- : the count of raters choosing category
- : the total number of raters for that item
- The sum is taken over all categories
The expected disagreement assumes a multinomial distribution based on the overall category frequencies across all data. If the probability of any given annotation being category is , then the probability that two independent annotations disagree is:
where:
- : the expected disagreement by chance
- : the overall proportion of assignments to category across all data
- The term represents the probability of chance agreement (the same formula as in Fleiss' kappa)
Notice that for nominal data with complete observations, Krippendorff's alpha and Fleiss' kappa give identical results. The differences between them emerge when data is missing or when using non-nominal measurement scales.
Handling Missing Data
This is where Krippendorff's alpha truly distinguishes itself. Real annotation projects almost always have missing data. Annotators drop out, items are too difficult for some raters, or different items are assigned to different subsets of raters. Cohen's kappa and Fleiss' kappa require complete data for each item.
Krippendorff's alpha handles missing data through coincidence matrices rather than contingency tables. Instead of requiring every rater to label every item, we compute the observed disagreement from all pairs of observations that are present. For each item with valid ratings, we consider all ordered pairs of raters and record which categories they chose. Items with fewer than 2 valid ratings are simply skipped.
For items with varying numbers of raters, we construct a coincidence matrix where cell contains the number of times any rater pair for any item assigned one to category and the other to category . The diagonal contains agreements; off-diagonals contain disagreements. This matrix is symmetric, and each item with raters contributes entries.
The resulting coincidence matrix is a sufficient statistic for computing both and , regardless of how many ratings each item has. This is the elegant mathematical property that lets alpha handle arbitrary missingness patterns without any special-casing.
Weighting Schemes
For ordinal, interval, or ratio scales, not all disagreements are equal. A 5-star quality rater who gives 3 stars while their colleague gives 4 stars is closer to agreement than one who gives 1 star. Krippendorff's alpha incorporates a difference function that weights disagreements by their distance:
where:
- : the observed coincidences between categories and
- : the expected coincidences between categories and
- : the squared distance between categories and (weighting function)
- The numerator sums observed disagreements weighted by distance; the denominator sums expected disagreements weighted by distance
Different measurement scales suggest different distance functions:
- Nominal: if , else (binary disagreement, all errors equal)
- Ordinal: (rank-based distances)
- Interval: (squared difference in values)
- Ratio: (squared relative difference)
For Likert-scale ratings of LLM response quality, interval alpha is usually appropriate because the scale is treated as having equal spacing between levels. For judgments that have a natural zero point and where the ratio between values is meaningful (such as response latency in milliseconds), ratio alpha is more appropriate. The choice of distance function should be driven by the measurement theory underlying your scale, not by which choice makes the number look best.