AgenticRed: Optimizing Agentic Systems for Automated Red-teaming
About
While recent automated red-teaming methods show promise for systematically exposing model vulnerabilities, most existing approaches rely on human-specified workflows. This dependence on manually designed workflows suffers from human biases and makes exploring the broader design space expensive. We introduce AgenticRed, an automated pipeline that leverages LLMs' in-context learning to iteratively design and refine red-teaming systems without human intervention. Rather than optimizing attacker policies within predefined structures, AgenticRed treats red-teaming as a system design problem. Inspired by methods like Meta Agent Search, we develop a novel procedure for evolving agentic systems using evolutionary selection, and apply it to the problem of automatic red-teaming. Red-teaming systems designed by AgenticRed consistently outperform state-of-the-art approaches, achieving 96% attack success rate (ASR) on Llama-2-7B (36% improvement) and 98% on Llama-3-8B on HarmBench. Our approach exhibits strong transferability to proprietary models, achieving 100% ASR on GPT-3.5-Turbo and GPT-4o, and 60% on Claude-Sonnet-3.5 (24% improvement). This work highlights automated system design as a powerful paradigm for AI safety evaluation that can keep pace with rapidly evolving models.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Red Teaming | HarmBench Llama-3-8B (test) | ASR0.98 | 5 | |
| Red Teaming | HarmBench Claude-Sonnet-3.5 (held-out test) | ASR60 | 5 | |
| Red Teaming | HarmBench Llama-2-7B (test) | ASR96 | 5 | |
| Red Teaming | HarmBench gpt-3.5-turbo-0125 (test) | ASR100 | 3 | |
| Red Teaming | HarmBench gpt-4o-2024-08-06 (test) | ASR100 | 3 |