Frontier Data Review

Annotation Guidelines: How to Write Labelling Instructions Annotators Can Follow

What a labelling guideline has to settle, how to write label definitions annotators apply the same way, and a template to start from.

Updated

What annotation guidelines are for

Annotation guidelines are the written instructions annotators follow when they label data: what each label means, how to decide between labels, and what to do with items that fit none of them. In a training-data project they are the specification of the dataset. The model learns whatever the labels encode, and the labels encode whatever the guidelines told annotators to do, plus whatever each annotator filled in where the guidelines were silent.

That last part is the reason to write them carefully. Every case the guidelines leave open is decided by each annotator on their own, differently, and the differences end up in the data as noise or as a quiet bias towards whichever annotators labelled the most items. Good guidelines shrink that open space until the disagreement left is the kind you chose to keep.

Guidelines are also how a dataset stays the same dataset over time. Annotators change, vendors change, and a project that runs for months will relabel or extend its data. A written, versioned guideline is what lets a label from March mean the same thing as a label from October.

Decide first: one right answer, or many valid ones?

Before writing a single label definition, decide what kind of dataset you are building. Röttger and colleagues (NAACL 2022) name two paradigms. Prescriptive annotation discourages annotator subjectivity: the guidelines define one correct label and annotators are trained to apply it, which suits training a model to apply one policy consistently. Descriptive annotation encourages it: the guidelines say what to judge but leave the judgement to the annotator, which suits surveying and modelling how different people see the same item.

Their argument is that a dataset built without choosing ends up partly subjective and serves neither use well. The choice changes how you write everything that follows:

How the two paradigms shape the guidelines
PrescriptiveDescriptive
GoalEvery annotator gives the label the policy requiresEach annotator gives the label they believe is right
Label definitionsDetailed decision rules, many worked edge casesShort definitions of what is being judged, few rules
Disagreement meansA guideline gap or an annotator error, to be fixedInformation about the item, to be kept
AggregationAdjudicate to one label per itemKeep every annotator's label, or the distribution
Typical usesContent-policy classifiers, extraction, factual checksPreference and opinion data, studies of perceived harm or tone

Many projects mix the two: prescriptive rules for whether a response is factually wrong or breaks a hard policy, descriptive judgement for which of two acceptable responses an annotator prefers. If yours does, say in the guidelines which questions are which, so annotators know when they are applying a rule and when they are giving an opinion. Our post on annotator disagreement in RLHF pipelines covers why preference data often needs the descriptive side.

What the guidelines must contain

Length varies enormously with the task, from a page for a binary filter to a long manual for syntactic treebanks or search-quality rating. Whatever the length, a usable guideline answers each of these:

The parts of an annotation guideline
PartWhat it settles
PurposeWhat the data will be used for, in a few sentences. Annotators decide edge cases better when they know what a wrong label costs downstream.
The unitWhat exactly is being labelled: a whole document, a sentence, a span, a response, a pair of responses. Where spans are involved, where they start and end.
The label setEvery label, each with a definition, the conditions for using it, and what it is not.
Decision procedureThe order in which to ask the questions, and which rule wins when two apply. A flowchart or numbered checklist works better than prose.
ExamplesClear cases for every label, and near-misses: items that look like one label but belong to another, with the reason.
Escape routesWhat to do with items that are broken, off-topic, in the wrong language, unreadable, or that the annotator is not qualified to judge. A skip or flag option keeps these out of the real labels.
Sensitive contentWhat annotators may see, how to step away from it, and who to tell.
Questions and changesWhere annotators ask about a case the guidelines do not cover, and how they hear about rulings and new versions.
Version and changelogA version number on every page, and what changed between versions.

Writing label definitions annotators apply the same way

Most disagreement traced back to guidelines comes from label definitions that describe a concept instead of telling the annotator how to decide. "Toxic: rude, disrespectful or unreasonable content" names an idea everyone already has their own version of. A usable definition turns it into a test an annotator can run on the item in front of them.

  • Write conditions, not synonyms. State what must be true of the item for the label to apply, ideally as a short list an annotator can check one by one.
  • Say what the label is not. For each label, name the neighbouring label it is most often confused with and the rule that separates them.
  • Set precedence. When an item meets the conditions for two labels, or two criteria pull in opposite directions, the guidelines must say which wins. The InstructGPT paper gives a public example: during training-data labelling, labelers were told to put helpfulness to the user above truthfulness and harmlessness, while in the final evaluations they were told to put truthfulness and harmlessness first. Either order can be right for its purpose; leaving it unstated is not.
  • Anchor graded scales. For a 1–5 rating, describe what each point looks like and give an example of each, rather than labelling only the ends. Annotators who see only "1 = poor, 5 = excellent" each build their own middle.
  • Use examples from the real data. Invented examples tend to be cleaner than what annotators will meet. Pull clear cases and hard cases from a sample of the items to be labelled.
  • Explain every hard example. An example without its reasoning teaches annotators to match surface features. One sentence on why the item gets that label is what lets them generalise to the next case.
  • Keep the label set as small as the use allows. Every extra label adds boundaries to argue about. If two labels are always merged downstream, merge them in the guidelines.

Large public guidelines show what this looks like at scale. The Universal Dependencies guidelines give each syntactic relation its own page of definition and examples across languages, and the guidelines Google publishes for its search quality raters lean heavily on worked examples of pages at each rating level. Both are worth reading for structure, even if your task is nothing like theirs.

A template to start from

The skeleton below covers the parts above, filled in for an illustrative task: two annotators judging whether chatbot responses are acceptable to train on. Copy it into whatever your annotators read (a shared document, the labelling tool's instructions panel, a wiki) and replace the example content with your own task's. Sections that do not apply can be cut; the label definitions and the edge-case section are the ones never to skip.

# Response acceptability: annotation guidelines
Version: 1.1   Owner: the project lead, who answers all questions

## 1. Purpose
Labels decide which chatbot responses go into a fine-tuning set.
A response wrongly marked Acceptable teaches the model a bad habit;
one wrongly marked Unacceptable only costs us an example.
Paradigm: prescriptive. Apply the rules below, not personal taste.

## 2. What you are labelling
The unit: one response, shown under the user message it answers.
Judge the response only. The user message is context.

## 3. Labels
### Acceptable
Use when: the response answers what was asked; it states nothing
you know to be false; it follows the content policy.
Do not use when: it answers a different question -> Unacceptable.
Clear example: a correct, complete answer to a cooking question.
Near-miss: a polite, well-written answer to the wrong question
-> Unacceptable, because it does not answer what was asked.

### Unacceptable
Use when: any condition for Acceptable fails.
Do not use when: you cannot judge the content -> Skip.

### Skip
Use when: the item is broken, in a language you do not read,
or needs expertise you do not have. Add a one-line reason.

## 4. How to decide
1. Can you read and judge the item? If not -> Skip, stop.
2. Does it answer what was asked? If not -> Unacceptable, stop.
3. Does it state anything you know to be false? If so -> Unacceptable.
4. Does it break the content policy? If so -> Unacceptable.
5. Otherwise -> Acceptable.
When two rules seem to conflict: policy first, then accuracy,
then whether it answers the question.

## 5. Edge cases and rulings
A correct answer with one minor typo -> Acceptable;
typos do not change the meaning.   (added in v1.1)

## 6. Sensitive content
Some items contain upsetting text. Skip any item you need to,
take breaks when you need them, and tell the project lead.

## 7. Questions
Ask the project lead. Every ruling is added to section 5
with a new version number.

## Changelog
v1.0: first version.
v1.1: added the typo ruling to section 5.

Pilot, measure and revise

No guideline survives its first batch unchanged, and it should not be expected to. Pustejovsky and Stubbs, in Natural Language Annotation for Machine Learning, describe annotation as a cycle in which the annotation model and guidelines are revised as annotation, training and evaluation expose problems. In practice the loop looks like this:

  1. Write a first draft, then label a small sample yourself, alone, before any annotator sees it. The cases you hesitate on are the first edge cases to write down.
  2. Run a pilot: give the draft to a few annotators and have them label the same items independently.
  3. Measure agreement on the pilot with a chance-corrected coefficient, per label as well as overall. Our guide to inter-annotator agreement covers which coefficient fits which design and how to read it.
  4. Read every disagreement and sort it: a guideline gap (the instructions do not decide the case), an annotator error (they do, and someone missed it), or genuine ambiguity (reasonable people differ).
  5. Close gaps with a rule and an example from the pilot, add rulings to the edge-case section, and bump the version.
  6. Measure again on fresh items, not the pilot sample the revisions were written against. Repeat until agreement is where you decided in advance it needed to be, then start production.

Keep the loop running after launch. Annotators' questions are the cheapest signal you have: each one is a case the guidelines did not settle for someone. Answer it once, in the guidelines, rather than in a private message that the next annotator never sees.

Versioning the guidelines and documenting the dataset

Treat the guidelines like code. Give every version a number, keep a changelog, and record on every label which guideline version the annotator was working from. When a revision changes what a label means, rather than only clarifying it, items labelled under the old version may need relabelling or need to be kept apart; without the version on each label you cannot tell which items those are.

Publish or archive the guidelines with the dataset. Datasheets for Datasets (Gebru et al.) asks dataset creators how their data was labelled and by whom, and the guidelines are the most direct answer. Some model developers release theirs: the InstructGPT paper includes its labelling instructions in an appendix, which is a large part of why its data choices can be discussed in detail at all.

Common mistakes

  • Defining labels by name only. A list of labels with one-line glosses is a label set, not a guideline.
  • No escape route. Without a skip or flag option, annotators force broken or out-of-scope items into the nearest real label.
  • Examples only of easy cases. Annotators do not need help with the clear cases. The examples that matter are the near-misses.
  • Rulings that live in chat. Answers given in a message thread or a meeting reach only the people present. If it is a ruling, it goes in the guidelines with a version bump.
  • Changing meaning without a version. Editing a definition in place splits the dataset into two silently incompatible halves.
  • Tuning on the test. Revising the guidelines until agreement on the pilot sample looks good, then reporting that number. Measure on items the revisions were not written against.
  • Treating all disagreement as error. On subjective questions, forcing agreement with ever more rules can erase exactly the variation the data was meant to capture. Aroyo and Welty argue this point in "Truth Is a Lie: Crowd Truth and the Seven Myths of Human Annotation".

Sources

  1. Röttger et al. (2022), Two Contrasting Data Annotation Paradigms for Subjective NLP Tasks

    Defines the prescriptive and descriptive annotation paradigms and argues datasets should choose one.

  2. Ouyang et al. (2022), Training Language Models to Follow Instructions with Human Feedback

    The InstructGPT paper: its labelling instructions are in the appendix, including the helpfulness versus truthfulness and harmlessness precedence.

  3. Pustejovsky and Stubbs (2012), Natural Language Annotation for Machine Learning

    Describes annotation as a cycle of modelling, annotating, training, testing, evaluating and revising.

  4. Aroyo and Welty (2015), Truth Is a Lie: Crowd Truth and the Seven Myths of Human Annotation

    Argues that disagreement between annotators is often signal rather than error.

  5. Gebru et al., Datasheets for Datasets

    A documentation standard whose questions include how data was labelled.

  6. Universal Dependencies: annotation guidelines

    A large public guideline built from per-label definitions and examples.

  7. Google: Search Quality Rater Guidelines

    A long public rating guideline built largely around worked examples.