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

通过平衡直接偏好优化提升安全性对齐

Improving Safety Alignment via Balanced Direct Preference Optimization

Institute of Artificial Intelligence, Beihang University, Beijing, China(北京航空航天大学人工智能研究院)

Shiji Zhao, Mengyang Wang, Shukun Xiong, Fangzhou Chen, Qihui Zhu, Shouwei Ruan, Yisong Xiao, Ranjie Duan, Xun Chen, XingXing Wei

AI总结:

本文提出B-DPO方法,通过平衡偏好与非偏好响应的优化强度,缓解偏好对齐中的过拟合问题,提升模型安全性同时保持竞争力。

摘要:

随着大语言模型(LLMs)的快速发展和广泛应用,其潜在安全风险受到广泛关注。强化学习从人类反馈(RLHF)已被采用以提高LLMs的安全性能。作为RLHF的简单有效替代方案,直接偏好优化(DPO)被广泛用于安全对齐。然而,安全对齐仍受严重过拟合影响,限制了其实际性能。本文从模型对训练数据的理解角度重新审视过拟合现象,发现偏好对中存在不平衡的偏好理解现象,影响模型的安全性能。为此,我们提出平衡直接偏好优化(B-DPO),基于互信息动态调节偏好与非偏好响应的优化强度。一系列实验结果表明,B-DPO在保持LLMs在主流基准上的竞争力的同时,增强了安全性。警告:本文包含有害文本的例子,读者需自行判断。

英文摘要:

With the rapid development and widespread application of Large Language Models (LLMs), their potential safety risks have attracted widespread attention. Reinforcement Learning from Human Feedback (RLHF) has been adopted to enhance the safety performance of LLMs. As a simple and effective alternative to RLHF, Direct Preference Optimization (DPO) is widely used for safety alignment. However, safety alignment still suffers from severe overfitting, which limits its actual performance. This paper revisits the overfitting phenomenon from the perspective of the model's comprehension of the training data. We find that the Imbalanced Preference Comprehension phenomenon exists between responses in preference pairs, which compromises the model's safety performance. To address this, we propose Balanced Direct Preference Optimization (B-DPO), which adaptively modulates optimization strength between preferred and dispreferred responses based on mutual information. A series of experimental results show that B-DPO can enhance the safety capability while maintaining the competitive general capabilities of LLMs on various mainstream benchmarks compared to state-of-the-art methods. \color{red}{Warning: This paper contains examples of harmful texts, and reader discretion is recommended.

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

↑