DatasetsReviewed · Anthropic

Anthropic HH-RLHF: helpfulness and harmlessness preference data and red-team transcripts

Anthropic's HH-RLHF is a dataset of human preference comparisons and red-team conversation transcripts. It is for researchers who train reward models or study how AI assistants are attacked. Its main catch is that it contains offensive and upsetting content, and its authors warn that training chatbots on it is likely to produce harmful models. Technically, it holds jsonl pairs of chosen and rejected texts for helpfulness and harmlessness, plus a separate red-team set with harmlessness scores, ratings and tags. The dataset card declares the MIT licence.

Researched 12 Nov 2026

In short.

HH-RLHF is a research dataset from Anthropic. It is for people who train reward (preference) models or study how crowdworkers attack AI assistants. The main catch is that it contains offensive and upsetting material, and its authors warn that training dialogue agents on it is likely to lead to harmful models. The README describes two kinds of data. The first is human preference data, where each jsonl line holds a pair of texts, one chosen and one rejected, covering helpfulness and harmlessness. The authors intend it for training preference or reward models for later RLHF training. The second is red-team transcripts annotated with harmlessness scores, a success rating, task descriptions and optional tags. These are intended for studying red-team attacks, and the README says they are not intended for fine-tuning or preference modelling. The front matter declares the MIT licence. This report rests only on the README at one pinned revision. The README does not cover the data files, row counts, sizes or full licence text. Loading the dataset and the example code have not been tested.

Researched and written by an AI model and checked by a second AI model. How it works

Scope covered: the README (dataset card) for Anthropic/hh-rlhf at commit 09be8c5bbc57cb3887f3a9732ad6aa7ec602a1fa. This includes the licence declaration (mit) and the notices in its text about usage, content and intended use. Excluded: the underlying data files and directories, any separate licence file, the linked papers [https://arxiv.org/abs/2204.05862] and [https://www.anthropic.com/red_teaming.pdf], the GitHub repository [https://github.com/anthropics/hh-rlhf] and any other linked pages. Untested: loading the dataset and the usage examples have not been tested. The loading snippet, record counts, data quality and file contents are therefore unverified and rest on the README's own description.

The overview

What this resource is

The resource is the Hugging Face dataset repository Anthropic/hh-rlhf, read here through its README at one pinned revision (commit 09be8c5bbc57cb3887f3a9732ad6aa7ec602a1fa). The README calls it the dataset card for HH-RLHF. HH stands for helpful and harmless. RLHF means reinforcement learning from human feedback, a method where people compare model answers and those comparisons are used to steer a model.

The repository bundles two different datasets. One is human preference data about helpfulness and harmlessness, described in the paper Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback [https://arxiv.org/abs/2204.05862]. The other is red-teaming data, described in Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned [https://www.anthropic.com/red_teaming.pdf]. Red teaming here means people deliberately trying to make an AI assistant produce harmful output so the weaknesses can be studied.

The README lists the tag human-feedback and the licence field mit. It says the original authors also host the data on GitHub at [https://github.com/anthropics/hh-rlhf] and gives redteam@anthropic.com for inquiries. The README does not state a release date, a version number or a changelog.

Overall assessment

This is a documented, purpose-built dataset for alignment and safety research. The README is clear about what each part is for and what it is not for. It gives a record format for the preference data, a field list for the red-team data, a loading snippet and citations to the source papers.

The main catch is the content. The README warns that the data, especially the harmlessness preference data and the red-team data, contain material that may be offensive or upsetting. This includes discriminatory language and discussions of abuse, violence, self-harm and exploitation. It also states that the data are not for supervised training of dialogue agents and that doing so is likely to produce harmful models.

The evidence does not establish data quality in practice, the number of examples, file sizes, label noise, the exact licence text, or whether the contents suit any particular modern model. Those points were not assessed. The assessment is that it is a good fit for the research uses the authors name and a poor fit for anyone wanting ready-made chatbot fine-tuning data.

Who it is for

The README says the data are intended for researchers. The preference data is meant for people training preference or reward models for later RLHF training. The red-team data is meant for people who want to understand how crowdworkers red team models and which kinds of attack succeed or fail. The README says the whole dataset is intended for research, especially research that can make models less harmful.

In practice, that means machine learning researchers and engineers working on reward modelling, AI safety and evaluation teams, and people studying adversarial prompting from a defensive angle. A beginner can use it as a concrete example of what human feedback data looks like: paired texts, one marked chosen and one rejected.

It is not suited to people who want to fine-tune a chatbot directly on the conversations. The README warns that training dialogue agents on these data is likely to lead to harmful models and should be avoided. It is also not suited to anyone who should not be exposed to distressing text. The README asks readers to engage with the data only in line with their own personal risk tolerance. Teams that pass the data to annotators or students should plan for the content. Suitability for production, commercial or regulated settings was not assessed.

What the data contains

Preference data (PM data): each line of the jsonl files contains a pair of texts, one labelled chosen and one rejected. For helpfulness, the data are grouped into train and test splits in three tranches. The first comes from the authors' base models, described as context-distilled 52B language models. The second comes from rejection sampling, mostly best-of-16, against an early preference model. The third was sampled during an iterated online process. For harmlessness, data were collected only for the base models, in the same format.

Red-team data: each jsonl line is a dictionary with these fields. transcript is the conversation between a human adversary and an AI assistant. min_harmlessness_score_transcript is a preference-model score where lower means more harmful. num_params and model_type describe the model behind the assistant. rating is the red team member's own Likert-scale rating of how successfully they broke the assistant. task_description is the attacker's short description of their attempt, and task_description_harmlessness_score scores that description. red_team_member_id is an arbitrary identifier, and one member can produce several attacks. is_upworker is true for Upwork and false for MTurk. tags holds up to 6 short descriptions per transcript.

Tags were added by crowdworkers who reviewed the red-team data afterwards, but only for a random sample of 1000 attempts covering two of four model types. The README says the transcripts are derived from the harmlessness preference data, with only the chosen response included in each transcript. It says they are annotated with human and automated measures of how harmful the dialogue is. It does not give counts of examples per split.

Using it

What you need to use it

The only usage shown is the Hugging Face datasets library in Python, calling load_dataset with the repository name Anthropic/hh-rlhf. That implies a Python environment with the datasets package and network access to Hugging Face. The README does not give disk space or memory needs.

To get value from the preference data, you would need your own reward-model or RLHF training setup. The README names the base models used to collect the helpfulness data, context-distilled 52B language models. That describes where the data came from, not what you need to use it. The models you would train and the training code, hardware and software versions you would need are not specified. Ordinary data-analysis tools would probably be enough for the red-team data, but that is an inference; the README does not say so.

The captured evidence does not say whether you need a Hugging Face account, a login or to accept terms before downloading.

How the data works and where it comes from

The card describes chosen/rejected text pairs intended for training preference or reward models for subsequent RLHF. Each line of the preference jsonl files holds one such pair. The card does not spell out the step-by-step annotation procedure. It also does not claim that a reward model trained on these pairs will reproduce crowdworker judgments.

The helpfulness data comes from three tranches. The first is the authors' base models, which are context-distilled 52B language models. The second is rejection sampling against an early preference model, mostly best-of-16. The third is data sampled during an iterated online process. The harmlessness data was collected only for the base models, in the same format.

The red-team data records whole conversations between a human adversary (a red team member) and an AI assistant. According to the card, these transcripts are derived from the harmlessness preference data, with only the chosen response included. The is_upworker field shows whether each red team member came from Upwork or MTurk. Members rated how successful they were at breaking the assistant. A preference model supplies automated harmlessness scores for each transcript and task description. For collection methods and the crowdworker population, the README points to section 2 and appendix D of the first paper and to the datasheet in the appendix of the red-teaming paper. This report does not cover those documents.

Setup

The README says each dataset sits in its own sub-directory and is loaded with the data_dir argument of load_dataset. Loading without data_dir loads all the helpfulness and harmless subsets, which the README says share the same schema. Passing data_dir="harmless-base" loads one harmlessness subset, and data_dir="red-team-attempts" loads the red-team subset.

The README names only those two directories. Other directory names, such as those of the helpfulness subsets, are not in the captured text, so check the repository's file listing before use. The red-team data has a different schema from the preference data, so it needs to be loaded separately.

The README describes no installation steps beyond having the datasets library. The loading snippet is untested, so it has not been confirmed to work.

Worked example

The README's own example loads three views of the data in Python. It starts with from datasets import load_dataset. Then load_dataset("Anthropic/hh-rlhf") loads all the helpfulness and harmless subsets, load_dataset("Anthropic/hh-rlhf", data_dir="harmless-base") loads one harmless subset, and load_dataset("Anthropic/hh-rlhf", data_dir="red-team-attempts") loads the red-team set.

Here is a plausible use that matches the README's stated purpose. Load a preference subset, read the chosen and rejected texts from each record, and train a reward model to score the chosen text above the rejected one. With the red-team set, you could group transcripts by model_type or num_params and compare the rating and min_harmlessness_score_transcript fields to see which attacks worked on which models. You could also filter to the tagged sample of 1000 attempts to look at the tags crowdworkers wrote.

These are illustrations built from the README's field descriptions. They were not run and no actual records were examined, so no sample record content is reproduced here.

Assessment & evidence

Limitations and risks

Content risk: the data include discriminatory language and discussions of abuse, violence, self-harm and exploitation. Red-team transcripts record attempts to make an assistant misbehave, and the harmful content in them is part of the data. Store, share and display the data with that in mind.

Misuse risk: the authors say the preference pairs are intended for training preference or reward models for later RLHF training, not for supervised training of dialogue agents. They warn that training dialogue agents on these data is likely to lead to harmful models. The red-team transcripts are intended for studying how crowdworkers red team models and which attacks succeed. The README says they are not intended for fine-tuning or preference modelling. These are the authors' stated intended uses and safety warnings. The card does not explain how they relate to the MIT licence declaration.

Coverage and age: the helpfulness data comes from the authors' own context-distilled 52B base models, from rejection sampling against an early preference model, and from data sampled during an iterated online process. The harmlessness data comes only from the base models. How well either transfers to other or newer models is not established. Red-team tags exist for only 1000 attempts and only for two of four model types. The harmlessness scores come from a preference model. They may reflect that model's preferences and errors, and bias was not assessed. The README does not report label agreement, error rates or demographic details of the crowdworkers, though the paper may.

Not assessed: dataset size, split sizes, duplicates, personal data inside conversations, and whether the data files match the README description.

Why this assessment

The assessment follows the README directly. The README describes the dataset's two parts, the authors' intended uses for each and their safety warnings, so the fit statements above stay close to the authors' own. The recommendation rests on the clarity of that documentation, the named source papers and the purpose the README states: research, especially research that can make models less harmful.

Confidence is limited by the evidence. Only the README at a single revision was available. It is a first-party description, not an independent check, and it was not compared against the actual files. Statements about usefulness for specific training setups are inferences from the stated purpose and have not been tested.

Alternatives and related options

The README gives its two parts different intended uses. The preference pairs are intended for training preference or reward models for later RLHF training. The red-team transcripts are intended for studying how crowdworkers red team models, and the README says they are not intended for fine-tuning or preference modelling. For preference modelling, it points readers to the preference data. Picking the right part for the task is the first choice to make.

Other options include building your own preference data with annotators for your target model, or using other public preference or red-team datasets. This report did not compare any other dataset, so it makes no claims about relative quality, size or licence. Your models may be much newer than, or very different from, the context-distilled 52B base models the card names. In that case, preference data collected from your own model may match your use better. That is a general consideration and was not tested here.

Evidence base

The evidence is one file: the dataset card README for Anthropic/hh-rlhf at commit 09be8c5bbc57cb3887f3a9732ad6aa7ec602a1fa. The card establishes the licence declaration (mit), the human-feedback tag and the two kinds of data, with the authors' intended uses and warnings for each. It also gives the chosen/rejected pair format and the three helpfulness tranches of the preference data. Finally, it lists the red-team fields, the two sub-directory names used in the loading snippet, citations to the two source papers and contact details.

This evidence leaves several things unknown: the actual data files and full directory listing, row and split counts, file sizes, the full licence text and any copyright-holder line. Also unknown are the contents of the two linked papers, the GitHub repository, any community pages and whether the dataset is maintained. Size, contents and quality beyond what the README says are therefore unknown. Loading the dataset and the example code have not been tested.

Access & freshness

Costs

The README states no price, subscription or fee for the data, so access pricing is unknown. The data is hosted on Hugging Face and the front matter declares the MIT licence, but the evidence does not say whether any access conditions or rate limits apply. Download size and storage needs are unknown because the data files were not captured.

Other possible costs include training compute, engineering time and content review. How large these costs are, and how they compare, is unknown. The README gives no estimate for any of them.

Licence and rights

The README front matter declares license: mit. MIT is a permissive licence. However, the full licence text and any copyright-holder line were not part of the captured evidence, so the exact notice wording that should travel with copies is unknown. No separate licence file was read.

Alongside the licence tag, the README states how the data are meant to be used. It says the data are intended for research purposes and are not intended for training dialogue agents. It also says the views in the data do not reflect the views of Anthropic or any of its employees. The README does not explain how these statements relate to the MIT tag. Anyone planning commercial use or large-scale redistribution should read any licence file in the repository and the datasheets in the papers. If needed, they can ask the contact address given in the README.

The red-team data comes from crowdworkers, and the README gives each one an arbitrary red_team_member_id. Consent terms and annotator agreements are not described in the README, and the paper appendices were not read. This is not legal advice.

Freshness

The source address is fixed to commit 09be8c5bbc57cb3887f3a9732ad6aa7ec602a1fa, so this report describes that revision only. The README has no release date, version number or update history. The evidence does not show when the repository or data last changed or whether it is still maintained. The cited papers are the original descriptions of the data, and the card names the helpfulness base models as context-distilled 52B language models from that work. The data may therefore not reflect how current models behave. Whether newer revisions differ from this one is unknown.

Suggested next steps

Before adopting the data, read the two papers, especially section 2 and appendix D of the first and the datasheet of the second. Check the repository's file listing and any licence file it contains. Review a small sample of records under appropriate safeguards, and decide who on your team will handle the distressing content.

When using it, use the preference subsets for their stated purpose: training preference or reward models for later RLHF training. Keep the red-team transcripts separate for studying attacks, as the authors intend. Heed the authors' warning that supervised training of dialogue agents on these data is likely to produce harmful behaviour. Record which subset and revision you used so results can be reproduced. For questions about the data, the README gives redteam@anthropic.com and the GitHub page [https://github.com/anthropics/hh-rlhf].

Evidence for this report

selected-page.txtselected · checked 2026-11-12