Evaluation lab · San Francisco · London · Zürich
Reinforced Labs Request a briefing
Glossary

Constitutional AI

Also called: CAI, policy-based training, principle-based training, constitutional training

Constitutional AI trains a model to follow written principles, using model-written critiques, revisions and preference labels instead of most human labels.

Constitutional AI is a post-training approach in which a short written set of principles, the "constitution", replaces most human harmlessness labels. A model critiques and revises its own responses against those principles, and then a model judges pairs of responses against them to produce preference data for reinforcement learning.

The two stages

  • Supervised critique and revision. Sample a response to a (often red-team) prompt, ask the model to critique it against a randomly drawn principle, then ask it to rewrite the response to fix the problems. Repeat a few times and fine-tune on the final revisions.
  • RL from AI feedback. Generate pairs of responses from the fine-tuned model, ask a feedback model which response better satisfies a sampled principle, convert its answer into a soft preference label, train a preference model and run RLHF-style optimisation against it. This step is an instance of RLAIF.

The soft label for a pair is the feedback model's normalised probability of choosing each option, often averaged over sampled principles:

where is the -th sampled principle and is the feedback model's probability of answering "A".

Worked example

Illustrative numbers: four principles are drawn for one pair: "avoid assisting with violence", "be honest about uncertainty", "do not be preachy" and "respect privacy". The feedback model prefers response A with probabilities 0.8, 0.6, 0.7 and 0.9. The training target is their mean, 0.75, rather than a hard "A wins". The soft target keeps genuine trade-offs visible: a response can be safer on one principle and more condescending on another.

Policy-based training more broadly

The same idea generalises beyond a constitution: any written content policy can drive data generation, grading and filtering. Bai et al. (2022) reported models that were both less harmful and less evasive than a model trained on human harmlessness labels, partly because principles can ask the model to explain objections rather than refuse flatly.

Why it matters

Writing behaviour down as principles makes training targets inspectable and editable, which is useful for audits and for fixing over-refusal. The risks are that principles are only as good as their wording, that the feedback model can share the policy model's blind spots, and that it can be gamed like any reward model. Constitutional training should therefore be checked with independent human-labelled evals and red teaming.

Sources

  1. Yuntao Bai, Saurav Kadavath, Sandipan Kundu, et al.. Constitutional AI: Harmlessness from AI Feedback, 2022. arxiv.org

Know the number before you ship.

A 45-minute working session with an evaluation engineer. Bring one use case; leave with a threat model, a draft eval plan with sample sizes, and an honest read on where you stand.