arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.02530cs.AIcs.CL
收藏

SafeSteer: 局部化在策略蒸馏用于高效安全对齐

SafeSteer: Localized On-Policy Distillation for Efficient Safety Alignment

Beihang University(北航);Beijing Institute of Technology(北京理工大学);Beijing University of Posts and Telecommunications(北京邮电大学);Peking University(北京大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Beijing Academy of Artificial Intelligence(北京人工智能研究院)

Hao Li, Jingkun An, Zijun Song, Pengyu Zhu, Rui Li, Hao Wang, Wendi Feng, Yesheng Liu, Lijun Li, Jin-Ge Yao, Lei Sha

AI总结:

针对大语言模型安全对齐导致通用能力下降的问题,提出SafeSteer方法,通过激活引导构建安全教师并选择安全令牌,仅在安全令牌上施加反向KL惩罚,在仅用100个有害样本且无需通用数据的情况下,实现了安全与通用能力之间的优越平衡。

摘要:

将大型语言模型(LLMs)与人类价值观对齐通常会降低其通用能力,这被称为对齐税。现有方法通过平衡双重目标来缓解这一问题,但严重依赖大量通用数据或辅助奖励模型。在本文中,我们认为,由于安全特征在输出分布中本质上是稀疏的,对齐需要局部修改而非全局权衡。为此,我们提出SafeSteer,它在安全令牌上执行在策略蒸馏。首先,我们通过激活引导构建一个安全教师。基于该教师,我们开发了一种安全令牌选择算法。因此,SafeSteer在训练期间将反向KL惩罚限制在这些令牌上,以保留通用能力。跨多种模型的实验结果表明,与现有方法相比,我们的SafeSteer在安全性和通用能力之间实现了更优越的权衡,在七个安全基准上取得了强大的安全性能,同时在五个通用能力基准上仅有最小程度的下降。值得注意的是,SafeSteer仅需100个有害样本,无需使用任何通用数据,不到先前基线所用数据的1%,大大降低了对齐成本。更多详情请访问我们的项目页面:https://anjingkun.github.io/SafeSteer。

英文摘要:

Aligning Large Language Models (LLMs) with human values often degrades their general capabilities, termed the alignment tax. Existing methods mitigate this by balancing dual objectives, which heavily rely on massive general-purpose data or auxiliary reward models. In this paper, we argue that, because safety features are inherently sparse within the output distribution, alignment requires localized modifications rather than global trade-offs. To this end, we propose SafeSteer, which performs on-policy distillation confined to safety tokens. First, we construct a safety teacher via activation steering. Based on this teacher, we develop a safety token selection algorithm. Consequently, SafeSteer restricts the reverse KL penalty to these tokens during training to preserve general capabilities. Experimental results across diverse models show that our SafeSteer achieves a superior trade-off between safety and general capability compared with existing methods, attaining strong safety performance on seven safety benchmarks with only minimal degradation on five general capability benchmarks. Notably, SafeSteer requires only 100 harmful samples without using any general-purpose data, less than 1% of what previous baselines used, considerably reducing alignment cost. More details are on our project page at https://anjingkun.github.io/SafeSteer.

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

↑