passdrill
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 007/010 easy

Anthropic developed a technique for training a model to be more harmless that does not depend on humans labeling which of two harmful responses is worse, since asking human labelers to compare harmful outputs to each other raises its own problems. Instead, the model is trained against a written list of principles (a 'constitution'). How does Bai et al.'s Constitutional AI method actually use that constitution across its two training phases?

  1. In a first, supervised phase, the model critiques and revises its own sampled responses against the constitution's principles and is fine-tuned on the revised outputs; in a second, reinforcement-learning phase, the model itself judges which of two sampled responses better satisfies the constitution to build an AI-generated preference dataset, which trains a preference model used as the reward signal
  2. The model is fine-tuned once, in a single supervised phase, purely on human-labeled comparisons between harmful responses, and the written constitution is used only as documentation describing the labeling instructions given to the human annotators
  3. The constitution is applied only as a static output filter at inference time, blocking any response that matches a principle in the list, with no fine-tuning of the underlying model's weights involved at any stage
  4. The constitution's principles are converted into a fixed set of rules and injected directly into the model's weights through a rule-based, gradient-free editing procedure, bypassing both supervised fine-tuning and reinforcement learning entirely
Next card → Shuffle