vvsd-charan commited on
Commit
ea8512b
·
verified ·
1 Parent(s): aab561c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -37
README.md CHANGED
@@ -45,69 +45,89 @@ configs:
45
  path: synthetic_harmful_prompts_vllm.csv
46
  ---
47
 
48
- # Safety Aligned Datasets
49
 
50
- ## Dataset Summary
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
- This dataset is explicitly engineered to support **safety enhancement fine-tuning experiments**, alignment benchmarking, and false-refusal research for Small Language Models (SLMs).
54
 
55
- ### ⚠️ Critical Usage Notice
56
- This dataset is strictly intended for **academic research and educational exploration purposes only**. Due to its origin across heterogeneous sources with differing distribution terms, **this dataset is not intended for direct production training or deployment**. Users must handle this data in a controlled sandbox environment.
 
 
 
 
 
 
57
 
58
  ---
59
 
60
  ## Dataset Structure
61
 
62
- The dataset is partitioned under a single global split named **`harmful`**, divided across 6 distinct configurations representing different threat modeling domains:
63
 
64
- | Configuration Name | Source File | Description |
65
  | :--- | :--- | :--- |
66
- | `beavertails` | `beavertails_unsafe_vllm.csv` | Prompts targeting core safety meta-categories (violence, hate speech, etc.). |
67
- | `donot_answer` | `donot_answer_vllm.csv` | High-risk prompts mapped against standard AI safety evaluation frameworks. |
68
- | `forbidden_questions` | `forbidden_questions_vllm.csv` | Complex/fictional adversarial questions exploring model boundaries. |
69
- | `harmfulqa` | `harmfulqa_vllm.csv` | Query-based harmful prompts spanning various risk vectors. |
70
- | `llm_redteaming` | `llm_redteaming_vllm.csv` | Empirical jailbreaks utilized during public and academic red-teaming exercises. |
71
- | `synthetic_harmful_prompts`| `synthetic_harmful_prompts_vllm.csv` | Generative adversarial expansions to simulate unseen zero-day exploits. |
72
 
73
  ### Data Fields
74
- * `prompt` (*string*): The raw adversarial or harmful input instruction.
75
- * `safety_res` (*string*): The target model output generated during inference.
76
- * `model` (*string*): The specific inference engine and model variant used.
 
 
 
77
 
78
  ---
79
 
80
- ## Purpose & Supported Use Cases
 
 
81
 
82
- This repository acts as an empirical sandbox for **alignment engineering for Small Language Models (SLMs)**. It allows safety researchers to:
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
- ### Taxonomy of Jailbreak Vectors Included
88
- The prompts within these configurations leverage multiple sophisticated adversarial techniques:
89
- * **Role-Play Frameworks:** Instructions forcing the model into an unaligned persona or developer override simulator.
90
- * **Hypothetical Contextualization:** Masking harmful requests inside academic, historical, or purely fictional framing.
91
- * **Linguistic Obfuscation:** Using multi-turn reasoning, complex logical structures, or specialized domain jargon to bypass standard keyword filters.
 
 
 
 
 
 
92
 
93
  ---
94
 
95
- ## Dataset Generation & Methodology
96
 
97
- To ensure high throughput and structured generation, the following pipeline was implemented:
 
 
 
 
98
 
99
- * **Hardware Used:** Google Colab hosted **NVIDIA T4 GPUs** (16GB VRAM).
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 originating from multiple open-source repositories, each subject to their respective upstream licenses (e.g., **CC-BY-SA 4.0, MIT, Apache 2.0**).
108
 
109
- * **Upstream Compliance:** The original data portions retain their original licenses. Users are responsible for adhering to the terms set forth by the original authors of `BeaverTails`, `DoNotAnswer`, `HarmfulQA`, and associated red-teaming sets.
110
- * **Compilation License:** This unified framework and its generated synthetic responses are distributed under a **CC-BY-4.0** license for research purposes.
 
 
 
 
 
 
111
 
112
- ### Disclaimer
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.