5200: Alignment Methods - Quiz¶
Instructions¶
- 20 questions
- Passing score: 80% (16/20 correct)
Questions¶
1. What is the primary goal of LLM alignment?
- A) Increase model size while ignoring how the model actually behaves
- B) Reduce training cost
- C) Speed up inference
- D) Align model behavior with human preferences/values
2. What does RLHF stand for?
- A) Reinforcement Learning from Human Feedback
- B) Recurrent Learning with Hidden Features, a pretraining trick from RNNs
- C) Rapid Learning via Fine-tuning
- D) A reward-model distillation schedule
3. What is the first step in RLHF training?
- A) PPO training
- B) Model distillation
- C) Reward model training, which comes after preferences are gathered
- D) Collect human preference comparisons
4. What is the reward model in RLHF trained to predict?
- A) Exact response quality score
- B) Model accuracy
- C) The training loss over the next batch of tokens
- D) Human preference between responses
5. What is DPO?
- A) Deep Prompt Optimization
- B) Dynamic Parameter Optimization
- C) Distributed Policy Optimization
- D) Direct Preference Optimization
6. What is the main advantage of DPO over RLHF?
- A) Better accuracy
- B) Faster GPU throughput on the same amount of data
- C) No separate reward model needed
- D) Simpler architecture
7. What does PPO stand for in RLHF context?
- A) Proximal Policy Optimization
- B) Progressive Parameter Optimization
- C) Parallel Policy Optimization
- D) A checkpoint pruning policy for policy gradients
8. What is the purpose of the KL divergence penalty in RLHF?
- A) Improve accuracy
- B) Speed up training by shrinking every gradient step and skipping evaluation
- C) Prevent model from deviating too far from reference
- D) Reduce memory
9. What type of data is used for preference collection?
- A) Labeled classification data
- B) Paired comparisons: which response is better
- C) Translation pairs
- D) Question-answer pairs with a single gold response per question
10. What is a common issue with RLHF?
- A) Too expensive
- B) Reward hacking
- C) Slow convergence during the final weeks of pretraining
- D) Cost, reward hacking and slow convergence together
11. The standard RLHF pipeline order is:
- A) Reward model → SFT → PPO, which trains the policy before a reward exists
- B) PPO → SFT → reward model
- C) SFT → reward model training → PPO fine-tuning
- D) PPO → reward model → SFT
12. SFT comes before RLHF because:
- A) Reward models cannot be trained on raw unstructured text without an existing formatting step somewhere
- B) PPO requires GPU warm-up
- C) The policy must already follow the response format for preference comparisons to be meaningful
- D) The KL penalty needs it
13. DPO's loss increases:
- A) The reward model's accuracy
- B) The log-probability margin of preferred over rejected responses relative to the reference model
- C) The KL divergence between the policy and itself, without any bound or clipping mechanism at all
- D) The vocabulary size
14. "Reward hacking" is when:
- A) The policy exploits reward-model flaws to score high while producing bad outputs
- B) Humans mislabel data
- C) The GPU is overclocked
- D) The reward model is too small to fit on a single accelerator during training runs
15. Preference pairs are typically modeled with:
- A) The Bradley-Terry model
- B) Multi-class cross-entropy
- C) Mean squared error
- D) K-means clustering
16. The reference (frozen) model in DPO/PPO provides:
- A) Faster inference
- B) A KL anchor so the policy does not drift too far
- C) The reward signal that guides every single PPO update step end to end
- D) Data augmentation
17. RLAIF / Constitutional AI replaces (part of) human labels with:
- A) Random rewards
- B) AI-generated feedback guided by principles
- C) No feedback signal of any kind during training
- D) Test-time compute only
18. Typical preference datasets contain:
- A) Only benchmark questions reused from public eval suites
- B) Ten pairs
- C) Tens of thousands to millions of comparison pairs
- D) Only code snippets
19. A major preference-data quality risk is:
- A) Excessive GPU memory use during the annotation collection stage
- B) Inconsistent annotator labels (low inter-annotator agreement)
- C) Slow tokenization
- D) Large disk footprint
20. Best-of-N sampling with a reward model is:
- A) Inference-time alignment without retraining
- B) A PPO variant with a different clipping coefficient
- C) A tokenizer upgrade
- D) A distillation method
Answer Key¶
| Question | Answer | Explanation |
|---|---|---|
| 1 | D | Alignment shapes model behavior toward human preferences and values |
| 2 | A | RLHF = Reinforcement Learning from Human Feedback |
| 3 | D | RLHF starts by collecting human preference comparisons |
| 4 | D | The reward model learns to predict which response humans prefer |
| 5 | D | DPO = Direct Preference Optimization |
| 6 | C | DPO folds the reward model into the loss - no separate RM needed |
| 7 | A | PPO = Proximal Policy Optimization |
| 8 | C | The KL penalty keeps the policy near the reference model |
| 9 | B | Preferences come as paired comparisons of responses |
| 10 | D | Cost, reward hacking and slow convergence are all known RLHF issues |
| 11 | C | Pipeline: SFT -> reward model -> PPO fine-tuning |
| 12 | C | Preferences are only meaningful once outputs follow a consistent format |
| 13 | B | DPO widens the log-prob margin of chosen over rejected vs the reference |
| 14 | A | Reward hacking: high reward-model scores on bad outputs |
| 15 | A | Preference pairs are modeled with Bradley-Terry |
| 16 | B | The frozen reference model is the KL anchor |
| 17 | B | RLAIF/Constitutional AI uses AI feedback guided by principles |
| 18 | C | Preference datasets span tens of thousands to millions of pairs |
| 19 | B | Low inter-annotator agreement poisons preference data |
| 20 | A | Best-of-N aligns at inference time without retraining |
Need to Review?¶
Each question maps to the closest lesson for review:
- Questions 1-4, 7-8, 10-12, 14, 16, 20: 5203: Reinforcement Learning from Human Feedback — the three-stage SFT→RM→PPO pipeline, reward models trained on preference comparisons, the KL penalty anchored to the frozen reference, and reward hacking as RLHF's known failure mode; Q20's Best-of-N is now owned by 5206: Best-of-N and Rejection Sampling — the rerank contract, the exact log N − (N−1)/N KL price per request, the overoptimization curve an imperfect RM traces (proxy 0.5653→1.1663 monotone while gold peaks at N=4 and falls 0.5151 past it), and the rejection-sampling loop whose trained policy served raw (0.5438) beats the base policy reranked eight-way (0.4499)
- Questions 5-6, 13, 15: 5201: DPO (Direct Preference Optimization) Theory — the Bradley-Terry preference model and its derivation into DPO's loss, the no-reward-model advantage, and the log-probability margin of chosen over rejected
- Questions 9, 17-19: 5204: Preference Dataset Creation — paired-comparison collection, the 100k–1M+ dataset-scale table, inter-annotator agreement as the data-quality gate, and the RLAIF / Constitutional AI shift to AI-generated feedback