Goals of Alignment
Last edited: October 10, 2026- user preferences: do what the user wants in a way they like
- safety: preventing models from causing harm during training and deployment
- creator preferences: when the model developer wants the model to believe
Many Graders
Last edited: October 10, 2026Modern AI pipelines uses a joint grader infrastructure:
- Helpfulness
- Honestly
- Safety
- Sycophancy
- Format and length
- Code correctness
- RLHF
and they are jointly summed and then produced as the output.
Compound Systems
- classifiers: small, fast models that score inputs and outputs for policy violation
- monitoring: sampled human review, anomalously detection
Human feedbacks are often not correlated among each other nor with human judgement.
Adversarial testing
- internal red teams: domain experts probe pre-release checkpoints, slow, expensive…
- bug bounties: check a deployed system under standard rules of engagement
- automated red teaming: attacker model searches for prompts that make a target fail
A/B testing, try to see how many people use the app
Reinforcement Learning with Human Preferences
Last edited: October 10, 2026constituents
- policy \(y \sim \pi_{\theta}\qty(\cdot|x)\)
- reward \(R_{\phi}\qty(x,y) \to \mathbb{R}\)
requirements
- give a prompt, we sample two rollouts \(y_1, y_2 \sim \pi_{\theta}\qty(\cdot | x)\)
- labeler picks the better one \(y_{2} \succ y_{1}\)
- comparisons go and train a reward model \(r_{\phi}\qty(x,y)\)
additional information
training reward models
Formally, we can model the preferability of the stitutaion with bradly-terry:
\begin{equation} p\qty(y_{w} \succ y_{l} | x) = \sigma \qty(r_{\phi}\qty(x, y_{w}) - r_{\phi}\qty(x, y_{l})) \end{equation}
You can then perform MLE on this with a Bernoulli distribution to train your \(r_{\phi}\).
SU-CS224N MAY022024
Last edited: October 10, 2026Zero-Shot Learning
GPT-2 is able to do many tasks with not examples + no gradient updates.
Instruction Fine-Tuning
Language models, by default, are not aligned with user intent.
- collect paired examples of instruction + output across many tasks
- then, evaluate on unseen tasks
~3 million examples << n billion examples
dataset: MMLU
You can generate an Instruction Fine-Tuning dataset by asking a larger model for it (see Alpaca).
Pros + Cons
- simple and straightforward + generalize to unseen tasks
- but, its EXPENSIVE to collect ground truth data
- ground truths maybe wrong
- creative tasks may not have a correct answer
- LMs penalizes all token-level mistakes equally, but some mistakes are worse than others
- humans may generate suboptimal answers
Human Preference Modeling
Imagine if we have some input \(x\), and two output trajectories, \(y_{1}\) and \(y_{2}\).
SU-CS329H OCT192026
Last edited: October 10, 2026Key Sequence
Notation
New Concepts
Important Results / Claims
why not prompting
Even if its fast, no training needed, but its still not good for complex / nuanced behaviors. Models stop following long prompts, and rewards models are very very specific.
“Articulability”
