Reinforcement learning from human feedback is not a single algorithm but a staged post-training pipeline: instruction fine-tuning first, then preference data collection, then either an intermediate reward model that drives policy optimization, or a direct alignment method that skips the reward model entirely. The central engineering decision is architectural. As Nathan Lambert's RLHF textbook explains, RLHF is a subset of preference fine-tuning techniques that includes direct alignment algorithms—the family of methods downstream of DPO that take gradient steps directly on preference data rather than learning an intermediate reward model. Which pathway you choose determines your exposure to reward model failure modes such as training-inference mismatch and score drift, and how much machinery you must stabilize to keep training from diverging.
Architectural Foundation of the RLHF Post-Training Pipeline
Post-training, in Lambert's framing, encompasses all training after the large-scale autoregressive pretraining on primarily web data. The canonical pipeline begins with instruction fine-tuning—supervised fine-tuning (SFT) that teaches a pretrained model to follow instructions—and modern RLHF-trained models, per the textbook, always utilize instruction fine-tuning followed by a mixture of the remaining optimization options. SFT is the prerequisite stage that converts a raw next-token predictor into a model capable of producing candidate responses suitable for preference comparison.
From there, the pipeline branches into pairwise preference data collection and, optionally, reward model induction. A technical tutorial from Carnegie Mellon University's machine learning department, authored by Zhaolin Gao, walks through the full training framework stage by stage—from data generation and reward model inference to the final training of the LLM—with the explicit goal of reproducibility, providing code and exact environment specifications. That framing is useful for practitioners: every stage of the pipeline is a concrete, inspectable computation, not an opaque alignment step.
The reward model itself is trained on pairwise preferences: humans (or annotators) compare candidate completions, and the model learns to score completions in a way consistent with those judgments. Lambert's book details every optimization stage in using RLHF, from instruction tuning to training a reward model and finally to rejection sampling, reinforcement learning, on-policy distillation, and direct alignment algorithms. The critical architectural point is that the reward model is an auxiliary, separately trained artifact. Its scores exist only to provide a scalar signal for downstream policy optimization—and that indirection is where the pipeline's characteristic failure modes enter.





