技术指南

Inter-Annotator Agreement and Cohen's Kappa

Inter-annotator agreement (IAA) describes how often labelers apply the same labels to the same items under defined instructions.

  • 3 分钟阅读
  • 最后更新
在本页3 分钟阅读
  1. 概述
  2. 深入探讨
  3. 战略影响
  4. The Future of Inter-Annotator Agreement and Cohen's Kappa
  5. 现实世界的实施
  6. 风险与防护栏
  7. 实施路线图
  8. 不断探索
  9. 常见问题

概述

Cohen’s kappa is a chance-corrected statistic for two raters on categorical labels; it is one measure, not a verdict on label quality or construct validity.

深入探讨

Raw percent agreement — simply counting how often two annotators chose the same label — is intuitive but flawed because it doesn't account for the possibility that annotators could agree just by chance, especially when one label dominates the dataset. Cohen's kappa addresses this by computing the difference between observed agreement and expected agreement (the agreement you'd predict from each annotator's individual label frequencies if their choices were independent), then normalizing that difference against the maximum possible improvement over chance. The formula is kappa = (observed agreement − expected agreement) / (1 − expected agreement), producing a value that is 1 for perfect agreement, 0 for agreement no better than chance, and negative when agreement is worse than chance. Commonly cited rough interpretation bands (such as below 0 as poor, 0.01–0.20 as slight, up to 0.81–1.00 as almost perfect) come from a widely used but informal scale, not a universally agreed statistical standard, and different fields apply different thresholds for what counts as "good enough" to trust a labeled dataset. Cohen's kappa applies specifically to exactly two raters; for three or more, Fleiss’ kappa is one common nominal-label alternative, not a pairwise mean. Other designs, including those with missing ratings, may use Krippendorff’s alpha. For labels with a natural order (like a 1-5 rating scale), a weighted kappa variant is preferred because it treats a one-point disagreement as less severe than a four-point disagreement, whereas standard kappa treats all disagreements equally regardless of magnitude. A common misconception is that a high percent agreement always signals a well-defined labeling task; when the label distribution is skewed, percent agreement can look high even when agreement beyond chance is limited, which kappa can help reveal. Krippendorff's alpha is a related and more flexible alternative that handles missing data and more than two raters natively, and is preferred by some researchers for that flexibility.

战略影响

成本与预算

多年来,架构决策决定着性能和运营成本。

更清晰的判决

技术教育帮助团队选择正确的堆栈,而不仅仅是最新的堆栈。

质量控制

更好的工程选择可以减少生产中的可靠性事故。

The Future of Inter-Annotator Agreement and Cohen's Kappa

Agreement reporting should become more transparent about sampling, class balance, rater training, adjudication, and uncertainty. For ordinal, multi-label, or missing-data tasks, select a statistic whose assumptions fit the design rather than stretching Cohen’s kappa. Comparing human and model labels does not establish that either is correct. Use disagreement to identify ambiguous items or instructions, then combine statistics with expert review and task-specific validity checks; avoid treating any single coefficient or conventional band as a universal quality threshold in any application.

现实世界的实施

Two annotators labeling tweets as toxic or not toxic agree 90% of the time, but because 85% of tweets are non-toxic, a kappa calculation shows the agreement beyond chance is only moderate, not excellent.

A team comparing three or more annotators on a multi-class task uses Fleiss' kappa rather than Cohen's kappa, since Cohen's kappa is defined specifically for exactly two raters.

A project with ordinal ratings (like a 1-5 quality scale) uses a weighted kappa variant so that a disagreement of one point counts differently from a disagreement of four points.

A labeling vendor reports a kappa score of 0.55 on a new task, prompting the client to require revised guidelines and a recalibration session rather than accepting the batch as-is.

风险与防护栏

  • 优化一项基准测试可以隐藏更广泛的系统弱点。

  • 基础设施和维护成本常常被低估。

  • 随着系统变得更加复杂,安全性和可观察性差距可能会扩大。

实施路线图

  1. 在实施之前定义延迟、质量和成本目标。

  2. 在实际负载和数据条件下进行基准测试。

  3. 仪器监控错误、漂移和用户影响。

  4. 在扩展之前准备回滚和事件响应路径。

不断探索

Free newsletter

Get the daily AI briefing

Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.

One email each weekday. Unsubscribe in one click. We never sell or share your address.

Test yourself

Take the Inter-Annotator Agreement and Cohen's Kappa quiz

Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.

开始测验

Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation

常见问题

What is Inter-Annotator Agreement and Cohen's Kappa?

Inter-annotator agreement (IAA) describes how often labelers apply the same labels to the same items under defined instructions. Cohen’s kappa is a chance-corrected statistic for two raters on categorical labels; it is one measure, not a verdict on label quality or construct validity.

Why can raw percent agreement between two annotators be misleading, according to the guide?

The guide explains that raw agreement doesn't correct for chance agreement, which can inflate the apparent consistency when one label dominates the data.

What does Cohen's kappa specifically correct for that raw percent agreement does not?

Kappa subtracts out expected agreement (computed from each annotator's marginal label frequencies) before normalizing, unlike raw percent agreement.

Which statistic is a common alternative for nominal labels when more than two raters are involved?

Fleiss’ kappa is a common multiple-rater extension for nominal ratings; other coefficients may be preferable depending on the design.

When should a weighted kappa variant be used instead of standard kappa?

The guide describes weighted kappa as preferred for ordinal scales, treating smaller disagreements as less severe than larger ones.

What value does Cohen’s kappa take when observed agreement equals the chance agreement estimated from the raters’ marginals?

The guide states kappa is 0 when agreement is no better than chance, 1 for perfect agreement, and negative when agreement is worse than chance.