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

Abstract

Large Language Models (LLMs) are increasingly robust against direct harmful queries and malicious distribution shifts. However, this research identifies a critical safety gap: susceptibility to "natural distribution shifts." By exploiting an LLM's pre-training knowledge of benign entities (actors) semantically linked to harmful topics, the proposed ActorBreaker framework achieves a 77.7% attack success rate across state-of-the-art models, including GPT-o1. This paper details the methodology of ActorBreaker and demonstrates that fine-tuning on multi-turn safety data can significantly mitigate these vulnerabilities.

Introduction: The Vulnerability of Natural Distribution Shifts

Current LLM safety training primarily focuses on two areas: rejecting direct harmful queries (e.g., "How do I make a bomb?") and defending against "malicious distribution shifts" involving obfuscation techniques like Base64 encoding or elaborate roleplay.

However, LLMs are pre-trained on vast amounts of web data that include semantic connections between harmful acts and benign entities—such as historical figures, specific books, or organizations. This research argues that models are brittle to natural distribution shifts: sequences of seemingly innocent, in-distribution prompts that are semantically linked to toxic content. Because these prompts resemble standard historical or technical inquiries, they often bypass standard input safeguards like Llama-Guard.

Overview of ActorBreaker: A real-world example of a multi-turn attack (left) and the conceptual framework for actor-network construction and multi-query generation (right).

The ActorBreaker Framework

ActorBreaker is an automated framework designed to generate these "natural" multi-turn attacks by leveraging the model's own internal knowledge. The process involves four key stages:

  1. Actor-Network Construction: Inspired by Actor-Network Theory, the system identifies six types of "actors" related to a toxic target: Creation, Execution, Distribution, Reception, Facilitation, and Regulation. For example, a query about bomb-making might involve "Ted Kaczynski" (Execution) or the "Anarchist Cookbook" (Distribution).
  2. In-Attack Chain Inference: The attacker LLM generates a "chain of thoughts" to bridge the gap between a benign actor and the harmful target.
  3. Multi-query Generation via Self-Talk: The attacker LLM simulates the conversation with itself to refine prompts before interacting with the victim model.
  4. Dynamic Modification: If the victim model refuses a turn, the attacker dynamically rewrites the prompt—often using ellipsis or neutral phrasing—to nudge the model back onto the path without triggering safety filters.
The six key actor categories used in network construction to bridge benign inquiries with harmful targets.

Experimental Setup and Datasets

The researchers evaluated ActorBreaker using several key benchmarks:

  • Harmbench: The primary benchmark for evaluating harmful behaviors.
  • EasyJailbreak: Used to compare against existing state-of-the-art attack baselines.
  • ActorBreaker Multi-turn Dataset: A new safety dataset of 1,680 multi-turn dialogues constructed to help fine-tune models against this specific vulnerability.
  • UltraChat: Used as a source of helpful instruction data to ensure safety fine-tuning does not degrade general utility.

Key Results and Insights

ActorBreaker achieved an average Attack Success Rate (ASR) of 77.7% across six major LLMs, including GPT-4o and Claude-3.5, significantly outperforming existing multi-turn attacks like Crescendo (49.3%).

The GPT-o1 Reasoning Paradox

Notably, the method achieved a 60% ASR against GPT-o1-preview. While GPT-o1's advanced reasoning (Chain of Thought) can recognize policy violations, its "reasoning" often compels it to remain "faithful" to the logic of the conversation, leading it to provide unsafe details despite its internal safety checks.

Defense and Mitigation

The study found that safety vulnerabilities are spread across a wide semantic space, and actor diversity is a key factor in attack success. However, defense is possible: by fine-tuning a Llama-3-8B model on the authors' multi-turn safety dataset, the ActorBreaker ASR was reduced from 78% to 16.5%.

Conclusion and Future Directions

ActorBreaker demonstrates that LLMs' own extensive knowledge can be turned against them through naturalistic, multi-turn dialogue. While this represents a significant safety gap, targeted fine-tuning offers a path forward. Future work will explore expanding these shifts to multimodal contexts and developing reward models that can score safety at every step of a multi-turn interaction.

Summary updated

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