Skip to Content

After pretraining, align the model with human preferences using a reward model + policy gradient (PPO) or DPO.

Data Flow

  prompts
    |
    |--> base model --> response A, response B
    |
    v
  human ranker labels (A better than B)
    |
    v
  reward model R(x, y) trained to predict human ranking
    |
    v
  base model + R signal --> PPO update --> aligned model

What it does

Pitfalls

Analogy

A talented new hire who doesn’t yet know the house style. RLHF is the manager’s notes: “this reply feels cold; this one feels correct and warm”.

Interview tip: RLHF reshapes distribution, it does not add facts. Fine-tune for facts.

Advertisement