File size: 2,102 Bytes
b050cb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
license: mit
tags:
- safe
- safety
- jailbreak
- ai-safety
- llm
- lm
- moderation
- classification
- refusal
task_categories:
- text-classification
language:
- en
size_categories:
- 10K<n<100K
configs:
- config_name: DynaBench
  default: true
  data_files:
  - split: test
    path: DynaBench/test*
- config_name: DynaBenchTrain
  data_files:
  - split: train
    path: DynaBenchTrain/train*
- config_name: DynaBenchSafetyMix
  data_files:
  - split: train
    path: DynaBenchSafetyMix/train*
---

# DynaBench


| 🔖 | 💻 | 🌐 |
|----|----|---|
| [Paper (arXiv)](https://arxiv.org/abs/2509.02563) | [Code (GitHub)](https://github.com/montehoover/DynaGuard) | [Project page ](https://taruschirag.github.io/DynaGuard/) |


## Dataset Summary

DynaBench consists of three subsets:

- **DynaBench**: A benchmark for testing the ability of models to detect policy violations where the policies fall outside traditional safety categories.
- **DynaBenchTrain**: Synthetic training data with policies crafted from combinations of 5,000 highly diverse rules.
- **DynaBenchSafetyMix**: Training data mix that includes samples from external safety datasets (WildGuard, BeaverTails, ToxicChat, Aegis 2.0) and used to train [DynaGuard](https://huggingface.co/tomg-group-umd/DynaGuard-8B)


## Usage

```python
from datasets import load_dataset

# Load the benchmark
dataset = load_dataset("tomg-group-umd/DynaBench", "DynaBench")

# Load the training data
dataset = load_dataset("tomg-group-umd/DynaBench", "DynaBenchTrain")

# Load the training data mix that includes samples from external safety datasets 
dataset = load_dataset("tomg-group-umd/DynaBench", "DynaBenchSafetyMix")
```

## Citation

```
@article{hoover2025dynaguard,
    title={DynaGuard: A Dynamic Guardian Model With User-Defined Policies}, 
    author={Monte Hoover and Vatsal Baherwani and Neel Jain and Khalid Saifullah and Joseph Vincent and Chirag Jain and Melissa Kazemi Rad and C. Bayan Bruss and Ashwinee Panda and Tom Goldstein},
    journal={arXiv preprint},
    year={2025},
    url={https://arxiv.org/abs/2509.02563}, 
}
```