ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept

RLHF

Reinforcement learning from human feedback: people rank answers and the model learns to give the kind they prefer.

Model
Several answers
Humans rank them
Reward model
Improved model
  1. 1The model writes several answers to a prompt.
  2. 2People rank the answers.
  3. 3The rankings train a reward model that scores answers like people do.
  4. 4The model is trained to earn higher scores, so it improves.
Human rankings train a reward model, which improves the model.

Step by step

  1. 1The model writes several answers to a prompt.
  2. 2People rank the answers.
  3. 3The rankings train a reward model that scores answers like people do.
  4. 4The model is trained to earn higher scores, so it improves.

What it is

Reinforcement learning from human feedback (RLHF) is a way to make a model's answers more helpful and safer. It uses human opinion, because some qualities, like a good tone, are hard to write as rules.

It works like this. The model writes several answers to the same prompt. People rank them from best to worst. A separate reward model learns from these rankings to score any answer the way people would. Then the main model is trained to earn higher scores from the reward model. Step by step, its answers move toward what people prefer.

What it is

RLHF is a form of reinforcement learning, where a model learns by reward. It is often used after instruction tuning.

Remember

  • Humans rank the model's answers.
  • A reward model learns to score answers like people do.
  • The main model is trained to earn higher reward scores.
  • Goal: answers that are more helpful, honest and safe.
  • It needs human time, so it costs effort.

On the exam

  • “Use human preference ratings to align a model with what people want” points to RLHF.
  • “A reward model scores the answers” points to RLHF.