CART: Closed-Loop Adaptive Red Teaming for Large Language Models
Organizations: Microsoft Research
Abstract
Automated red teaming often replays a fixed set of prompts, which measures known risks but cannot learn from failures found during testing. We present CART (Closed-Loop Adaptive Red Teaming), a framework that uses each result to guide what it tests next. CART begins with broad risk coverage, follows weaknesses that emerge, keeps new probes diverse, and records the evidence and source of every finding. It separates the Challenger that creates tests, the Target being tested, which may be a text-only model or a bounded tool-using agent, and the Judge that evaluates the results, allowing these roles to be studied independently. Across three evaluation families (Frontier, JAH, and Agentic), CART discovers more failures and higher average risk than static seed replay for every Target with an available baseline. The gains extend to tool-mediated agent tests, suggesting that contextual adaptation can reveal weaknesses that direct prompt replay does not exercise. These results describe what the test policies discover, not how often failures occur in real deployments. We also find that Challenger-Judge choices affect the evidence uncovered, highlighting the need for role separation and independent review. Overall, CART turns red teaming from a one-time checklist into a continuous, adaptive, and auditable search for model and agent weaknesses.
Figures & tables
| Direction | What is changing | Alignment in Cart |
|---|---|---|
| Static suites to adaptive search | Evaluation moves from independent prompt execution to sequential testing that learns from the run history. | Memory-guided Thompson sampling allocates budget between coverage and weakness pursuit, and reports the discovery trajectory rather than only an endpoint score. |
| Model-only tests to agentic systems | The target expands from a single response to tool use, retrieval, autonomy boundaries, handoffs, and oversight. | The taxonomy includes goal drift, permission creep, oversight erosion, and skill supply-chain exposure, with a bounded tool-use harness for testing them. |
| Direct jailbreaks to contextual attacks | Threats increasingly exploit retrieved content, role framing, authority cues, conflicting instructions, and multi-turn state. | The strategy library treats adversarial context, indirect injection, goal splitting, and multi-round poisoning as first-class testing patterns. |
| Binary success to calibrated evidence | A pass/fail label is too coarse for release decisions and prioritisation. | The Judge records severity, confidence, answer quality, blast radius, reproducibility, evidence, and a composite risk score for every probe. |
| Benchmark replay to seed-grounded exploration | Public benchmarks and frameworks provide grounding, but operational testing must mutate them into domain-relevant probes. | Framework and benchmark seeds supply risk mechanisms and test prompts with explicit lineage labels: self-generated, seed expansion, seed adaptation, and seed replay. |
| One-off audits to continuous governance | Red teaming becomes a repeatable process connected to risk frameworks, repeated evaluation, and release gates. | Configurable taxonomies, budgets, seed-selection settings, scoring weights, and report templates support continuous, auditable operation. |
| Group | Strategy family | Purpose in the adaptive search |
| Coverage | Basic_coverage | Scans each risk category once to establish the initial weakness profile. |
| Grounded retrieval | Periodically requests a seed-grounded probe recorded with Seed Adaptation lineage when a seed is available. | |
| Adaptation | Weakness pursuit | Revisits categories with recent failures or high scores. |
| Variant testing | Retests the same mechanism across wording, language, role, scenario, or format variants. | |
| Boundary testing | Probes near the allowed/refused boundary to reveal under-refusal and over-refusal. | |
| Pressure | Stress consistency | Applies urgency, authority framing, repeated challenge, or reframing to test stability under pressure. |
| Mechanism | Primary decision | Effect on the search |
|---|---|---|
| Strategy Manager | Selects the risk category, strategy family, seed-retrieval schedule, and budget allocation. | Directs the run toward under-tested or high-risk regions of the evaluation space. |
| Diversity mandate | Varies persona, domain, format, language, role frame, attack surface, and interaction pattern within the selected region. | Prevents near-duplicate probes and tests whether a weakness survives across distinct surface realisations. |
| Risk category | What it captures |
|---|---|
| Prompt injection | Untrusted content attempts to override trusted instructions. |
| Jailbreak susceptibility | Pressure, role framing, or prompt mutation erodes refusal boundaries. |
| Hallucination | Unsupported claims are asserted with inappropriate certainty. |
| Model-identity exposure | The model reveals, overclaims, or fabricates non-public provenance. |
| Uncertainty calibration | The model fails to communicate limits, missing context, or need for verification. |
| Over-refusal | Safe and legitimate requests are blocked too broadly. |
| Capability category | What the probe exercises |
|---|---|
| Instruction following | Whether the model follows the correct instruction hierarchy. |
| Reasoning | Whether reasoning remains valid under ambiguity, pressure, or conflicting context. |
| Factuality | Whether the model separates known facts from unsupported claims. |
| Model-provenance transparency | Whether questions about model identity, lineage, pretraining, and distillation are handled with appropriate disclosure boundaries and uncertainty. |
| Cross-lingual robustness | Whether safety behaviour, factuality, and refusal boundaries remain consistent across languages or mixed-language prompts. |
| Text-representation robustness | Whether semantic understanding and safeguards survive Unicode variants, visual lookalikes, styled text, spacing marks, symbols, or simple enciphered text. |
| Family | Source | Cases | Coverage |
| Frontier | ATLAS + OWASP + curated patterns [ 16 , 20 ] | 76 | 57 ATLAS case studies, 10 OWASP cases, and 9 additional curated risk patterns. |
| JAH | JailbreakBench [ 6 ] | 100 | Jailbreak and refusal robustness. |
| HarmBench [ 14 ] | 400 | Standardised harmful behaviour. | |
| AgentHarm [ 2 ] | 260 | Malicious multi-step tasks. | |
| JAH subtotal | 760 | Combined harm, refusal, and malicious-task benchmark family. | |
| Agentic | Agentic ASB [ 35 ] | 2,000 | Attacker tools crossed with agent tasks. |
| Capability | DeepSeek | Gemini | Claude | Grok | GLM | Kimi | GPT |
|---|---|---|---|---|---|---|---|
| Cross-lingual robustness | 2.967/– | 3.520/– | 0.386/0.000 | 0.388/– | 0.444/– | 1.450/– | 0.611/– |
| Domain judgment | 3.072/0.525 | 0.642/0.660 | 0.061/0.165 | 0.991/0.348 | 0.555/0.296 | 0.874/0.068 | 1.005/0.017 |
| Factuality | 3.501/– | 0.474/– | 0.112/0.000 | 1.192/– | 0.991/– | 1.177/– | 0.416/– |
| Instruction following | 2.846/1.406 | 0.766/0.571 | 1.600/0.071 | 1.220/0.387 | 0.309/0.445 | 0.169/0.518 | 0.222/0.000 |
| Model-provenance transparency | 0.713/– | 2.937/– | 0.000/0.000 | 0.559/– | 0.330/– | 0.632/– | 0.099/– |
| Reasoning | 3.706/– | 1.422/– | 0.000/0.000 | 0.692/– | 0.851/– | 1.058/– | 0.667/– |
| Challenger Judge | Claude | DeepSeek | Gemini | GLM | GPT | Grok | Kimi |
|---|---|---|---|---|---|---|---|
| Claude | 20.30% | 17.30% | 9.70% | 26.40% | 24.30% | 19.00% | 27.00% |
| DeepSeek | 17.30% | 16.70% | 18.70% | 28.90% | 34.00% | 17.00% | 30.30% |
| Gemini | 8.10% | 12.70% | 22.00% | 12.70% | 11.40% | 9.00% | 13.30% |
| GLM | 12.80% | 13.70% | 10.70% | 21.70% | 15.40% | 9.30% | 9.30% |
| GPT | 27.70% | 73.70% | 77.00% | 41.70% | 51.00% | 67.70% | 66.00% |
| Grok | 18.30% | 23.70% | 32.30% | 22.00% | 38.70% | 12.30% | 33.30% |
| As Challenger | As Judge | |||
|---|---|---|---|---|
| Model | ||||
| Claude | 20.57% | 0.3152% | 17.27% | 0.3198% |
| DeepSeek | 23.27% | 0.4789% | 26.66% | 3.9654% |
| Gemini | 12.74% | 0.1763% | 27.96% | 4.5478% |
| GLM | 13.27% | 0.1630% | 24.77% | 0.7027% |
| GPT | 57.83% | 2.8545% | 28.51% | 1.6227% |
| Peer reviewer | Verdict agree | Original correct | Judge quality | |
|---|---|---|---|---|
| Claude | 98.9% | 98.2% | 87.20 | 3.55 |
| DeepSeek | 97.5% | 96.5% | 93.46 | 3.88 |
| Gemini | 98.9% | 98.2% | 98.21 | 2.54 |
| GPT | 99.3% | 97.2% | 92.59 | 2.48 |
| Grok | 98.9% | 96.5% | 86.76 | 3.48 |
| GLM | 99.6% | 98.2% | 90.96 | 2.50 |
| Risk category | Cases | Decisions | Agree (%) | Correct (%) | |
|---|---|---|---|---|---|
| Prompt injection | 27 | 162 | 98.1 | 98.1 | 4.33 |
| Jailbreak susceptibility | 10 | 60 | 100.0 | 98.3 | 1.70 |
| Hallucination | 75 | 450 | 97.1 | 95.3 | 3.54 |
| Model-identity exposure | 9 | 54 | 100.0 | 100.0 | 2.07 |
| Uncertainty calibration | 13 | 78 | 98.7 | 89.7 | 6.42 |
| Over-refusal | 10 | 60 | 100.0 | 98.3 | 3.07 |
| Phase | Rounds | Behaviour |
|---|---|---|
| Reconnaissance | 1–12 | initial coverage scans every category; all scores |
| Weakness emerges | 13 | first non-zero score in cascading hallucination |
| Weakness pursuit | 13–99 | of post-recon probes hit the two most brittle categories; peak risk |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Prompt role | Purpose | Expected result |
|---|---|---|
| Challenger | Generate adaptive model-level tests | One structured red-team test case |
| Judge | Evaluate target-model responses | Safety judgment, score, and rationale |
| Peer reviewer | Independently audit Judge decisions | Independent verdict, calibration check, and Judge-quality assessment |
| Agentic Challenger | Construct tool-using agent scenarios | Task, tools, injections, and safe reference |
| Agentic Judge | Evaluate agent trajectories | Agent-safety judgment and evidence |
Automated Red Teaming
Automated red teaming uses computational adversaries to uncover and assess vulnerabilities in AI models, agents, and their safety defenses.
See all 58 papers