Skip to content
ImagineWorld

Constitutional AI — RLHF Book Chapter 13

node_idnode-webpub_rlhfbook-com-c-13-constitutional-ai
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesrlhf-book-ch13-cai, lambert-cai
statusactive
entropymedium
manifoldworld
domainimagineworld.net
authorityguides
layercorpus
publication_classweb_publication
web_urlhttps://rlhfbook.com/c/13-cai
web_publisherNathan Lambert (RLHF Book)
web_published_at2024
peer_review_venueRLHF Book (online, free)
paper_titleConstitutional AI — RLHF Book Chapter 13
paper_authorsNathan Lambert
paper_author_affiliationsAI2
source_htmlorganism/imagineworld/corpus/13_governance-sealing/by_article/rlhf-book-chapter-13-constitutional-ai/source/rlhfbook-com-c-13-cai.html
ocr_sourceweb_html_extract
ocr_quality_classtext_extracted
extraction_toolagent-00-manual-ingest
extraction_pipeline_versionworld-ingest-web-html-prompt-template-v1.0
extracted_at2026-05-16
real_utc_via_date_commandtrue
math_preserved_as_latexfalse
figures_extractedfalse
references_structurally_parsedfalse
pillar_membershipA — constitutional AI, RLAIF, harmlessness, and alignment recipes
node_5c_binding{"anchor":"epistemic","axes":{"content":"Comprehensive practitioner-oriented treatment of Constitutional AI, covering self-critique, revision, RLAIF, and syn…
distill_corpus_weight3
distill_corpus_tier0
distill_relevance_gapsgap-9-cognitive-training-and-alignment
training_signal_rolecai_practitioner_synthesis_anchor
training_signal_typetier_0_constitutional_for_cai_practitioner_reference
validation{"filename_must_equal_uuid":true,"verbatim_body_from_source":false,"math_preserved_as_latex":false,"citation_graph_extracted":false,"hash_chain_intact":true}
created_at2026-05-16
updated_at2026-05-16
pillar_normalizedA-constitutional
compared_byworld-comparison-pillar-a-predictive-processing-and-bayesian-cognition
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationinferencesystems/organism/CONSTITUTION
evidence_bundleworld-bundle-paper
local graph

Constitutional AI — RLHF Book Chapter 13

Section titled “Constitutional AI — RLHF Book Chapter 13”

Author: Nathan Lambert Publisher: RLHF Book (online, free) URL: rlhfbook.com/c/13-cai Published: 2024 Source: HTML text extraction via agent-00-manual-ingest; re-extracted 2026-10-09 from rlhfbook.com/c/12-synthetic-data#constitutional-ai — the online book now treats Constitutional AI as a section of its Synthetic Data & Distillation chapter, and the old chapter-13 address redirects there. Footnote numbers are the book’s own bibliography numbers.


The method of Constitutional AI (CAI), which Anthropic uses in their Claude models, is the earliest documented, large-scale use of synthetic data for RLHF training. Constitutional AI involves generating synthetic data in two ways:

  1. Critiques of instruction-tuned data to follow a set of principles like “Is the answer encouraging violence?” or “Is the answer truthful?” When the model generates answers to questions, it checks the answer against the list of principles in the constitution, refining the answer over time. Then, the model is fine-tuned on this resulting dataset.
  2. Generating pairwise preference data by using a language model to answer which completion was better, given the context of a random principle from the constitution (similar to research for principle-guided reward models1). Then, RLHF proceeds as normal with synthetic data, hence the RLAIF name.

Largely, CAI is known for the second half above, the preference data, but the methods introduced for instruction data are used in general data filtering and synthetic data generation methods across post-training.

CAI can be formalized as follows.

By employing a human-written set of principles, which they term a constitution, Bai et al. 2022 use a separate LLM to generate artificial preference and instruction data used for fine-tuning2. A constitution C\mathcal{C} is a set of written principles indicating specific aspects to focus on during a critique phase. The instruction data is curated by repeatedly sampling a principle ci∈Cc_i \in \mathcal{C} and asking the model to revise its latest output yiy^i to the prompt xx to align with cic_i. This yields a series of instruction variants {y0,y1,⋯ ,yn}\{y^0, y^1, \cdots, y^n\} from the principles {c0,c1,⋯ ,cn−1}\{c_{0}, c_{1}, \cdots, c_{n-1}\} used for critique. The final data point is the prompt xx together with the final completion yny^n, for some nn.

The preference data is constructed in a similar, yet simpler way by using a subset of principles from C\mathcal{C} as context for a feedback model. The feedback model is presented with a prompt xx, a set of principles {c0,⋯ ,cn}\{c_0, \cdots, c_n\}, and two completions y0y_0 and y1y_1 labeled as answers (A) and (B) from a previous RLHF dataset. The new data point is generated by having a language model select which output (A) or (B) is both higher quality and more aligned with the stated principle. In earlier models this could be done by prompting the model with The answer is:, and then looking at which token (A or B) had a higher probability, but now this is more commonly handled by a model that’ll explain its reasoning and then select an answer – commonly referred to as a type of generative reward model3.

There are many related research directions and extensions of Constitutional AI, but few of them have been documented as clear improvements in RLHF and post-training recipes.

  • OpenAI has released a Model Spec4, which is a document stating the intended behavior for their models, and stated that they are exploring methods for alignment where the model references the document directly (which could be seen as a close peer to CAI). OpenAI has continued to update their spec and trained its reasoning models such as o1 with a method called Deliberative Alignment5 to align the model while referencing these safety or behavior policies.
  • Anthropic has continued to use CAI in their model training, updating the constitution Claude uses6 and experimenting with how population collectives converge on principles for models and how that changes model behavior when external groups create principles on their own and then share them with Anthropic to train the models7.
  • The open-source community has explored replications of CAI applied to open datasets8 and for explorations into creating dialogue data between LMs9.
  • Other work has used principle-driven preferences or feedback with different optimization methods. Sun et al. 202310 use principles as context for the reward models, which were used to train the Dromedary models1. Glaese et al. 202211 use principles to improve the accuracy of human judgments in the RLHF process. Liu et al. 202512 train a reward model to generate its own principles at inference time, and use these to deliver a final score. Franken et al. 202413 formulate principle-following as a mutual information maximization problem that the pretrained model can learn with no labels.
  1. Z. Sun et al., “SALMON: Self-alignment with principle-following reward models,” in The twelfth international conference on learning representations, 2024. Available: https://openreview.net/forum?id=xJbsmB8UMx ↩ ↩2

  2. Y. Bai et al., “Constitutional ai: Harmlessness from ai feedback,” arXiv preprint arXiv:2212.08073, 2022. ↩

  3. D. Mahan et al., “Generative reward models,” 2024, Available: https://www.synthlabs.ai/pdf/Generative_Reward_Models.pdf ↩

  4. OpenAI, “Introducing the model spec.” May 2024. Available: https://openai.com/index/introducing-the-model-spec/ ↩

  5. M. Y. Guan et al., “Deliberative alignment: Reasoning enables safer language models,” arXiv preprint arXiv:2412.16339, 2024. ↩

  6. Anthropic, “Claude’s constitution.” Accessed: Feb. 07, 2024. [Online]. Available: https://www.anthropic.com/news/claudes-constitution ↩

  7. D. Ganguli et al., “Collective constitutional AI: Aligning a language model with public input.” Anthropic, 2023. ↩

  8. S. Huang et al., “Constitutional AI recipe,” Hugging Face Blog, 2024. ↩

  9. N. Lambert, H. Schoelkopf, A. Gokaslan, L. Soldaini, V. Pyatkin, and L. Castricato, “Self-directed synthetic dialogues and revisions technical report,” arXiv preprint arXiv:2407.18421, 2024. ↩

  10. Z. Sun et al., “Principle-driven self-alignment of language models from scratch with minimal human supervision,” in Thirty-seventh conference on neural information processing systems, 2023. Available: https://openreview.net/forum?id=p40XRfBX96 ↩

  11. A. Glaese et al., “Improving alignment of dialogue agents via targeted human judgements,” arXiv preprint arXiv:2209.14375, 2022. ↩

  12. Z. Liu et al., “Inference-time scaling for generalist reward modeling,” arXiv preprint arXiv:2504.02495, 2025. ↩

  13. J.-P. Fränken, E. Zelikman, R. Rafailov, K. Gandhi, T. Gerstenberg, and N. Goodman, “Self-supervised alignment with mutual information: Learning to follow principles without preference labels,” Advances in Neural Information Processing Systems, 2024. ↩