Why it matters

RLHF is foundational alignment method. Understanding shapes newer methods (DPO, GRPO).

Advertisement

The architecture

SFT: supervised fine-tune on demos.

RM: train on preference pairs.

PPO: RL against RM.

RLHF pipelineStage 1: SFTdemonstrationsStage 2: RMpreference pairsStage 3: PPORL vs rewardComplex; DPO simplifies by skipping stages 2-3
RLHF stages.
Advertisement

How it works end to end

SFT: demos of desired behavior.

RM: train scalar reward from preferences.

PPO: policy gradient against RM + KL to SFT.