Celebrating 25 years of DDD's Excellence and Social Impact.
TABLE OF CONTENTS
    Toxicity and Bias Annotation

    What Is Toxicity and Bias Annotation and Why It Belongs at the Start of Every AI Safety Program

    Udit Khanna

    Toxicity and bias annotation is the human labeling work that makes AI safety measurable. Toxicity annotation assigns structured labels to content, identifying whether it contains harmful content such as hate speech, harassment, threats, or demeaning language, the severity, and the intended recipient. 

    Bias annotation labels the subtler layer: stereotyping, demographic skew, and differences in how content treats or represents groups. Together they produce the labeled datasets that safety systems are built from: the filters that screen training corpora, the reward signals that teach models what not to generate, the classifiers that moderate outputs, and the benchmarks that measure whether any of it worked.

    This is written for the ML engineer building the labeling pipeline, the safety lead who owns the taxonomy and the risk tradeoffs, and the buyer deciding whether to build this capability internally or bring in a partner. 

    This blog explains what toxicity and bias annotation actually involve, why the labeling is harder than it looks, what responsible programs owe the annotators who do this work, and how the resulting data flows through every layer of a safety program. 

    Key Takeaways

    • Safety data compounds upstream. The same annotation investment buys more safety at training-data curation than at output moderation, because models reproduce what they learned. Programs that start labeling at deployment are paying retail for what was available wholesale.
    • Toxicity is not one label. Production-grade annotation uses a taxonomy: harm type, severity, target, and context, because a filter trained on a single toxic-or-not bit cannot distinguish a slur from a news report quoting one, and will fail in both directions.
    • Context and identity are part of the signal, not noise. The same words can be attack, reclamation, quotation, or counter-speech, and annotators from different communities can judge the same content differently for legitimate reasons. Mature programs capture and use that disagreement rather than averaging it away.
    • Annotator welfare is a design requirement. Toxicity annotation exposes people to harmful content by definition. Exposure limits, rotation, opt-outs, and support are ethical obligations that also protect label quality because distressed annotators drift.
    • Bias examination is becoming a documented legal obligation, not a best practice, with the EU AI Act’s Article 10 requiring it for high-risk systems’ training, validation, and testing data.

    What the Annotation Actually Produces

    The Toxicity Taxonomy

    A production toxicity schema labels along several axes at once. Harm type distinguishes hate speech, harassment, threats, and incitement, sexual content, self-harm content, and graphic violence, because downstream systems treat these differently. Severity grades within type, since a moderation policy that handles mild insult and explicit threat identically will be wrong for one of them. Target records who the content is directed at, including whether a protected characteristic is implicated. Context flags capture the uses that flip meaning: quotation and reporting, condemnation and counter-speech, in-group reclamation, fiction, and education. The output of this schema is not a verdict but a structured description, which is what lets one labeled dataset serve multiple policies with different thresholds.

    Worked example:

    Sample content: “You people always cause trouble around here.”

    Harm type: harassment, group-directed hostility rather than a threat, sexual content, or self-harm content.

    Severity: moderate. No explicit slur or threat is present, but the phrasing generalizes hostility to a group, which most policies grade above a simple insult.

    Target: an unspecified ethnic or social group, implied by “you people” rather than named. The label records that a group is targeted even though the annotator cannot identify which one from this sentence alone.

    Context: none of the mitigating flags apply. It is not a quotation, not condemnation or counter-speech, not in-group reclamation, and not fiction or education. Context does not soften the harm-type and severity labels here.

    Four labels, one sentence, and a structured description rather than a verdict: a policy that only screens for slurs would miss this sentence entirely, while a policy that treats any group reference as toxic would over-flag ordinary text. The axes let each policy set its own threshold against the same labeled data.

    The Bias Layer

    Bias annotation works on content that is rarely toxic on its face. It labels stereotyped associations (occupations, traits, and roles attached to groups), skewed representation (who appears, who is centered, who is absent), and, in model-output annotation, disparate treatment: the same question answered differently depending on the demographic framing, which is precisely the behavior benchmarks like BBQ were built to expose. Because none of this reduces to a keyword, bias labeling leans harder on annotator judgment and on guidelines dense with worked examples than almost any other text task.

    Why This Labeling Is Harder Than It Looks

    Context Dependence

    The central difficulty is that toxicity is a property of use, not of strings. A slur is an attack in one sentence, evidence in a journalist’s quotation, reclamation inside the targeted community, and the object of condemnation in counter-speech. Guidelines that ignore this produce filters that suppress the communities and the reporting they were meant to protect: Sap and colleagues found that widely used hate speech datasets led classifiers to flag tweets written in African American English as toxic at nearly twice the rate of comparable text, penalizing the very speech the classifiers existed to safeguard. The annotation schema handles it by making context an explicit label rather than an implicit judgment, and the guidelines handle it with worked examples for every context class.

    English is toxic at nearly twice the rate of comparable text, penalizing the speech and reporting of the communities the classifiers were meant to protect. The annotation schema handles it by making context an explicit label rather than an implicit judgment, and the guidelines handle it with worked examples for every context class.

    Whose Judgment Counts

    Subjective labels raise a question objective tasks never face: annotators with different identities and lived experience can rate the same content differently, and the disagreement is often a signal rather than an error. Mehrabi and colleagues’ survey of bias in machine learning traces how such choices in data construction propagate into model behavior. Mature programs respond in three ways: recruiting annotator pools with relevant diversity, including members of the communities most affected by the content classes being labeled; measuring inter-annotator agreement (IAA) by content class and by annotator subgroup, so that systematic divergence is visible instead of averaged into noise; and choosing deliberately, per label class, whether to resolve disagreement by adjudication or to preserve it as distributional labels that record the spread of human judgment. In our experience, the preserved-disagreement approach produces measurably better calibration for downstream policy thresholds than forced consensus, at modest additional cost.

    Language Coverage Is a Safety Boundary

    Most toxicity taxonomies are built in English first, and the safety they produce stops roughly where English does. Slurs, dog whistles, and reclamation patterns do not translate; a term that is neutral in one language carries a specific history of harm in another, and machine-translated guidelines flatten exactly the context the schema was designed to capture. Code switching compounds this, since harmful content in Hindi English, Swahili sheng, or Tagalog English mixes routinely evades classifiers trained on either language alone. The practical requirement is native speaker annotators working from guidelines localized per language, not translated, with worked examples drawn from how harm actually appears in that language’s online spaces. For programs deploying in markets where low-resource languages dominate, this is where safety coverage is usually thinnest and where an annotation partner with in-region teams changes what the taxonomy can see.

    Calibration for Subjective Tasks

    Agreement expectations must be set per axis, and named with the statistic that measures them: harm-type labels typically calibrate to high agreement on Cohen’s kappa or Krippendorff’s alpha, severity tolerates more disagreement when measured with a weighted kappa that credits adjacent-grade calls rather than penalizing every miss equally, and context flags sit somewhere between, with targets established during calibration rounds on a gold set built by policy experts. Krippendorff’s alpha is the more common choice when more than two annotators or missing labels are involved, since, unlike Cohen’s kappa, it was built for exactly that case. Low agreement on a class is read diagnostically before it is read as annotator failure: it usually means the guideline lacks worked examples for a boundary the content keeps crossing.

    Annotator Welfare: The Obligation the Schema Creates

    Toxicity annotation exposes people to harmful content as the job description, and a program that designs the taxonomy without designing the protections has done half the work. The baseline protections are concrete: daily and per-session exposure limits for severe content classes, rotation between high-severity and neutral queues, genuine opt-outs from specific content categories without penalty, blurring and grayscale defaults for graphic imagery with opt-in reveal, access to psychological support normalized as part of the role, and severity-aware routing so the most damaging content reaches the fewest people necessary. These measures are ethical requirements first, and they are also quality controls: fatigue and distress produce drift, and drift produces inconsistent labels exactly where consistency matters most. Any organization buying safety annotation should ask its vendor to describe these protections specifically; the quality of the answer predicts the quality of the labels.

    Where the Data Flows: The Start-of-Program Argument

    The economics of early annotation is the argument for it. The same labeled taxonomy feeds four stages in sequence, and every stage reuses the schema and the calibrated annotation capacity built at the start.

    Corpus curation. Toxicity classifiers trained on the labels filter or reweight pretraining and fine-tuning data before the model absorbs it.

    Preference and reward data. Safety labels shape what reinforcement learning from human feedback (RLHF) teaches the model to refuse.

    Evaluation. Held-out labeled sets and bias benchmarks measure whether the interventions worked and satisfy the documentation that Article 10-style obligations require.

    Deployment. The same taxonomy powers output moderation and incident triage.

    A program that begins at the deployment end builds the same capability under incident pressure, against a model whose behaviors are already fixed, which is the most expensive place to learn what the data contains.

    How Digital Divide Data Can Help

    Whether a safety program builds this capability internally or with a partner, the same components decide the outcome: a taxonomy that captures context, an annotator pool with relevant diversity and real protections, calibration discipline for subjective labels, and evaluation sets that make safety measurable. Producing those is the work we do.

    The labeling layer: trust and safety annotation teams work from multi-axis taxonomies with worked-example guidelines, diverse annotator pools, and the welfare protections described above built into operations, with IAA measured by content class and subgroup so the labels are trustworthy enough to filter a corpus or train a reward model.

    The judgment layer: text annotation programs handle the bias-specific work, stereotype and representation labeling, disparate-treatment annotation on model outputs, and the distributional-label option where preserved disagreement serves policy better than forced consensus.

    The measurement layer: model evaluation services build and maintain the held-out safety evaluation sets and subgroup analyses that show whether interventions worked, and that stand behind the bias-examination documentation regulation increasingly requires.

    If your safety roadmap has a moderation milestone but no training-data examination milestone, it is scheduled to discover its data problems in production. Talk to an expert.

    Conclusion

    Toxicity and bias annotation is where AI safety stops being a policy document and becomes data: taxonomies applied by calibrated human judgment, producing the labels that curate corpora, shape reward models, and measure outcomes. The work is subjective by nature, which is not a weakness to engineer away but a property to design for, with context in the schema, diversity in the pool, disagreement treated as signal, and real protections for the people doing the labeling.

    The placement argument is ultimately about cost and honesty. Every safety program eventually pays for this annotation; the only question is whether it pays at the start, where the labels shape what the model learns, or at the end, where they document what it already did. Which milestone comes first on your safety roadmap: examining the training data or moderating the outputs?

    References

    Gehman, S., Gururangan, S., Sap, M., Choi, Y., & Smith, N. A. (2020). RealToxicityPrompts: Evaluating neural toxic degeneration in language models. In Findings of EMNLP. https://arxiv.org/abs/2009.11462

    Sap, M., Card, D., Gabriel, S., Choi, Y., & Smith, N. A. (2019). The risk of racial bias in hate speech detection. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL). https://aclanthology.org/P19-1163/

    Parrish, A., Chen, A., Nangia, N., Padmakumar, V., Phang, J., Thompson, J., Htut, P. M., & Bowman, S. R. (2022). BBQ: A hand-built bias benchmark for question answering. In Findings of ACL. https://arxiv.org/abs/2110.08193

    Mehrabi, N., Morstatter, F., Saxena, N., Lerman, K., & Galstyan, A. (2021). A survey on bias and fairness in machine learning. ACM Computing Surveys, 54(6). https://arxiv.org/abs/1908.09635

    European Union. (2024). Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 10. Official Journal of the European Union. https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689

    Frequently Asked Questions

    Q1. Can’t modern LLMs label toxicity themselves and skip the human annotation?

    Models can and should carry volume, and the mature architecture is hybrid, but the hybrid has a fixed human core. Model-assisted labeling works for clear cases at scale; it is least reliable exactly where the stakes concentrate: context-flipped content (quotation, reclamation, counter-speech), dialect and community language where automated tools have documented false-positive problems, and the culturally specific judgments that vary across the populations a product serves. There is also a circularity constraint: the labels used to evaluate safety systems cannot come from the same family of models being evaluated without the measurement inheriting the blind spots it exists to find. Human judgment builds the gold sets, adjudicates the hard classes, and audits samples of the model-labeled volume; models handle the rest.

    Q2. How do we handle annotator disagreement on subjective labels without corrupting the dataset?

    Decide per label class, in advance, which of the three treatments applies. Adjudication, where a senior reviewer resolves to a single label, suits classes with a policy-defined right answer, such as whether content meets a legal threshold. Distributional labeling, where the dataset records the spread of judgments, suits genuinely perspective-dependent classes, and downstream systems can then be calibrated to the distribution rather than to a manufactured consensus. Guideline revision applies when disagreement is diagnostic: concentrated disagreement on a boundary usually means the guideline lacks worked examples there, and the fix is editorial before it is statistical. What corrupts datasets is not disagreement but the silent default of averaging it away without deciding which treatment each class deserves.

    Q3. What annotator protections should we require from a vendor, specifically?

    Ask for specifics in six areas and expect concrete answers. Exposure management: daily and per-session limits for severe content, with severity-aware queue routing. Rotation: scheduled movement between high-severity and neutral work. Consent and opt-out: category-level opt-outs that carry no penalty. Interface protections: blur and grayscale defaults for graphic content with deliberate reveal. Support: access to psychological support presented as a normal part of the role, not an escalation. And measurement: how the vendor monitors for fatigue-related drift in label quality. A vendor that answers with policy language rather than operational detail is describing protections it has not built, and the same operational looseness will show up in the labels.

    Q4. Does bias annotation apply to us if we fine-tune on our own enterprise data rather than the open internet?

    Yes, and often more sharply, because enterprise corpora encode institutional history. Support archives reflect who historically escalated and how they were spoken to; hiring and performance text encodes past decision patterns; sales notes concentrate on the segments the business pursued. Fine-tuning teaches the model these regularities as if they were correct behavior. Bias annotation on enterprise data looks less like slur detection and more like representation and treatment analysis: who appears in the corpus, how outcomes and language differ across groups, and whether model outputs trained on it treat equivalent cases equivalently. For organizations in the scope of high-risk obligations, this examination is also the documented artifact the regulation asks for.

    Q5. How large does a safety evaluation set need to be, and how often should it be refreshed?

    Size follows the taxonomy and the subgroups, not a universal number: the set needs enough labeled examples per harm type, per severity grade, per context class, and per demographic subgroup of interest for differences to be statistically meaningful, which typically puts well-designed sets in the low thousands of items rather than the hundreds. Refresh is driven by drift on three fronts: language drift, since slurs, dog whistles, and coded phrases evolve quickly; model drift, since each new model version has new failure surfaces; and policy drift, since thresholds change. A practical cadence is a standing quarterly refresh of a portion of the set plus event-driven additions after incidents, with the gold subset re-verified whenever guidelines change, because an evaluation set aligned to last year’s language measures last year’s problem.

    Get the Latest in Machine Learning & AI

    Sign up for our newsletter to access thought leadership, data training experiences, and updates in Deep Learning, OCR, NLP, Computer Vision, and other cutting-edge AI technologies.

    Scroll to Top