← All entries
Dataset2022#334

HH-RLHF (Human Preference Data for Helpful and Harmless Assistant)

Summary

HH-RLHF is Anthropic's human preference dataset for training helpful and harmless AI assistants via reinforcement learning from human feedback. It contains ~169k chosen/rejected response pairs for helpfulness (from base models, rejection sampling, and online iteration) and harmlessness, plus human-generated red teaming data. The dataset is described in the seminal paper 'Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback' (arXiv:2204.05862).

Venue
Anthropic
Access
free
License
MIT
License family
Permissive
Language
en
Hugging Face
Anthropic/hh-rlhf
Author type
human
Added
Jul 17, 2026
Verified
Jul 17, 2026
Research status
done

From the source

Repository
Anthropic/hh-rlhf
Created
Dec 8, 2022
Last updated
May 26, 2023
Downloads (last month)
30,325
Likes
2,342
Size
100K to 1M rows
Modalities
text
Formats
json

Fetched Oct 3, 2026 from Hugging Face. These numbers change; the curated fields above do not come from here.

Topics

NLP / AI Alignment / RLHF

Dataset profile

Scale
Paper §2.2: base 44k helpfulness + 42k harmlessness; RS 52k helpfulness + 2k harmlessness; online 22k helpfulness (~162k comparisons; a conversation is typically ~four comparisons). Hub/datasets-server default train 160,800 + test 8,552 = 169,352 / 2 columns / parquet 181.6 MB (172.3 + 9.3) / in-memory 325.1 MB. usedStorage 291,448,468 bytes (~291 MB). size_categories 100K<n<1M. Original jsonl.gz: harmless-base 13.2 MB + 743 KB; helpful-base 16.2 MB + 875 KB; helpful-online 20.1 MB + 1.1 MB; helpful-rejection-sampled 25.7 MB + 1.4 MB; red-team-attempts 15.5 MB. Red-team paper 38,961 attacks — not in the default Hub config. Hub overview 2.0M downloads / 1,967 likes at check. gated=false.
Format
jsonl.gz under data_dir subsets plus Hub parquet convert for default. Columns: chosen, rejected. Default config concatenates the four PM subsets. Red-team schema is different (transcript, rating, tags, min_harmlessness_score_transcript, is_upworker, …).
Type
Annotated preference corpus / chosen-rejected chat pairs + separate red-team transcripts
License
MIT (HF card YAML). Card: research, especially work that makes models less harmful. Views in the data are not Anthropic's.
Cost
Free
Languages
English 100% (no card language YAML; preview Human/Assistant turns are English). US-based MTurk + Upwork crowdworkers. No LID table. Per-language percents N/A.
Modality
Text-only (Human/Assistant transcripts). Hub modality:text.
Domain
RLHF preference modeling; helpfulness vs harmlessness; red-teaming dialogues; alignment
Time period
Paper arXiv 2204.05862 (Hub publishedAt 2022-04-12T15:02:38Z). Red-team paper arXiv 2209.07858 (Hub publishedAt 2022-08-23T23:37:14Z). HF createdAt 2022-12-08; lastModified 2023-05-26T18:47:34Z. Online tranche collected over ~five weekly RLHF cadences. One-shot public dump, not a live chat crawl.
Purpose
Train preference/reward models for subsequent RLHF; analyze crowdworker red-team attacks. Card: not meant for supervised training of dialogue agents — SFT on this dump is likely to yield harmful models.
Used for
Landmark public HH preference dump. Paper 4 upvotes / 26 linked models / 33 linked datasets at paper-metadata check. Hub overview 2.0M downloads / 1,967 likes at check. RewardBench and many open RMs reuse it. GitHub anthropics/hh-rlhf is deprecated in favor of this Hub repo.
Authors
Anthropic (Bai, Jones, Ndousse, Askell, Chen, DasSarma, Drain, … Kaplan; arXiv 2204.05862). Preference labels from US master-qualified MTurk plus Upwork; paper Appendix D: ~20 prolific workers accounted for ~80% of the data. Model replies from context-distilled 52B LMs, rejection sampling (mostly best-of-16), and iterated online RLHF policies. Red-team paper Ganguli et al. arXiv 2209.07858.
Bias
Helpfulness-heavy (paper ~118k helpful vs ~44k harmlessness). Harmlessness chosen is the less-harmful of two model replies, not a guaranteed-safe completion. Crowdworker concentration (~20 workers ≈ 80%). US MTurk/Upwork English. Distinct from already-cataloged Nemotron-Instruction-Following-Chat-v1 / SmolTalk2. WildChat is on the live Datasets sheet — do not duplicate. Do not concat Dahoas/rm-static or other HH mirrors as extra n.
Text quality
Preview train 0 (favorite cuss word: chosen 'I haven't even thought about it' vs rejected 'Ass.') and train 2 (steal from a convenience store: chosen refuses vs rejected gives night-vs-day tactics) match the helpful/harmless labeling. Residual: chosen still contains slur lists in the human context; harmlessness pairs can be offensive on both sides; card disclaimer covers abuse/violence/self-harm/exploitation. Viewer chosen/rejected lengths ~28–11k / ~27–11k chars. Red-team transcripts are attack-analysis data, not SFT. Not independently re-labeled here.
Sample size
default train 160,800 / test 8,552. Paper tranches are not Hub configs — use data_dir. Do not add red-team 38,961 as extra default n. Do not concat Dahoas/rm-static, HuggingFaceH4/hh-rlhf, or similar copies.
Long context
Mixed (multi-turn Human/Assistant; viewer chosen/rejected up to ~11k chars). Exact token histogram Unknown without aggregating.
Intermediate steps
Yes (crowdworker pairwise choice over two model replies; 95/5 train/test; iterated online weekly PM+policy updates; red-team Likert + PM harmlessness scores + post-hoc tags on 1,000). Code/data at github.com/anthropics/hh-rlhf (deprecated) and this Hub repo.
Idea quality
High
Novelty
High (public landmark HH preference dump vs already-cataloged chat SFT; remaining dump leftover)
Text conversion
Ready jsonl.gz/parquet; load_dataset('Anthropic/hh-rlhf') is default PM pairs only. data_dir='harmless-base'|'helpful-base'|'helpful-online'|'helpful-rejection-sampled' for tranches; data_dir='red-team-attempts' for the 38,961 attacks (different schema). ~95 MB gz / ~182 MB parquet — no streaming required. Do not SFT a chatbot on chosen.
Collection method
Download
Static
Unknown (HF lastModified 2023-05-26; one-shot).
Processed
Unknown

Research notes

  • One of the most widely used RLHF preference datasets. GitHub repo (anthropics/hh-rlhf) is deprecated in favor of this HuggingFace dataset. Also includes red teaming data from arXiv:2209.07858. Not intended for supervised training of dialogue agents.
  • Remaining high-value dump HF (data-source-dump.jsonl; chat / RLHF). gated=false; public; CuratorBote listed README plus LFS jsonl.gz (four PM dirs + red-team-attempts 15.5 MB). Catalog Hub default 169,352 / paper ~162k, not red-team 38,961 as extra default n. Cite Bai et al. 2022 arXiv 2204.05862 and Ganguli et al. 2022 arXiv 2209.07858 for red-team. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export. Card explicitly warns against dialogue SFT. Distinct from already-cataloged Nemotron-Instruction-Following-Chat-v1 / SmolTalk2.

Similar entries