The chapter explains that high-quality machine learning models depend on high-quality annotations, and that annotation quality cannot be treated as a simple majority-vote problem. It introduces the idea of comparing annotators against ground truth data, while warning that ground truth itself must be sampled carefully and created with strong controls so errors do not leak into both training and evaluation data. The chapter also emphasizes the difference between raw accuracy and chance-adjusted accuracy, showing why expected behavior matters and why a score below chance should trigger concern.
It then develops ways to measure agreement among annotators, from simple per-annotator and per-task calculations to dataset-level metrics such as Krippendorff’s alpha. These agreement measures are useful for judging dataset reliability, identifying weak or strong annotators, spotting collaboration or duplication, and understanding where instructions may be failing. At the same time, the chapter stresses that agreement is not enough on its own: low agreement may reflect real ambiguity or diversity rather than poor quality, and high agreement can still hide shared mistakes. Ground truth and agreement should therefore be combined to get a more accurate picture of annotation quality.
Later sections show how to turn annotation reliability into practical workflows. The chapter explains how to aggregate multiple labels into a single training label using annotator confidence, how to handle disagreement by assigning probabilities, and how to use uncertainty thresholds to decide when to trust, escalate, or discard labels. It also discusses expert review, promoting reliable annotators into expert roles, and breaking complex tasks into smaller subtasks to improve speed and quality. Overall, the chapter presents quality control as an ongoing, resource-intensive process that balances accuracy, cost, workforce design, and task structure.
The flow of information for annotation. In addition to taking data sampled according to our current active learning strategies, we sample a random or representative set of data and data that some annotators have already seen. Sampling random/representative data lets us calculate the accuracy of annotators in a way that makes it easier to determine their reliability across datasets and whether they are candidates for promotion to experts. Sampling within the current active learning batch allows us to calculate the accuracy for this particular dataset. Sampling during the annotation process finds items that are most useful for annotation guidelines and for adjudication by experts.
Throughout the remainder of this chapter and in chapters 9 and 10, we will use this example data. Five annotators—named Alex, Blake, Cameron, Dancer, and Evan—have annotated an image according to the object in that image. We will assume that the image is the same type that was used in previous chapters, with four labels, “Animal,” “Cyclist,” “Pedestrian,” and “Sign.” In this example, Alex has seen seven images (tasks 1, 3, 5, 6, 7, 8, and 9); annotated the first three as “Pedestrian”; and annotated each of the rest as “Cyclist,” “Pedestrian,” “Animal,” or “Sign.” The image on the right shows what the annotation interface might look like.
An example of annotator accuracy compared with ground truth data. Assume that the Ground Truth column has the known answers for each task (image labels). We calculate each annotator’s accuracy as the fraction that they got correct.
The three calculations for different accuracies that would be expected through random chance, showing a wide range of expected accuracy depending on what baseline we use
Different ways of establishing a baseline expected from random guessing or chance-adjusted accuracy when testing annotators against ground truth data. Top: How we normalize the result. If someone was randomly choosing a label, they would sometimes pick the correct one, so we measure accuracy in terms of distance between the random accuracy and 1. Bottom: How the different adjusted accuracies look with our example data. Note that the normalized score of 60% accuracy for always guessing “Pedestrian” is different from the 90% raw accuracy score or 86.7% when normalized according to the number of labels. This example highlights why the correct baseline for expected accuracy is so important. There are cases in which each of the three baselines is the better choice, so it is important to know all three.
How agreement metrics are calculated. Agreement is typically on a –1 to 1 scale, where 1 is perfect agreement, –1 is perfect disagreement, and 0 is random distribution. The resulting agreement is variously known as actual agreement, adjusted agreement, or agreement adjusted for random chance.
A naive way to find agreement per annotator, agreement per task, and overall agreement for the entire set of annotations. We calculate the expected agreement in terms of randomly selecting one of four labels. We calculate the agreements for each task in the large middle table. We derive the per-person and per-task agreements from the Agreements table. We derive the overall agreement by using the combination of the expected and the average task-level agreement. Although you shouldn’t use this method for your actual data, because it is too simple, the diagram is useful for highlighting the concepts.
A simplified Krippendorff’s alpha that provides an overall score for the reliability of the annotators for our example data. The expected agreement is the sum of squares of the frequency of each label. The actual agreement is the average amount by which each annotation agreed with the other annotations for that task, with a small adjustment (epsilon) made to account for precision in our calculations.
Krippendorff’s alpha, calculating the overall level of agreement in a dataset to determine whether it is reliable enough to use for training data. The inputs are the white areas: the annotations (bottom left) and the label weights (top middle). Because we have mutually exclusive labels, this example has each label weighted only with itself. If we had hierarchical, ordinal, or other types of data, we would enter different values as label weights. The top row of calculations contains the expected agreement by random chance, and the bottom row of calculations calculates the actual agreement in the data. The two rows are used to calculate the expected agreement (pe) and actual agreement (pa) for the dataset, from which the adjusted overall agreement alpha is calculated.
An example of three types of classification tasks and how the label weights from Krippendorff’s alpha can be used for those tasks. The first example repeats the label weights from figure 8.9, showing the mutually exclusive labeling tasks that have been used as an example throughout this chapter. The second example shows an ordinal scale from “Bad” to “Excellent,” where we want to give partial credit to adjacent annotations such as “Good” and “Excellent.” The third example shows rotational categories—in this case, the compass points. In this case, we give a partial score to anything that is off by 90 degrees, such as “North” and “West,” but a zero score to anything that is off by 180 degrees, such as “North” and “South.”
The per-annotator agreement with the most common annotation for each task (majority agreement). This example shows that two annotators, Blake and Evan, always agreed with the majority. This method is the simplest way to calculate agreement between annotators; it can be effective when you have a large number of annotators per task but is rarely used for creating training data due to budget constraints. This method can provide insight into your data but should not be your sole means of determining data quality.
The per-annotator agreement is calculated in terms of the actual agreements (bottom right), with the expected agreement calculated on a per-annotator basis (top middle). Note that Evan has an expected agreement of only 0.15. In other words, if Evan guessed the most common label, “Pedestrian,” every time, they would agree with about 15% of the other annotations on their tasks. By contrast, Alex could have guessed “Pedestrian” every time and got about 51% agreement. This method takes into account the fact that Evan saw tasks with lower agreement that were presumably more difficult.
Recalculating agreement for our annotators after the first annotator has been removed. Note that three of the four scores went up compared with figure 8.12, but Blake’s agreement dropped slightly, and Evan went from second-highest to lowest agreement.
Annotation confusion matrices: compared with ground truth data in our example data (top) and compared with every pairwise agreement or disagreement (bottom)
Using per-annotator accuracy as probabilities for per-task agreement
Expanding all the confidences in annotators to give some weight to all labels. We have 0.9 confidence for each annotator, so we distribute the remaining 0.1 across the other labels.
Requesting confidence explicitly from the annotator is an alternative (or addition) to calculating the confidence in their response from their accuracy and/or agreement.
Requesting the annotator confidence for every label as an alternative to dividing their remaining confidence across the other labels programmatically
Different methods of calculating an uncertainty score for a probability distribution. These methods are the same one that are used in active learning to calculate uncertainty (or confidence) from a model’s prediction, used here to calculate uncertainty for agreement among annotators.
Calculating the threshold at which you can trust your annotations. In this example, the desired annotation accuracy of ~0.96, calculated on ground truth data, will be achieved if items with agreement uncertainty below ~0.65 are trusted.
Three workflows for expert in-house annotation, repeated from chapter 7. The bottom two workflows show different ways that experts might be incorporated: adjudicating items that were difficult for annotators and creating guidelines for annotators. Both workflows might exist in the same task, and there might be many more steps for more complicated workflows.
An example of a multistep workflow. If we divide steps 2–4 among the four object types, we have 13 total tasks. The individual responses in step 1 and the evaluation in step 4 are binary tasks. Therefore, although our goal is to create a bounding box that requires the advanced quality control metrics from chapter 9, we can use the simpler label-based quality control metrics for this chapter. Compared with a single task that captures every bounding box in one go, we can expect higher throughput and accuracy because annotators are concentrating on one task at a time; easier budgeting if we’re paying per task, because there will be less variability in the time needed per task; and easier division of tasks among workforces if only some annotators are trusted for the most complicated tasks.
Summary
- Ground truth examples are tasks that have known answers. By creating ground truth examples for the dataset, you can evaluate the accuracy of annotators, create guidelines for those annotators, and better calibrate other quality control techniques.
- You have many ways to calculate agreement in a dataset, including overall agreement, agreement between annotators, agreement between labels, and agreement at task level. Understanding each type of agreement will help you calculate the accuracy of your training and evaluation data and better manage your annotators.
- For any evaluation metric, you should calculate an expected result that would occur by random chance as a baseline. This approach allows you to normalize your accuracy/agreement metric to a score adjusted for random chance, which makes the score more easily comparable across different tasks.
- You will get the best results when using both ground truth data and interannotator agreement, because ground truth agreement allows you to better calibrate your agreement metrics, and agreement metrics can be applied to more annotations than is practical with ground truth alone.
- You can aggregate multiple annotations to create a single label for each task. This approach allows you to create the training data for your machine learning models and calculate the likelihood that each label is correct.
- Quality control by expert review is one common method of resolving disagreements between annotators. Because experts tend to be rare and/or expensive, they can focus mostly on the tough edge cases and the cases that will become part of the guidelines for other annotators.
- Multistep workflows allow you to break an annotation task into simpler tasks that flow into one another. This approach can create annotations faster and more accurately and allow easier-to-implement quality control strategies.
Human-in-the-Loop Machine Learning ebook for free