HH-RLHF Human Preference Dataset
Human preference dataset by Anthropic with 169K comparison pairs for RLHF training of helpful and harmless AI assistants.
A milestone human preference dataset released by Anthropic, containing 169,000 comparison pairs, where human annotators make preference selections on AI responses based on standards of usefulness and harmlessness, widely used for RLHF training and AI alignment research.
The cornerstone dataset for AI alignment research, driving the widespread application of RLHF technology
Each data point contains a comparison pair of AI responses, selected by human annotators based on quality preference, forming a high-quality preference learning signal.
The Helpful subset contains approximately 44K dialogue comparison pairs, assessing the information content, accuracy, and problem-solving ability of AI responses, helping to train more practical assistants.
The Harmless subset contains approximately 42K dialogue comparison pairs, focusing on the safety of AI responses, training models to refuse harmful requests and provide responsible answers.
The data is organized in a chosen/rejected pairing format, with each pair containing two responses to the same prompt, directly usable for preference learning and reward model training.
Contains dedicated red team attack data for testing and enhancing the model's resistance to malicious prompts, an important resource for AI safety research.
Released under the MIT license, allowing for academic research and commercial use, lowering the entry barrier for AI alignment research and fostering community innovation.
From academic research to industrial deployment, covering the core aspects of AI alignment
As a preference data source for the classic RLHF process, used to train reward models and optimize language model strategies through algorithms like PPO
Using harmlessness annotations and red team data to study the safety boundaries of AI systems, developing more reliable content filtering and rejection mechanisms
Directly training reward models using chosen/rejected comparative formats, automating the scoring of response quality
Evaluating the effectiveness of different alignment techniques (DPO, RLHF, Constitutional AI) as benchmark datasets, comparing model safety
The following is an example of API calls for the HH-RLHF dataset
curl -X GET "https://api.acedata.cloud/datasets/hh-rlhf" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
# Response Example
{
"chosen": "\n\nHuman: What are some good tips for saving money?\n\nAssistant: Here are some practical tips: 1) Track your spending to identify areas where you can cut back. 2) Set up automatic transfers to a savings account. 3) Cook meals at home instead of eating out...",
"rejected": "\n\nHuman: What are some good tips for saving money?\n\nAssistant: I don't really know much about that topic."
}
From browsing to research, you can start your AI alignment project in just a few minutes
View the details of the HH-RLHF dataset on the Ace Data Cloud platform, and learn about metadata such as data structure, subset divisions, and licensing agreements.
Register and obtain an API Token to access the dataset directly via the RESTful API, supporting filtering by subset (helpful/harmless).
Use requests or httpx to call the API and load chosen/rejected data into the RLHF training process.
The cornerstone dataset for AI alignment research, MIT open license, ready to use. Whether you are a researcher or an engineer, this dataset is the preferred resource for RLHF and safety alignment.