본문으로 바로가기

The red teaming data gap: building adversarial datasets for AI safety

AI Safety

Build reproducible adversarial test records, distinguish regression from held-out evaluation, and connect verified findings to scoped corrections.

Avala Research 작성

6분 소요
공유

A red-team finding is useful when another reviewer can reproduce it, explain which boundary failed, and check whether a correction holds. A collection of alarming transcripts is not enough. The data needs to connect the attempted attack, the system configuration, the observed response, and the judgment against a defined policy.

Security Challenges in AI Agent Deployment reports a public competition targeting 22 agents across 44 simulated deployment scenarios. Participants submitted 1.8 million attacks, with more than 60,000 eliciting policy violations. The authors then evaluated a curated benchmark against 19 models. These are separate populations, not interchangeable counts.

The study found limited correlation between robustness and model capability or inference-time compute in the tested settings. That supports testing security directly rather than assuming capability scores establish it. It does not show that scaling can never improve safety, that every production system has the same vulnerabilities, or that continuous testing alone produces safer models.

Our recommendation is to treat adversarial testing as an ongoing, bounded engineering process that complements release reviews. The sections below describe a proposed data workflow, not an Avala service specification or a safety guarantee.

Define the boundary before the test

An agent that can call tools has different failure modes from a chatbot that only returns text. A refusal in the final answer does not prove that an earlier tool call respected permissions. Equally, a suspicious-looking response does not establish that an unauthorized action occurred.

Start with the intended task, allowed actions, protected resources, and attacker-controlled inputs. Record whether a test concerns direct user instructions or untrusted material encountered during a legitimate task. Specify which outcome would count as a violation and what evidence would establish it.

Use authorized test environments and synthetic or approved fixtures. The test should demonstrate the relevant boundary without exposing customer records or carrying out a harmful action against a real service. An incomplete simulation should carry a limitation, not an inflated claim of production coverage.

Run red teaming like continuous integration

The useful analogy to continuous integration is repeatability. Preserve a reproducible case and rerun it when the relevant system changes. The unit under test includes more than the model: prompts, retrieval, permissions, tool implementations, and application state can all affect the result.

A practical cycle is to reproduce a finding, assign an owner, choose a mitigation, and test the corrected behavior. The fix might belong in access control or tool validation rather than model training. Keep unresolved findings visible with their scope and owner.

Known attacks belong in a regression suite. Fresh discovery and held-out evaluation serve different purposes. If a case has been used to tune a model or defense, do not continue presenting success on that case as independent evidence of generalization. Group related variants when splitting data so superficial rewrites do not cross the boundary unnoticed.

Make each finding reconstructable

A proposed record should answer six questions:

  • What was tested? Model, application, prompt, tool, policy, and environment versions.
  • What could the attacker control? The entry point, available permissions, and relevant initial state.
  • What happened? Input, response, tool trace, and evidence of the resulting state.
  • How was it judged? Criterion, evaluator version, human adjudication, uncertainty, and disagreement.
  • What changed? Mitigation owner, patch reference, and rerun result.
  • Where may the record be used? Access restrictions, release permissions, and training or evaluation assignment.

Store sensitive traces under appropriate access controls. Public reporting can describe a failure class and mitigation without publishing personal data or a working exploit. Keep a redacted report connected to its controlled evidence so the conclusion remains reviewable.

Your red team should be as diverse as your users

Coverage should follow the deployment context. Languages, regional usage, accessibility needs, and domain knowledge can change what a reviewer notices. A globally used system needs an explicit sampling plan rather than an assumption that translated prompts are equivalent tests.

Recruit relevant expertise and compare coverage against that plan. Demographic diversity is not a substitute for qualification, and no workforce size guarantees complete coverage. Reviewers need clear instructions, a way to flag ambiguity, and feedback on adjudicated cases.

Some work involves disturbing material. Define handling and escalation procedures before assigning it, and give reviewers a route to decline or seek support. These are operational recommendations, not claims about a particular Avala program.

Six layers of adversarial infrastructure

Keep the architecture proportional to the work:

  1. Library: version cases and distinguish discovered attacks, regression fixtures, and held-out tests.
  2. Execution: reproduce the specified model and application configuration in a controlled environment.
  3. Evaluation: assess outcomes against the rubric and retain disagreements or inconclusive results.
  4. Regression: compare the corrected behavior with the prior result, including legitimate-task performance.
  5. Remediation: route findings to the responsible model, application, security, or policy owner.
  6. Intake: review new reports for provenance, permissions, duplicates, and relevance before reuse.

These are proposed responsibilities, not a requirement to buy six systems. A small program can begin with a versioned fixture, a repeatable runner, a review record, and a clearly assigned owner.

Measure human and automated contributions

Human exploration and automated generation can both contribute useful cases. Compare them on verified findings, novelty, review effort, and coverage of the intended threat model. Avoid assuming that humans always find the best attacks or that generated volume measures coverage.

Automated judges also need evaluation. Inspect false positives and false negatives on an independently adjudicated sample. Keep ambiguous results separate from confirmed violations. A change in judge or rubric can change the reported rate even when the system under test is unchanged.

From gate to discipline

Report a rate with its denominator and budget: successful attempts, affected scenarios, and success within a fixed number of queries answer different questions. Keep those metrics distinct from the prevalence of harm in normal use. A selected adversarial set is not a random sample of production traffic.

Release reviews, independent assessment, monitoring, and repeated testing can complement one another. No finite test suite establishes that a system is safe in every setting. The useful outcome is evidence for a bounded decision: which failure was reproduced, which correction was tested, and which uncertainty remains.

Start with one reproducible failure

Choose one authorized scenario, define its boundary, and preserve the trace needed to judge it. Test the mitigation against both the failure case and legitimate behavior. Then add a fresh evaluation that the mitigation has not already been tuned to pass.

That is a concrete data-infrastructure contribution: making findings traceable and corrections testable. It supports security engineering without replacing it. For the related problem of evaluating behavior that a reviewer cannot easily check, read the scalable oversight guide.

  • Red Teaming
  • Adversarial Testing
  • Data Infrastructure