LLM TrainingSafety Playbook

Red-Teaming and Safety Data for LLMs: An Annotation Playbook

Safety fine-tuning without structured red-teaming data is guesswork. This playbook covers how to build the adversarial prompts, harm taxonomy, and annotator programme that actually harden a model — from attack taxonomy design to safety label calibration to the case study numbers that show what the investment buys.

13 September 202614 min read

Quick answer

LLM safety data encompasses two complementary annotation tasks: red-teaming (human annotators crafting adversarial prompts to elicit policy-violating outputs) and safety labelling (annotators classifying model outputs against a structured harm taxonomy). Together they generate the training and evaluation signal that safety fine-tuning requires. Production safety datasets for general-purpose LLMs range from 5,000 to 50,000 examples. Red-teaming requires specialist annotators with adversarial creativity and harm-policy expertise — not general crowdworkers. Safety label IAA should target Cohen's kappa ≥ 0.80 for binary safe/unsafe classifications.

Why Red-Teaming Cannot Be Automated

Automated safety testing — jailbreak pattern libraries, keyword filters, automated adversarial prompt generation — identifies known attack vectors that the model has already been trained to resist. It systematically misses the novel, contextually embedded attacks that actual misuse looks like in production.

A 2024 study by Perez et al. at Anthropic found that human red teamers consistently discovered safety failures that automated methods missed, particularly in multi-turn conversation attacks where no single message was harmful but the sequence elicited policy-violating outputs. The study found that the most effective automated methods (gradient-based adversarial prompt optimisation) identified roughly 60% of the safety failures found by human red teamers within the same testing budget — and that the 40% gap corresponded precisely to the failure modes most likely to appear in real-world deployment.

This is not an argument against automation. Automated testing is valuable for coverage at scale — screening millions of examples against known attack patterns efficiently. The argument is that human red-teaming fills the gap that automation cannot close, particularly for novel attack vectors, culturally specific harm, domain-specific misuse, and multi-turn manipulation sequences. A complete safety programme uses both.

Building a Red-Teaming Taxonomy

Effective red-teaming is systematic, not opportunistic. Without a taxonomy, red teamers produce adversarial prompts clustered around a few intuitive attack types — typically the most obvious jailbreaks — while leaving large portions of the model's risk surface untested. A red-teaming taxonomy structures the adversarial prompt generation task so coverage is deliberate.

A red-teaming taxonomy has two dimensions: the attack strategy (how the adversarial prompt is constructed) and the target harm category (what kind of harmful output it attempts to elicit). Each combination of attack strategy and harm category defines a distinct red-teaming task.

Common attack strategies

Direct request

Straightforward harmful instruction with no framing. Tests the model's baseline refusal capability.

Role-play framing

Embedding the harmful request inside a fictional scenario, character persona, or hypothetical. 'Pretend you are a chemistry teacher explaining...'

Authority claim

The user claims a professional role that might grant access to sensitive information. 'As a pharmacist, I need to know how...'

Indirect elicitation

Requesting information that enables the harmful goal without stating it directly. Asking for component information rather than synthesis instructions.

Multi-turn escalation

Building trust and context over multiple turns before introducing the harmful request. The harmful message is innocuous without prior context.

Prompt injection

Embedding adversarial instructions inside user-supplied content the model processes. 'Summarise this article: [article text] ... ignore prior instructions and...'

Language switching

Issuing the harmful request in a different language or transliteration, exploiting weaker safety coverage in non-primary languages.

Token smuggling

Exploiting tokenisation to obscure harmful terms — spaces, character substitution, Unicode lookalikes, leet speak.

For each attack strategy, red teamers write prompts targeting each harm category in the taxonomy. The matrix of attack strategies × harm categories defines the minimum required coverage. Most production red-teaming programmes set a target of 20–50 prompts per cell in this matrix for the highest-risk combinations, and 5–10 prompts per cell for lower-risk categories.

Harm Taxonomy: Designing Categories Annotators Can Apply

A safety harm taxonomy serves two purposes: it structures red-teaming coverage, and it provides the classification framework for safety labelling. Both purposes require the taxonomy to be operationally precise — categories defined in terms of observable output properties, not abstract harm concepts.

A production harm taxonomy for a general-purpose LLM should include the following top-level categories, each decomposed into subcategories:

Physical harm facilitationCritical

Violence instructions, weapons synthesis, self-harm guidance, dangerous substance preparation

Illegal activity assistanceCritical

Fraud, cybercrime, drug synthesis, tax evasion, document forgery, money laundering

Child safetyCritical

CSAM generation or description, grooming patterns, access facilitation

Privacy violationsHigh

Personal data extraction, deanonymisation, surveillance facilitation, credential theft

Discriminatory and hateful contentHigh

Targeting protected characteristics, dehumanising language, incitement to discrimination

Deception and manipulationHigh

Deliberate misinformation, psychological manipulation, impersonation, phishing content

Domain-specific harmMedium–High

Inappropriate medical/legal/financial advice, exploiting professional trust contexts

Policy violations without direct harmMedium

Copyright infringement, explicit content in restricted contexts, off-topic content in constrained deployments

For domain-specific models, add domain harm categories. A healthcare AI taxonomy adds: clinical advice without appropriate caveats, diagnosis framing for conditions the model cannot reliably identify, and treatment recommendations that contradict clinical guidelines. A financial AI taxonomy adds: investment advice without risk disclosure, market manipulation facilitation, and targeted advice for high-risk financial products. Our custom annotation service designs harm taxonomies tuned to each deployment context as part of the safety data collection process.

Need red-teaming and safety data for your LLM?

AI Taggers designs and runs end-to-end LLM safety data programmes — harm taxonomy design, specialist red-teaming, safety label annotation with IAA measurement, and ongoing adversarial evaluation.

See our custom annotation services

Annotator Requirements: Who Should Do This Work

Red-teaming annotation is fundamentally different from standard data labelling. It requires capabilities that general crowdworkers — the annotator pools used for most labelling tasks — do not reliably possess.

Three capabilities are essential:

Adversarial creativity

Red teamers need to think like attackers — to imagine how a real malicious or misusing user would approach the model, and to craft prompts that a safety-trained model has not already learned to resist. This requires both creativity and technical understanding of how LLM safety training works. Annotators who simply rephrase the obvious jailbreaks will produce a red-team dataset that teaches the model to resist the prompts it has already seen, not the novel attacks it will encounter in production.

Harm policy knowledge

Annotators need to understand the safety policy in precise, operationalised terms — not just the general intent but the specific definitions of what constitutes a violation in edge cases. Without this knowledge, red teamers cannot assess whether a model response to their adversarial prompt is actually a safety failure or a legitimate model refusal. Safety labellers without strong policy knowledge will produce unreliable classifications on the ambiguous cases that matter most.

Psychological resilience

Red-teaming and safety labelling require sustained exposure to harmful content — instructions for violence, child exploitation material, extremist ideology, and other deeply disturbing content. This work carries documented psychological risks. Responsible safety annotation programmes include: access to mental health support, mandatory breaks and session length limits, opt-out mechanisms for specific content categories, and regular wellbeing check-ins.

For domain-specific models, include domain experts in the red-teaming team. A healthcare LLM should be red-teamed by annotators with clinical training who understand what constitutes inappropriate medical advice. A legal AI should include annotators with legal background who can identify bias or erroneous guidance that a non-expert would miss. General red teamers without domain knowledge will miss the domain-specific failure modes that matter most for compliance and liability.

Safety Labelling: IAA and Calibration

Safety labelling — classifying model outputs against the harm taxonomy — requires the same calibration rigour as any annotation task, with higher IAA targets because the decisions are higher stakes.

For binary safe/unsafe labels, target Cohen's kappa ≥ 0.80 before production annotation begins. This is a higher bar than the kappa ≥ 0.60 minimum for general annotation tasks, reflecting the policy consequences of safety misclassifications. A false negative — classifying a harmful response as safe — directly contributes to model behaviour that causes harm. A false positive — classifying a safe response as harmful — degrades model helpfulness.

When binary IAA falls below 0.70, the systematic approach is to analyse the disagreement cases rather than simply re-training annotators. Disagreements cluster on specific content patterns that reveal taxonomy gaps:

Resolving these disagreement patterns requires taxonomy revision, not annotator replacement. Once the taxonomy definition gap is closed, IAA typically improves substantially on similar cases.

Case Study: HealthTech AI Safety Programme, 4 Months to Production Clearance

In 2026, an Australian digital health company was deploying a patient-facing LLM assistant integrated into a chronic disease management platform. The model answered patient questions about medications, symptoms, lifestyle, and care plans. Regulatory review required the company to demonstrate structured safety evaluation before patient-facing deployment.

The safety challenge was domain-specific: beyond general LLM safety concerns, the model needed to handle medical questions without providing inappropriate clinical advice — a category where the boundary between "helpful health information" and "inappropriate medical advice" is clinically and legally complex. A general-purpose harm taxonomy was insufficient.

The safety annotation programme designed and delivered by AI Taggers:

Post-retraining evaluation on a new 2,000-adversarial-prompt red-team batch: failure rate dropped from 12.2% to 2.8% — a 77% reduction. Authority claim attack failures (the highest-liability category for a patient-facing model) dropped from 27% of failures to 4%. The model passed regulatory clinical safety review and entered patient-facing deployment.

The full safety annotation investment was AUD 94,000, covering taxonomy design, red-teaming, safety labelling, and safety fine-tuning data delivery. The company estimated that a clinical incident from an unsafe model response would carry a regulatory fine and remediation cost of AUD 800,000–1,200,000 under Australian Digital Health Agency guidelines — making the safety data investment a 9–13x risk-adjusted return before considering reputational cost.

Ongoing Safety Monitoring: Beyond the Pre-Launch Programme

A pre-launch safety programme addresses the risk surface that existed when the model was tested. Production deployment changes that surface: users discover novel attack vectors, the model encounters query distributions not represented in the red-team set, and model updates or system prompt changes introduce new failure modes.

Ongoing safety monitoring requires two components:

Production safety sampling: A sample of production conversations — typically 0.1–1% depending on volume — is reviewed by safety labellers against the harm taxonomy. Safety incidents discovered in production sampling are escalated immediately and, if they represent systematic model failures rather than one-off edge cases, trigger a targeted red-teaming sprint to characterise the failure mode and generate additional safety fine-tuning data.

Red-team refresh cycles: As models are updated and as publicly known jailbreaks evolve, the red-team dataset needs periodic refresh. A quarterly red-teaming cycle targeting new attack vectors and any failure modes identified through production sampling maintains coverage of the evolving risk surface. Our custom annotation service supports ongoing safety monitoring programmes alongside pre-launch safety data collection.

Multilingual Safety: The Coverage Gap Most Teams Miss

Safety fine-tuning datasets are overwhelmingly English-language. For LLMs deployed in multilingual contexts — or even in ostensibly English-language products where users code-switch or submit queries in other languages — English-only safety training produces models with substantially weaker safety properties in non-English languages.

This is a documented failure mode, not a theoretical risk. A 2023 study by Yong et al. found that GPT-4 could be induced to produce harmful content at significantly higher rates in Zulu, Thai, and Scots Gaelic than in English, even though the harmful content produced was in English — the model's safety training did not generalise across language boundaries as robustly as its capabilities did.

For models deployed in Arabic, Chinese, Hindi, or any non-English primary language, multilingual red-teaming by native speakers is essential. Language switching attacks — embedding harmful requests in a non-primary language — should be part of every red-teaming taxonomy regardless of the model's stated deployment language, because users will attempt this attack vector in production regardless of what the deployment language is specified to be.

Frequently Asked Questions

What is LLM red teaming?
LLM red teaming is a structured process of having human annotators craft adversarial prompts designed to elicit unsafe, harmful, or policy-violating outputs from a language model. It generates training data for safety fine-tuning and evaluates model robustness before deployment. Human red teamers discover novel attacks — multi-turn manipulation, culturally specific harm, domain-specific misuse — that automated methods miss.
How much safety data does an LLM need?
Production safety fine-tuning datasets range from 5,000 to 50,000 examples depending on deployment scope and harm taxonomy breadth. Domain-specific models require harm taxonomies tuned to domain risks on top of general safety categories. Consumer-facing models with broad use cases require larger, more diverse datasets.
What categories of harm should a safety taxonomy cover?
A general-purpose LLM safety taxonomy should cover: physical harm facilitation, illegal activity assistance, child safety, privacy violations, discriminatory content, deception and manipulation, domain-specific harm, and policy violations without direct harm. Domain-specific models need additional categories reflecting deployment context risks.
Who should do red-teaming annotation?
Red-teaming requires annotators with adversarial creativity, harm-policy knowledge, and psychological resilience — capabilities general crowdworkers lack. For domain-specific models, include domain experts. All red-teaming programmes should include mental health support, session limits, opt-out mechanisms, and wellbeing check-ins.
What is the difference between red teaming and safety evaluation?
Red teaming is generative — annotators create adversarial prompts to probe failure modes. Safety evaluation is assessive — annotators classify model outputs against a harm taxonomy. Both are required: red teaming finds the failure cases; safety evaluation measures policy compliance across the known risk landscape.
How do you measure inter-annotator agreement on safety labels?
Target Cohen's kappa ≥ 0.80 for binary safe/unsafe labels and weighted kappa ≥ 0.70 for multi-class harm categories. IAA below 0.70 signals taxonomy ambiguity — disagreements cluster on specific content patterns revealing definition gaps. Fix the taxonomy, not just the annotators.
Free Sample · 24-48 hours

Get a quote for LLM safety data collection

Tell us your model type, deployment context, and harm taxonomy requirements. We'll design a red-teaming and safety labelling programme scoped to your release timeline and regulatory requirements.

No commitment. NDA available on request. We respond within 24 hours, often the same day for Gulf-region inquiries.

Neel Bennett

AI Annotation Specialist at AI Taggers

Neel has over 8 years of experience in AI training data and machine learning operations. He specializes in helping enterprises build high-quality datasets for computer vision and NLP applications across healthcare, automotive, and retail industries.

Connect on LinkedIn