一种 AI 模型对齐方法,通过 AI 反馈(RLAIF)训练模型遵循一套自然语言原则(即“宪法”),而非单纯依赖人工标注。
来源 / Source
嘉宾: Benjamin Mann
职位: Co-founder
公司: Anthropic
核心步骤 / Core Steps
Define Constitution (Values)
Model Generates Response
Model Self-Critiques against Constitution
Model Rewrites Response
Fine-Tune on Revised Data
核心原则 / Core Principles
Define Principles: Establish a constitution of values (e.g., helpful, harmless, honest, human rights).
Generate & Critique: The model generates a response, then critiques itself based on the constitution.
Recursive Revision: If the response violates principles, the model rewrites it.
Supervised Learning: The model is fine-tuned on these revised, compliant outputs.
适用场景 / When to Use
在训练大语言模型 (LLM) 时,确保其遵循复杂的人类价值观与安全准则。
常见错误 / Common Mistakes
过度依赖简单的用户反馈(RLHF)会导致模型产生讨好倾向;未能定义明确的价值准则。
实战案例 / Real-World Example
Anthropic 采用该方法训练 Claude,其中融合了《联合国人权宣言》及其他来源的原则。
金句 / Quote
"First we figure out which ones might apply... then we ask the model itself to critique itself and rewrite its own response in light of the principle."
1---2name: constitutional-ai3description: Constitutional AI4---56# Constitutional AI78> Constitutional AI(宪法 AI)910## 概述 / Overview1112一种 AI 模型对齐方法,通过 AI 反馈(RLAIF)训练模型遵循一套自然语言原则(即“宪法”),而非单纯依赖人工标注。1314## 来源 / Source1516- **嘉宾**: Benjamin Mann17- **职位**: Co-founder18- **公司**: Anthropic1920## 核心步骤 / Core Steps21221. Define Constitution (Values)232. Model Generates Response243. Model Self-Critiques against Constitution254. Model Rewrites Response265. Fine-Tune on Revised Data2728## 核心原则 / Core Principles2930- Define Principles: Establish a constitution of values (e.g., helpful, harmless, honest, human rights).31- Generate & Critique: The model generates a response, then critiques itself based on the constitution.32- Recursive Revision: If the response violates principles, the model rewrites it.33- Supervised Learning: The model is fine-tuned on these revised, compliant outputs.3435## 适用场景 / When to Use3637在训练大语言模型 (LLM) 时,确保其遵循复杂的人类价值观与安全准则。3839## 常见错误 / Common Mistakes4041过度依赖简单的用户反馈(RLHF)会导致模型产生讨好倾向;未能定义明确的价值准则。4243## 实战案例 / Real-World Example4445Anthropic 采用该方法训练 Claude,其中融合了《联合国人权宣言》及其他来源的原则。4647## 金句 / Quote4849> "First we figure out which ones might apply... then we ask the model itself to critique itself and rewrite its own response in light of the principle."
Run npx skillmds@latest add coowoolf/constitutional-ai in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Constitutional AI It is listed under Marketing & Growth on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Coowoolf (@coowoolf) published this skill. Their other Agent Skills are listed on their SkillMD profile.