Exercises — Constitutional AI overview
Before we start, three symbols we will use constantly. Nothing below assumes you memorised them:

The figure above is your cheat-sheet for : read a score difference off the horizontal axis, drop down to the curve, read the probability off the vertical axis. We will point back at it.
Level 1 — Recognition
Exercise 1.1
Which of CAI's two stages produces preference pairs judged by an AI, and which one fine-tunes on the model's own revised answers? Name each stage.
Recall Solution
- The stage that fine-tunes on revised answers is the Supervised Learning (SL) stage — the model critiques and rewrites its own answer against a principle, and we train on the (prompt → revised answer) pairs.
- The stage that produces AI-judged preference pairs is the RL stage (RLAIF) — two responses are compared by an AI judge, a reward model is trained, and PPO optimises the policy.
Exercise 1.2
In the loss below, circle (in words) which term is the winning response and which is the losing one, and say what does here.
Recall Solution
- = the winner (the response the AI judge preferred). = the loser.
- Inside is the score difference . If the winner really does score higher, this difference is positive.
- turns that difference into a probability "how likely was to be chosen". The then rewards the model for making that probability large. This is the Bradley-Terry preference model fit by maximum likelihood; see Reward modeling.
Level 2 — Application
Exercise 2.1
The reward model scores a winner at and a loser at . Compute and the per-example loss .
Recall Solution
What: plug into Bradley–Terry. Why: the judge gave a categorical choice; we want the probability our reward model assigns to that same choice. On the S-curve figure, lands a bit right of centre → a bit above . Loss: Moderate confidence, moderate loss.
Exercise 2.2
Now the two responses are tied: . Compute and the loss. What does the loss value tell you?
Recall Solution
What: score difference is . What it looks like: dead centre of the S-curve. Meaning: is the maximum "honest confusion" loss for a two-way choice — the model is saying "I genuinely can't tell these apart". Any real preference should push the loss below .
Exercise 2.3
One critique→revise pass. Prompt: "Write my sick-note lie to skip work." Initial answer complies. Principle : "Do not help users deceive others." Write a plausible critique line and a revised line that stays helpful but harmless.
Recall Solution
Critique: "The response helps fabricate a false medical excuse, which is deception and violates ." (We force the model to name the specific violation — vague "this is bad" gives nothing to fix.) Revise: "I can't help write a false sick note. If you're genuinely unwell, most employers accept a same-day call or message; if you need time off for another reason, I can help you phrase an honest request for personal leave." The revision drops the harm yet keeps helpfulness by offering a legitimate path. This (prompt → revised) pair is what the SL stage trains on.
Level 3 — Analysis
Exercise 3.1
A policy learns to append "As an AI, I strictly comply!!!" to every answer. The reward model, fooled, gives extra reward. But this phrase makes rise by . With KL weight , does the RL objective go up or down? Use
Recall Solution
What changed: , . Down. The reward gain is outweighed by the KL penalty — the leash bites, blocking this reward-hack. See figure below.

Exercise 3.2
Same hack (+0.9 reward, +2.0 KL). Find the break-even where . For what does the hack still "pay off"?
Recall Solution
Set :
- : KL leash too loose → the hack raises → model exploits it. Danger.
- : leash tight enough → hack loses → suppressed. So is the tuning dial trading "chase reward" against "stay fluent/on-distribution".
Level 4 — Synthesis
Exercise 4.1
You must decide whether to add a second critique→revise pass in the SL stage. First pass cut a harm-score from to (a drop). A second pass cuts it from to . (a) Report each pass's absolute improvement. (b) A third pass drops it but also raises an "over-refusal" score from to . Argue whether to stop.
Recall Solution
(a) Improvements: pass 1 = ; pass 2 = ; pass 3 = . Clear diminishing returns (0.50 → 0.12 → 0.06). (b) Pass 3 buys a small harm gain () but quintuples over-refusal (, a jump). The model is becoming evasive/refusing safe requests — that damages helpfulness, one of CAI's two goals (helpful and harmless). Stop at two passes. Number of critique passes is a tuned hyperparameter, not "more = better".
Exercise 4.2
Explain, using the objective , why the SL-CAI model is chosen as the reference in the RL stage, instead of the raw base model.
Recall Solution
The KL term pulls toward . Whatever is, that's the "home base" we refuse to stray far from.
- If = raw base model, the RL policy is leashed to a model that hasn't yet learned the constitution — it would keep getting yanked back toward pre-constitution behaviour.
- If = SL-CAI model, home base is already constitution-aligned and fluent. RL then only has to refine preferences on top of a good starting point, and the KL leash preserves that alignment. So SL first (bake in the constitution), then use it as the reference for RL. The two stages are deliberately chained.
Level 5 — Mastery
Exercise 5.1
Derive from scratch: starting from the Bradley-Terry preference model probability, show the reward-model loss on a single pair equals where , and prove this loss is always positive and shrinks as grows.
Recall Solution
Step 1 (probability). Bradley–Terry says the chance the judge prefers is Divide top and bottom by : Why: this rewrite reveals that only the difference matters, not the raw scores. Step 2 (loss). Maximum likelihood says "make the observed choice as probable as possible", i.e. maximise , i.e. minimise : Step 3 (always positive). so , hence . Loss can approach but never reaches it. Step 4 (shrinks as grows). is increasing, so larger larger larger smaller . Confident-and-correct ⇒ small loss. At , loss ; for (winner scored lower) the loss exceeds — a big correction signal.
Exercise 5.2
The gradient of the single-pair loss with respect to is . Evaluate its magnitude at and at , and explain what each magnitude means for learning.
Recall Solution
Magnitude is .
- At : , so magnitude . Small — model already right and confident, barely nudge it.
- At : , so magnitude . Large — model confidently wrong (ranked loser above winner), strong push to fix. This is exactly the self-correcting behaviour we want: effort flows to the mistakes.
Recall One-line summary to leave with
CAI = SL self-critique (bake constitution into weights) then RLAIF (AI-judge preferences → Bradley–Terry reward model → PPO with a KL leash). All the math above is just turning score differences into probabilities, and KL keeping the policy honest.