Model alignment
Training a model so its behavior matches human preferences and intent, beyond raw text prediction.
Model alignment is the training that turns a raw next-token predictor into an assistant that follows instructions, stays on task, and declines harmful requests. A pretrained base model has absorbed a huge amount of text but has no particular goal; it will continue a prompt in whatever way looks statistically plausible. Alignment teaches it which of many plausible continuations people actually want.
It usually happens in stages after pretraining. Supervised fine-tuning on example conversations teaches the basic assistant format. Preference training then refines behavior using comparisons, where people or models judge which of two responses is better. Comparisons are easier to collect consistently than perfect example answers, and they capture qualities like helpfulness and tone that are hard to write down as rules.
Alignment shapes tendencies; it does not create guarantees. An aligned model is more likely to follow its instructions and refuse harmful tasks, but adversarial prompts can still push it off course, and training can introduce side effects such as excessive agreeableness or verbose answers. That is why applications still need their own guardrails, permissions, and evaluation.
For builders, alignment explains much of a model's personality: why it hedges, why it formats answers a certain way, and why two models with similar benchmark scores feel different to use. The same preference methods are available to you for adapting open models to your own users' preferences.
RLHF
Reinforcement learning from human feedback: optimizing a model against a reward model trained on human preferences.
Reinforcement learning from human feedback, or RLHF, aligns a model with human preferences in three stages. First, people compare pairs of model responses to the same prompt and pick the better one. Second, a reward model is trained to predict those preferences, producing a score for any response. Third, the language model is optimized with reinforcement learning to produce responses the reward model scores highly.
During that last stage, a penalty keeps the model from drifting too far from its starting point, measured by how much its output distribution changes. Without it, the model learns to exploit flaws in the reward model, a failure known as reward hacking, producing answers that score well but read badly. RLHF was central to turning base models into the first widely used chat assistants, but it is complex and can be unstable, which motivated simpler methods.
Direct preference optimization
A preference-training method that learns directly from chosen and rejected answer pairs, with no separate reward model.
Direct preference optimization, or DPO, aims at the same goal as RLHF but skips the separate reward model and the reinforcement learning loop. It trains directly on pairs of a preferred and a rejected answer to the same prompt, using one loss function that raises the likelihood of the preferred answer relative to the rejected one, compared with a frozen copy of the starting model.
That frozen reference plays the same role as the penalty in RLHF, keeping the model close to where it started, and a single setting controls how far it may move. DPO behaves like ordinary supervised training, so it is more stable, cheaper, and easier to run, which made it a popular choice for open models. It depends heavily on the quality and coverage of the preference pairs.