Gretel Synthetic Safety Alignment Dataset
This dataset is a synthetically generated collection of prompt-response-safe_response triplets that can be used
for aligning language models. Created using Gretel Navigator's AI Data Designer using small language models like ibm-granite/granite-3.0-8b, ibm-granite/granite-3.0-8b-instruct, Qwen/Qwen2.5-7B, Qwen/Qwen2.5-7B-instruct
and mistralai/Mistral-Nemo-Instruct-2407.
Dataset Statistics
- Total Records: 8,361
- Total Features: 14
- Memory Usage: 48.98 MB
Dataset Schema
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier for each record. |
| persona | string | The persona or character type associated with the response. |
| risk_category | string | The category of risk associated with the response, such as discrimination. |
| sub_category | string | A more specific classification within the risk category. |
| tactic | string | The tactic used in the prompt to promote unsafe content in the response. |
| prompt | string | The question or statement given to the AI containing an overt or subtle unsafe requests. |
| response | string | The AI's initial response to the prompt. |
| judge_response_score | number | Score assigned by LLM-as-a-judge regarding the safety of response. |
| judge_response_reasoning | string | Reasoning provided by the judge for the given score for response. |
| safe_response | string | A modified response that adheres to safety guidelines. |
| judge_safe_response_score | number | Score assigned by LLM-as-a-judge regarding the safety of revised safe_response. |
| judge_safe_response_reasoning | string | Reasoning provided by the judge for the safe response score. |
| response_probability_of_harm | number | Probability of harm in response calculated using ibm-granite/granite-guardian-3.0-2b. |
| safe_response_probability_of_harm | number | Probability of harm in response calculated using ibm-granite/granite-guardian-3.0-2b. |
Data Distribution Analysis
The following visualizations show the distribution patterns and characteristics of key features in the dataset:
Distribution of risk_category
Token Statistics
- Total Tokens: 8,074,723
Tokens by Column:
- prompt: 1,729,064
- response: 1,979,673
- judge_response_reasoning: 634,327
- safe_response: 1,359,158
- judge_safe_response_reasoning: 460,959
Citation
@dataset{gretelai_gretel-safety-alignment-en-v1,
title = {Gretel Synthetic Safety Alignment Dataset},
year = {2024},
month = {12},
publisher = {Gretel},
url = {https://huggingface.co/datasets/gretelai/gretel-safety-alignment-en-v1}
}
Usage Guidelines
This dataset is released under the Apache 2.0 License. When using this dataset:
- 📚 Cite the dataset using the BibTeX entry above
- 🤝 Consider contributing improvements or reporting issues
- 💡 Share derivative works with the community when possible