in-the-wild-jailbreak-prompts
收藏资源简介:
该数据集收集了从2022年12月至2023年12月期间,来自Reddit、Discord、网站和开源数据集的15,140个提示,其中包含1,405个越狱提示。这些提示用于研究大型语言模型(LLMs)在自然环境中的越狱行为。数据集包括多个配置,每个配置都有不同的特征和数据文件路径。数据集的目的是评估越狱提示的有效性,并构建了一个包含390个问题的禁止场景问题集,用于评估模型在这些场景下的表现。
This dataset compiles 15,140 prompts collected between December 2022 and December 2023 from Reddit, Discord, public websites, and open-source datasets, among which 1,405 are jailbreak prompts. These prompts are employed to study the jailbreak behaviors of large language models (LLMs) in real-world naturalistic environments. The dataset features multiple configurations, each with unique characteristics and dedicated data file paths. The core purpose of this dataset is to evaluate the efficacy of jailbreak prompts, and it has constructed a forbidden scenario question set containing 390 questions to assess model performance across these scenarios.
In-The-Wild Jailbreak Prompts on LLMs
数据集概述
该数据集包含从2022年12月至2023年12月收集的15,140个提示,其中1,405个为越狱提示。数据集涵盖四个平台(Reddit、Discord、网站和开源数据集),是目前最大的野外越狱提示集合。
数据集配置
数据集包含以下配置:
-
jailbreak_2023_05_07
- 特征:platform, source, prompt, jailbreak, created_at, date, community_id, community_name
- 分割:train(666个样本,1,391,612字节)
- 下载大小:656,975字节
- 数据集大小:1,391,612字节
-
jailbreak_2023_12_25
- 特征:platform, source, prompt, jailbreak, created_at, date, community, community_id, previous_community_id
- 分割:train(1,405个样本,3,799,875字节)
- 下载大小:1,871,641字节
- 数据集大小:3,799,875字节
-
regular_2023_05_07
- 特征:platform, source, prompt, jailbreak, created_at, date
- 分割:train(5,721个样本,6,534,994字节)
- 下载大小:3,264,474字节
- 数据集大小:6,534,994字节
-
regular_2023_12_25
- 特征:platform, source, prompt, jailbreak, created_at, date
- 分割:train(13,735个样本,24,345,310字节)
- 下载大小:12,560,543字节
- 数据集大小:24,345,310字节
数据来源统计
| 平台 | 来源 | # 帖子 | # 用户 | # 对抗用户 | # 提示 | # 越狱提示 | 提示时间范围 |
|---|---|---|---|---|---|---|---|
| r/ChatGPT | 163,549 | 147 | 147 | 176 | 176 | 2023.02-2023.11 | |
| r/ChatGPTPromptGenius | 3,536 | 305 | 21 | 654 | 24 | 2022.12-2023.11 | |
| r/ChatGPTJailbreak | 1,602 | 183 | 183 | 225 | 225 | 2023.02-2023.11 | |
| Discord | ChatGPT | 609 | 259 | 106 | 544 | 214 | 2023.02-2023.12 |
| Discord | ChatGPT Prompt Engineering | 321 | 96 | 37 | 278 | 67 | 2022.12-2023.12 |
| Discord | Spreadsheet Warriors | 71 | 3 | 3 | 61 | 61 | 2022.12-2023.09 |
| Discord | AI Prompt Sharing | 25 | 19 | 13 | 24 | 17 | 2023.03-2023.04 |
| Discord | LLM Promptwriting | 184 | 64 | 41 | 167 | 78 | 2023.03-2023.12 |
| Discord | BreakGPT | 36 | 10 | 10 | 32 | 32 | 2023.04-2023.09 |
| 网站 | AIPRM | - | 2,777 | 23 | 3,930 | 25 | 2023.01-2023.06 |
| 网站 | FlowGPT | - | 3,505 | 254 | 8,754 | 405 | 2022.12-2023.12 |
| 网站 | JailbreakChat | - | - | - | 79 | 79 | 2023.02-2023.05 |
| 数据集 | AwesomeChatGPTPrompts | - | - | - | 166 | 2 | - |
| 数据集 | OCR-Prompts | - | - | - | 50 | 0 | - |
| 总计 | 169,933 | 7,308 | 803 | 15,140 | 1,405 | 2022.12-2023.12 |
数据加载
使用Hugging Face的Datasets库可以轻松加载所有收集的提示。
python from datasets import load_dataset
dataset = load_dataset(TrustAIRLab/in-the-wild-jailbreak-prompts, jailbreak_2023_05_07, split=train)
dataset = load_dataset(TrustAIRLab/in-the-wild-jailbreak-prompts, jailbreak_2023_12_25, split=train)
dataset = load_dataset(TrustAIRLab/in-the-wild-jailbreak-prompts, regular_2023_05_07, split=train)
dataset = load_dataset(TrustAIRLab/in-the-wild-jailbreak-prompts, regular_2023_12_25, split=train)
问题集
为了评估越狱提示的有效性,构建了一个包含390个问题的问答集,涵盖13个禁止场景(来自OpenAI使用政策)。
python from datasets import load_dataset
forbidden_question_set = load_dataset("TrustAIRLab/forbidden_question_set", split=train)
许可证
该数据集基于MIT许可证。




