Term
基于人类反馈的强化学习(RLHF)
Next Token / Wiki

Reinforcement Learning from Human Feedback (RLHF)

Reinforcement learning from human feedback (RLHF) is a training method in which humans compare or rank a model's outputs, a reward model is trained from those judgments, and reinforcement learning then optimizes the model to produce outputs that better match human preferences.

Also known as

RLHF · 基于人类反馈的强化学习 · Reinforcement Learning from Human Feedback

Definition

Reinforcement learning from human feedback (RLHF) is a training method that uses human preference judgments as its training signal, steering a model toward outputs people actually want. It is most often applied in the alignment stage after pretraining.

How it works

The typical pipeline has three steps: collect human comparisons or rankings of the model’s outputs; train a reward model on those judgments so it can score outputs; then use reinforcement learning to optimize the large language model toward outputs the reward model scores highly.

Usage

RLHF and its variants are widely used to make language models follow instructions and give responses that are more helpful and safer, and it is a common training stage for chat assistants before release.

RLHF is a method applied on top of a model: it leaves the transformer architecture and the next-token generation mechanism intact, and instead shifts the model’s tendency in what it chooses to generate.

Sources