114
stars
12
commits
1
linked in READMEs
Oct 17, 2023
updated
BeaverTails is an AI safety-focused collection comprising a series of datasets. This repository includes human-labeled data consisting of question-answer (QA) pairs, each identified with their corresponding harm categories. It should be noted that a single QA pair can be associated with more than one category.

The 14 harm categories are defined as follows:
Disclaimer: The BeaverTails dataset and its family contain content that may be offensive or upsetting. Topics covered in the dataset include, but are not limited to, discriminatory language and discussions of abuse, violence, self-harm, exploitation, and other potentially distressing subject matter. Please engage with the dataset responsibly and in accordance with your own personal risk tolerance. The dataset is intended for research purposes, specifically for research aimed at creating safer and less harmful AI systems. The views and opinions expressed in the dataset do not represent the views of the PKU-Alignment Team or any of its members. It is important to emphasize that the dataset should not be used for training dialogue agents, as doing so may likely result in harmful model behavior. The primary objective of this dataset is to facilitate research that could minimize or prevent the harm caused by AI systems.
The code snippet below demonstrates how to load the QA-Classification dataset:
from datasets import load_dataset
# Load the whole dataset
dataset = load_dataset('PKU-Alignment/BeaverTails')
# Load only the round 0 dataset
round0_dataset = load_dataset('PKU-Alignment/BeaverTails', data_dir='round0')
# Load the training dataset
train_dataset = load_dataset('PKU-Alignment/BeaverTails', split='train')
test_dataset = load_dataset('PKU-Alignment/BeaverTails', split='test')
You can find more information in our Paper:
The original authors host this dataset on GitHub here: https://github.com/PKU-Alignment/beavertails
BeaverTails dataset and its family are released under the CC BY-NC 4.0 License.
114
stars
12
commits
1
linked in READMEs
Oct 17, 2023
updated
BeaverTails is an AI safety-focused collection comprising a series of datasets. This repository includes human-labeled data consisting of question-answer (QA) pairs, each identified with their corresponding harm categories. It should be noted that a single QA pair can be associated with more than one category.

The 14 harm categories are defined as follows:
Disclaimer: The BeaverTails dataset and its family contain content that may be offensive or upsetting. Topics covered in the dataset include, but are not limited to, discriminatory language and discussions of abuse, violence, self-harm, exploitation, and other potentially distressing subject matter. Please engage with the dataset responsibly and in accordance with your own personal risk tolerance. The dataset is intended for research purposes, specifically for research aimed at creating safer and less harmful AI systems. The views and opinions expressed in the dataset do not represent the views of the PKU-Alignment Team or any of its members. It is important to emphasize that the dataset should not be used for training dialogue agents, as doing so may likely result in harmful model behavior. The primary objective of this dataset is to facilitate research that could minimize or prevent the harm caused by AI systems.
The code snippet below demonstrates how to load the QA-Classification dataset:
from datasets import load_dataset
# Load the whole dataset
dataset = load_dataset('PKU-Alignment/BeaverTails')
# Load only the round 0 dataset
round0_dataset = load_dataset('PKU-Alignment/BeaverTails', data_dir='round0')
# Load the training dataset
train_dataset = load_dataset('PKU-Alignment/BeaverTails', split='train')
test_dataset = load_dataset('PKU-Alignment/BeaverTails', split='test')
You can find more information in our Paper:
The original authors host this dataset on GitHub here: https://github.com/PKU-Alignment/beavertails
BeaverTails dataset and its family are released under the CC BY-NC 4.0 License.