# Aligning language models

> From a model that completes text to assistants tuned on human preferences, with and without reinforcement learning.

Page: https://mralbu.github.io/ai-datasets/t/llm-alignment
Timeline: https://mralbu.github.io/ai-datasets/timeline?track=llm-alignment
Categories: LLMs, Text

A pretrained language model continues text; an assistant answers what was asked and declines what it should not. Closing that gap took human feedback: demonstrations and rankings optimized with reinforcement learning, public preference data showing that helpfulness and harmlessness can conflict, and finally one simple loss that does the job without a reward model.

## Sequence

- **2011 · Dataset:** [IMDB Large Movie Review](https://mralbu.github.io/ai-datasets/d/imdb.md) — 50,000 movie reviews from IMDb, labeled positive or negative.
- **2019 · Dataset:** [SuperGLUE](https://mralbu.github.io/ai-datasets/d/superglue.md) — GLUE's harder successor: eight tasks, from yes/no questions to pronoun resolution.
- **2020 · Step 1:** [GPT-3](https://mralbu.github.io/ai-datasets/p/gpt-3.md) — Showed a large enough language model could learn tasks from a few examples in its prompt, though it completed text rather than following requests.
- **2021 · Dataset:** [TruthfulQA](https://mralbu.github.io/ai-datasets/d/truthfulqa.md) — 817 questions written so that the popular answer is false.
- **2022 · Dataset:** [Anthropic HH-RLHF](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.
- **2022 · Step 2:** [InstructGPT](https://mralbu.github.io/ai-datasets/p/instructgpt.md) — Prompted completions were often unhelpful or untruthful; human demonstrations and rankings, optimized with reinforcement learning, turned GPT-3 into an assistant.
- **2022 · Step 3:** [Helpful and harmless](https://mralbu.github.io/ai-datasets/p/helpful-harmless.md) — InstructGPT's feedback data stayed private and mostly measured helpfulness; Anthropic released separate helpfulness and harmlessness comparisons and showed the two pull against each other.
- **2023 · Step 4:** [DPO](https://mralbu.github.io/ai-datasets/p/dpo.md) — RLHF still needed a separate reward model and fragile PPO tuning; DPO turned preference pairs like HH-RLHF's into one supervised loss.
