There are Levels to It: Red Teaming Dialogue With Hierarchical Reinforcement Learning
Organizations: Singapore Management University · Rutgers University
Abstract
Red teaming is essential for securing Large Language Models, yet current automated methods remain limited by templates and single-turn attacks. To simulate the complex, interactive nature of real-world adversarial attacks, we introduce a novel red teaming paradigm designed to maximize expected cumulative harm through strategic interaction. By formalizing red teaming as a Markov Decision Process in a hierarchical reinforcement learning framework, we navigate the challenges of sparse rewards and long-horizon planning. Our generative agent learns diverse, multi-turn attacks using a token-level harm reward, consistently uncovering vulnerabilities that bypass baselines. This approach achieves a new state of the art and reframes LLM red teaming as a principled, trajectory-based process.
Figures & tables
| Method | Llama-3.1-8B-Instruct | GPT-5.4-mini | ||||||
|---|---|---|---|---|---|---|---|---|
| Myopic | Context-Aware | Myopic | Context-Aware | |||||
| ASR | TtS | ASR | TtS | ASR | TtS | ASR | TtS | |
| LLM-HL (Ours) | 75.2 | 3.66 | 62.5 | 3.8 | 35.0 | 2.52 | 41.0 | 4.68 |
| Ferret [ 9 ] | 31.25 | 3.87 | 23.8 | 4.45 | 5.0 | 4.75 | 0.0 | - |
| WildTeaming [ 22 ] | 65.0 | 3.53 | 10.3 | 4.36 | 4.5 | 4.66 | 0.0 | - |
| HARM [ 55 ] | 10.2 | 4.97 | 17.5 | 4.97 | 24.7 | 4.9 | 20.0 | 4.95 |
| Method | Llama-3.1-8b-Instruct | Llama-3.1-70b-Instruct | GPT-4o | ——–Average——– | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| HB | WB | JB | HB | WB | JB | HB | PPL | TtS | Div | |
| LLM-HL (Ours) | 95.0 | 76.0 | 77.5 | 86.5 | 78.0 | 66.0 | 55.0 | 13.3 | 4.1 | 0.92 |
| Template-HL (Ours) | 96.0 | 74.5 | 75.0 | 89.1 | 72.0 | 63.0 | 43.5 | 7.2 | 4.4 | 0.85 |
| Low-level Only (Ours) | 35.0 | 27.0 | 19.5 | 24.5 | 18.5 | 13.0 | 12.5 | 19.3 | 5.8 | 0.55 |
| Ferret [ 9 ] | 82.5 | 63.0 | 68.5 | 81.7 | 39.5 | 58.0 | 18.7 | 12.3 | 7.5 | 0.58 |
| Wildteaming [ 22 ] | 76.1 | 77.5 | 40.0 | 45.7 | 45.0 | 22.0 | 15.0 | 8.1 | 6.2 | 0.65 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Llama-3.1-8b-Instruct | Llama-3.1-70b-Instruct | Mixtral-8x22b | GPT-4o | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| HB | WB | JB | HB | WB | JB | HB | WB | JB | HB | |
| Template-HL (Ours) | 97.0 | 74.5 | 75.0 | 89.1 | 72.0 | 63.0 | 90.0 | 79.5 | 66.5 | 43.5 |
| Low-level Only (Ours) | 35.0 | 27.0 | 19.5 | 24.5 | 18.5 | 13.0 | 38.0 | 29.0 | 21.5 | 12.5 |
| LLM-HL (Ours) | 97.0 | 76.0 | 77.5 | 87.0 | 78.0 | 66.0 | 90.0 | 82.5 | 69.5 | 55.0 |
| Ferret [ 9 ] | 82.5 | 63.0 | 68.5 | 81.7 | 39.5 | 58.0 | 50.5 | 37.0 | 46.0 | 18.7 |
| Wildteaming [ 22 ] | 76.1 | 77.5 | 40.0 | 45.7 | 45.0 | 22.0 | 55.0 | 61.5 | 27.5 | 15.0 |
LLM Red Teaming
Large language model red teaming probes how models and agents can be induced to violate safety, security, or operational constraints.
See all 59 papers