ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念

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.

分步说明

  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.

是什么

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.

是什么

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

要记住

  • 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.

考试中

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