Labelling and human feedback¶
A label is a measurement, and like any measurement it has an instrument (the guideline), an operator (the annotator) and an error. This page treats labelling as measurement science: how to write the instrument, how to measure agreement, how to combine noisy labels into better ones, how to find the labels that are wrong, how to spend a labelling budget where it teaches most, and what changes when the labels are human preferences over a language model's answers, or come from a model themselves.
10,000 ft
Supervised learning, evaluation and the whole of post-training run on human judgement turned into data: ImageNet's class labels, the demonstrations of instruction tuning, the comparisons behind reward models and RLHF, the golden sets of evals in practice. In every case a model can at best learn what the labels say, so label error becomes model error and label disagreement becomes a ceiling on measurable accuracy. The field moved from "collect labels and trust them" to treating labels as noisy observations of a latent truth, with statistical models of annotators (Dawid–Skene, 1979), methods for finding label errors (confident learning), programmatic labels (weak supervision) and, since 2023, language models as annotators. This page connects all of that to the collection and filtering pages before it and to the feedback loops of data in production after it.
2,000 ft
Labelling is a loop, not a step. Write a task and a guideline full of worked edge cases; run a pilot; measure agreement and read the disagreements; revise the guideline until agreement is as high as the task allows. Then label at scale with hidden gold items and redundancy, combine the labels with a model of each annotator's reliability, audit the result for likely errors, and freeze a version. Once a model exists, let it choose which items to label next.
Ground level¶
What a label is¶
Write the label an annotator gives to item \(x\) as
not as "the truth". The guideline defines the concept, the annotator applies it with some skill and some bias, and the interface nudges both (default options get chosen more; the order of two answers changes which one wins). Two kinds of error follow, and they behave completely differently.
- Random error differs between annotators and items: fatigue, misreading, a careless click. It averages away with more annotators.
- Systematic error is shared: an ambiguous guideline, a concept the annotator pool understands differently from you, a cultural default. It does not average away; ten annotators who share a misunderstanding agree perfectly and are all wrong.
Most of the craft of labelling is converting systematic error into random error (by fixing the guideline) and then shrinking random error (by redundancy and modelling annotators).
The forms a label takes have multiplied:
| Label type | Example | Typical use |
|---|---|---|
| Class or tag | "toxic / not toxic", ImageNet class | classifiers, filters, evals |
| Span or region | named entities, bounding boxes, segmentation masks | extraction, detection |
| Rating | 1–7 helpfulness score, multi-attribute scores | reward models, evals |
| Comparison or ranking | "answer A is better than B", rank 4–9 answers | reward models, DPO |
| Demonstration | an expert writes the ideal response | instruction tuning |
| Critique or edit | annotate what is wrong, or fix it | revision training, evals |
| Step-level judgement | mark each reasoning step correct or not | process reward models |
The last row is the newest. OpenAI's PRM800K released 800,000 step-level human labels on solutions to MATH problems and found that supervising each step beat supervising only the final answer; their process-supervised model solved 78% of a representative subset of the MATH test set (Lightman et al., 2023). Finer-grained labels cost more per item and carry more information per item; the trade-off is an empirical question for each task.
The guideline is the specification¶
A guideline is to labels what a loss function is to a model: whatever it says is what you will get. Good guidelines share a structure: a one-sentence definition of each label, the decision rule for the hard boundary cases, many worked examples (especially near-misses, "this looks toxic but is not, because…"), and an explicit instruction for "cannot tell". The InstructGPT team told labellers to prioritise helpfulness when labelling training data but truthfulness and harmlessness in final evaluations (Ouyang et al., 2022): a value judgement made in a document, then baked into a model.
Guidelines also leak. When crowd workers were asked to write hypothesis sentences that were entailed by, contradicted or neutral to a premise, they fell into habits (negation words for contradictions, vague words for neutrals), and a classifier that read only the hypothesis, never the premise, labelled about 67% of SNLI and 53% of MultiNLI correctly (Gururangan et al., 2018). Models learned the artefacts, and benchmark progress overstated progress on the task. Whenever annotators generate data, look for shortcuts a model could take; shortcut learning is the general phenomenon.
Pilot, measure, revise: the cheapest quality you will ever buy
Before labelling 100,000 items, have three or four annotators and one domain expert label the same 100 to 200. Compute agreement, then read every disagreement with the guideline open. Each cluster of disagreements is either an annotator who misunderstood (train them), a guideline gap (add a rule and an example), or a genuinely ambiguous item (decide whether ambiguity is itself a label). Two or three rounds of this usually move agreement more than any amount of downstream aggregation.
Who labels¶
- Crowd workers (open marketplaces) are cheap per label and noisy, so they are used with redundancy and quality control.
- Managed vendors hire, train and supervise dedicated teams; InstructGPT used about 40 contractors selected by a screening test, and measured their agreement with researchers.
- Experts (doctors, lawyers, mathematicians, senior engineers) are needed when the label requires knowledge the crowd lacks. They are slow and expensive, so they write guidelines, label gold sets and adjudicate disagreements rather than label everything.
- Users label implicitly: clicks, thumbs, edits, whether they copied the answer. The volume is huge and free, but it is biased by what the product showed them (see data in production).
- Programs and models, below.
The people matter beyond accuracy. Labelling work that filters violent and abusive content carries real psychological cost; TIME reported that Kenyan workers labelling toxic text for OpenAI through the outsourcing firm Sama took home between about USD 1.32 and USD 2 an hour (Perrigo, 2023). Treat annotator pay, exposure limits and support as part of the labelling design, and record them in the dataset's documentation. Sambasivan et al. traced how undervalued data work causes "data cascades" that surface late as model failures (2021).
Quality control in production¶
Four mechanisms, usually all at once.
- Qualification. Annotators pass a test on items with known answers before they start.
- Hidden gold items. A small fraction of each batch (5–10% is common) has answers known to the requester. Each annotator's accuracy on gold is a running estimate of their reliability, and the estimate has uncertainty that matters early: 2 out of 2 correct says much less than 180 out of 200.
- Redundancy. Each item gets several independent labels.
- Adjudication. Disagreements, or a random audit sample, go to an expert.
The gold-item estimate is a textbook Bayesian update. With a uniform prior on an annotator's accuracy \(\theta\) and \(k\) correct out of \(n\) gold items, the posterior is \(\operatorname{Beta}(1+k, 1+n-k)\): after 18 of 20 correct, mean \(19/22 \approx 0.86\) with standard deviation about 0.07; after 2 of 2, mean \(0.75\) with a much wider spread. Pausing an annotator on the posterior rather than the raw rate avoids firing good people for one early mistake.
How much redundancy? If labels were independent and each annotator right with probability \(p\) on a binary question, a majority of \(n\) is right with the binomial tail probability, plotted below.
Three labels per item is the usual compromise: it takes a 0.8 annotator pool to about 0.90 and breaks ties on binary tasks. The curve's promise holds only for independent errors; the systematic part of the error stays wherever the guideline put it.
Measuring agreement¶
Percent agreement is the obvious number and a misleading one, because two annotators who both label 90% of items "not toxic" at random will agree 82% of the time by chance. Cohen's kappa (Cohen, 1960) corrects for that:
where \(p_o\) is observed agreement and \(p_e\) the agreement expected if each annotator labelled at random with their own label frequencies. \(\kappa = 1\) is perfect agreement, \(0\) is chance, and negative is worse than chance.
A worked example shows why the correction matters. Two annotators label 100 comments.
| B: toxic | B: not toxic | ||
|---|---|---|---|
| A: toxic | 5 | 5 | 10 |
| A: not toxic | 5 | 85 | 90 |
| 10 | 90 | 100 |
Observed agreement \(p_o = 0.90\). Each says "toxic" 10% of the time, so \(p_e = 0.1 \times 0.1 + 0.9\times 0.9 = 0.82\) and \(\kappa = (0.90-0.82)/(1-0.82) = 0.44\). Now take a balanced task with the same 90% agreement (45 / 5 / 5 / 45): \(p_e = 0.5\) and \(\kappa = 0.80\). Same agreement, very different kappa, because in the first table the annotators agree on the easy majority and agree on only half of the items either of them called toxic. Kappa is telling you the rare class is where the disagreement lives, which is usually the class you care about.
Landis and Koch's widely quoted bands (1977) call 0.41–0.60 "moderate" and 0.61–0.80 "substantial", but treat them as a vocabulary, not a standard; what counts as good depends on how subjective the task is. For more than two annotators, Fleiss' kappa and Krippendorff's alpha generalise the same idea, and alpha also handles missing labels and ordinal or interval scales.
For preference labels, agreement has a well-documented ceiling. InstructGPT's training labellers agreed with each other 72.6 ± 1.5% of the time and held-out labellers 77.3 ± 1.3%; in Stiennon et al.'s summarisation work, researcher–researcher agreement was 73 ± 4%. A reward model cannot predict a new labeller much better than labellers predict each other; the reward models page works through the consequences.
Aggregating labels: from majority vote to Dawid–Skene¶
Majority vote treats every annotator as equally reliable and every class as equally easy. Real pools contain experts, average workers, spammers who click randomly, and people with a systematic confusion (one who calls most sarcasm "toxic"). Dawid and Skene (1979) proposed modelling each annotator \(a\) with a confusion matrix \(\pi^{(a)}_{kl} = P(\text{annotator } a \text{ says } l \mid \text{true class } k)\) and fitting everything (true-label posteriors, class priors and all confusion matrices) by expectation–maximisation, without any ground truth. The intuition: an annotator who agrees with the consensus is probably reliable; trust them more; recompute the consensus; repeat.
Run on a simulated pool of five annotators (one at 90%, one at 85%, one at 75%, a random spammer, and one who calls 70% of class-2 items class 0), three labels per item, the Build it code gives:
| Method | Accuracy |
|---|---|
| Majority vote | 0.874 |
| Dawid–Skene EM | 0.925 |
and it recovers each annotator's reliability, including the spammer's 0.33 per class and the confused annotator's 0.29 on class 2, without being told any true labels. That is the core idea of every modern label model, including weak supervision below.
Finding the labels that are wrong¶
Even well-run datasets contain errors. Northcutt et al. estimated an average of at least 3.3% label errors across the test sets of 10 widely used benchmarks, and at least 6% of the ImageNet validation set; on corrected labels, a ResNet-18 overtakes a ResNet-50 if the share of originally mislabelled test examples rises by just 6% (2021). Their errors are browsable at labelerrors.com.
Confident learning (Northcutt et al., 2019) finds suspects with any classifier's out-of-sample predicted probabilities (from cross-validation):
- For each class \(j\), compute a threshold \(t_j\): the model's average predicted probability of \(j\) on examples labelled \(j\).
- Count an example labelled \(i\) as "confidently belonging to \(j\)" if its predicted probability for \(j\) is at least \(t_j\). These counts form the confident joint, an estimate of the joint distribution of given and true labels.
- Examples off its diagonal (labelled \(i\), confidently \(j \ne i\)) are the likely errors; rank them by margin and send the top ones to an expert.
The per-class threshold matters: it adapts to classes the model is systematically under- or over-confident about, which a single global cut-off does not. Dataset cartography (Swayamdipta et al., 2020) uses training dynamics instead: track each example's confidence in its given label across epochs. Easy examples are learned early and stably, ambiguous ones fluctuate (and help out-of-distribution generalisation), and hard-to-learn ones, persistently low-confidence, are often label errors.
Do not 'clean' your test set with the model you are testing
Removing examples your model gets wrong because "they look mislabelled" inflates its score by construction. Use a different model, or better, send flagged items to independent experts and relabel them, keeping the decision process blind to which model disagreed.
Labels from programs: weak supervision¶
When experts can state rules faster than they can label items, write the rules down. Labelling functions are small programs that vote or abstain: a regular expression for "refund" in a support ticket, a lookup in a knowledge base, an existing classifier, a heuristic on metadata. They are individually inaccurate, they overlap and they conflict. Data programming and its system Snorkel (Ratner et al., 2016; 2017) fit a generative label model that estimates each function's accuracy from their agreements and disagreements alone (the same move as Dawid–Skene), output probabilistic labels, and train an ordinary model on them. In Snorkel's user study, subject-matter experts built models 2.8 times faster and improved predictive performance by 45.5% on average compared with seven hours of hand labelling. Weak supervision is at its best when rules are cheap and data plentiful, and at its worst when the rules miss whole regions of the input that no one thought to write a rule for.
Spending the budget: active learning¶
Labels are expensive, and not all items are equally informative. Active learning lets the current model choose what to label next (Settles, 2009). The standard strategies:
- Uncertainty sampling: label the item whose predicted distribution has the highest entropy \(H(p) = -\sum_y p(y\mid x)\log p(y\mid x)\), or the smallest margin between the top two classes.
- Query by committee: train several models; label where they disagree most.
- Diversity: cover the input space (cluster, then sample per cluster), so the batch is not forty near-identical confusing items.
In practice you mix uncertainty with diversity and label in batches. PRM800K used active learning to choose which model solutions to send for step-level labels, and found it significantly improved the value of each label. Two cautions. Items chosen by active learning are not a random sample, so never use them as a test set, and models trained on them see a skewed distribution. And the selection depends on the current model, so a weak early model can steer labelling into a corner; keep a random slice in every batch.
Human feedback for language models¶
Preference data for RLHF and DPO is labelling with three special features.
- Comparisons, not scores. People disagree about absolute scales but agree more on "A is better than B", so most pipelines collect pairwise comparisons or rankings and fit them with the Bradley–Terry model, \(P(A \succ B) = \sigma(r_A - r_B)\). The mechanics are on the reward models page.
- The items come from the model being trained. Answers to compare are sampled from the current policy, so the data must be refreshed as the policy improves; Llama 2's team collected preference data in weekly batches, over 1 million comparisons in total (Touvron et al., 2023).
- The guideline encodes values. "Which answer is better?" hides trade-offs between helpfulness, honesty and harmlessness; Anthropic collected helpfulness and harmlessness comparisons separately and found them in tension (Bai et al., 2022).
Process supervision (PRM800K) and multi-attribute ratings (HelpSteer2 scores helpfulness, correctness, coherence, complexity and verbosity separately; Wang et al., 2024) are both attempts to get more information per human judgement than one bit of "A or B".
Models as labellers¶
Since 2023 the cheapest annotator is often a model.
- On 2,382 tweets, zero-shot ChatGPT beat crowd workers on four of five annotation tasks, had higher inter-coder agreement than both crowd workers and trained annotators, and cost under USD 0.003 per annotation, about twenty times less than the crowd platform (Gilardi et al., 2023).
- Strong LLM judges matched human preferences on MT-Bench and Chatbot Arena with over 80% agreement, the level humans reach with each other, while showing position, verbosity and self-enhancement biases (Zheng et al., 2023).
- RLAIF, preference labels from an off-the-shelf LLM, performed comparably to RLHF on summarisation and helpful and harmless dialogue (Lee et al., 2023); Constitutional AI replaced human harmlessness labels with model judgements guided by written principles.
- UltraFeedback collected over a million GPT-4 annotations to train open reward models (Cui et al., 2023).
And the human pool is not as human as it looks: re-running a summarisation task on a crowd platform, Veselovsky et al. estimated that 33–46% of crowd workers used LLMs to do it (2023).
The rule that makes model labels safe is the same as for any new annotator: calibrate it against a human gold set before you trust it, and keep measuring. A model labeller has a confusion matrix like anyone else, its errors are highly correlated across items (it is one annotator, however many times you call it), and it shares biases with the models you train, which makes its mistakes hard to see. Use it for volume; use humans for the gold set, for adjudication, and for anything where the model's own blind spots are the thing being measured.
Disagreement can be the label¶
For some tasks there is no single right answer: offensiveness, humour, which of two good essays is better. Forcing a majority label throws away real information about the population. Keep the label distribution (soft labels), train with cross-entropy against it, and evaluate against it, or model annotator groups explicitly when whose judgement counts is part of the question. Consistent disagreement in a pilot is a finding about the task, not only a failure of the guideline.
History¶
Dawid and Skene's 1979 paper came from medical statistics, where several clinicians assess the same patients and nobody knows the truth; the EM algorithm it used had been formalised in its general form only two years earlier. Cohen's kappa (1960) came from psychology. The crowdsourcing era began when ImageNet (2009) used Amazon Mechanical Turk at scale, and Raykar et al.'s Learning from Crowds (2010) joined annotator modelling with classifier training. Weak supervision (data programming, 2016; Snorkel, 2017) moved effort from labelling items to writing rules. The language-model era added demonstrations and comparisons (Stiennon et al., 2020; InstructGPT, 2022), process labels (2023), and then models labelling for models (Constitutional AI, 2022; RLAIF, 2023). Northcutt et al.'s 2021 audit of benchmark test sets made label error a mainstream topic rather than a footnote.
First principles¶
Why redundancy works, and when it does not. If each annotator is independently right with probability \(p > 1/2\), the majority of \(n\) is right with probability tending to 1 as \(n\) grows (Condorcet's jury theorem; the binomial tail in the figure). Independence is the whole assumption. With correlated errors, the vote converges to the shared error. That is why fixing a guideline beats adding annotators, and why ten calls to one LLM are closer to one annotator than to ten.
Why you can estimate annotator accuracy without ground truth. With three or more conditionally independent annotators, their pattern of agreements identifies their accuracies: if A and B agree often, and both agree with C, they are all probably reliable; a spammer agrees with everyone at the chance rate. Formally, the joint distribution of three annotators' labels determines the confusion matrices up to a relabelling of classes, which EM then fits. With only two annotators it does not: you cannot tell "both good" from "both share a bias".
Why label noise costs more in evaluation than in training. Deep networks are fairly robust to random training-label noise (they fit the clean majority first), but a test label error is counted at face value. If the test set has 5% errors and two models differ by 2 points, the noise can decide the ranking, which is exactly what Northcutt et al. observed.
Why the guideline is a value choice. A label is defined by the guideline, and a model learns the labels. So the guideline author is specifying model behaviour, often on contested questions (what is harmful, what is helpful, what is fair). That is the alignment problem in its most concrete, operational form.
The maths¶
Cohen's kappa. For two annotators over \(C\) classes with label frequencies \(p^A_c\) and \(p^B_c\),
\(p_e\) is the agreement of two independent annotators with the same marginals, so \(\kappa\) measures the fraction of the achievable improvement over chance that was achieved.
Gold-item accuracy as a Beta posterior. With prior \(\theta \sim \operatorname{Beta}(\alpha,\beta)\) and \(k\) correct out of \(n\) gold items (each correct with probability \(\theta\), independently),
Derived in estimation: MLE, MAP and Bayes.
Majority vote under independence. For odd \(n\) and binary labels,
which gives the figure's 0.784 for \(n = 3\), \(p = 0.7\): \(3(0.7)^2(0.3) + 0.7^3 = 0.441 + 0.343\).
The Dawid–Skene model. Item \(i\) has a latent true class \(z_i \sim \operatorname{Cat}(\rho)\); annotator \(a\), if they label item \(i\), reports \(l_{ia}\) with probability \(\pi^{(a)}_{z_i, l_{ia}}\), independently across annotators given \(z_i\). The likelihood is
where \(A_i\) is the set of annotators who labelled item \(i\).
Derivation: the EM updates
Introduce responsibilities \(T_{ik} = P(z_i = k \mid \text{labels}, \rho, \pi)\).
E-step (Bayes' rule with the current parameters):
M-step: maximise the expected complete-data log-likelihood \(\sum_i \sum_k T_{ik}\big[\log\rho_k + \sum_{a\in A_i}\log \pi^{(a)}_{k,l_{ia}}\big]\) subject to each \(\rho\) and each row of each \(\pi^{(a)}\) summing to one. Lagrange multipliers give weighted counts:
Each iteration cannot decrease the likelihood. EM finds a local optimum, and the model is only identified up to permuting class names, so initialise from majority vote (which puts you in the right basin when most annotators are better than chance) and add a small pseudo-count to the confusion counts so that no probability becomes exactly zero.
Bradley–Terry for comparisons. With a latent score \(r(x)\) per item and \(P(A \succ B) = \sigma(r_A - r_B) = 1/(1+e^{-(r_A - r_B)})\), the log-likelihood of observed comparisons is \(\sum \log\sigma(r_{\text{win}} - r_{\text{lose}})\), the reward-model loss. Only differences of scores are identified.
Uncertainty sampling. For a classifier with predictive distribution \(p(y\mid x)\), pick \(x^\star = \arg\max_x H\big(p(\cdot\mid x)\big)\). For binary labels this is the item with \(p(y=1\mid x)\) closest to 0.5. The expected information gain about the model parameters, \(I(y; \theta \mid x)\), is the principled version: it prefers items where the model is uncertain because its plausible parameter settings disagree, not items that are inherently noisy (query by committee approximates it with an ensemble).
Common misconceptions¶
\"High agreement means correct labels\"
Agreement measures consistency, not validity. Annotators who share a misunderstanding agree perfectly. Check against an expert gold set, and read the guideline as a suspect.
\"Majority vote is good enough\"
It is when annotators are similar and independent. With spammers, experts and systematic confusions in the same pool, modelling annotators wins, as the simulation shows.
\"LLM labels are free human labels\"
They are one annotator with one set of biases, cheap enough to call a million times. Their errors are correlated across items and with the models you will train on them. Calibrate on human gold and keep humans on the hard and the high-stakes items.
Build it¶
A simulated annotation project (NumPy): 3,000 items, three classes, five annotators of very different quality, three labels per item. Compare annotators with kappa, then aggregate with majority vote and with Dawid–Skene EM.
import numpy as np
rng = np.random.default_rng(7)
N, C, A = 3000, 3, 5 # items, classes, annotators
prior = np.array([0.6, 0.3, 0.1])
truth = rng.choice(C, N, p=prior)
def confusion(acc): # right w.p. acc, else uniform over others
return np.full((C, C), (1 - acc) / (C - 1)) + np.eye(C) * (acc - (1 - acc) / (C - 1))
pi = np.stack([confusion(0.90), confusion(0.85), confusion(0.75),
np.full((C, C), 1 / C), # a spammer: random labels
confusion(0.90)])
pi[4, 2] = [0.70, 0.0, 0.30] # annotator 5 calls most class-2 items class 0
labels = np.full((N, A), -1) # each item gets 3 of the 5 annotators
for i in range(N):
for a in rng.choice(A, 3, replace=False):
labels[i, a] = rng.choice(C, p=pi[a, truth[i]])
def kappa(x, y): # Cohen's kappa on items both labelled
m = (x >= 0) & (y >= 0); x, y = x[m], y[m]
po = (x == y).mean()
pe = sum((x == c).mean() * (y == c).mean() for c in range(C))
return po, (po - pe) / (1 - pe)
po, k = kappa(labels[:, 0], labels[:, 1]); print(f"annotators 1 vs 2: agreement {po:.2f}, kappa {k:.2f}")
po, k = kappa(labels[:, 0], labels[:, 3]); print(f"annotators 1 vs 4: agreement {po:.2f}, kappa {k:.2f}")
votes = np.stack([(labels == c).sum(1) for c in range(C)], 1)
mv = np.argmax(votes + 1e-3 * rng.random(votes.shape), 1) # majority vote, random tie-break
print(f"majority vote accuracy: {(mv == truth).mean():.3f}")
T = votes / votes.sum(1, keepdims=True) # Dawid-Skene EM, initialised from votes
for _ in range(50):
p = T.mean(0) # M-step: class prior ...
est = np.zeros((A, C, C)) # ... and each annotator's confusion matrix
for a in range(A):
for l in range(C):
est[a, :, l] = T[labels[:, a] == l].sum(0)
est = (est + 0.01) / (est + 0.01).sum(2, keepdims=True)
logT = np.log(p) + sum(np.where((labels[:, a] >= 0)[:, None],
np.log(est[a][:, labels[:, a]].T), 0) for a in range(A))
T = np.exp(logT - logT.max(1, keepdims=True)); T /= T.sum(1, keepdims=True) # E-step
ds = T.argmax(1)
print(f"Dawid-Skene accuracy: {(ds == truth).mean():.3f} class-2 recall: MV {(mv[truth == 2] == 2).mean():.2f}, DS {(ds[truth == 2] == 2).mean():.2f}")
print("estimated P(correct | class) per annotator:")
for a in range(A):
print(f" annotator {a+1}: est {np.round(np.diag(est[a]), 2)} true {np.round(np.diag(pi[a]), 2)}")
Output:
annotators 1 vs 2: agreement 0.74, kappa 0.56
annotators 1 vs 4: agreement 0.33, kappa 0.00
majority vote accuracy: 0.874
Dawid-Skene accuracy: 0.925 class-2 recall: MV 0.75, DS 0.73
estimated P(correct | class) per annotator:
annotator 1: est [0.89 0.88 0.97] true [0.9 0.9 0.9]
annotator 2: est [0.82 0.86 0.92] true [0.85 0.85 0.85]
annotator 3: est [0.73 0.77 0.69] true [0.75 0.75 0.75]
annotator 4: est [0.33 0.33 0.35] true [0.33 0.33 0.33]
annotator 5: est [0.88 0.92 0.29] true [0.9 0.9 0.3]
Read it closely. Two good annotators (90% and 85%) agree only 74% of the time, kappa 0.56: agreement between good annotators is much lower than either one's accuracy, so do not mistake a modest kappa for a bad pool. The spammer's kappa with annotator 1 is exactly 0. Dawid–Skene cuts the error rate from 12.6% to 7.5% by learning to ignore the spammer and weight the best annotators, and it discovers annotator 5's blind spot on class 2 from agreement patterns alone. It does not improve class-2 recall: when annotator 5 says "class 0" about a class-2 item, that label is nearly uninformative, and no model can recover information the labels do not contain; the item rests on its two other labels. The class-2 estimates are also noisier (0.97 for a true 0.90) because class 2 is only 10% of items.
Things to try
- Give every item 5 labels instead of 3. Which method gains more?
- Make annotators 1 and 2 share the same systematic confusion. Does Dawid–Skene still find it? (It cannot, if a majority shares it; this is the systematic-error point in code.)
- Replace the spammer with an adversarial annotator who always picks a wrong class. Why does Dawid–Skene turn this annotator into a useful one?
- Add active learning: train a logistic regression on item features you simulate, and spend extra labels only on the items whose Dawid–Skene posterior has the highest entropy.
Check yourself¶
Two annotators agree on 94% of items, and each labels 95% of items as negative. What is kappa?
\(p_e = 0.05^2 + 0.95^2 = 0.905\), so \(\kappa = (0.94 - 0.905)/(1-0.905) \approx 0.37\): modest agreement beyond chance, despite 94% raw agreement.
Why does redundancy not fix an ambiguous guideline?
Because ambiguity produces systematic error shared by annotators who read the guideline the same way. Majority voting cancels independent errors and amplifies shared ones.
An annotator got 9 of 10 gold items right; another got 85 of 100. With a uniform prior, whose posterior mean accuracy is higher, and whom do you trust more?
Posterior means: \(10/12 \approx 0.83\) and \(86/102 \approx 0.84\), nearly equal. The second is far more certain (standard deviation about 0.036 versus about 0.10), so you trust that estimate more.
Why can Dawid–Skene estimate annotator accuracies without any ground truth, and when can it not?
With three or more conditionally independent annotators, the pattern of agreements identifies each one's confusion matrix (up to a relabelling of classes). It fails when errors are correlated (shared biases look like truth) or with only two annotators per item.
Why should items chosen by active learning not be used as your test set?
They are selected to be uncertain or unusual for the current model, so they are not a random sample of the deployment distribution; accuracy on them is biased (usually low) and does not estimate real-world performance.
A reward model reaches 70% accuracy on held-out human comparisons. Is that bad?
Not necessarily. If labellers agree with each other about 73% of the time, about 70–73% is near the ceiling; the remaining error is disagreement in the labels, not model weakness.
Hard: confident learning flags 4% of your training labels as likely errors. You remove them and retrain; validation accuracy rises 1 point. Is the improvement real?
Only if the validation set was not filtered by the same procedure and its labels are trusted. If the validation set was cleaned with the same model, the gain may be circular. Re-check a sample of flagged items with independent experts, and evaluate on an expert-relabelled test set.
Hard: you replace human preference labels with an LLM judge and the resulting policy's win rate, judged by the same LLM, rises sharply. What could be going on?
The policy may be learning the judge's biases (length, style, position, self-preference) rather than human preferences; evaluation by the same judge rewards exactly that. Evaluate with humans or a different judge, control for length, and check agreement of the judge with a human gold set on the new policy's outputs.
Go deeper¶
Papers
- Maximum Likelihood Estimation of Observer Error-Rates Using the EM Algorithm — Dawid and Skene, 1979. The foundation of annotator modelling; short, and the model is still the default.
- A Coefficient of Agreement for Nominal Scales — Cohen, 1960. Where kappa comes from.
- Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks — Northcutt, Athalye and Mueller, 2021. How wrong benchmark labels are, and what that does to rankings.
- Confident Learning — Northcutt, Jiang and Chuang, 2019. The algorithm behind cleanlab; section 2 for the confident joint.
- Snorkel: Rapid Training Data Creation with Weak Supervision — Ratner et al., 2017. Labelling functions and the label model.
- Annotation Artifacts in Natural Language Inference Data — Gururangan et al., 2018. How annotation protocols leak shortcuts into datasets.
- Training language models to follow instructions with human feedback — Ouyang et al., 2022. Section 3.4 and appendix B on labeller selection, guidelines and agreement.
- Let's Verify Step by Step — Lightman et al., 2023. Process supervision and active learning for labels.
- Judging LLM-as-a-Judge — Zheng et al., 2023. Model labellers' agreement with humans and their biases.
- Artificial Artificial Artificial Intelligence — Veselovsky, Ribeiro and West, 2023. Crowd workers using LLMs, and why human data is getting harder to keep human.
- Active Learning Literature Survey — Settles, 2009. Still the clearest map of query strategies.
Videos and courses
- Introduction to Data-Centric AI (MIT) — Lectures and labs on label errors, confident learning, dataset curation and active learning; the lab notebooks are worth doing.
Articles and books
- Thinking about High-Quality Human Data — Lilian Weng, 2024. A dense survey of annotator agreement, aggregation and label-noise methods.
- Reinforcement Learning from Human Feedback — Nathan Lambert. The preference-data chapters on how comparisons are collected in practice.
- OpenAI Used Kenyan Workers on Less Than USD 2 Per Hour — Billy Perrigo, TIME, 2023. The human cost of safety labelling.
Code
- cleanlab — Confident learning and label-issue detection for any classifier.
- snorkel — Labelling functions and label models.
Where this leads¶
- Reward models and preference data: what happens to human comparisons once collected.
- Evals in practice: golden sets and LLM judges, the labelling of evaluation data.
- Data in production: user feedback as labels, and the loops it creates.
- Statistics for experiments and evals: confidence intervals for accuracies measured on labelled sets.