vvsd-charan commited on
Commit
a851049
·
verified ·
1 Parent(s): d30983b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +72 -26
README.md CHANGED
@@ -9,6 +9,19 @@ language:
9
  size_categories:
10
  - 10K<n<100K
11
  configs:
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  - config_name: beavertails
13
  data_files:
14
  - split: harmful
@@ -41,6 +54,9 @@ configs:
41
  data_files:
42
  - split: safe
43
  path: prompt_injection_safe_vllm.csv
 
 
 
44
  ---
45
 
46
  # Safety Aligned Datasets
@@ -65,79 +81,107 @@ This dataset was built to close that gap — and to go further. Because alignmen
65
 
66
  ---
67
 
68
- ## Dataset Overview
 
 
 
 
 
 
69
 
70
- This corpus spans **eight configurations** across **two splits**, each targeting a distinct failure mode in model alignment.
71
 
72
- ### The `harmful` Split
73
 
74
- This split contains adversarial prompts and model-generated responses representing unsafe behavior across seven configurations. Each configuration covers a different attack class or harm domain.
 
 
75
 
76
  **`beavertails`**
77
- Covers the canonical safety meta-categories — violence, hate speech, self-harm — drawn from one of the most widely cited safety benchmarks in the field. A principled baseline across well-defined harm taxonomies.
 
 
 
78
 
79
  **`donot_answer`**
80
- Prompts mapped to a structured AI safety evaluation framework. Best suited for benchmarking against established refusal rubrics and tracking alignment progress across model versions.
 
 
 
81
 
82
  **`forbidden_questions`**
83
- The most adversarially complex configuration. Prompts rely on fictional framing, nested hypotheticals, and philosophical edge cases — exactly where naive keyword-based safety mechanisms consistently break down.
 
 
 
84
 
85
  **`harmfulqa`**
86
- Query-style harmful inputs that closely mimic real user behavior. Risk vectors span multiple domains, making this subset particularly important for models deployed in open-ended conversational settings.
 
 
 
87
 
88
  **`llm_redteaming`**
89
- Empirical jailbreaks documented during public and academic red-teaming exercises. These are prompts that have already succeeded in the wild — your model needs to have seen them before deployment.
 
 
 
90
 
91
  **`synthetic_harmful_prompts`**
92
- Adversarially generated expansions that simulate novel, unseen attack patterns. A zero-day stress test designed to push models toward generalizing safe behavior rather than memorizing safe responses.
 
 
 
93
 
94
  **`prompt_injection_unsafe_vllm`**
95
- Targets a distinct and increasingly critical threat class: prompt injection attacks. These prompts attempt to override or hijack the model's system-level instructions through crafted user inputs — a common real-world attack vector in agentic and tool-augmented LLM deployments. Exposure to this subset is essential for any model operating in a pipeline where user input reaches the inference context alongside a system prompt.
 
96
 
97
  ---
98
 
99
- ### The `safe` Split
100
 
101
  **`prompt_injection_safe_vllm`**
102
- The structural counterpart to the unsafe injection configuration above. These records show the model correctly maintaining its intended behavior under injection pressure — ignoring override instructions and staying within its sanctioned boundaries. When paired with the unsafe configuration in a DPO or contrastive SFT setup, these serve as the *chosen* side of the preference pair.
 
103
 
104
  ---
105
 
106
  ## How to Use This Dataset
107
 
108
- ### Supervised Fine-Tuning (SFT)
109
 
110
- Each adversarial prompt and its generated response can be paired with a curated safe response to create contrastive training examples. The model learns not just what to refuse, but how to refuse in a way that is polite, reasoned, and non-dismissive.
111
 
112
- ### Direct Preference Optimization (DPO)
113
 
114
- The `(prompt, safety_res, model)` triplet structure maps naturally onto DPO's chosen/rejected framework. The `safety_res` field provides the baseline behavior to use as the rejected sample, paired against a human-curated or verified chosen response. For the prompt injection configurations specifically, `prompt_injection_unsafe_vllm` and `prompt_injection_safe_vllm` form a ready-made contrastive pair without any additional annotation overhead.
115
 
116
  ### False-Refusal Calibration
117
 
118
- Over-refusal is an alignment failure too. Several configurations — particularly `forbidden_questions` and `harmfulqa` — include borderline inputs that use sensitive keywords in genuinely benign contexts. Training on these teaches a model to reason about intent, not just surface-level patterns.
119
 
120
  ### Prompt Injection Robustness
121
 
122
- With LLMs increasingly deployed in agentic workflows, RAG pipelines, and tool-use environments, resistance to instruction hijacking is no longer optional. The injection split pair directly addresses this training gap, which most general-purpose safety datasets ignore entirely.
123
 
124
  ---
125
 
126
  ## Adversarial Technique Reference
127
 
128
- The prompts across all configurations cover four primary attack classes:
129
 
130
  **Role-Play Frameworks**
131
  Instructions that force the model into an alternate persona — developer mode, uncensored assistant, fictional AI with no restrictions. These exploit the model's instruction-following strength directly against its safety constraints.
132
 
133
  **Hypothetical Contextualization**
134
- Harmful requests buried inside academic thought experiments, historical framing, or fictional narratives. The surface text appears benign; the extracted information is not.
135
 
136
  **Linguistic Obfuscation**
137
  Multi-turn logical chains, domain jargon, and structural misdirection designed to bypass keyword filters and confuse intent classifiers. These require the model to reason about the trajectory of a conversation, not just the final message in isolation.
138
 
139
  **Prompt Injection**
140
- Direct attempts to override system-level instructions through adversarially crafted user inputs. Variants include goal hijacking (redirecting the model to a different task), prompt leakage (extracting the system prompt), and jailbreak injection (embedding role-play attacks inside what appears to be ordinary user data). Particularly relevant for RAG systems, tool-augmented agents, and any deployment where user input coexists with a privileged system context.
141
 
142
  ---
143
 
@@ -159,11 +203,13 @@ Batch processing across eight heterogeneous prompt distributions requires a fram
159
 
160
  ## Data Schema
161
 
162
- Each record across all configurations contains three fields:
163
 
164
- - **`prompt`** — The raw adversarial or harmful input instruction, unmodified from its source
165
- - **`safety_res`** — The response generated by the inference model during the pipeline run
166
- - **`model`** — The specific model variant used, enabling controlled ablation studies across response sources
 
 
167
 
168
  ---
169
 
 
9
  size_categories:
10
  - 10K<n<100K
11
  configs:
12
+ - config_name: default
13
+ data_files:
14
+ - split: harmful
15
+ path:
16
+ - beavertails_unsafe_vllm.csv
17
+ - donot_answer_vllm.csv
18
+ - forbidden_questions_vllm.csv
19
+ - harmfulqa_vllm.csv
20
+ - llm_redteaming_vllm.csv
21
+ - synthetic_harmful_prompts_vllm.csv
22
+ - prompt_injection_unsafe_vllm.csv
23
+ - split: safe
24
+ path: prompt_injection_safe_vllm.csv
25
  - config_name: beavertails
26
  data_files:
27
  - split: harmful
 
54
  data_files:
55
  - split: safe
56
  path: prompt_injection_safe_vllm.csv
57
+ tags:
58
+ - Model_safety
59
+ - SFT
60
  ---
61
 
62
  # Safety Aligned Datasets
 
81
 
82
  ---
83
 
84
+ ## Dataset Structure
85
+
86
+ This corpus contains **eight configurations** across **two splits**.
87
+
88
+ The `default` config combines all files and exposes both splits simultaneously — useful for full-dataset training runs. The individual named configs allow subset-level access for targeted experiments.
89
+
90
+ ---
91
 
92
+ ## Splits
93
 
94
+ ### `harmful` — Unsafe Behavior Across Seven Configurations
95
 
96
+ Each configuration under this split targets a different failure mode in model alignment.
97
+
98
+ ---
99
 
100
  **`beavertails`**
101
+
102
+ Covers the canonical safety meta-categories — violence, hate speech, self-harm — drawn from one of the most widely cited safety benchmarks in the field. Provides a principled baseline across well-defined harm taxonomies, making it the right starting point for calibrating a model's refusal behavior before moving to more complex attack classes.
103
+
104
+ ---
105
 
106
  **`donot_answer`**
107
+
108
+ Prompts mapped to a structured AI safety evaluation framework. Best suited for benchmarking against established refusal rubrics and tracking alignment progress across model versions in a reproducible, framework-aligned way.
109
+
110
+ ---
111
 
112
  **`forbidden_questions`**
113
+
114
+ The most adversarially complex configuration in the harmful split. Prompts rely on fictional framing, nested hypotheticals, and philosophical edge cases — exactly where naive keyword-based safety mechanisms consistently break down. A model that handles this configuration well has learned to reason about intent, not just surface form.
115
+
116
+ ---
117
 
118
  **`harmfulqa`**
119
+
120
+ Query-style harmful inputs that closely mimic how real users phrase requests. Risk vectors span multiple domains, making this subset particularly important for models deployed in open-ended conversational settings where the adversarial signal is subtle.
121
+
122
+ ---
123
 
124
  **`llm_redteaming`**
125
+
126
+ Empirical jailbreaks sourced from public and academic red-teaming exercises. These are prompts that have already succeeded against deployed models in the wild. A model that has not seen this class of attack is likely to fail it.
127
+
128
+ ---
129
 
130
  **`synthetic_harmful_prompts`**
131
+
132
+ Adversarially generated expansions designed to simulate novel, unseen attack patterns. Unlike the empirical configurations above, this subset pushes models to generalize safe behavior rather than recall seen examples — the closer approximation of real-world robustness.
133
+
134
+ ---
135
 
136
  **`prompt_injection_unsafe_vllm`**
137
+
138
+ Targets prompt injection attacks — attempts to override or hijack system-level instructions through crafted user inputs. This is a distinct and increasingly critical threat class in agentic and tool-augmented LLM deployments, where user input reaches the inference context alongside a privileged system prompt. Most general-purpose safety datasets do not cover this class at all.
139
 
140
  ---
141
 
142
+ ### `safe` — Correct Behavior Under Adversarial Pressure
143
 
144
  **`prompt_injection_safe_vllm`**
145
+
146
+ The structural counterpart to `prompt_injection_unsafe_vllm`. These records show the model correctly maintaining its intended behavior under injection pressure — ignoring override instructions and staying within its sanctioned boundaries. In a DPO or contrastive SFT setup, these serve as the *chosen* side of the preference pair, with the unsafe configuration providing the *rejected* side.
147
 
148
  ---
149
 
150
  ## How to Use This Dataset
151
 
152
+ ### Supervised Fine-Tuning
153
 
154
+ Each adversarial prompt and its model-generated response can be paired with a curated safe response to create contrastive training examples. The model learns not just what to refuse, but how to refuse in a way that is polite, reasoned, and non-dismissive.
155
 
156
+ ### Direct Preference Optimization
157
 
158
+ The `(prompt, safety_res, model)` triplet maps naturally onto DPO's chosen/rejected framework. The `safety_res` field provides the baseline behavior to treat as the rejected sample, paired against a verified chosen response. For prompt injection specifically, `prompt_injection_unsafe_vllm` and `prompt_injection_safe_vllm` form a ready-made contrastive pair with no additional annotation overhead.
159
 
160
  ### False-Refusal Calibration
161
 
162
+ Over-refusal is an alignment failure too. Configurations like `forbidden_questions` and `harmfulqa` include borderline inputs that use sensitive keywords in genuinely benign contexts. Training on these teaches a model to reason about intent rather than pattern-match on surface signals.
163
 
164
  ### Prompt Injection Robustness
165
 
166
+ With LLMs increasingly deployed in agentic workflows, RAG pipelines, and tool-use environments, resistance to instruction hijacking is no longer optional. The injection split pair directly addresses this gap for any model operating in a multi-context deployment setting.
167
 
168
  ---
169
 
170
  ## Adversarial Technique Reference
171
 
172
+ The prompts across all configurations cover four primary attack classes.
173
 
174
  **Role-Play Frameworks**
175
  Instructions that force the model into an alternate persona — developer mode, uncensored assistant, fictional AI with no restrictions. These exploit the model's instruction-following strength directly against its safety constraints.
176
 
177
  **Hypothetical Contextualization**
178
+ Harmful requests embedded inside academic thought experiments, historical framing, or fictional narratives. The surface text appears benign; the information being sought is not.
179
 
180
  **Linguistic Obfuscation**
181
  Multi-turn logical chains, domain jargon, and structural misdirection designed to bypass keyword filters and confuse intent classifiers. These require the model to reason about the trajectory of a conversation, not just the final message in isolation.
182
 
183
  **Prompt Injection**
184
+ Direct attempts to override system-level instructions through adversarially crafted user inputs. Variants include goal hijacking, prompt leakage, and jailbreak injection. Particularly relevant for RAG systems, tool-augmented agents, and any deployment where user input coexists with a privileged system context.
185
 
186
  ---
187
 
 
203
 
204
  ## Data Schema
205
 
206
+ Each record across all configurations contains three fields.
207
 
208
+ | Field | Type | Description |
209
+ | --- | --- | --- |
210
+ | `prompt` | string | The raw adversarial or harmful input instruction, unmodified from its source |
211
+ | `safety_res` | string | The response generated by the inference model during the pipeline run |
212
+ | `model` | string | The specific model variant used, enabling controlled ablation across response sources |
213
 
214
  ---
215