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

用于安全对齐的课程学习

Curriculum Learning for Safety Alignment

Carnegie Mellon University(卡内基梅隆大学);Simons Institute, UC Berkeley(Simons研究所,伯克利大学)

Sandeep Kumar, Virginia Smith, Chhavi Yadav

AI总结:

提出基于课程学习的Staged-Competence框架,通过难度分级的偏好数据和渐进式参考模型更新,提升DPO安全对齐的鲁棒性,在三个模型族上平均降低16%的OOD有害响应率和20%的越狱攻击成功率。

摘要:

直接偏好优化(DPO)广泛用于大型语言模型的安全对齐。然而,先前的工作表明它脆弱且表现出较差的分布外(OOD)泛化能力。在本文中,我们研究课程学习是否能提高基于DPO的安全对齐的鲁棒性。我们提出Staged-Competence,一个基于课程的框架,它按难度组织偏好数据,采用基于能力的采样,并在训练过程中逐步更新参考模型。在三个模型族上平均,Staged-Competence将OOD有害响应率降低16%,越狱攻击成功率降低20%,同时保持接近零的过度拒绝,保留通用能力。我们进一步表明,Staged-Competence(1)仅使用75%的训练数据即可达到基线安全性,(2)在安全与不安全响应之间产生更好的分离。Staged-Competence与策略优化损失无关,并可扩展到其他DPO变体和对齐领域。我们的代码和数据可在https://github.com/Sandeep5500/curriculum-learning-for-safety获取。

英文摘要:

Direct Preference Optimization (DPO) is a widely used approach for safety alignment that aims to reduce harmful behaviors in large language models. However, prior work shows that it can be brittle and exhibits poor out-of-distribution (OOD) generalization. In this paper we investigate whether Curriculum Learning can improve the robustness of DPO-based safety alignment. We propose Staged-Competence, a curriculum-based framework that organizes preference data by difficulty, employs competence-based sampling, and progressively updates the reference model during training. Averaged across three model families and three training seeds, Staged-Competence reduces OOD harmful response rates by 13.6 percentage points and attack success rates across five jailbreak attacks by 16.5 percentage points, while preserving general capabilities and maintaining near-zero over-refusal. We further show that Staged-Competence: (1) matches baseline safety performance with only 75% of the training data, demonstrating improved data efficiency and (2) yields better separation between safe and unsafe responses. Staged-Competence is agnostic to the underlying policy optimization loss and can extend to other DPO variants and alignment domains beyond safety. Additionally, we find multiple inconsistencies in standard RLHF datasets and create a cleaner combined version, named PiKacHHU. Our code is available at https://github.com/Sandeep5500/curriculum-learning-for-safety and the dataset at https://huggingface.co/datasets/etrigan5500/PiKacHHU.

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

↑