Constitutional AI: Harmlessness from AI Feedback


Paper: Bai, Y., et al. (Anthropic), Constitutional AI: Harmlessness from AI Feedback, 2022. arXiv:2212.08073

Why this paper matters

RLHF needs human labelers to judge which response is better — including judging toxic, harmful, or unsettling content. That’s a rough job, and it doesn’t scale. Constitutional AI replaces most of that human labor with a constitution: a short list of principles (e.g. “choose the response that is least likely to cause harm”) that the model uses to critique and revise its own outputs. The resulting AI-generated preferences train the model. This is RLAIF — Reinforcement Learning from AI Feedback — and it’s the basis for scalable, principled safety tuning.

The core idea: self-critique, then learn from it

Two phases:

Phase 1 — Supervised (CAI-SFT). Given a prompt, the model drafts a response, then critiques it against the constitution, and revises. The revised responses become supervised fine-tuning data. A minimal sketch:

draft = model.generate(prompt)
critique = model.generate(f"Critique this against principle {p}: {draft}")
revised = model.generate(f"Revise per critique: {draft}\n{critique}")
# use `revised` as the SFT target

Phase 2 — RL from AI feedback. Sample pairs of responses, have the model rank them using the constitution (no human in the loop), train a preference/reward model on those AI labels, then run RL (PPO) against it — exactly the RLHF loop, but the preference signal is machine-generated.

Why a constitution

The principles make behavior auditable and adjustable. Want a different notion of harmlessness? Change the constitution, not the labeling workforce. It also reduces exposure of human raters to harmful content.

Key results

Why it matters today

Constitutional AI is the “how do we align without burning out human raters” chapter. It pairs naturally with the RLHF-original and DPO posts: same optimization machinery, but the preference labels come from principles instead of people. Many modern safety-tuned models borrow this recipe.

References

© 2026 Jiawei    粤ICP备18035774号