Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
csv
Sub-tasks:
text2text-generation
Languages:
English
Size:
10K - 100K
License:
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,69 +45,89 @@ configs:
|
|
| 45 |
path: synthetic_harmful_prompts_vllm.csv
|
| 46 |
---
|
| 47 |
|
| 48 |
-
# Safety Aligned Datasets
|
| 49 |
|
| 50 |
-
|
| 51 |
-
**Safety Aligned Datasets** is a curated collection of adversarial, jailbreak, and policy-violating prompts compiled from various open-source benchmarks and synthetic generation pipelines. Each subset contains the raw `prompt`, the model's generated response (`safety_res`), and the generating `model` identifier.
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
## Dataset Structure
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
-
| Configuration
|
| 65 |
| :--- | :--- | :--- |
|
| 66 |
-
| `beavertails` | `beavertails_unsafe_vllm.csv` |
|
| 67 |
-
| `donot_answer` | `donot_answer_vllm.csv` | High-risk prompts mapped
|
| 68 |
-
| `forbidden_questions` | `forbidden_questions_vllm.csv` | Complex
|
| 69 |
-
| `harmfulqa` | `harmfulqa_vllm.csv` | Query-
|
| 70 |
-
| `llm_redteaming` | `llm_redteaming_vllm.csv` | Empirical jailbreaks
|
| 71 |
-
| `synthetic_harmful_prompts`| `synthetic_harmful_prompts_vllm.csv` |
|
| 72 |
|
| 73 |
### Data Fields
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
---
|
| 79 |
|
| 80 |
-
##
|
|
|
|
|
|
|
| 81 |
|
| 82 |
-
This repository
|
| 83 |
-
* **Supervised Fine-Tuning (SFT) & DPO:** Train SLMs to learn robust, polite, and objective refusal boundaries when paired with contrastive safe data.
|
| 84 |
-
* **Over-Refusal / False-Refusal Analysis:** Study the fine line between true malicious intent and complex, benign queries that use sensitive keywords.
|
| 85 |
-
* **Adversarial Robustness Benchmarking:** Evaluate how easily vanilla or partially aligned models collapse under structured jailbreaks.
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
---
|
| 94 |
|
| 95 |
-
##
|
| 96 |
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
-
|
| 100 |
-
* **Base Model:** `TheBloke/Mistral-7B-Instruct-v0.2-AWQ` — chosen for its strong instruction-following capabilities and efficient execution profile.
|
| 101 |
-
* **Inference Engine:** **vLLM** (Vectorized Large Language Model) framework, optimizing batch processing throughput and context efficiency during generation.
|
| 102 |
|
| 103 |
---
|
| 104 |
|
| 105 |
## Licensing & Attribution
|
| 106 |
|
| 107 |
-
This dataset is a compilation of data
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
-
|
| 113 |
-
> This dataset contains explicit, toxic, and adversarial text inputs that may be offensive or harmful. It is hosted exclusively to advance the science of AI safety, alignment, and defensive model training. The repository maintainers do not condone, support, or encourage the execution of any harmful behaviors described within these prompts.
|
|
|
|
| 45 |
path: synthetic_harmful_prompts_vllm.csv
|
| 46 |
---
|
| 47 |
|
| 48 |
+
# 🛡️ Safety Aligned Datasets
|
| 49 |
|
| 50 |
+
> *"You cannot teach a model to refuse what it has never been asked."*
|
|
|
|
| 51 |
|
| 52 |
+
A battle-tested corpus of adversarial, jailbreak, and policy-violating prompts — curated from the frontlines of open-source safety research. Built to stress-test alignment, expose refusal boundaries, and make Small Language Models harder to break.
|
| 53 |
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## What's Inside
|
| 57 |
+
|
| 58 |
+
Each record is a triplet: the **raw adversarial prompt**, the **model's generated response**, and the **model identifier** that produced it. No sanitization, no softening — this is the unfiltered input the safety community actually needs.
|
| 59 |
+
|
| 60 |
+
### ⚠️ Usage Notice
|
| 61 |
+
This dataset is strictly for **academic research and educational exploration**. It originates from heterogeneous sources with differing distribution terms and is **not intended for direct production training or deployment**. Handle it inside a controlled sandbox environment.
|
| 62 |
|
| 63 |
---
|
| 64 |
|
| 65 |
## Dataset Structure
|
| 66 |
|
| 67 |
+
One global split — **`harmful`** — partitioned into **6 threat-modeling domains**:
|
| 68 |
|
| 69 |
+
| Configuration | Source File | What it targets |
|
| 70 |
| :--- | :--- | :--- |
|
| 71 |
+
| `beavertails` | `beavertails_unsafe_vllm.csv` | Core safety meta-categories: violence, hate speech, and beyond |
|
| 72 |
+
| `donot_answer` | `donot_answer_vllm.csv` | High-risk prompts mapped to standard AI safety evaluation frameworks |
|
| 73 |
+
| `forbidden_questions` | `forbidden_questions_vllm.csv` | Complex, fictional, adversarial queries probing model boundaries |
|
| 74 |
+
| `harmfulqa` | `harmfulqa_vllm.csv` | Query-style harmful prompts spanning a wide range of risk vectors |
|
| 75 |
+
| `llm_redteaming` | `llm_redteaming_vllm.csv` | Empirical jailbreaks from public and academic red-teaming exercises |
|
| 76 |
+
| `synthetic_harmful_prompts` | `synthetic_harmful_prompts_vllm.csv` | Adversarially generated expansions simulating unseen zero-day exploits |
|
| 77 |
|
| 78 |
### Data Fields
|
| 79 |
+
|
| 80 |
+
| Field | Type | Description |
|
| 81 |
+
| :--- | :--- | :--- |
|
| 82 |
+
| `prompt` | `string` | The raw adversarial or harmful input instruction |
|
| 83 |
+
| `safety_res` | `string` | The target model's output during inference |
|
| 84 |
+
| `model` | `string` | The inference engine and model variant used |
|
| 85 |
|
| 86 |
---
|
| 87 |
|
| 88 |
+
## Why This Dataset Exists
|
| 89 |
+
|
| 90 |
+
Aligning Small Language Models is hard. You can't fix what you can't measure, and you can't measure what you've never tested.
|
| 91 |
|
| 92 |
+
This repository is an empirical sandbox designed to close that gap. Use it to:
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
- **🎯 SFT & DPO Training** — Pair with contrastive safe data to teach models robust, polite, and objective refusal behavior
|
| 95 |
+
- **🔍 Over-Refusal Analysis** — Study the fine line between genuine malicious intent and benign queries that happen to use sensitive keywords
|
| 96 |
+
- **💥 Adversarial Robustness Benchmarking** — Measure how vanilla or partially aligned models collapse under structured jailbreaks
|
| 97 |
+
|
| 98 |
+
### Jailbreak Taxonomy
|
| 99 |
+
|
| 100 |
+
The prompts cover a range of sophisticated attack surfaces:
|
| 101 |
+
|
| 102 |
+
- **Role-Play Frameworks** — Forcing the model into an unaligned persona or developer-mode override
|
| 103 |
+
- **Hypothetical Contextualization** — Burying harmful requests inside academic, historical, or fictional framing
|
| 104 |
+
- **Linguistic Obfuscation** — Multi-turn reasoning, complex logical structures, or domain jargon designed to slip past keyword filters
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
+
## Generation Pipeline
|
| 109 |
|
| 110 |
+
| Component | Detail |
|
| 111 |
+
| :--- | :--- |
|
| 112 |
+
| **Hardware** | NVIDIA T4 GPU (16GB VRAM) via Google Colab |
|
| 113 |
+
| **Base Model** | `TheBloke/Mistral-7B-Instruct-v0.2-AWQ` |
|
| 114 |
+
| **Inference Engine** | vLLM — optimized for batch throughput and context efficiency |
|
| 115 |
|
| 116 |
+
Mistral-7B-Instruct-v0.2-AWQ was chosen for its strong instruction-following and efficient execution profile. vLLM handled the rest, enabling high-throughput structured generation across all configurations.
|
|
|
|
|
|
|
| 117 |
|
| 118 |
---
|
| 119 |
|
| 120 |
## Licensing & Attribution
|
| 121 |
|
| 122 |
+
This dataset is a compilation of open-source data from multiple upstream repositories — each subject to its own license.
|
| 123 |
|
| 124 |
+
| Scope | License |
|
| 125 |
+
| :--- | :--- |
|
| 126 |
+
| Upstream data portions | Original licenses (CC-BY-SA 4.0, MIT, Apache 2.0) |
|
| 127 |
+
| Synthetic responses + framework | CC-BY-4.0 |
|
| 128 |
+
|
| 129 |
+
Upstream sources include `BeaverTails`, `DoNotAnswer`, `HarmfulQA`, and associated public red-teaming sets. Users are responsible for adhering to their respective terms.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
|
| 133 |
+
> **Disclaimer:** This dataset contains explicit, toxic, and adversarial text that may be offensive or harmful. It is hosted exclusively to advance the science of AI safety, alignment, and defensive model training. The repository maintainers do not condone or encourage the execution of any harmful behaviors described within these prompts.
|
|
|