Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study

By Yi Liu, Gelei Deng, Zhengzi Xu, Yuekang Li, Yaowen Zheng, Ying Zhang, Lida Zhao, Tianwei Zhang, Yang Liu. arXiv.org, 2023

722 citations recorded by the source corpus.

Large Language Models (LLMs), like ChatGPT, have demonstrated vast potential but also introduce challenges related to content constraints and potential misuse. Our study investigates three key research questions: (1) the number of different prompt types that can jailbreak LLMs, (2) the effectiveness of jailbreak prompts in circumventing LLM constraints, and (3) the resilience of ChatGPT against these jailbreak prompts. Initially, we develop a classification model to analyze the distribution of existing prompts, identifying ten distinct patterns and three categories of jailbreak prompts. Subsequently, we assess the jailbreak capability of prompts with ChatGPT versions 3.5 and 4.0, utilizing a dataset of 3,120 jailbreak questions across eight prohibited scenarios. Finally, we evaluate the resistance of ChatGPT against jailbreak prompts, finding that the prompts can consistently evade the restrictions in 40 use-case scenarios. The study underscores the importance of prompt structures in jailbreaking LLMs and discusses the challenges of robust jailbreak prompt generation and prevention.

Subfields: Artificial Intelligence, Health Informatics

View Paper: https://www.semanticscholar.org/paper/fc50a6202e2f675604543c1ae4ef22ec74f61ad5

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Dan Hendrycks
  2. Percy Liang
  3. Danqi Chen
  4. Prateek Mittal
  5. Mohit Bansal
  6. Mantas Mazeika
  7. Steven Basart
  8. Anca Dragan

In Health Informatics

  1. Nael B. Abu-Ghazaleh
  2. Prateek Mittal
  3. Peter Hase
  4. Zheng-Xin Yong
  5. Tianwei Zhang
  6. Zeming Wei
  7. Erfan Shayegani
  8. Samuel Marks

Citations in the corpus