[论文解读] Deliberative Alignment: Reasoning Enables Safer Language Models
Deliberative Alignment 训练 LLMs 在回答前对安全规格进行显式推理,从而实现对政策的精确遵循,并在鲁棒性与泛化能力方面获得提升,且无需人工标注数据。
As large-scale language models increasingly impact safety-critical domains, ensuring their reliable adherence to well-defined principles remains a fundamental challenge. We introduce Deliberative Alignment, a new paradigm that directly teaches the model safety specifications and trains it to explicitly recall and accurately reason over the specifications before answering. We used this approach to align OpenAI's o-series models, and achieved highly precise adherence to OpenAI's safety policies, without requiring human-written chain-of-thoughts or answers. Deliberative Alignment pushes the Pareto frontier by simultaneously increasing robustness to jailbreaks while decreasing overrefusal rates, and also improves out-of-distribution generalization. We demonstrate that reasoning over explicitly specified policies enables more scalable, trustworthy, and interpretable alignment.
研究动机与目标
- 通过引入 deliberative alignment 使大型语言模型(LMMs)在输出前能够对安全规格进行显式推理,以解决安全方面的不足。
- 在不依赖人工撰写的思路链(chain-of-thought)或带标注输出的情况下,实现对 OpenAI 安全政策的精确遵循。
- 证明对越狱的鲁棒性提升、过度拒绝的减少,以及对分布外情形的泛化能力提升。
提出的方法
- 为多类目定义安全规格(例如:色情内容、自残、受管制的建议)。
- 创建基于规格条件的提示,以生成引用安全策略的思路链(CoTs)。
- 使用两阶段训练:对带规格引用的 CoTs 进行有监督微调;随后使用带策略感知奖励模型的强化学习。
- 在 SFT 过程中移除显式的规格提示,使模型从记忆中回忆安全策略。
- 使用内部和外部的安全基准以及消融实验评估以评估政策遵循和泛化能力。
![Figure 2: Main safety results . The o1 models advance the Pareto frontier of refusing to answer malicious jailbreak prompts (from StrongREJECT [ 12 ] ) and not over-refusing benign prompts (from XSTest [ 13 ] ), compared to GPT-4o and other state-of-the-art LLMs. Error bars represent estimates of st](https://ar5iv.labs.arxiv.org/html/2412.16339/assets/x1.jpg)
实验结果
研究问题
- RQ1对安全规格的显式推理是否能提升 LLMs 对安全政策的遵循?
- RQ2与基线安全方法相比,deliberative alignment 是否同时降低“过度拒绝”和“拒绝不足”的情况?
- RQ3该方法对分布外安全场景的泛化能力如何?
- RQ4过程监督与基于结果的强化学习在安全性能中的贡献各自是多少?
- RQ5在面对越狱攻击和对抗性提示时,该方法的表现如何?
主要发现
- Deliberative alignment 在没有人工标注输出的情况下实现了对规格的精确遵循。
- o-series 模型在将拒绝数量和越狱脆弱性同时降低方面相较 GPT-4o 和其他模型显示出帕累托前沿的改进。
- 该方法提高了对分布外安全场景的泛化能力。
- 过程监督提供了强先验,而基于结果的 RL 进一步精炼安全推理。
- 硬性拒绝、可安全完成以及转换案例显示更好的风格和对安全的遵循。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。