Evolving Diverse Red-team Language Models in Multi-round Multi-agent Games

Chengdong Ma, Ziran Yang, Hai Ci, Jun Gao, Minquan Gao, Xuehai Pan, Yaodong Yang

Ensuring the safety of Large Language Models (LLMs) is a cat-and-mouse game. As soon as developers patch one vulnerability, "red-teamers" find another. Traditional automated red-teaming often falls into a trap called mode collapse, where the AI attacker gets stuck repeating the same few successful prompts (e.g., "How do I steal X?") while missing more subtle, multi-round deceptive attacks.

A new paper from researchers at Peking University and other institutions, titled "Evolving Diverse Red-team Language Models in Multi-round Multi-agent Games," proposes a sophisticated solution: treating red-teaming as a dynamic, multi-agent game.

TL;DR

The researchers introduce the Red Team Game (RTG), a framework that models LLM safety as a multi-round adversarial interaction between a "red team" (attacker) and a "blue team" (defender). By using a novel Gamified Red Team Solver (GRTS), they evolve a diverse population of models that converge toward a Nash Equilibrium, uncovering complex vulnerabilities that static, single-round methods completely miss.

What Problem Does This Paper Address?

Current automated red-teaming methods are largely static. They typically optimize a single red-team model against a fixed blue-team model in single-round interactions. This leads to two major issues:

  1. Mode Collapse: The red team learns a narrow set of stereotyped attack patterns (see Table 1 below), failing to explore the vast space of potential harms.
  2. Lack of Depth: Real-world human-LLM interactions are multi-round. A model might refuse a harmful request initially but be "convinced" or "deceived" over several turns—a phenomenon existing benchmarks rarely capture.
Table 1: Examples of mode collapse: a very narrow distribution of attack strategies when train a red team model against a fixed blue team [11].

Methods

The authors frame the problem as a Red Team Game (RTG), which is a bi-level optimization challenge:

  • Token-level (MDPTG): A Markov Decision Process modeling how models generate individual tokens to form sentences.
  • Sentence-level (ETGD): An extensive-form game where the red and blue teams alternate sentences over multiple rounds.

To solve this, they developed the Gamified Red Team Solver (GRTS). Based on the Policy Space Response Oracles (PSRO) algorithm, GRTS maintains a population of different red and blue team strategies. In each iteration, it calculates a "best response" to the opponent's current mix of strategies while explicitly rewarding semantic diversity. This prevents the models from converging on a single repetitive attack style.

Figure 3: The process of Red Teaming Game in multi-round dialogue. The red team continuously outputs toxic prompts during the dialogue, attempting to guide the blue team to output toxic content. 1. Initialize the population of red team and blue team strategies with a count of 1 each, and initialize a set of LLM for the two team. 2. Select a policy (LLM) from the population of red team and blue team respectively to interact with the opponent’s population through multi-round RTG interaction, and utilize the interaction dialogue history for training (obtaining the best response policy). 3. Incorporate the latest best response policy obtained into the population, constructing a toxicity matrix based on the meta game between populations (Meta RTG). 4. Using Nash solvers or other solvers to solve the meta RTG and obtain the restricted approximate Nash equilibrium strategy distribution of sub-games (new strategy distribution). 5. Using the new strategy distribution as the initial strategy for the next round of GRTS iteration.

Datasets

The study utilizes several key datasets for training and evaluation:

  • Safety/Toxicity: Anthropic-HH, PKU-SafeRLHF (300k version), and the BAD (Bot-Adversarial Dialogue) dataset.
  • Helpfulness: The Alpaca dataset is used to measure the "alignment tax"—the potential loss in a model's ability to follow instructions when it is made safer.
  • Target Models: The evolved red teams were tested against popular open-source models including Llama-2 (7B, 13B, 70B), Mistral-7B, and Mixtral-8x7B.

Key Insights and Ideas

  • The Spinning Top Hypothesis: The researchers found that the geometric structure of the red-teaming task resembles a "spinning top." In game theory, this implies high non-transitivity (Model A beats B, B beats C, but C beats A). This confirms that a single "best" red-team model is impossible; you need a diverse population to truly secure an LLM.
  • Multi-round Amplification: The paper identifies that successful attacks often "amplify" over rounds. An attack that has a low success rate in round 1 can become much more potent by round 3 as the red team exploits the context established in earlier turns.
  • Pareto Superiority: Interestingly, multi-round adversarial training was found to be more efficient at balancing safety and helpfulness than single-round methods, effectively lowering the "alignment tax."

Key Results

  • Superior Exploitation: The GRTS-trained red team significantly outperformed baselines. For example, against Llama-2-70b-chat, the Attack Success Rate (ASR) increased from roughly 2% in the first round to 13% by the third round.
  • Emergent Strategies: Without explicit programming, the system discovered diverse attack forms like "Goal Hijacking," "Role Play Instruction," and "Reverse Exposure."
  • Convergence: The authors demonstrated theoretical and empirical convergence toward an approximate Nash Equilibrium, showing that both the attacker and defender become steadily more robust through bilateral optimization.
Figure 1: The process of Red Teaming Game in multi-round dialogue. The red team continuously outputs toxic prompts during the dialogue, attempting to guide the blue team to output toxic content. The left side outlines the existing technical routes of red team LLM, primarily divided into human red teams and automated red teams. The human red teams consist of diverse human experts utilizing heuristic prompts, thus incurring high costs and inefficiencies. The automated red team approaches are more efficient and scalable; however, current methods focus on single-round attacks and static blue team targets, leading to mode collapse. Our approach also falls within the realm of automated red team methods but is grounded in dynamic game-theoretic principles, enabling diversified multi-round attacks. This improves the depth of interaction between red team and blue team, enabling successful attacks in subsequent rounds following the initial failure (on the right side).

Limitations and Future Work

While powerful, the population-based approach is computationally expensive, requiring multiple LLM agents to be trained and stored. Additionally, the system relies on a toxicity reward model, which itself can be a point of failure if it has biases or can be "hacked" by the red team.

Future work includes designing even better semantic diversity metrics and scaling the framework to even larger model populations to simulate the vast diversity of human expert red-teamers.

Summary updated

BibTeX
@misc{ma2023evolving,
  author = {Chengdong Ma and Ziran Yang and Hai Ci and Jun Gao and Minquan Gao and Xuehai Pan and Yaodong Yang},
  title = {{Evolving Diverse Red-team Language Models in Multi-round Multi-agent Games}},
  year = {2023},
  eprint = {2310.00322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00322},
}
Figure