Constitutional AI: Harmlessness from AI Feedback

Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, Carol Chen, Catherine Olsson, Christopher Olah, Danny Hernandez, Dawn Drain, Deep Ganguli, Dustin Li, Eli Tran-Johnson, Ethan Perez, Jamie Kerr, Jared Mueller, Jeffrey Ladish, Joshua Landau, Kamal Ndousse, Kamile Lukosiute, Liane Lovitt, Michael Sellitto, Nelson Elhage, Nicholas Schiefer, Noemí Mercado, Nova DasSarma, Robert Lasenby, Robin Larson, Sam Ringer, Scott Johnston, Shauna Kravec, Sheer El Showk, Stanislav Fort, Tamera Lanham, Timothy Telleen-Lawton, Tom Conerly, Tom Henighan, Tristan Hume, Samuel R. Bowman, Zac Hatfield-Dodds, Ben Mann, Dario Amodei, Nicholas Joseph, Sam McCandlish, Tom Brown, Jared Kaplan

Abstract

As AI systems become more capable, we would like to enlist their help to supervise other AIs. We experiment with methods for training a harmless AI assistant through self-improvement, without any human labels identifying harmful outputs. The only human oversight is provided through a list of rules or principles, and so we refer to the method as 'Constitutional AI'. The process involves both a supervised learning and a reinforcement learning phase. In the supervised phase we sample from an initial model, then generate self-critiques and revisions, and then finetune the original model on revised responses. In the RL phase, we sample from the finetuned model, use a model to evaluate which of the two samples is better, and then train a preference model from this dataset of AI preferences. We then train with RL using the preference model as the reward signal, i.e. we use 'RL from AI Feedback' (RLAIF). As a result we are able to train a harmless but non-evasive AI assistant that engages with harmful queries by explaining its objections to them. Both the SL and RL methods can leverage chain-of-thought style reasoning to improve the human-judged performance and transparency of AI decision making. These methods make it possible to control AI behavior more precisely and with far fewer human labels.

Introduction

Aligning Large Language Models (LLMs) with human values typically relies on Reinforcement Learning from Human Feedback (RLHF). While effective, RLHF faces significant challenges: it is difficult to scale as models grow more complex, it often leads to "evasive" behavior where models refuse harmless queries out of over-caution, and the underlying values remain opaque, buried in thousands of human preference labels.

Constitutional AI (CAI) addresses these issues by training AI assistants to be harmless through self-improvement guided by a set of written principles—a "constitution." This approach replaces human labels for harmfulness with AI-generated feedback, resulting in models that are safer, more transparent, and less evasive.

The Constitutional AI Framework

The CAI training process is divided into two distinct stages: Supervised Learning (SL) and Reinforcement Learning (RL).

1. Supervised Learning (SL) Phase

The process begins with a "helpful-only" model. When presented with harmful queries, the model is prompted to generate a response, critique that response based on a constitutional principle, and then revise it. The original model is then finetuned on these revised, safer responses. This stage "bootstraps" the model into a safer distribution of behavior without requiring human-labeled harmfulness data.

2. Reinforcement Learning (RL) Phase

In the second stage, the model generates pairs of responses to "red teaming" prompts. Instead of human evaluators, a "feedback model" ranks these responses based on the constitution. These AI-generated preferences are used to train a Preference Model (PM), which then serves as the reward signal for Reinforcement Learning from AI Feedback (RLAIF).

The Constitutional AI training pipeline, illustrating the transition from an initial helpful model through critique-revision cycles (SL phase) and AI-driven preference modeling (RL phase) to the final RL-CAI model.

Key Insights and Results

Constitutional AI demonstrates that AI feedback can be as effective—and in some ways superior—to human feedback for safety alignment.

Pareto Improvement in Alignment

A primary finding is that CAI achieves a "Pareto improvement" over standard RLHF. As shown in the evaluation of Helpfulness vs. Harmlessness Elo, CAI models can reach higher levels of harmlessness without the same degree of degradation in helpfulness seen in human-labeled models.

Harmlessness vs Helpfulness Elo, showing that Constitutional RL (RLAIF) provides a Pareto improvement over standard RLHF, achieving higher safety without sacrificing helpfulness.

Explainable Refusal and Reduced Evasiveness

Unlike standard RLHF models that often provide "canned" refusals (e.g., "I cannot answer that"), CAI models learn to engage with harmful queries by explaining why they are refusing based on their principles. This makes the assistant more helpful and its behavior more predictable.

Scaling and Chain-of-Thought

The researchers found that larger models are better at identifying and critiquing harms. Furthermore, incorporating Chain-of-Thought (CoT) reasoning—where the model explains its logic before choosing a preferred response—significantly improves the quality of AI-generated labels, making them competitive with human judgments.

Conclusion

Constitutional AI offers a scalable, transparent, and effective path for aligning increasingly capable AI systems. By shifting the burden of supervision from humans to AI guided by clear principles, we can create assistants that are not only safer but also more helpful and easier to understand. While challenges like "preachy" behavior and residual reliance on human helpfulness labels remain, CAI represents a significant step toward automated, principle-based AI alignment.

Summary updated

BibTeX
@misc{bai2022constitutional,
  author = {Yuntao Bai and Saurav Kadavath and Sandipan Kundu and Amanda Askell and Jackson Kernion and Andy Jones and Anna Chen and Anna Goldie and Azalia Mirhoseini and Cameron McKinnon and Carol Chen and Catherine Olsson and Christopher Olah and Danny Hernandez and Dawn Drain and Deep Ganguli and Dustin Li and Eli Tran-Johnson and Ethan Perez and Jamie Kerr and Jared Mueller and Jeffrey Ladish and Joshua Landau and Kamal Ndousse and Kamile Lukosiute and Liane Lovitt and Michael Sellitto and Nelson Elhage and Nicholas Schiefer and Noemí Mercado and Nova DasSarma and Robert Lasenby and Robin Larson and Sam Ringer and Scott Johnston and Shauna Kravec and Sheer El Showk and Stanislav Fort and Tamera Lanham and Timothy Telleen-Lawton and Tom Conerly and Tom Henighan and Tristan Hume and Samuel R. Bowman and Zac Hatfield-Dodds and Ben Mann and Dario Amodei and Nicholas Joseph and Sam McCandlish and Tom Brown and Jared Kaplan},
  title = {{Constitutional AI: Harmlessness from AI Feedback}},
  year = {2022},
  eprint = {2212.08073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.08073},
}
Figure