Compare human agreement across two tasks

Watch prefixes in words such as preferred and rejected. · 168 words

Human feedback is useful only when annotators apply a task consistently. Raw agreement is the fraction of items on which two raters give the same label. It can overstate reliability because raters may agree by chance. Cohen's kappa corrects for that. In a small instruction-tuning dataset, two raters label which of two museum answers is better, using A or B. Each task has 20 items judged by both people.

For Task 1, the raters agree on 14 items and disagree on 6, so raw agreement is 14/20 = 0.70. Their A-label rates are 11/20 and 9/20, so chance agreement is (11/20)(9/20) + (9/20)(11/20) = 0.495. Kappa is (0.70 - 0.495)/(1 - 0.495), about 0.41. For Task 2, they agree on 8 items and disagree on 12, giving raw agreement 0.40. Each rater uses A on half the items, so chance agreement is 0.50 and kappa is (0.40 - 0.50)/(1 - 0.50) = -0.20. Task 1 therefore has better-than-chance agreement, while Task 2 has worse-than-chance agreement under this correction.

Check your recall

Which task has stronger inter-rater agreement, and what do its raw agreement and kappa show?

Check your answer

Task 1. Its raw agreement is 0.70 and its kappa is about 0.41, compared with raw agreement of 0.40 and kappa of -0.20 for Task 2.

Sources and credits

Original KeyTouch lesson. Background reading · Nathan Lambert · Reinforcement Learning from Human Feedback.