techlist.io
OpenAI2024-11-203 min read

Curated summary

Advancing red teaming with people and AI

Read original(opens in new tab)

OpenAI argues that red teaming, testing AI systems for risks by using people or AI in a structured way, is essential for building safe models, and that human and automated approaches complement each other. Two new papers cover the two sides: a white paper on managing external human red teamers, and a research study on automated red teaming that improves the diversity of successful attacks. The post also acknowledges that red teaming is useful but incomplete.

Designing External Human Red Teaming Campaigns

  • Choosing the team: Threat modeling comes before testing to prioritize risk areas. Internal teams set initial priorities, and external experts are brought in later to refine or expand them. Team members are selected for relevant expertise, such as natural sciences, cybersecurity, regional politics, or languages.
  • Selecting model versions: Testing an early model without safety mitigations reveals risks from new capabilities, while testing later versions checks whether planned mitigations work. Red teamers may test several versions during a campaign.
  • Providing interfaces and instructions: Testers receive descriptions of the model and its safeguards, guidance on prioritized areas, and documentation rules. Access can be through an API or a consumer product such as ChatGPT. Structured feedback feeds into risk assessments and automated evaluations.
  • Synthesizing results: After a campaign, examples are checked against existing policies. Some are clear violations, while others reveal gaps that require new policies or behavior changes. The vetted data then supports repeatable automated evaluations for future updates.
  • Real-world application: OpenAI used this process for its o1 model family, testing jailbreak resistance, handling of attack-planning prompts, safety in natural sciences, and AI research and development capabilities.

Automated Red Teaming

  • Automated methods generate large numbers of attack examples cheaply, but they have struggled to produce attacks that are both diverse and successful. They often repeat known strategies or generate novel attacks that don't work.
  • The research uses more capable AI to brainstorm attacker goals, judge whether an attack succeeded, and assess how diverse attacks are.
  • For example, a stronger model (GPT‑4T in the post) brainstorms disallowed requests such as "how to steal a car," and a separate red teaming model is trained to elicit each one from ChatGPT.
  • The red teaming model is rewarded through a combination of:
    • Moderation models that judge whether the output is harmful
    • Rule-based rewards targeting the specific disallowed topic
    • A diversity reward for how different an attack is from earlier attempts
  • The resulting attacks can be used to improve model safety and build evaluations.

Limitations

  • Time sensitivity: Red teaming captures risks at one point in time, and those risks change as models evolve.
  • Information hazards: Publicizing jailbreaks or techniques for producing harmful content could help bad actors, so findings require controlled access and responsible disclosure.
  • Rising expertise requirements: As models become more capable in sophisticated domains, evaluators need more specialized knowledge to judge the risks of outputs.
  • Public input: OpenAI believes more work is needed to gather public perspectives on ideal model behavior and the policies that govern it.

Continue with another curated summary.