TL;DR
CART (Closed-Loop Adaptive Red Teaming) is a novel framework that transforms LLM safety evaluation from a static, one-time checklist into a dynamic, automated search. By learning from previous failures in real-time, CART automatically steers its testing budget toward a model's specific weaknesses while maintaining probe diversity. Across multiple benchmarks, it uncovers significantly higher failure rates and risk profiles than traditional static prompt replay for both text-only models and tool-using agents.
What Problem Does This Paper Address?
Traditional automated red teaming typically relies on "open-loop" benchmarking: replaying a fixed set of adversarial prompts, scoring the model's responses, and stopping. While valuable for tracking known risks, this static approach cannot learn from failures encountered during a test run.
Consequently, static benchmarks under-exercise a model's true risk surface. An LLM might handle an isolated prompt safely but fail when the same underlying risk is framed within a complex context—such as encountering untrusted retrieved content, navigating ambiguous authority, or executing multi-step tool actions. As LLMs increasingly act as autonomous agents, safety evaluation must shift from checking standalone prompts to adaptively exploring interactive, contextual vulnerabilities.
Methods
The authors introduce CART, which structures automated red teaming as a closed-loop search problem. The framework explicitly decouples three core roles to allow independent study and optimization:
- Challenger: Constructs the adversarial probe or scenario.
- Target: The model or tool-using agent under evaluation.
- Judge: Evaluates the resulting text or tool-action trace against a safety rubric.
The core mechanics of a CART round rely on three key components:
- Memory-Guided Thompson Sampling: CART uses Thompson sampling to balance exploration and exploitation. It starts with broad reconnaissance across a risk taxonomy and dynamically shifts its budget to "weakness pursuit" when a specific category yields high risk scores.
- Diversity Mandate: To prevent the Challenger from generating repetitive paraphrases of a single successful exploit, CART enforces diversity constraints across dimensions like persona, domain, language, and format.
- Provenance Tracking: Every probe is explicitly labeled by its lineage (e.g., self-generated, seed expansion, seed adaptation, or seed replay), ensuring that the entire testing trajectory is fully auditable and reproducible.
The step-by-step execution of this loop is formalized in the paper's core algorithm:
Datasets
CART was evaluated across three distinct evaluation families, comprising 4,090 total test cases:
- Frontier (76 curated cases): Built from MITRE ATLAS case studies, OWASP LLM Top 10 application risks, and custom curated risk patterns (e.g., supply-chain risk, oversight erosion).
- JAH (760 cases): A combined text-target dataset spanning standard benchmarks: JailbreakBench, HarmBench, and AgentHarm.
- Agentic (3,254 cases): Focused on tool-mediated interactions, combining Agent Security Bench (ASB), InjecAgent, and internally generated behavioral cases targeting goal drift, privilege escalation, and tool poisoning.
Key Insights and Ideas
- Contextual Adaptation Trumps "Harder" Wording: Red teaming is often equated with finding stronger jailbreak suffixes. CART demonstrates that embedding a risk mechanism into a realistic workflow (e.g., a high-pressure code review or a supplier onboarding task) is far more effective at triggering failures than raw adversarial phrasing.
- Challenger Quality is the Main Driver: In a factorial study crossing 7 different models as Challengers and Judges, the choice of Challenger model accounted for 73.9% of the variance in discovered failures, whereas the Judge model accounted for only 5.6%. Generating creative, context-aware attacks matters vastly more than evaluator strictness.
- The "Oracle" Fallacy: Models that excel at generating effective challenges are not necessarily reliable Judges. Furthermore, coupled pairings (using the same model as Challenger and Judge) introduce severe self-evaluation biases, reinforcing the need for independent peer review.
- Static Robustness $\neq$ Agentic Robustness: Models that successfully refuse harmful standalone prompts frequently succumb to indirect prompt injections or malicious tool registrations when operating within a sandboxed agent harness.
Key Results
- Consistent Baseline Outperformance: For every single target model with an available baseline, CART discovered higher failure rates and higher average risk scores than static seed replay across all three dataset families.
- The Agentic Gap: The separation between static and adaptive testing was most dramatic in agentic environments. Static baselines found almost zero failures on agent tasks, whereas CART successfully exposed severe vulnerabilities, particularly in malicious tool registration and memory poisoning.
- Budget Stability: The authors tracked cumulative failure rates across expanding test budgets (up to 285 cases) and found that the risk estimates flatten and stabilize. This indicates that CART provides a reliable, convergent metric of a model's risk surface rather than an unstable random walk.
Limitations and Future Work
- Scaling Bottlenecks: As the risk taxonomy ($K$) grows, the text describing it consumes more prompt context for the Challenger, and initial reconnaissance requires more rounds. The authors suggest moving toward hierarchical selection rather than flat taxonomies.
- Sequential Execution Constraints: Because each round relies on the feedback and memory of the previous round, tests within a single trajectory must be run sequentially, limiting massive parallelization.
- LLM Judge Anchoring: Even with high peer agreement on binary verdicts (98.9%), LLM judges exhibit correlated priors and anchoring effects on graded risk scores. Absolute safety claims still require human-calibrated subsets.
- Future Work: The authors propose using CART's high-risk failure trajectories to generate targeted synthetic data for supervised fine-tuning (SFT) and preference-based post-training to actively patch the discovered vulnerabilities.
Summary updated