NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Roman Belaire, Arunesh Sinha, Pradeep Varakantham

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: AI Safety, Security & Alignment › LLM Safety Attack Strategies · Type: new method · Keywords: red teaming, LLM security, hierarchical reinforcement learning, multi-turn attacks, vulnerability discovery

Areas: AI Agents › Agent Robustness › Agent Security Vulnerabilities; Safety & Security › Language Model Security › Prompt Injection and Resource Attacks

Summary

The paper reframes LLM red teaming as a hierarchical reinforcement learning problem to generate multi-turn, token-level attacks that maximize cumulative harm.

Explained to a 5-year-old

People want to make sure big computer programs that write text are safe. They play a game where they try to trick the program, like a secret agent. The game uses a special planning method that helps the trickster plan many steps ahead. By doing many tricks together, they find holes in the program's safety. This helps make the program safer for everyone.

Explained to a 5-year-old, longer

Big computers that write stories are called language models. To keep them safe, people try to trick them in a game called red teaming. The tricksters use a special planning method that works like a ladder of steps. First, they think about what harm could happen, then they choose a small step to do. They keep doing small steps, learning which tricks cause the most trouble. This way they can make many different attacks that happen over many turns. They give the computer a tiny reward each time they find something harmful. Over time, the trickster learns to be better at finding hidden problems. The new method finds more problems than the old ways that only use simple tricks. It helps make the language models safer by showing where they are weak. This is useful because it lets developers fix issues before the models are used in real life. In short, it’s a smarter game that helps keep big AI programs safe.

For a technical reader

The paper treats finding security flaws in language models as a planning problem. It uses a hierarchical reinforcement learning agent that learns to generate multi-turn attacks by maximizing a token-level harm signal. The agent explores many possible attack sequences, learning from sparse feedback to discover vulnerabilities that simple template-based methods miss. Experiments show the approach outperforms baseline red-teaming tools, achieving state-of-the-art vulnerability detection. This method provides a systematic, trajectory-based way to test and improve LLM safety in production environments.

Problem

Automated red teaming of large language models currently relies on templates and single-turn attacks, which fail to capture the complex, interactive nature of real-world adversarial attacks.

Method

The approach formalizes red teaming as a Markov Decision Process within a hierarchical reinforcement learning framework, using a generative agent that learns token-level harm rewards to produce diverse, multi-turn attacks.

Contributions

It introduces a hierarchical reinforcement learning paradigm for red teaming that enables multi-turn, token-level attack generation and demonstrates superior vulnerability discovery compared to existing baselines.

Practical relevance

This work provides a more realistic and automated way to test LLM safety, helping developers identify and mitigate vulnerabilities before deployment.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction