4.4.1 · D5Alignment, Prompting & RAG
Question bank — Reinforcement Learning from Human Feedback (RLHF)
Before we start, let's pin down every symbol these questions lean on, in plain words:
The pictures below carry the intuition for three ideas these questions probe: the shape of the sigmoid loss (why wrong rankings hurt more), the KL leash trade-off, and the PPO clip.



True or false — justify
True or false: The reward model outputs an absolute quality score you can compare across unrelated prompts.
False. Bradley–Terry only fixes reward differences ; adding a constant to every reward leaves the loss unchanged, so the zero point is arbitrary and cross-prompt comparisons of raw scores are meaningless.
True or false: If the reward model already ranks the winner higher, the training loss on that pair is exactly zero.
False. The loss is ; since for any finite gap , the loss is small but positive, and the gradient still gently widens the gap.
True or false: RLHF teaches the model brand-new facts it never had.
False. RLHF mostly reshapes the distribution over behaviours the base model already contained — it elicits and reprioritizes. Wrong facts baked in during pretraining largely survive.
True or false: Removing the KL penalty always increases the true quality of outputs because the objective gets larger.
False. The objective value rises but true quality collapses: with no leash the policy chases reward-hacking gibberish that fools the reward model and loses fluency and diversity.
True or false: Supervised Fine-Tuning alone could reach the same alignment as full RLHF if we just wrote enough demonstrations.
Practically false. Here's the why, step by step: (1) a response is a sequence of many tokens, so the number of possible answers grows exponentially and is effectively unbounded; (2) SFT only gives a gradient signal on the exact answers we hand-wrote, leaving the vast remainder unsupervised; (3) once training starts, the model generates its own novel outputs that no author anticipated; (4) preferences let a human judge those self-generated outputs on the spot, so feedback follows the model into regions no finite demonstration set ever touched. That coverage of the model's own behaviour is what demonstrations structurally cannot provide.
True or false: A larger KL coefficient makes the model perform better.
False. Larger pulls the policy harder toward , so it changes less and captures less reward. is a trade-off knob (reward vs. trustworthiness), not a quality dial.
True or false: PPO clipping is there to make the gradient bigger so learning is faster.
False. Clipping removes the incentive to move the probability ratio outside , producing small, safe steps so one noisy reward update can't destroy the policy.
True or false: The KL penalty and the PPO clip do the same job, so you only need one.
False. The KL penalty (weight ) keeps the whole trained policy near the trusted SFT model; the PPO clip (band ) limits how far a single update step moves from the previous iterate. One is a global leash, the other a per-step speed limit.
Spot the error
"We can drop from the reward loss and just train to be large." — What's wrong?
The Bradley–Terry loss depends only on the difference . Without the loser you have no reference, the scale runs away to infinity, and you've thrown away exactly the comparison signal that made preferences reliable.
"Since is a probability, and must be probabilities too." — Find the mistake.
The rewards are unbounded real-valued scores, not probabilities. Only after taking the gap and passing it through (which maps ) do we get a probability.
"The per-token KL term is ." — Is the ratio the right way up?
No — it's . We penalize the policy for drifting away from the trusted SFT model, so the policy sits on top; flipping it would reward drift instead.
"Reward hacking means the human labelers made mistakes." — Correct the framing.
Reward hacking is the policy exploiting blind spots in the reward model (a proxy), not labeler error. It's Goodhart's law: optimizing a proxy hard makes it stop tracking the true target.
"We use RL because supervised learning has no gradient." — Fix it.
Supervised learning has perfectly good gradients; the real reason is coverage. SFT only gets gradients on answers we hand-wrote, while RL turns "A ≻ B" judgments on the model's own samples into a gradient direction: push probability toward winners.
"Because the RM is trained on quality, maximizing it can never hurt." — Spot the flaw.
The RM is accurate only near data it saw. Pushing past that region finds adversarial inputs the RM mis-scores — precisely why the KL leash exists. Max reward max quality off-distribution.
Why questions
Why does the reward loss factor into a sigmoid of the reward difference rather than depend on each reward separately?
Dividing the Bradley–Terry fraction top-and-bottom by gives with , revealing that only the gap is identifiable — which matches exactly what a pairwise comparison gives us (nothing about absolute scale).
Why put the reward model's scalar head on the last token rather than averaging every token?
The reward is a judgment about the whole completed response; reading it off the final position lets the model summarize the entire answer into one score, mirroring how a human evaluates the finished reply.
Why start RL from the SFT model instead of the raw pretrained base?
The base model predicts internet text, so from-scratch RL over language would almost never stumble onto assistant-like replies to reward. SFT gives a sane starting policy that already talks like an assistant, so RL just refines it.
Why use preferences ("A better than B") rather than asking humans for a numeric score like 7.3/10?
Humans are unreliable at absolute scores but consistent at comparisons. Preferences are cheaper, lower-variance, and — via Bradley–Terry — convert cleanly into a differentiable ranking loss.
Why does a bigger reward-model mistake produce a much bigger loss?
A wrong ranking makes , so is small and is large — the log blows up as the predicted probability of the correct choice approaches zero, forcing a strong corrective gradient.
Why is the arbitrary zero point of the reward model acceptable rather than a bug to fix?
Because the policy objective and the training loss both depend only on reward differences along the response; a global constant cancels everywhere, so the unfixed offset never affects any decision.
Edge cases
What is the reward loss when the two rewards are exactly equal, ?
, so and loss — the model is maximally unsure, and the gradient pushes to separate the two.
What happens to the pairwise loss and its gradient as (the model ranks the winner enormously higher)?
, so the loss and the gradient vanishes — the model is already confidently correct, so training stops pushing that pair. This is why "already correct" pairs contribute almost nothing.
What happens as (the model confidently ranks the loser higher)?
, so the loss and its gradient grows without bound — a confidently wrong ranking produces a huge corrective push, exactly the self-correcting behaviour we want from the log.
What happens to the KL penalty on a token where the policy and SFT model already agree exactly?
The log-ratio , so that token contributes no penalty — the leash only pulls when the policy has actually drifted.
What does the objective favour as (leash pulled infinitely tight)?
Any drift is punished infinitely, so the optimum is : RLHF becomes a no-op and the model is just the SFT model, ignoring the reward entirely.
What happens in the opposite limit (no leash)?
The policy is free to chase pure reward, so it drifts toward degenerate reward-hacking outputs that maximize the proxy while losing fluency — the classic collapse the KL term prevents.
What if a labeler's preference is essentially a coin-flip (the two answers are genuinely tied)?
The RM will settle near for such pairs, giving ; averaged over many noisy ties this correctly tells the model these responses are of comparable quality rather than forcing a spurious ranking.
Can the policy score high reward yet be a worse assistant than SFT?
Yes — that's the Goodhart edge case: off-distribution outputs can fool the proxy reward model into high scores while real quality drops, which is exactly why we monitor the KL to .
Recall One-sentence summary of every trap here
Rewards are differences () not absolutes, the KL is a leash (weight ) not a penalty to remove, and RLHF reshapes behaviour rather than teaching new facts — miss any of those and you get a plausible-sounding but wrong conclusion.