Picture a team building a multilingual AI helpline for a state government health scheme, meant to answer questions in Hindi, Tamil, Telugu, Bengali, and eight other languages, and required to refuse dangerous medical advice or engagement with self-harm content while staying genuinely useful for everything else. The standard recipe for shaping this kind of behavior, reinforcement learning from human feedback (RLHF), asks human annotators to compare pairs of model outputs and mark which one is safer, for every language, for every category of harmful query. That is thousands of annotators reading through graphic, disturbing, or manipulative model outputs, day after day, in twelve languages, just to produce the comparison labels the safety training needs. It is expensive, slow to extend to a new language, and it puts real psychological weight on the people doing the labeling. Investigative reporting in 2023 documented that exactly this kind of content-safety labeling work, for a major US lab's safety systems, had been outsourced to contractors in Kenya paid close to two dollars an hour to read some of the internet's worst text. Constitutional AI, introduced by Anthropic in December 2022 (Bai et al., "Constitutional AI: Harmlessness from AI Feedback"), was built specifically to relieve this bottleneck: not by inventing a new kind of model, but by changing where the harmlessness half of the training signal comes from.
Three ways to shape a pretrained model's behavior
A pretrained large language model is a next-token predictor, not yet an assistant. Three post-training recipes turn it into one, and they differ in exactly one place: where the "what counts as a good response" signal originates.
Instruction tuning alone means supervised fine-tuning (SFT) on a dataset of prompt-response pairs written or curated by humans. Stanford's Alpaca (Taori et al., 2023) is the clean example: LLaMA fine-tuned on 52,000 instruction-response pairs generated with the Self-Instruct method (Wang et al., 2022) and lightly filtered by humans. There is no preference model and no reinforcement learning. The model only ever sees "here is one correct response," never "response A is better than response B and here is roughly why." Its behavioral ceiling is whatever the demonstration set happened to cover.
RLHF adds a reward model trained on human pairwise comparisons over model outputs, then optimizes the policy against that reward model with reinforcement learning, PPO in the InstructGPT recipe (Ouyang et al., 2022). The underlying idea of learning a reward function from human preferences rather than hand-written rules predates language models: Christiano, Leike, Brown, Martic, Legg, and Amodei introduced it for Atari and robotics tasks in 2017. Applied to instruction-following, it lets a model learn relative judgments, not just imitation, which is why RLHF-tuned models generalize past any single demonstration. The cost is that every comparison, for every behavior category a lab cares about including harmlessness, needs a human judgment.
Constitutional AI keeps RLHF's machinery (SFT, a preference model, PPO) but replaces the harmlessness half of the human comparison data with AI-generated comparisons: a model ranks pairs of its own outputs against a written list of principles, the "constitution," and those AI-generated rankings train the preference model. Helpfulness preference data still comes from humans, reused from prior RLHF-style helpful-only training. This is why the CAI paper's subtitle is "harmlessness from AI feedback": it is RLHF's own pipeline, run with RLAIF (reinforcement learning from AI feedback) for the harmlessness portion specifically, not a different training algorithm.
The mechanism, side by side
The diagram below traces all three pipelines from the same pretrained model to a deployed one, and marks, at every stage, whether the supervision came from a human, from the constitution-guided AI feedback process, or is simply an unsupervised pipeline stage.
Comparing the three head to head
The table collapses the diagram into the dimensions that actually matter when a lab is choosing between these recipes.
| Dimension | SFT-only | RLHF | Constitutional AI / RLAIF |
|---|---|---|---|
| Behavior-shaping signal | Human demonstrations (imitation) | Human pairwise comparisons | Human comparisons (helpfulness) + AI comparisons against a written constitution (harmlessness) |
| Human labels needed for harmlessness specifically | Implicit only, whatever the demos happen to cover | Full volume, every comparison | None; replaced by AI feedback |
| Learns relative preferences beyond the seen examples | No, pure imitation | Yes, via the reward model | Yes, via the preference model, same RL step as RLHF |
| Where the safety standard lives | Implicitly inside each example | Implicitly inside the aggregate of anonymous labeler judgments | Partly explicit, in a readable document, plus the model's application of it |
| Representative example | Alpaca (Taori et al., 2023) | InstructGPT (Ouyang et al., 2022) | Claude (Bai et al., 2022) |
Worked example: what "less reliance on human labelers" is actually worth
The scalability claim behind Constitutional AI is precise enough to put numbers on. Suppose a lab needs 100,000 comparison pairs total to train a preference model, split into helpfulness comparisons and harmlessness comparisons. Assume, purely for this exercise, that a human labeler takes 3 minutes per comparison on average and is paid ₹1,250/hour (about $15/hour, a round illustrative figure, not a reported industry number), giving a unit cost of $0.75 per label and a throughput of 20 labels per labeler-hour. The lab has 50 labelers working 8-hour days.
Under RLHF, every one of the 100,000 comparisons, helpfulness and harmlessness alike, needs a human judgment. Under Constitutional AI, only the helpfulness comparisons need a human; the harmlessness comparisons are generated by the AI feedback process at negligible marginal human cost. The function below computes cost and calendar time for both scenarios given the harmlessness share of the total.
def labeling_cost(total, harmlessness_share, unit_cost=0.75,
labels_per_hour=20, workers=50, hours_per_day=8):
harmlessness = total * harmlessness_share
helpfulness = total - harmlessness
rlhf_labels = total # RLHF: humans label both categories
cai_labels = helpfulness # CAI: humans label only helpfulness
def cost_days(n_labels):
cost = n_labels * unit_cost
hours = n_labels / labels_per_hour
days = hours / (workers * hours_per_day)
return cost, days
return cost_days(rlhf_labels), cost_days(cai_labels)
rlhf_result, cai_result = labeling_cost(100000, harmlessness_share=0.5)
print(rlhf_result)
print(cai_result)
Tracing it by hand: RLHF needs all 100,000 labels, so cost = 100,000 × $0.75 = $75,000, and labeler-hours = 100,000 / 20 = 5,000 hours, which at 50 workers × 8 hours = 400 labeler-hours/day takes 5,000 / 400 = 12.5 days. Constitutional AI needs only the 50,000 helpfulness labels (a 50% harmlessness share means helpfulness is also 50,000), so cost = 50,000 × $0.75 = $37,500 and time = 50,000 / 20 / 400 = 6.25 days. The code prints exactly (75000.0, 12.5) and (37500.0, 6.25), matching the hand trace. Constitutional AI cuts both the human-labeling bill and the calendar time in half, because it eliminated exactly the half of the data that needed a human in the first place. That the two savings percentages land on the same 50% is not a coincidence, and the next section pushes on exactly why.
What Constitutional AI does and does not guarantee
A common misconception is that the "constitution" acts like a runtime rulebook: a checklist the deployed model consults before it answers, similar to a content filter sitting in front of an API. It does not. The constitution is used only during training, to generate the AI feedback that shapes the preference model, which in turn shapes the policy through reinforcement learning. Once training finishes, the constitution is gone from the deployed system entirely; there is no rule-checking step at inference time that looks anything up. What ships is a set of learned weights that tend to behave the way the constitution encouraged during training, on the distribution of prompts that training happened to cover. This is exactly why adversarial jailbreak prompts still work against constitutionally-trained models: an attacker is not defeating a rule-checker, because there is none to defeat; they are finding an input outside the training distribution where the learned tendency simply does not transfer. Confusing "trained against a written standard" with "hard-constrained by a written standard at runtime" is the single most consequential misunderstanding of what Constitutional AI buys a deployment team.
What the technique does tend to provide: consistency at scale, since one AI feedback model applies the same written standard to every example, where thousands of human labelers vary by mood, culture, fatigue, and personal judgment, a documented source of noisy reward models in pure RLHF; reduced human exposure to harmful content, since fewer people need to read large volumes of disturbing material to produce training labels; and a more auditable statement of intent, since a researcher can read the constitution and see what principles the harmlessness signal was trying to instill, unlike a reward model trained purely from anonymous pairwise clicks, whose implicit standard has to be reverse-engineered after the fact.
What it does not guarantee: runtime robustness, for the reason argued above; correctness of the constitution itself, since a vague, incomplete, or internally conflicting principle gets resolved by whatever the RL optimization finds convenient on a given prompt, not necessarily what the authors intended, so gaps or ambiguity in the document become gaps or ambiguity in the model; freedom from reward hacking, since the RL step still optimizes a learned preference model, and a learned proxy for "good" can be gamed the same way a human-trained one can, a case of Goodhart's law, with sycophantic or superficially agreeable outputs that score well on the preference model without being genuinely correct documented in constitutionally-trained systems as well as in RLHF-only ones (Perez et al., 2022; Sharma et al., 2023); and an escape from the grading-the-grader problem, since the model producing the AI feedback is itself a language model whose application of every principle has never been independently verified against ground truth, so scalable oversight this way still rests on an unproven assumption that the feedback model's judgment is trustworthy. Finally, the technique says nothing about whose values populate the document: the constitution encodes the choices of whichever lab or committee wrote it, and swapping the authors changes the target the model is trained toward. Constitutional AI is a scalability and consistency improvement over how the harmlessness signal is produced, not a proof of alignment.
In production terms: Claude models are the public example of the Constitutional AI lineage; GPT-3.5 and the InstructGPT line are the public example of the RLHF lineage the technique was built to extend; and early open chat models like Alpaca show what SFT alone, with neither preference model nor RL, looks like on its own. Most frontier systems today layer several of these ideas and additional runtime safety systems (classifiers, rate limits, monitoring) on top; nothing here claims that any single technique, on its own, is what a deployed product actually ships with.
Active recall
Attempt each question before reading the answer beneath it.
Q1. Why can't a lab just skip constitutional training altogether and instead hard-code the constitution as an if/else content filter that runs on every model output at inference time? What would be lost?
A1. A hard-coded filter only catches patterns its author anticipated, typically keyword or pattern matching, and cannot handle the combinatorial variety of paraphrase, indirect requests, multi-turn buildup, and context-dependent harm that natural language allows. Training the behavior into the model's weights lets it generalize the underlying principle to phrasings never explicitly listed, the same reason RLHF generalizes past its literal demonstration set. A runtime filter is useful defense-in-depth layered on top of a trained model, not a substitute for training the behavior in; real deployments typically run both.
Q2. Using labeling_cost() from the worked example, with the same $0.75/label, 20 labels/hour, 50-worker, 8-hour-day assumptions, suppose the harmlessness share of the 100,000 total comparisons is 70% instead of 50% (70,000 harmlessness, 30,000 helpfulness). Recompute RLHF's and CAI's human-labeling cost and time, and explain whether RLHF's numbers change.
A2. RLHF still needs a human judgment for all 100,000 comparisons regardless of the split between categories, so its cost and time are unchanged: $75,000 and 12.5 days. Constitutional AI now needs humans for only the 30,000 helpfulness comparisons, so cost = 30,000 × $0.75 = $22,500, and time = 30,000 / 20 / 400 = 3.75 days. Compared to RLHF, that is a 70% reduction in both cost and time, exactly equal to the new harmlessness share. This is not a coincidence: CAI's human-labeling cost is total × helpfulness_share × unit_cost, a quantity completely decoupled from how large the harmlessness portion grows. Growing the harmlessness share does not cost CAI anything extra in human labor; it only makes RLHF look relatively more expensive by comparison.
Q3. A team ships a purely instruction-tuned model, fine-tuned on 52,000 curated demonstrations similar to Alpaca. A user asks a harmful question phrased in a way that never appeared, even approximately, in those 52,000 examples. What can we say about the model's likely behavior, and why doesn't simply adding more SFT data fully fix the underlying limitation?
A3. If no demonstration resembles the phrasing, there is no training signal steering the model away from it there; its behavior on that exact input is essentially whatever the pretrained base model's statistics produce, which could be fine or could be harmful, with no guarantee either way. Adding more SFT data narrows the gap but never eliminates the underlying limitation: SFT can only show single correct answers, never a relative judgment of "this response is better than that one, and here is roughly why." RLHF and Constitutional AI both add exactly that relative-preference signal via a reward or preference model, which is why they generalize further from a fixed dataset than SFT alone, though they move the coverage problem to the comparison set and the constitution rather than eliminating it.
Q4. True or false: "Because Claude's Constitutional AI training used AI-generated harmlessness labels, no human ever needs to review Claude's outputs for safety." Justify your answer.
A4. False, for two reasons. First, this conflates training-time labels with deployment-time monitoring; production systems still run separate content moderation, red-teaming, and incident response on live traffic regardless of how the base model was trained. Second, the grading-the-grader limitation discussed above means human judgment does not disappear from CAI, it moves: humans wrote and iterated on the constitution, and humans validated the feedback model's outputs at some point in development. That is a real reduction in per-comparison labeling volume, not an elimination of human oversight.
Q5. The RL stage of both RLHF and Constitutional AI typically uses PPO against a learned preference or reward model. Given that, what exactly does the "RLAIF" in Constitutional AI change versus what stays identical to RLHF?
A5. What stays the same: the overall pipeline shape (SFT, then a preference or reward model, then RL against that model) and the RL algorithm used to optimize the policy. What changes is narrower: only the origin of the comparison labels used to train the preference model for the harmlessness portion, from a human annotator's judgment to a model's judgment against the written constitution, which is literally what "AI feedback" names. The helpfulness portion of the data, and the RL step itself, are essentially unchanged from standard RLHF, which is why this chapter frames Constitutional AI as a change in where supervision comes from, not a different training algorithm.
Q6. A colleague argues: "instruction-tuning, RLHF, and Constitutional AI form a strict quality ordering, SFT-only less than RLHF less than CAI, so any lab should always default to CAI." Identify one flaw.
A6. The argument conflates "requires less human harmlessness labeling" with "produces a safer or better model," which the does/doesn't-guarantee discussion shows are not the same claim. CAI's advantage is economic and logistical, scalability, reduced human exposure, and consistency, not proof of superior safety properties; it inherits RLHF's reward-hacking and sycophancy risks, adds a new dependency on the feedback model's judgment being trustworthy, and its quality is bounded by how good the written constitution actually is. A small, well-resourced team writing careful principles for a narrow domain might do just as well, or better, with RLHF-scale human labels than with a rushed or poorly specified constitution. The right choice depends on whether the actual bottleneck is labeling volume and cost, which favors CAI, or constitution-design maturity for a narrow, well-understood task, which may favor careful human-labeled RLHF or even well-curated SFT.
Think About It
Think about this: How would you explain constitutional ai and ai safety to a friend who has never seen a computer? What real-world analogy would you use? Imagine you had to build a system using these concepts — what would be your first step? Try this: before moving on, write down three things you learned and one question you still have.
Key Takeaways — Summary and Recap
Let us recap what we covered: the core ideas behind constitutional ai and ai safety, how they connect to real-world applications, and why they matter for your journey in computer science. Remember these key points as you move forward. For competitive exam preparation (CBSE, JEE, BITSAT), focus on understanding the WHY behind each concept, not just the WHAT.