What problem does it solve? Aligning language models to be harmless typically requires expensive human-labeled preference data for harmful outputs. Constitutional AI removes that bottleneck by letting the model critique and revise its own responses against a written set of principles, then training with AI-generated preferences (RLAIF) instead of human labels. ## Core Features & Use Cases - Supervised Self-Critique Phase: Generate initial responses, critique them against a constitution, revise, and fine-tune on the revised outputs using TRL's SFTTrainer. - RLAIF Phase: Sample response pairs, collect AI preference judgments based on the constitution, train a reward model with RewardTrainer, and run PPO-based RL training. - Chain-of-Thought Critique: Produce step-by-step reasoning about helpfulness, honesty, and harmlessness for transparent alignment decisions. - Use Case: A team fine-tuning a 7B assistant wants to reduce toxic and harmful outputs without hiring human annotators. They define a four-principle constitution, run self-critique and revision on red-team prompts, then train a reward model from AI preferences and complete PPO training on two A100 GPUs. ## Quick Start Use the constitutional-ai skill to set up a two-phase training pipeline that critiques and revises harmful prompt responses against my constitution, then trains a reward model from AI preferences for RLAIF.