Exploring Straightforward Conversational Red-Teaming

George Kour, Naama Zwerdling, Marcel Zalmanovici, Ateret Anaby-Tavor, Ora Nova Fandina, Eitan FarchiarXiv 2024

TL;DR

Researchers from IBM Research AI demonstrate that off-the-shelf Large Language Models (LLMs) can be highly effective "red teamers" by using multi-turn conversations to bypass the safety alignments of other models. By automating conversational tactics—particularly those that conceal malicious intent behind a "cover story"—they show that even well-aligned models can be steered into generating harmful content within just a few dialogue turns.

What Problem Does This Paper Address?

As LLMs are integrated into business dialogue systems, ensuring they don't produce toxic, biased, or dangerous content is paramount. Most current safety evaluations focus on "single-turn" red-teaming: a user asks a bad question, and the model refuses.

However, human-to-human manipulation often relies on building trust or framing requests within benign contexts (e.g., "I'm writing a novel about a heist"). This paper investigates whether automatic red-teaming—using one LLM to attack another—can successfully exploit these conversational dynamics. The authors specifically look for "straightforward" methods that don't require specialized fine-tuning of the attacker model, making these vulnerabilities easier to discover (and potentially exploit).

Methods

The authors define a framework involving an Attacker LLM, a Target LLM, and a Judge LLM to score harmfulness. They compared six distinct tactics:

  1. Base: A simple, single-turn direct request.
  2. Adaptive: A single-turn attack where the attacker gets multiple attempts to rephrase the request based on the target's previous refusals.
  3. Insist: A multi-turn tactic where the attacker simply repeats the request and expresses dissatisfaction with the refusal using a fixed string.
  4. Objective Disclosing Start (ODS): A multi-turn conversation where the attacker states the harmful goal immediately and then tries to persuade the target.
  5. Objective Concealing Start (OCS): The attacker is given the harmful goal but is told to start the conversation with a "cover story" to hide its intent.
  6. Multi-Attempt OCS (MA-OCS): A sophisticated version of OCS where, at each turn, the attacker generates $K$ different prompts, "looks ahead" at the target's potential responses, and chooses the one that elicits the most harmful output according to the Judge.

The Judge LLM (GPT-3.5 Turbo) scored responses on a scale of 1 (least harmful) to 5 (most harmful), taking the entire conversation history into account.

Figure 1: An example dialogue between a red-teaming model (red) and the target model (blue) in a conver- sational setting, with a judge LLM (grey) scoring the harmfulness of the target agent’s last responses, but tak- ing the context of the entire conversation into account (harmfulness scores range is [1-5]).

Datasets

The study utilized the AttaQ dataset, which contains adversarial questions across various safety domains like violence, deception, and PII leaks. To ensure a broad evaluation, the researchers clustered the objectives and selected 100 representative "medoids" (central examples) to test against four models: Llama2-13b, Llama2-70b, GPT-3.5 Turbo, and Mixtral-8x7b.

Key Insights and Ideas

  • Conversational Context is a Force Multiplier: Multi-turn attacks are significantly more effective than single-turn ones. The "attack surface" grows as the conversation progresses, as seen in the rising harmfulness scores over multiple turns.
  • The Power of the "Cover Story": Tactics that concealed the objective (OCS and MA-OCS) were the most successful. By the time the malicious intent becomes clear, the target model has often already committed to a "helpful" persona within the established context.
  • The "Bad Attacker" Correlation: There is a strong positive correlation ($\tau = 0.67$) between a model's susceptibility to being attacked and its effectiveness as an attacker. For instance, Mixtral-8x7b, which was the least aligned and most vulnerable target, also proved to be the most potent attacker.
  • Diminishing Returns of Dialogue: While multi-turn is better, the incremental benefit of adding more turns starts to diminish after 3–4 exchanges. This suggests that efficient red-teaming doesn't require indefinitely long dialogues.
Figure 2: Average harmfulness scores for each turn of the conversation when Mixtral acts as both the attacker and the target model (MEAN ± SEM).

Key Results

The MA-OCS (Multi-Attempt Objective Concealing Start) tactic was the clear winner, ranking as the most effective attack for three out of the four models tested.

Quantitatively, when models attacked themselves ($A=T$):

  • Mixtral-8x7b reached an average maximum harmfulness score of 3.12 using MA-OCS, compared to just 1.21 for the baseline.
  • GPT-3.5 Turbo saw its score jump from 1.03 (baseline) to 2.17 (MA-OCS).
  • Llama2-13b proved to be the most robust model, maintaining the lowest harmfulness scores even under sophisticated attacks.
Table 2: Average of the maximum harmfulness score achieved in each conversation, where the same type of LLM serves as both attacker and target model (A = T ).

Limitations and Future Work

The authors acknowledge several constraints:

  • Scale: The evaluation used a relatively small set of 100 objectives.
  • Language: The study was conducted exclusively in English.
  • The Helpfulness Trade-off: The study focused strictly on harmfulness. A model that refuses everything might get a "perfect" safety score but would be useless in practice. Future work needs to evaluate the balance between safety and utility.
  • Static Directives: The attacker models were given a uniform set of instructions. Tailoring these directives to specific target models could potentially increase attack success rates even further.

The researchers suggest that future work should explore few-shot red-teaming, where the attacker is shown examples of successful past attacks to improve its strategy.

Summary updated

BibTeX
@misc{kour2024exploring,
  author = {George Kour and Naama Zwerdling and Marcel Zalmanovici and Ateret Anaby-Tavor and Ora Nova Fandina and Eitan Farchi},
  title = {{Exploring Straightforward Conversational Red-Teaming}},
  year = {2024},
  eprint = {2409.04822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.04822},
}
Figure