# Helpful and harmless (2022)

> Anthropic's RLHF assistant, and the public preference data on helpfulness and harmlessness that much of open alignment research has trained on since.

Page: https://mralbu.github.io/ai-datasets/p/helpful-harmless

## Key facts

- Title: Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback
- Authors: Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al.
- Venue: arXiv 2022
- Category: LLMs
- Paper: https://www.alphaxiv.org/abs/2204.05862

## Why it matters

InstructGPT's feedback data stayed private. This paper published its comparisons as HH-RLHF, which became the default dataset for anyone studying or reproducing preference tuning, including DPO. Its finding that alignment is nearly free at scale made RLHF a standard step rather than a trade-off.

## The idea

Collect two separate sets of human comparisons: which of two replies is more helpful, and, from people trying to provoke the model, which is less harmful. Train preference models on them, then fine-tune a 52-billion-parameter assistant against those models with reinforcement learning (PPO), refreshing the data, preference models and policy every week.

## The result

About 160,000 comparisons in total. A preference model trained only on helpfulness did much worse than chance on harmlessness, and the reverse: the two goals pull against each other. For the 13B and 52B models, RLHF cost nothing on MMLU, HellaSwag and ARC, and helped zero-shot; small models paid a clear "alignment tax".

## The data

- [Anthropic HH-RLHF (2022)](https://mralbu.github.io/ai-datasets/d/hh-rlhf.md): 170k pairs of assistant replies to the same conversation, and which one a person preferred.
- [MMLU (2020)](https://mralbu.github.io/ai-datasets/d/mmlu.md): 15,908 four-option exam questions, from high-school math to law and medicine.
- [HellaSwag (2019)](https://mralbu.github.io/ai-datasets/d/hellaswag.md): Pick the most plausible ending for a video caption or how-to step. Easy for people, hard for 2019 models.
- [AI2 ARC (2018)](https://mralbu.github.io/ai-datasets/d/ai2-arc.md): 7,787 real science exam questions; the Challenge set is the 2,590 that simple methods fail.
- [TruthfulQA (2021)](https://mralbu.github.io/ai-datasets/d/truthfulqa.md): 817 questions written so that the popular answer is false.
- [HumanEval (2021)](https://mralbu.github.io/ai-datasets/d/humaneval.md): 164 hand-written Python problems graded by unit tests.

## Part of

- [Aligning language models](https://mralbu.github.io/ai-datasets/t/llm-alignment.md) (step 3 of 4)
