Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,47 +1,59 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
task_categories:
|
| 4 |
-
- text-classification
|
| 5 |
language:
|
| 6 |
-
- ar
|
| 7 |
-
- en
|
| 8 |
-
pretty_name: ArabGuard-
|
| 9 |
size_categories:
|
| 10 |
-
- 1K-10K
|
| 11 |
tags:
|
| 12 |
-
- safety
|
| 13 |
-
- prompt-injection
|
| 14 |
-
- egyptian-dialect
|
| 15 |
-
- cybersecurity
|
|
|
|
| 16 |
---
|
| 17 |
-
# ๐ก๏ธ ArabGuard: Adversarial Dialectal Dataset for LLM Safety
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## ๐ Overview
|
| 22 |
-
Global safety guardrails often
|
| 23 |
-
|
| 24 |
-
## ๐ Dataset
|
| 25 |
-
The dataset
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
##
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
## ๐ License
|
| 47 |
-
This dataset is licensed under the **Apache License 2.0**.
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
language:
|
| 6 |
+
- ar
|
| 7 |
+
- en
|
| 8 |
+
pretty_name: ArabGuard-v1
|
| 9 |
size_categories:
|
| 10 |
+
- 1K-10K
|
| 11 |
tags:
|
| 12 |
+
- safety
|
| 13 |
+
- prompt-injection
|
| 14 |
+
- egyptian-dialect
|
| 15 |
+
- cybersecurity
|
| 16 |
+
- jailbreak
|
| 17 |
---
|
|
|
|
| 18 |
|
| 19 |
+
# ๐ก๏ธ ArabGuard-v1: Adversarial Dialectal Dataset for LLM Safety
|
| 20 |
+
|
| 21 |
+
**ArabGuard-v1** is a specialized, manually curated benchmark designed to evaluate and enhance the robustness of Large Language Models (LLMs) against **Prompt Injection** and **Jailbreaking** attacks, specifically focusing on the **Egyptian Dialect** and **Franco-Arabic**.
|
| 22 |
|
| 23 |
## ๐ Overview
|
| 24 |
+
Global safety guardrails often exhibit a "Linguistic Blind Spot" when faced with local cultural nuances, slang, or code-switching. ArabGuard-v1 bridges this gap by providing **2,321 unique samples** of adversarial prompts that leverage social engineering, roleplay, and complex logical manipulation (including **Gaslighting**) in a localized Arabic context.
|
| 25 |
+
|
| 26 |
+
## ๐ Dataset Statistics & Splits
|
| 27 |
+
The dataset has been rigorously deduplicated (715 duplicates removed) and partitioned using a stratified split to ensure consistent label distribution across all sets:
|
| 28 |
+
|
| 29 |
+
| Split | Samples | Malicious (1) | Benign (0) |
|
| 30 |
+
| :--- | :--- | :--- | :--- |
|
| 31 |
+
| **Train** | 1,856 | ~1,014 | ~842 |
|
| 32 |
+
| **Validation** | 232 | ~127 | ~105 |
|
| 33 |
+
| **Test** | 233 | ~127 | ~106 |
|
| 34 |
+
| **Total (Unique)** | **2,321** | **1,268** | **1,053** |
|
| 35 |
+
|
| 36 |
+
## ๐ Attack Taxonomy
|
| 37 |
+
The dataset covers sophisticated attack vectors tailored to the MENA region:
|
| 38 |
+
- **Linguistic Obfuscation:** Payload splitting (e.g., ุช-ุฌ-ุง-ู-ู) and Franco-Arabic.
|
| 39 |
+
- **Gaslighting Traps:** Repetitive correction and negative reinforcement to force model compliance.
|
| 40 |
+
- **Social Engineering:** Leveraging local idioms and authoritative impersonation.
|
| 41 |
+
- **Hard Negatives:** Benign technical queries (e.g., "How to prevent SQL Injection") to minimize over-refusal.
|
| 42 |
+
|
| 43 |
+
## ๐๏ธ Dataset Structure
|
| 44 |
+
- `text`: The raw input prompt.
|
| 45 |
+
- `attack_type`: Category (e.g., `gaslighting_trap`, `prompt_leaking`, `reverse_psychology`).
|
| 46 |
+
- `dialect`: Linguistic style (`egyptian_slang`, `franco`, `msa_mixed`).
|
| 47 |
+
- `intent_goal`: The ultimate objective (e.g., `exfiltration`, `manipulation`).
|
| 48 |
+
- `label`: Binary (1: Malicious, 0: Safe).
|
| 49 |
+
|
| 50 |
+
## ๐ ๏ธ Usage
|
| 51 |
+
To use this dataset with the `datasets` library:
|
| 52 |
+
```python
|
| 53 |
+
from datasets import load_dataset
|
| 54 |
+
dataset = load_dataset("d12o6aa/ArabGuard-Egyptian-V1")
|
| 55 |
+
```
|
| 56 |
|
| 57 |
## ๐ License
|
| 58 |
+
This dataset is licensed under the **Apache License 2.0**.
|
| 59 |
+
|