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
As Large Language Models (LLMs) scale in capability, the challenge of effective supervision intensifies. Traditional Reinforcement Learning from Human Feedback (RLHF) relies on vast quantities of human-generated preference labels, which presents significant scaling, transparency, and behavioral issues. Specifically, RLHF models often become "evasive," learning to provide generic refusals to controversial but harmless queries because human crowdworkers frequently reward simple refusals over nuanced explanations. This paper introduces Constitutional AI (CAI), a framework designed to develop a "harmless but non-evasive" assistant that can explain its objections to harmful queries while maintaining high utility.
Methodology
The Constitutional AI process is divided into two primary stages: Supervised Learning (SL) and Reinforcement Learning (RL).
Supervised Learning Stage
In the SL stage, a "helpful-only" model is prompted with "red teaming" queries to elicit harmful responses. The model then critiques its own responses based on a "constitution" of natural language principles and generates revisions. The base model is subsequently finetuned on these revised responses, bootstrapping a safer starting point without direct human labeling of harm.
Reinforcement Learning Stage
The RL stage utilizes Reinforcement Learning from AI Feedback (RLAIF). A Feedback Model (another AI) compares pairs of responses and selects the superior one based on constitutional principles. These AI-generated preferences train a Preference Model (PM), which serves as the reward signal for final policy optimization. The integration of Chain-of-Thought (CoT) reasoning during the feedback stage further enhances the quality and transparency of the labels.
Key Results and Insights
Empirical evaluation demonstrates that AI systems can effectively supervise other AI systems. As models scale, their capacity to identify and critique harm improves, eventually matching or exceeding human performance in safety labeling.
A primary finding is the achievement of a "Pareto improvement" over standard RLHF models. CAI models demonstrate increased harmlessness without the typical degradation in helpfulness. By encoding safety into 16 legible principles, developers can iterate on model behavior by editing text rather than re-labeling thousands of examples. Furthermore, by instructing the AI to explain its objections, the researchers successfully mitigated the tension between helpfulness and harmlessness, reducing model evasiveness.
Discussion and Limitations
While CAI significantly automates safety training, the "helpfulness" component still relies on human preference labels. Future work aims to automate this aspect as well. Additionally, the authors noted that RL-CAI models can occasionally become "preachy" or repetitive if over-trained. While CAI improves safety and reduces evasiveness, it does not render models immune to all possible "jailbreak" attacks. The ultimate goal remains a purely self-supervised alignment process starting from a pretrained base model and a constitution.
Summary updated