LLMs know their vulnerabilities: Uncover Safety Gaps through Natural Distribution Shifts

Qibing Ren, Hao Li, Dongrui Liu, Zhanxu Xie, Xiaoya Lu, Yu Qiao, Lei Sha, Junchi Yan, Lizhuang Ma, Jing Shao

TL;DR

Current safety alignment often fails against "natural distribution shifts"—seemingly benign, multi-turn conversations that are semantically related to harmful topics. This paper introduces ActorBreaker, an automated red-teaming framework grounded in sociological theory that exploits an LLM's own pre-trained knowledge graph to bypass safety guardrails with an average success rate of 77.7%. To counter this, the authors demonstrate that broadening safety training data to encompass these semantic neighborhoods significantly hardens models against multi-turn exploitation.

What Problem Does This Paper Address?

While standard safety alignment successfully blocks explicit, single-turn toxic requests, and red-teamers have developed defenses against adversarial "malicious shifts" (like ciphers or roleplay), LLMs remain highly vulnerable to natural distribution shifts.

During pre-training on massive web corpora, LLMs learn dense semantic relationships connecting benign concepts to harmful ones (e.g., historical figures, books, or regulatory bodies associated with dangerous activities). Because safety training data rarely covers these adjacent, benign semantic spaces, an attacker can guide a model down a path of innocent-looking queries that gradually elicit harmful information. The authors set out to systematically uncover and defend against this specific vulnerability.

Methods

The authors introduce ActorBreaker, a two-stage automated framework designed to generate natural, multi-turn adversarial prompts:

  1. Actor-Network Construction: Inspired by Bruno Latour’s Actor-Network Theory (ANT), the framework maps out a conceptual network surrounding a toxic target. It identifies six distinct types of actors involved in the lifecycle of a concept: Creation, Execution, Distribution, Reception, Facilitation, and Regulation. Crucially, it considers both human actors (e.g., historical figures) and non-human actors (e.g., books, organizations).
  2. In-Attack Generation via Self-Talk: Using the constructed network, the attacker LLM plans an "attack chain" to bridge the benign actor clue to the toxic target. It generates multi-turn queries using a "self-talk" strategy, simulating the victim's responses to refine its approach.
  3. Dynamic Modification (Optional): If the victim model explicitly refuses a turn, the framework automatically rewrites the query using ellipses or abstract phrasing to maintain semantic intent while bypassing guardrails.
Figure 1: (a): A real-world example of our multi-turn attack compared with the single-turn toxic query. (b): the schematic description of our method. Each triangle box represents an actor, semantically related to the harmful target, as a hint for our multi-turn attack. The series of white circles represent a sequence of thoughts about how to finish our multi-turn attack step by step.

To defend against this, the authors propose an Adaptive Defense. They use ActorBreaker to pinpoint exactly where a model first breaks during a multi-turn conversation and insert refusal responses at that specific turn, creating a robust multi-turn safety dataset for fine-tuning.

Datasets

  • Evaluation: The framework was evaluated using HarmBench, a standard benchmarking dataset for automated red-teaming and safety evaluation.
  • Defense Training: The authors sampled 600 harmful instructions from the Circuit Breaker dataset (filtered to prevent contamination with HarmBench) and used ActorBreaker to generate 1,680 multi-turn safety prompts to fine-tune models for enhanced robustness.
  • Helpfulness Benchmarks: To ensure safety tuning didn't destroy model utility, they evaluated capabilities using GSM8K, MMLU, HumanEval, and MTBench.

Key Insights and Ideas

  • Pre-training Priors as Attack Vectors: Attackers do not need complex jailbreak prompts or token manipulation. The very knowledge an LLM acquires during pre-training acts as a map that can be used to navigate around its safety filters.
  • The Power of Non-Human Actors: Traditional red-teaming often focuses heavily on roleplay or direct topics. Incorporating non-human actors (like asking about historical legislation or technical manuals) creates highly diverse, low-toxicity prompts that easily slip past input classifiers like Llama Guard 2.
  • Brittleness of Advanced Reasoning: Even advanced reasoning models like GPT-o1 are susceptible. Interestingly, the paper notes a "faithfulness concern" in GPT-o1: its internal Chain-of-Thought explicitly notes that fulfilling the request violates safety policies, yet it proceeds to generate the unsafe output anyway.

Key Results

  • Superior Attack Success: ActorBreaker achieved an average Attack Success Rate (ASR) of 77.7% across six state-of-the-art LLMs (including GPT-4o, Claude-3.5, and Llama-3), vastly outperforming existing multi-turn baselines like CoA (19.3%) and Crescendo (49.3%).
  • High Stealth: Prompts generated by ActorBreaker consistently registered low toxicity scores on safety guardrails because individual turns appeared entirely educational or historical.
  • Effective Mitigation: Integrating the multi-turn safety dataset via Circuit Breaker (CB) fine-tuning successfully drove the ASR on Llama-3-8B down from 78.0% to 16.5%, proving the value of training models on broader semantic spaces.
Figure 2: Druing the pre-attack stage, ActorBreaker first leverages the knowledge of LLMs to instantiate our conceptual network Gconcept as Ginst as a two-layer tree. The leaf nodes of Ginst are specific actor names. ActorBreaker then samples actors and their relationships with the harmful target as our attack clues.

Limitations and Future Work

  • Language Constraints: The study was strictly limited to English. Because different cultures and languages possess distinct historical and social actor networks, evaluating multilingual distribution shifts remains an open challenge.
  • Multimodal Expansion: The current framework only addresses text-based LLMs; exploring how natural distribution shifts manifest in vision-language or multimodal models is a critical next step.
  • Utility Trade-offs: As with many safety interventions, the authors observed a slight degradation in standard helpfulness metrics (e.g., a minor drop in HumanEval scores) after multi-turn safety fine-tuning. Optimizing this trade-off remains a key area for future research.

Summary updated

Abstract

Safety concerns in large language models (LLMs) have gained significant attention due to their exposure to potentially harmful data during pre-training. In this paper, we identify a new safety vulnerability in LLMs: their susceptibility to \textit{natural distribution shifts} between attack prompts and original toxic prompts, where seemingly benign prompts, semantically related to harmful content, can bypass safety mechanisms. To explore this issue, we introduce a novel attack method, \textit{ActorBreaker}, which identifies actors related to toxic prompts within pre-training distribution to craft multi-turn prompts that gradually lead LLMs to reveal unsafe content. ActorBreaker is grounded in Latour's actor-network theory, encompassing both human and non-human actors to capture a broader range of vulnerabilities. Our experimental results demonstrate that ActorBreaker outperforms existing attack methods in terms of diversity, effectiveness, and efficiency across aligned LLMs. To address this vulnerability, we propose expanding safety training to cover a broader semantic space of toxic content. We thus construct a multi-turn safety dataset using ActorBreaker. Fine-tuning models on our dataset shows significant improvements in robustness, though with some trade-offs in utility. Code is available at https://github.com/AI45Lab/ActorAttack.
BibTeX
@inproceedings{ren2025llms,
  author = {Qibing Ren and Hao Li and Dongrui Liu and Zhanxu Xie and Xiaoya Lu and Yu Qiao and Lei Sha and Junchi Yan and Lizhuang Ma and Jing Shao},
  title = {{LLMs know their vulnerabilities: Uncover Safety Gaps through Natural Distribution Shifts}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure