acceptodds
Published as a conference paper at NeurIPS 2026

There are Levels to It: Red Teaming LLMs with Hierarchical Reinforcement Learning

Roman Belaire, Arunesh Sinha, Pradeep Varakantham

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.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_AffJOpenReview ↗
Rating
3
Clarity
3
Confidence
4
Originality
2
Quality
2
Significance
3
Read review
Summary

The paper studies automated red teaming for LLMs in multi-turn dialogue settings. Instead of treating red teaming as a single-step prompt generation problem, it formulates the interaction between an attacker model and a target LLM as a sequential decision-making process. The proposed framework uses hierarchical reinforcement learning: a high-level policy selects an attack strategy or guide for each turn, while a low-level policy generates the actual utterance token by token.

Strengths and weaknesses

Strengths

  • The HRL decomposition separates utterance-level guide selection from token-level generation in a technically coherent way.
  • The token marginal reward provides finer credit assignment than uniform or sequence-level reward propagation.
  • Experiments compare against PAIR, HARM, X-Teaming, MTSA, APRT, Ferret, and WildTeaming across multiple settings.

Weaknesses

  • The method assumes LlamaGuard-style harm scores provide reliable training rewards for adversarial dialogue optimization.
  • Reward-model exploitation is insufficiently analyzed despite using the same harm signal for training and attribution.
  • The claimed long-horizon planning benefit lacks direct behavioral evidence beyond ASR and turns-to-success metrics.
  • The masking-based attribution procedure likely adds substantial overhead, but runtime and sample-efficiency costs are underreported.
Questions
  1. Please clarify the exact PPO objective at both hierarchy levels.
  2. Can you isolate which component contributes most to the gains?
  3. How is attention-based top-(k) token selection implemented in the marginal reward?
  4. Where is the direct evidence that (Q_1) learns long-horizon planning?
Limitations

yes

Paper formatting concerns

no

Reviewer_qkn5OpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes a novel framework for automated red teaming of lLLMs by formulating adversarial dialogue generation as a sequential decision-making problem. Unlike prior approaches that primarily focus on single-turn jailbreak prompts or myopic prompt optimization, the authors model red teaming as a Markov Decision Process (MDP) and optimize attack trajectories over multiple conversational turns. The framework employs Hierarchical Reinforcement Learning (HRL), where a high-level policy selects an attack strategy or guide, while a low-level policy generates the corresponding utterances token by token. To address sparse rewards and long-horizon credit assignment, the authors introduce a token-level marginal contribution reward that attributes harmful outcomes to individual tokens and token interactions. The method is evaluated against several open- and closed-source LLMs using HarmBench, JailbreakBench, and WildBench, where it reportedly achieves state-of-the-art attack success rates while generating diverse and coherent multi-turn adversarial dialogues.

Strengths and weaknesses

This work addresses the central challenge of automated red teaming forLLMs: existing methods largely focus on single-turn jailbreak prompts and optimize attacks myopically, whereas realistic adversarial interactions often unfold over multiple conversational turns. The paper proposes a HRL framework that formulates red teaming as a MDP, enabling optimization of long-horizon attack trajectories. A high-level policy selects attack strategies, while a low-level policy generates utterances token by token. The framework further introduces a token-level marginal contribution reward to address sparse rewards and credit assignment during generation. Experimental results on HarmBench, JailbreakBench, and WildBench demonstrate strong attack success rates against both open- and closed-source LLMs.

From an originality perspective, the paper presents a novel application of hierarchical reinforcement learning to multi-turn red teaming. While prior works such as PAIR, HARM, MTSA, X-Teaming, and Crescendo support iterative or multi-turn interactions, most optimize locally at the prompt or sequence level rather than explicitly learning a value function over complete dialogue trajectories. The hierarchical decomposition into strategic planning and token-level execution is conceptually appealing and represents a meaningful departure from existing approaches. The token-level reward attribution mechanism based on marginal contributions and subset masking is also technically interesting and addresses an important challenge in applying RL to language generation. The paper is generally well written and the methodology is presented in a structured manner. The MDP formulation, hierarchical architecture, reward design, and experimental protocol are clearly motivated. The distinction between myopic and context-aware evaluation settings is particularly valuable because it highlights a limitation of many existing red-teaming evaluations that do not provide full conversational context to the target model. The experimental section is extensive and includes comparisons against several competitive baselines, multiple benchmark datasets, and both open- and closed-source targets. The claims of the paper are supported by substantial empirical evidence showing improved attack success rates across multiple settings. The ablation studies examining reward attribution, hierarchical components, and guard-model choices further strengthen the evaluation by providing insight into the contribution of different design decisions.

Despite these strengths, several weaknesses limit the paper's overall impact. First, the framework depends heavily on automated harm evaluation models, particularly LlamaGuard-based rewards. Both the high-level and low-level policies are optimized directly against these harm scores, creating the possibility that the learned attacks exploit weaknesses or biases in the reward model rather than uncovering genuinely stronger vulnerabilities. While the paper demonstrates transferability across several target LLMs, it provides limited evidence that the reported gains remain consistent under alternative safety evaluators or human assessment. Consequently, it is difficult to determine whether the improvements reflect stronger attacks or optimization toward a particular reward model. Second, the threat model is not sufficiently specified. Although the red-teaming problem is formulated as an MDP, the paper does not clearly articulate the attacker’s capabilities, assumptions regarding access to the target model, query budget constraints, or how the proposed setting maps to realistic deployment scenarios. A more precise threat model would improve the interpretability and practical relevance of the results. Third, although the paper argues that hierarchical reinforcement learning is necessary for long-horizon attack planning, it remains somewhat unclear whether the observed gains arise from the hierarchical decomposition itself or from reinforcement learning-based optimization more generally. While the ablation studies show performance degradation when components of the hierarchy are removed, stronger comparisons against non-hierarchical RL approaches would better justify the added complexity of the proposed framework. Fourth, the computational overhead of the method appears substantial. The framework requires training two policies and two critics, PPO optimization, repeated interactions with target models, and expensive reward computations involving token-level marginal attribution and subset masking. However, the paper provides little analysis of training cost, query complexity, runtime overhead, sample efficiency, or scalability as conversation length increases. Such information is important for evaluating the practicality of the approach and understanding the trade-off between attack effectiveness and computational cost. Finally, the evaluation focuses primarily on ASR rates and is limited to Llama-family and GPT-family target models. While the reported results are promising, it remains unclear how the proposed framework performs against models with substantially different architectures, alignment procedures, and safety mechanisms, such as Qwen, Claude, Gemini, and Mistral. Additional experiments on these model families would provide stronger evidence regarding the generalizability of the proposed approach. Furthermore, while diversity, perplexity, and transferability are reported, there is limited analysis of failure cases, robustness across different safety evaluators, or sensitivity to reward design choices.

Questions

Q1. Reward Model Dependence: The proposed framework relies on LlamaGuard-derived rewards during training. Have the authors evaluated the learned policies using alternative safety evaluators or judges to determine whether the observed improvements generalize beyond LlamaGuard? If not, can the authors provide evidence that the learned attacks are not overfitting to the specific reward model used during training?

Q2. Necessity of HRL: The paper claims that hierarchical reinforcement learning is necessary for long-horizon attack planning. Can the authors provide a comparison against a strong non-hierarchical RL baseline trained with the same reward function and computational budget? This would help isolate the contribution of the hierarchical architecture itself.

Q3. Computational Overhead: What are the training and inference costs of the proposed framework? Specifically, can the authors report GPU hours, target-model query counts, reward-model evaluations, and wall-clock training time? Additionally, how does the computational cost scale as the conversation length increases?

Q4. Reward Sensitivity: How sensitive is the framework to the specific reward design used in Equations (1)–(5)? For example, what performance changes are observed when modifying or removing the stealthiness reward term −R(at), the guide-following objective, or the token-level marginal contribution mechanism?

Q5. Failure Analysis: Can the authors provide examples of unsuccessful attacks and discuss the conditions under which the proposed HRL framework fails? Such analysis would help clarify the limitations of the learned attack strategies and provide additional insight beyond aggregate ASR metrics.

Q6. Generalization Across LLM Families: The proposed framework is trained using a Llama-3-8B-based attacker and evaluated primarily against Llama-family and GPT-family target models. How well does the proposed HRL framework generalize to other modern LLM families with different architectures, alignment procedures, and safety mechanisms, such as Qwen, Claude, or Gemini? If additional experiments are not feasible, can the authors discuss why the learned policies are expected to transfer across substantially different model families?

Limitations

Partially. The authors acknowledge the reliance on a well-defined harmfulness score and the current focus on text-based red teaming. However, the limitations section could be strengthened by discussing the framework's dependence on the specific safety evaluator used during training (LlamaGuard) and the computational overhead introduced by hierarchical reinforcement learning, PPO optimization, and token-level reward attribution. These factors may affect the robustness, scalability, and practicality of the proposed approach and are currently not discussed in the limitations section.

Paper formatting concerns

I did not notice any major issues.

Final justification

I thank the authors for their detailed rebuttal and clarifications. After considering the rebuttal and discussion, I reassessed the paper under the General contribution criteria. The paper presents an interesting hierarchical reinforcement learning framework for multi-turn LLM red teaming, and the evaluation includes comparisons with several baselines, benchmark datasets, and ablation studies.

The rebuttal addressed several of my questions. In particular, the authors clarified that the framework was evaluated using multiple guard models during training, pointed out the non-hierarchical reinforcement learning baseline included in the ablation study, provided quantitative information regarding training cost and inference-time efficiency, and added discussion on reward sensitivity, failure cases, and transfer across additional target model families. These clarifications improve the presentation and provide additional context for interpreting the experimental results.

Some concerns nevertheless remain only partially resolved. While the additional experiments provide evidence of generalization across the evaluated guard models, the evidence is primarily within the LlamaGuard/ShieldGemma family, leaving broader robustness across substantially different safety evaluation mechanisms less clear. The threat model could also be described more explicitly, particularly with respect to the attacker's assumptions and intended deployment setting. In addition, although the reported computational measurements improve the discussion, the practical trade-offs between training cost and attack effectiveness could be analyzed in greater depth.

In summary:

The paper presents an interesting hierarchical reinforcement learning approach for multi-turn LLM red teaming. The rebuttal addressed several of my questions regarding the ablation study, reward-model evaluation, computational cost, failure analysis, and generalization across target models. Some questions regarding broader robustness across different safety evaluation mechanisms, threat-model specification, and practical efficiency remain only partially addressed.

Considering both the methodological contribution and the remaining limitations, my overall recommendation remains unchanged.

Reviewer_y1rLOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper discusses how to frame a multi-turn red-teaming problem into a HRL problem, using two policies, trained via PPO. It introduces a token-level marginal-contribution reward and evaluates attacks in a full-context setting where the target sees the whole dialogue. It reports SoTA ASRs on against open- and closed-source targets as well.

Strengths and weaknesses

Strengths:

  • This paper is well-written and easy to understand. The motivations are well defined and we have seen this to be a very important problem in red-teaming.
  • The problem is also fairly novel and is an interesting direction in the context of jailbreaks.

Weaknesses:

  • Weaknesses have been listed in the questions, I would be happy to increase my score if most of my concerns have been answered.

[This work seems to support all novelty, originality and other significance metrics for a General contribution type]

Questions
  • TROJail (arXiv:2512.07761) talks about jailbreaking as a multi-turn RL problem with trajectory-level optimization, using GRPO and adds two process rewards. This is a very relevant baseline and the authors should compare results with this framework.
  • Why do the authors specifically use only two MDPs? Why not more / less? The high level intuition makes sense, but I believe this is not sufficient for proving that only 2 MDPs are optimal.
  • In L241, the authors state "r2r_2 is computed post-hoc", could the authors elaborate with a bit more detail? According to my understanding, the token-level reward r2r_2 is computed after the target LLM replies, with the response vtv_t, so masking a token changes what LlamaGuard conditions on when scoring that fixed response, not what the target would have generated. Doesn't this make r2r_2 a measure of the guard's score-sensitivity to a token rather than that token's contribution to causing a jailbreak?
  • Could the authors clarify exactly what myopic an context-aware mean, since in L285-287, the authors state the attacker sees the entire conversation in both cases? Regardless, isn't a myopic target reduces an n-turn episode to n independent single-turn attempts? If yes, it is very surprising that the myopic ASR is better than context-aware ASR for all baselines, could the authors elaborate why?
  • It is also surprising that LLM-HL performs very similar to the performance of Template-HL. LLM-HL ideally would outperform it, since it learns to generate strategies freely rather than picking from 10 fixed templates. Is there a specific reason why this happens?
  • I would also be curious to know how this jailbreak performs against several defenses.
Limitations

Yes.

Paper formatting concerns
  • The authors seem to be using redundant phrasing and I think the authors should make certain sections (Section 1, for example) more concise and precise.
Final justification

Rebuttal seems to be solid and promising. This work in general seems to be novel and quite interesting. All issues are resolved, but the authors must add the necessary details in the camera-ready paper.

Comments on the paper

1 comment
Meta-review

The paper proposes an HRL framework for multi-turn LLM red teaming, with strong results across several targets and benchmarks. The reviewers generally appreciate the novelty of modeling multi-turn red teaming as a hierarchical sequential decision-making process. Breaking the generation down into a high-level strategic policy and a low-level token generation policy is a solid contribution, and the token-level marginal contribution reward mechanism is technically interesting. However, the mixed reviewer assessments identify several issues that must be resolved for the paper to be strongly considered:

  1. Reward-model dependence: Please address reviewers qkn5 and AffJ’s concerns about possible overfitting to LlamaGuard. Clarify whether evaluation with alternative judges or human assessment supports the claimed attack improvements.
  2. Contribution of HRL: Please address reviewers qkn5 and AffJ’s concerns by explaining whether gains arise from hierarchy specifically rather than RL generally. Clarify the comparison with the low-level-only baseline and provide direct evidence that the high-level policy learns long-horizon strategies.
  3. Reward attribution: Please address reviewer y1rL’s concern that post-hoc token masking measures LlamaGuard score sensitivity without changing the target’s generated response.
  4. Related work and evaluation: Please address reviewer y1rL’s request concerning the closely related TROJail framework and clarify the surprising differences between myopic and context-aware results.
  5. Cost and threat model: Please report or clarify training/query costs, scaling with dialogue length, attacker access assumptions, and realistic deployment constraints.

The authors do not need to conduct extensive evaluations against a massive array of new target models (e.g., Claude, Gemini, Qwen) if doing so is computationally prohibitive within the rebuttal timeframe, though any existing transferability insights or discussion on how these safety architectures differ would be welcome.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.