Constitutional AI: Harmlessness from AI Feedback
论文基本信息
标题:Constitutional AI: Harmlessness from AI Feedback
作者:Yuntao Bai 等(Anthropic 团队)
提交:2022-12-15
正式发表:预印本,无顶会期刊正式出版,是Claude对齐技术的核心技术报告
发表组织:Anthropic
论文下载:
链接:https://pan.quark.cn/s/14b56239d6cc
提取码:EPUs
一句话总结:
提出宪法AI(CAI)与RLAIF范式,用自然语言“宪法准则”替代大量人工偏好标注,让模型自我批判、自我修正,是区别于RLHF的大模型对齐路线,也是Claude的核心对齐方案。
原文摘要
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.
摘要中文翻译
随着AI能力不断增强,我们希望借助AI本身来监督其他AI。
本文探究一套通过自我提升训练无害AI助手的方法,不需要人工标注有害输出;人类仅需要提供一套规则与准则作为监督依据,因此该方法被称为“宪法AI(Constitutional AI)”。
整个流程分为监督学习与强化学习两个阶段:
监督阶段,从初始模型采样回答,让模型自我批判、自我改写,再基于改写后的回答微调原模型;
强化学习阶段,从微调后的模型采样,由模型自行对比判断回答优劣,基于这份AI偏好数据训练偏好模型,再以偏好模型作为奖励信号做强化学习,也就是RLAIF(AI反馈强化学习)。
最终得到的AI助手具备无害性,同时不会简单回避问题,面对有害请求时会说明拒绝理由。监督与强化阶段都可以引入思维链推理,提升人工评测效果与模型决策透明度。这套方案可以大幅减少人工标注,更精准地控制AI行为。
核心贡献
宪法准则驱动对齐 人类只写一套自然语言原则(宪法),不人工逐条打分标注好坏,模型依据这套准则自行评判输出,大幅降低对齐阶段的人工成本。
两阶段训练流程
监督微调阶段:自批判+自修订。模型先给出原始回答,再对照宪法找出缺陷,生成合规改写版本,用改写样本做SFT;
RLAIF强化阶段:模型对比两个候选回答,选出更符合宪法的一条,用AI生成的偏好数据训练奖励模型,再做PPO强化。
解决“无害但不回避”的权衡 传统RLHF容易出现两种极端:要么顺从有害请求,要么生硬回避;CAI引导模型正面回应、清晰解释拒绝理由,兼顾有用性和无害性。
可解释对齐 模型的评判、修正过程都可以附带推理文本,对齐行为的理由可追溯,相比纯人工偏好打分更透明。。
Constitutional AI: Harmlessness from AI Feedback
https://www.devpilot.cloud/archives/wei-ming-ming-wen-zhang-USuqjRjG
评论