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.

Reward Modeling Stability and Training-Inference Mismatch

The reward model's central vulnerability is distribution shift between how it was trained and how it is used. During training, the reward model scores completions drawn from a fixed preference dataset. During policy optimization, it scores completions generated by a policy that is itself changing—each optimization step pushes generations further from the distribution the reward model was validated on. Lambert's book documents this directly: a chapter on reward modeling added a subsection on score centering, described as a recent method for removing the drift caused by training-inference mismatch.

Score centering addresses a specific structural problem in preference reward modeling architectures undergoing iterative generation cycles. Because a reward model trained on pairwise comparisons learns relative preferences, its absolute score scale can drift as the generation distribution moves—scores that were calibrated on training-distribution completions become systematically biased on policy-generated ones. Centering normalizes reward predictions across the training and generation-inference regimes, removing this drift component before the scores feed policy updates. The qualification matters: this mechanism applies specifically to preference reward modeling architectures undergoing iterative generation cycles, not to all reward-modeling setups.

The downstream consequence of unmanaged drift is overoptimization—the policy exploits idiosyncrasies of the reward model rather than genuine human preference, a failure mode the reward-model-based pathway must actively counteract. Policy gradient methods manage this with constraints on how far the policy may move from its reference, and the CMU tutorial's worked example makes the constraint explicit in code: its loss computation subtracts reference-policy log-probability ratios from the policy's ratios, then measures the squared difference against the reward model's chosen-versus-rejected reward gap. That regularization term is the mechanism that keeps the optimized policy anchored near its starting distribution while the reward signal pulls it toward preferred behavior.

Comparative Analysis: Policy Gradients vs. Rejection Sampling and Direct Alignment

Lambert's taxonomy organizes downstream preference optimization into three canonical families. Rejection sampling is, in the book's description, the most basic RLHF technique: candidate completions for instruction fine-tuning are filtered by a reward model imitating human preferences, and the surviving samples are used for SFT-style retraining. Policy gradients are the reinforcement learning algorithms used in the seminal examples of RLHF, updating language model parameters with respect to the signal from a reward model. Direct alignment algorithms optimize a policy directly from pairwise preference data rather than learning an intermediate reward model to optimize later.

The direct alignment family rests on a reparameterization insight: under standard Bradley-Terry preference structures mapped to policy probability ratios, the reward function can be expressed analytically through the policy's own probabilities, so the reward model never needs to be trained as a separate artifact. This eliminates an entire failure surface—reward model drift, score miscalibration, and the training-inference mismatch that score centering exists to correct—but it also removes the reward model's utility as an independent, reusable scoring function.

The CMU tutorial illustrates the practical simplicity this can achieve: its direct-alignment-style loss requires only policy log-probabilities under the current and reference models plus the reward model's preference gap, and a single iteration of the procedure measurably improved the base model on AlpacaEval, MT-Bench, and Arena Hard—three benchmarks commonly used to evaluate response quality, alignment, and helpfulness. That reported result is specific to that tutorial's setup and should not be generalized as a compute or performance benchmark across models.

Canonical RLHF and Direct Alignment Architectural Matrix

The matrix below maps the three canonical post-training pathways across their architectural dependency and documented failure characteristics, so you can match a method to your stability constraints and infrastructure.

Decision matrix: canonical post-training optimization pathways
Optimization MethodIntermediate Reward Model RequiredPrimary Optimization MechanismDocumented Stability Risk / Failure Mode
Policy gradient RL (e.g., PPO/REINFORCE-style updates) Yes — scalar rewards generated from an auxiliary reward model Updates policy weights using the reward model's signal, constrained by reference-policy regularization Requires stable reward scaling and KL-style anchoring to prevent policy collapse; exposed to reward model drift and training-inference mismatch
Rejection sampling Yes — candidate completions filtered by a reward model imitating human preferences Generates multiple candidates, keeps top-scoring samples, retrains SFT-style on the survivors Computationally intensive offline filtering step dependent on accurate reward scoring
Direct alignment (DPO family) No — reward is reparameterized analytically through policy probabilities Gradient steps directly on pairwise preference data, under Bradley-Terry preference structures Removes reward-model drift risk, but relies on the analytical reward reparameterization holding; no independent reusable reward signal

Read the matrix as a dependency chain: every row that requires an intermediate reward model inherits that model's calibration burden, while the direct alignment row trades that burden for a structural assumption about how preferences map to policy probabilities. The comparison exposes the core trade-off—reward-model pipelines buy iterative online exploration and reusable scoring at the cost of drift management; direct alignment buys simplicity and stability at the cost of that flexibility.

Choosing Between Reward Modeling and Direct Alignment

The decision boundary is straightforward: implement direct alignment (e.g., DPO) when computational simplicity and stability are prioritized, or a traditional reward model pipeline when iterative online exploration and rejection sampling are required. If your post-training plan needs a reusable scoring function—for filtering candidate generations across many iterations, or for agentic workflows where the reward signal outlives a single fine-tuning run—the reward model pathway is the architectural fit, provided you manage its stability with mechanisms like score centering and reference-anchored regularization. If your plan is a closed-loop preference fine-tune on a fixed pairwise dataset, direct alignment removes the failure modes that come with the intermediate model.

Whichever pathway you choose, the measurable indicator to monitor during post-training execution is training divergence, reward hacking, or KL-divergence explosion. These are the observable signatures that the stability mechanisms—score centering for reward model drift, reference-policy regularization for policy movement—are either working or failing, and they give you a concrete signal for switching pathways before a run collapses.

Sources