arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21346cs.CLcs.AI
收藏

基于对齐的DPO:一种原则性的推理方法以提高安全性对齐

Alignment-Weighted DPO: A principled reasoning approach to improve safety alignment

University of Virginia(弗吉尼亚大学);Capital One

Mengxuan Hu, Vivek V. Datla, Anoop Kumar, Zihan Guan, Sheng Li, Alfy Samuel, Daben Liu

AI总结:

本文提出基于对齐的DPO方法,通过引入推理意识的后训练和对齐加权机制,提升大语言模型的安全性对齐鲁棒性。

摘要:

最近在对齐技术方面的进展,如监督微调(SFT)、人类反馈强化学习(RLHF)和直接偏好优化(DPO),已经提高了大型语言模型(LLMs)的安全性。然而,这些LLMs仍然容易受到劫持攻击的威胁,这些攻击通过间接或欺骗性的措辞来伪装有害意图。利用因果干预,我们实证地证明这种脆弱性源于浅层对齐机制,这些机制缺乏深度推理,通常拒绝有害提示而没有真正理解为何它们有害。为了缓解这种脆弱性,我们提出通过推理意识的后训练来增强对齐。我们构建并发布了包含既有实用性导向又安全关键提示的新型思路链(CoT)微调数据集,这些提示包含逐步的推理过程。在该数据集上进行微调可促使模型生成基于推理的合理拒绝,优于标准SFT基线。此外,受CoT微调中失败模式的启发,我们引入了对齐加权DPO,该方法通过为推理和最终答案部分分配不同的偏好权重来针对输出中最棘手的部分。这产生了比普通DPO更细致、有针对性的更新,并提高了对多种劫持策略的鲁棒性。在多个安全性和实用性基准上的广泛实验表明,我们的方法在保持整体模型实用性的同时,一致提高了对齐的鲁棒性。

英文摘要:

Recent advances in alignment techniques such as Supervised Fine-Tuning (SFT), Reinforcement Learning from Human Feedback (RLHF), and Direct Preference Optimization (DPO) have improved the safety of large language models (LLMs). However, these LLMs remain vulnerable to jailbreak attacks that disguise harmful intent through indirect or deceptive phrasing. Using causal intervention, we empirically demonstrate that this vulnerability stems from shallow alignment mechanisms that lack deep reasoning, often rejecting harmful prompts without truly understanding why they are harmful. To mitigate this vulnerability, we propose enhancing alignment through reasoning-aware post-training. We construct and release a novel Chain-of-Thought (CoT) fine-tuning dataset that includes both utility-oriented and safety-critical prompts with step-by-step rationales. Fine-tuning on this dataset encourages models to produce principled refusals grounded in reasoning, outperforming standard SFT baselines. Furthermore, inspired by failure patterns in CoT fine-tuning, we introduce Alignment-Weighted DPO, which targets the most problematic parts of an output by assigning different preference weights to the reasoning and final-answer segments. This produces finer-grained, targeted updates than vanilla DPO and improves robustness to diverse jailbreak strategies. Extensive experiments across multiple safety and utility benchmarks show that our method consistently improves alignment robustness while maintaining overall model utility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑