Overview

8 Alignment through principles: Constitutional AI

Constitutional AI is presented as a response to the limits of reinforcement learning from human feedback: human preference labels are costly, slow to refresh, inconsistent across annotators, and often biased toward harmless refusals that reduce usefulness. The chapter frames alignment as matching how agents rank outcomes, then argues that written principles are a better training signal than pairwise preferences because they make the intended behavior explicit and reusable across many situations, including ones labelers never saw. This is especially important for real products, where new domains and edge cases keep appearing faster than human labelers can keep up.

The core recipe replaces per-comparison human labeling with an AI critic guided by a constitution, a small set of plain-language principles such as being helpful, honest, and harmless. In the first phase, the model generates responses, critiques them against randomly sampled principles, and revises them; the revised answers become supervised fine-tuning data. In the second phase, the model compares candidate responses using constitution-conditioned AI preferences, trains a reward model on those preferences, and then runs the usual PPO loop. The result is a scalable form of AI feedback that preserves the overall RLHF machinery while shifting the labor from labeling individual examples to writing and maintaining a concise, testable constitution.

The chapter then broadens the idea into a practical framework for policy and product alignment. OpenAI’s Model Spec is treated as a more production-ready version of constitution-as-code, with a chain of command that clarifies which instructions override others and with clauses that can be turned into tests. It also introduces model spec midtraining as a way to reduce shallow alignment by teaching the model the reasons behind the spec before fine-tuning on demonstrations. The main takeaway is that Constitutional AI is powerful, but not complete: it works best when paired with red teaming, calibration, and ongoing spec maintenance so the written rules stay aligned with changing products and model behavior.

The Constitutional AI two-phase pipeline. Phase 1 generates critique-and-revise traces from a helpful-only baseline guided by the constitution, then fine-tunes the pretrained model on the <prompt, revised responses> pairs to produce the SL-CAI model. Phase 2 samples paired responses from the SL-CAI model, asks the model to pick the preferred response under the constitution, trains a reward model on those AI preferences, and runs PPO with a KL penalty against the SL-CAI reference. The downstream RL machinery is identical to InstructGPT.
This chart shows harmlessness vs helpfulness Elo scores (higher is better) computed from human labelers’ model comparisons. It shows a Pareto improvement where Constitutional AI is both more helpful and more harmless than standard RLHF.
The OpenAI Model Spec chain of command. Five nested authority levels, from Root at the center out through System, Developer, User, and Guidance, surrounded by an outermost band for content that carries no authority (assistant and tool messages, quoted or untrusted text). A higher-authority level overrides every level outside it. Content in the outer no-authority band is treated as data, never as instructions, unless a higher level explicitly delegates authority to it.
Model spec midtraining inserted between pretraining and alignment fine-tuning. The pretrained model first trains on synthetic documents about the spec (articles, dialogues, examples). The midtrained model then proceeds through the standard alignment fine-tuning steps (SFT on critique-revised demonstrations, optionally RLAIF). The midtrained model generalizes the spec to held-out prompts in ways models without MSM do not.
Model spec midtraining data generation pipeline; it takes a model spec and generates data using a teacher model to write out background documents for MSM.
Where each alignment technique acts in the model lifecycle. Model spec midtraining acts between pretraining and post-training, on documents about the spec. RLHF, Constitutional AI / RLAIF, and deliberative alignment are done during post-training time, all split into the SFT and RL phases. Deliberative alignment enables the model to reason over principles while generating.

Summary

  • RLHF is bounded by the human labeler workforce, which does not scale. The shift from preferences to principles changes where the signal comes from.
    • A human preference label has a low signal to tell the reward model why one response is better than another.
    • A principle is a written statement of what is wanted. An AI critic can apply it to any output, including outputs no human labeler ever saw, and generate as many critiques and preferences as the inference budget allows.
  • Alignment is the degree of overlap between the way two agents value different outcomes. For example, if agent A completely internalizes the desires of agent B—i.e., the only desire A has is to see B’s desires satisfied—we could say that agent A is maximally aligned with agent B.
  • Alignment targets three axes at once—helpful, honest, and harmless (HHH). Human labelers optimizing for harmlessness prefer evasive refusals because evasion is never penalized, so the reward model learns evasion-as-harmlessness and the policy ends up less helpful than intended.
  • Constitutional AI is a two-phase recipe that replaces the human labeler with an AI critic guided by a written constitution.
    • SL-CAI: This maps to the supervised fine-tuning (SFT) stage of Instruct GPT. It generates revised responses based on randomly drawn principles; the pretrained model is fine-tuned on the revised responses.
    • RL-CAI: This maps to the RLHF stage of Instruct GPT. It trains a reward model based on AI preferences conditioned on the constitution instead of human preferences, followed by PPO in RLHF.
  • RLAIF (reinforcement learning from AI feedback) is a one-line substitution into the RLHF pipeline. The reward model and PPO loop are unchanged. Only the source of the preference signal changes from human preferences to AI labeler preferences conditioned on the constitution. Preference data scales with inference budget rather than labeler headcount.
  • The recipe rests on weak-to-strong supervision. The supervisor does not need to exceed the model it trains, only encode the right signal on the dimensions that matter. This is what lets a model supervise a model.
  • The AI labeler is only useful if it is calibrated against human judgment, because its biases are amplified through the optimization loop. Three failure modes appear when the constitution is the only signal: coverage gaps (unwritten dimensions go unconstrained), stylistic leakage (the labeler's own tone and format preferences enter the labels), and principle-application drift (interpretation of vague principles shifts across prompts).
  • OpenAI's Model Spec is the productized form of a constitution that is detailed, hierarchical, versioned, and published. Its chain of command resolves conflicts between instructions at different authority levels (root, system, developer, user, guideline), addressing the policy pillar that principles alone handle weakly.
  • A team can align its own model to a custom spec without a labeler workforce: draft the spec from observed production failures, distill it with the critique-and-revise loop (running SFT only, and skipping PPO, still captures most of the lift), and test the result against the spec.
  • Model spec midtraining inserts a stage between pretraining and fine-tuning that trains the model on synthetic documents about the spec. Teaching the model the reasoning behind each clause lets it generalize the spec to prompt the demonstration data never covered.
  • Deliberative alignment teaches the model how to reason over principles and specs using the chain of thought. This training carries over to inference time.
  • Model spec midtraining inserts a stage between pretraining and fine-tuning that trains the model on synthetic documents about the spec. Teaching the model the reasoning behind each clause lets it generalize the spec to prompt the demonstration data never covered.
  • Constitutional AI maps onto the three pillars of alignment: direct for principled alignment (the constitution is the principles), partial for policy alignment (encodable as principles, but with interpretive risk), and personality alignment inherits the AI critic's style priors.

FAQ

What is Constitutional AI in this chapter?Constitutional AI is a training recipe that uses a written constitution of principles and an AI critic to generate critiques, revisions, and preferences. It replaces per-comparison human labeling with model-generated feedback while still using familiar RLHF-style stages like supervised fine-tuning and PPO.
Why does the chapter say RLHF has a scaling problem?RLHF depends on human labelers to produce preference comparisons, which are expensive, slow to refresh, and hard to scale across new product surfaces, domains, and failure modes. As the number of situations grows, the labeling workforce becomes the bottleneck.
What is the helpfulness-honesty-harmlessness trade-off?The three goals are not fully independent: a model can be very helpful but unsafe, very harmless but evasive, or very honest in ways that may still cause harm. The chapter emphasizes that alignment has to manage tension among these three axes rather than optimize only one of them.
Why can harmlessness training lead to over-refusal?Human labelers often prefer safe, evasive answers on sensitive prompts, so the model learns that refusing is the easiest way to score well. This can produce blanket refusals even when the question is legitimate and answerable, reducing helpfulness.
What is a constitution in Constitutional AI?A constitution is a written list of principles the model uses to critique and improve its own outputs. Each principle is a short natural-language statement about values, constraints, or behaviors, such as avoiding fabricated facts or refusing politely.
What are the two phases of Constitutional AI?Phase 1 is SL-CAI, where the model generates, critiques, and revises responses, then fine-tunes on the revised outputs. Phase 2 is RL-CAI, where the model compares two candidate responses under the constitution, trains a reward model on those AI preferences, and then runs PPO.
How is Constitutional AI different from ordinary RLHF?RLHF uses human labelers for preference data, while Constitutional AI uses an AI labeler guided by written principles. The optimizer and PPO machinery stay largely the same, but the training signal comes from synthetic critique and preference generation instead of human comparisons.
Why is a written constitution better than only pairwise preferences?Pairwise preferences show which response was chosen, but not the explicit reasoning behind the choice. A written principle tells the critic what to look for and can be applied to outputs the human labelers never saw, making the signal more reusable and scalable.
What is the OpenAI Model Spec, and how does it relate to a constitution?The Model Spec is a more detailed, hierarchical, and testable behavioral specification that functions like constitution-as-code. It extends the idea beyond general values to include chain of command, refusal handling, tone, and policy categories that can be versioned and tested.
What is model spec midtraining and why does it matter?Model spec midtraining trains the model on synthetic documents about the spec before alignment fine-tuning. It helps prevent shallow alignment, where the model learns surface patterns from demonstrations but not the underlying principles, improving generalization to new prompts.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • LLM Evaluation and Alignment, The Foundational Ideas ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • LLM Evaluation and Alignment, The Foundational Ideas ebook for free