Self-Deception: Reverse Penetrating the Semantic Firewall of Large Language Models

AI-generated keywords: Artificial Intelligence Large Language Models Semantic-Level Defenses Jailbreak Prompts AI Security Measures

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Large language models (LLMs) like ChatGPT are advancing towards artificial general intelligence.
  • LLMs have lowered the barrier to generating harmful content, leading to the need for semantic-level defenses.
  • Malicious actors have created "jailbreak" prompts to bypass content filters of LLMs.
  • A groundbreaking study introduces an automatic jailbreak method and proposes a semantic firewall with three technical implementation approaches.
  • The study includes a novel "self-deception" attack that tricks LLMs into generating prompts conducive to jailbreaking.
  • Experiment involved 2,520 attack payloads across languages targeting violations like violence, hate speech, and pornography on GPT-3.5-Turbo and GPT-4 models with success rates of 86.2% and 67% respectively.
  • Proposed attack method effectively circumvented semantic defenses but identified serious errors in the experiment.
  • Experimental code and raw data will be openly available for future research in AI security measures.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Zhenhua Wang, Wei Xie, Kai Chen, Baosheng Wang, Zhiwen Gui, Enze Wang

Serious errors were found in the experiment, which may lead to the overturning of the overall conclusions of the paper

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.

Submitted to arXiv on 16 Aug. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2308.11521v2

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In the realm of artificial intelligence, large language models (LLMs) such as ChatGPT have made significant strides towards achieving artificial general intelligence. While these models offer immense convenience for various societal needs, they have also inadvertently reduced the barrier to generating harmful content. To combat this issue, developers of LLMs have implemented semantic-level defenses to identify and reject prompts that could lead to inappropriate responses. However, despite these defenses, some malicious actors have devised "jailbreak" prompts that temporarily bypass the content filters of LLMs, allowing them to respond inappropriately. This poses a significant challenge as there is currently a lack of comprehensive understanding regarding the principles behind such semantic-level attacks and defenses within both industry and academia. To address this pressing concern, a groundbreaking study delves into the LLM jailbreak problem and introduces an automatic jailbreak method for the first time. The concept of a semantic firewall is proposed along with three technical implementation approaches. Drawing inspiration from traditional firewall penetration techniques through reverse tunnels, the study introduces a novel "self-deception" attack that tricks LLMs into generating prompts conducive to jailbreaking. The research involved generating 2,520 attack payloads across six languages and seven virtual scenarios targeting common violations such as violence, hate speech, and pornography. The experiment was conducted on two prominent models - GPT-3.5-Turbo and GPT-4 - with success rates of 86.2% and 67%, respectively. These findings underscored the efficacy of the proposed attack method in circumventing semantic defenses. Furthermore, all experimental code and raw data will be made openly available to foster future research endeavors in this critical area. The study posits that manipulating AI behavior through carefully crafted prompts will emerge as a pivotal research direction in advancing AI security measures. However, it is important to note that serious errors were identified in the experiment which may necessitate revisiting the overall conclusions drawn from the study.
Created on 17 Nov. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.