Skip to main content
QUICK REVIEW

[Paper Review] Self-Deception: Reverse Penetrating the Semantic Firewall of Large Language Models

Zhenhua Wang, Wei Xie|arXiv (Cornell University)|Aug 16, 2023
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper introduces a novel 'self-deception' attack that bypasses the semantic firewall in large language models (LLMs) by generating prompts that trick the model into producing jailbreak payloads. The method achieved 86.2% success on GPT-3.5-Turbo and 67% on GPT-4 across six languages and seven virtual scenarios targeting violence, hate, and pornography, demonstrating a highly effective automatic jailbreak technique.

ABSTRACT

Large language models (LLMs), such as ChatGPT, have emerged with astonishing capabilities approaching artificial general intelligence. While providing convenience for various societal needs, LLMs have also lowered the cost of generating harmful content. Consequently, LLM developers have deployed semantic-level defenses to recognize and reject prompts that may lead to inappropriate content. Unfortunately, these defenses are not foolproof, and some attackers have crafted "jailbreak" prompts that temporarily hypnotize the LLM into forgetting content defense rules and answering any improper questions. To date, there is no clear explanation of the principles behind these semantic-level attacks and defenses in both industry and academia. This paper investigates the LLM jailbreak problem and proposes an automatic jailbreak method for the first time. We propose the concept of a semantic firewall and provide three technical implementation approaches. Inspired by the attack that penetrates traditional firewalls through reverse tunnels, we introduce a "self-deception" attack that can bypass the semantic firewall by inducing LLM to generate prompts that facilitate jailbreak. We generated a total of 2,520 attack payloads in six languages (English, Russian, French, Spanish, Chinese, and Arabic) across seven virtual scenarios, targeting the three most common types of violations: violence, hate, and pornography. The experiment was conducted on two models, namely the GPT-3.5-Turbo and GPT-4. The success rates on the two models were 86.2% and 67%, while the failure rates were 4.7% and 2.2%, respectively. This highlighted the effectiveness of the proposed attack method. All experimental code and raw data will be released as open-source to inspire future research. We believe that manipulating AI behavior through carefully crafted prompts will become an important research direction in the future.

Motivation & Objective

  • To investigate the mechanisms behind semantic-level jailbreak attacks in large language models.
  • To address the lack of systematic understanding of how LLMs can be manipulated through prompt engineering to bypass content defense mechanisms.
  • To develop and evaluate an automatic, scalable method for generating jailbreak prompts that exploit semantic firewall vulnerabilities.
  • To explore cross-lingual and cross-scenario effectiveness of such attacks across multiple violation categories.

Proposed method

  • Proposes the concept of a 'semantic firewall' as a defense mechanism that blocks prompts leading to harmful content in LLMs.
  • Introduces a 'self-deception' attack strategy that generates prompts which induce the LLM to produce its own jailbreak payloads.
  • Employs a multi-stage prompt generation pipeline to create 2,520 attack payloads across six languages (English, Russian, French, Spanish, Chinese, Arabic).
  • Designs and deploys the attack across seven virtual scenarios targeting three violation types: violence, hate, and pornography.
  • Executes experiments on two leading models: GPT-3.5-Turbo and GPT-4, measuring success and failure rates.
  • Releases all experimental code and raw data as open-source to support future research in AI alignment and safety.

Experimental results

Research questions

  • RQ1How can large language models be systematically bypassed through semantic-level prompt manipulation despite built-in content defense mechanisms?
  • RQ2What are the underlying principles that allow certain prompts to induce LLMs to forget or override their safety rules?
  • RQ3To what extent can a self-deception-based attack be generalized across different languages and violation categories?
  • RQ4How effective is the proposed automatic jailbreak method across diverse LLM architectures and settings?
  • RQ5What are the failure modes and limitations of semantic firewall bypass techniques in real-world deployment scenarios?

Key findings

  • The self-deception attack achieved a success rate of 86.2% on GPT-3.5-Turbo across all tested violation types and languages.
  • The attack demonstrated a 67% success rate on GPT-4, indicating that even stronger models remain vulnerable to semantic-level jailbreaks.
  • The failure rate was only 4.7% on GPT-3.5-Turbo and 2.2% on GPT-4, highlighting the method's high reliability.
  • The attack was effective across six languages, showing that the vulnerability is not limited to English-only prompts.
  • The method successfully bypassed semantic firewalls in seven distinct virtual scenarios, confirming its robustness across diverse contexts.
  • The open-sourcing of all code and data enables reproducibility and supports future research into AI alignment and safety.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.