Skip to content

Constitutional AI: Harmlessness from AI Feedback

optionalextendedfundamentalpaperrubric 8/122022 · ~35 min

Yuntao Bai, Saurav Kadavath, Sandipan Kundu, …, Jared Kaplan

Status

TL;DR. Replace human harmlessness labels with AI feedback guided by a short list of principles (the “constitution”). Stage 1 (SL-CAI): a helpful-only model answers red-team prompts, critiques its own answer against a sampled principle, revises it, and a model is fine-tuned on the revisions. Stage 2 (RL-CAI, i.e. RLAIF): a feedback model compares pairs of SL-CAI responses under a principle. Its soft labels train a preference model, which RL then optimises exactly as in RLHF. The goal is an assistant that is harmless but not evasive: it explains its objections instead of refusing.

It is a change to the supervision pipeline, not a new optimiser. The RL stage is ordinary RLHF (InstructGPT-style) with a preference model. What changes is who writes the harmlessness labels and how they are made calibrated.

  • Critique → revision. The first revision removes most of the harm. For small models, critiques before revising help more than direct revision; for large models the two are close.
  • Data. 182,831 red-team prompts (42,496 human-written plus 140,335 model-generated) with four critique–revision pairs each. The SL model was fine-tuned for one epoch, together with helpful samples.
  • AI labels. The feedback model’s normalised multiple-choice probabilities serve as soft targets, which worked much better than hard 0/1 labels. Chain-of-thought labels are over-confident and are clamped to 40–60%.
  • Preference-model mix. 135,296 human helpfulness comparisons plus 182,831 AI harmlessness comparisons.

Results. On 438 HHH comparison questions, chain-of-thought prompting brings large pretrained models close to preference models trained on hundreds of thousands of human labels at identifying the better response (Fig. 4). In 52B RL runs (Figs. 2, 3, 8), RL-CAI moves the helpfulness–harmlessness frontier outward. The CoT variant is slightly less helpful and slightly more harmless than the non-CoT one. The feedback model’s labels are reasonably calibrated on the HHH questions (Fig. 9).

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Mechanism

    Trace both stages of Constitutional AI for one red-team prompt. Say which model produces what, where a principle is sampled, what data each stage trains on, and which parts of the RLHF pipeline are unchanged.

    What a strong answer covers
    • SL stage: a helpful-only RLHF model answers, then critiques its answer under a randomly drawn principle and revises it, possibly several times. A pretrained model is fine-tuned on the revisions plus helpful samples (SL-CAI).
    • RL stage: SL-CAI samples two responses. A feedback model is asked, under one of 16 principles, which response is better as a multiple-choice question, and its normalised option probabilities become a soft label.
    • The preference model is trained on human helpfulness comparisons plus AI harmlessness comparisons, then RL proceeds exactly as in RLHF, starting from SL-CAI.
    • Unchanged: preference-model loss, PPO-style RL against the PM, and the KL-regularised setup. Changed: where the harmlessness labels come from.
  2. Derive / compute

    The feedback model gives log-probabilities −0.4 for option A and −1.5 for option B. Compute the soft label, the reward gap a Bradley–Terry preference model would fit at its optimum, and the same gap if a chain-of-thought label of 0.97 is clamped to the 40–60% range. Why did clamping help?

    What a strong answer covers
    • Normalise: p(A) = e^−0.4 / (e^−0.4 + e^−1.5) ≈ 0.750.
    • Cross-entropy with a soft target p is minimised at σ(Δ) = p, so Δ = log(p/(1 − p)) = log 3 ≈ 1.10.
    • Unclamped CoT 0.97 would ask for Δ ≈ 3.48. Clamped to 0.60 it asks for Δ = log 1.5 ≈ 0.41.
    • CoT answers commit to one option, so their probabilities are near 0 or 1 and poorly calibrated. Without clamping, RL-CAI gave more extreme responses. 20–80% clamping helped slightly, and 40–60% helped more.
  3. Critique

    Over-trained RL-CAI models became overly harsh and added boilerplate like "you are valid, valued, and cared for". Explain this as reward hacking of an AI-labelled preference model. Then critique the claim that a constitution makes the supervision transparent, considering how the principles were chosen and what was evaluated.

    What a strong answer covers
    • The PM learned that reassuring, moralising language correlates with "harmless" labels. The policy amplified that feature beyond what any principle intended (Goodhart).
    • The fixes the authors used: rewriting principles, ensembling over 16 principles, and clamping soft labels. These reduce, but do not remove, the proxy gap.
    • The principles were chosen ad hoc by the authors, so the "constitution" is readable but not democratically or empirically grounded.
    • Helpfulness still used human labels, and harmlessness was judged by crowdworker Elo at 52B. AI-label quality was checked mainly on 438 HHH comparison questions.

Done with this page?

Status