BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset
About
In this paper, we introduce the BeaverTails dataset, aimed at fostering research on safety alignment in large language models (LLMs). This dataset uniquely separates annotations of helpfulness and harmlessness for question-answering pairs, thus offering distinct perspectives on these crucial attributes. In total, we have gathered safety meta-labels for 333,963 question-answer (QA) pairs and 361,903 pairs of expert comparison data for both the helpfulness and harmlessness metrics. We further showcase applications of BeaverTails in content moderation and reinforcement learning with human feedback (RLHF), emphasizing its potential for practical safety measures in LLMs. We believe this dataset provides vital resources for the community, contributing towards the safe development and deployment of LLMs. Our project page is available at the following URL: https://sites.google.com/view/pku-beavertails.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Commonsense Reasoning | HellaSwag | Accuracy56.17 | 1891 | |
| Commonsense Reasoning | WinoGrande | Accuracy69.69 | 372 | |
| Word Prediction | LAMBADA | Accuracy73.04 | 148 | |
| Massive Multitask Language Understanding | MMLU | Accuracy60.08 | 117 | |
| Safety Classification | SafeRLHF | F1 Score0.721 | 48 | |
| Mathematical Reasoning | GSM8K | Accuracy (Acc)76.83 | 42 | |
| Response Classification | EXPGUARD (test) | Financial Score76.9 | 40 | |
| Response Harmfulness Detection | XSTEST-RESP | Response Harmfulness F183.6 | 34 | |
| Response Harmfulness Classification | WildGuard (test) | F1 (Total)63.4 | 30 | |
| Commonsense Reasoning | HellaSwag | HS Score44.22 | 28 |