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

对抗自蒸馏

Adversarial Self-Distillation

University of Cologne(科隆大学);CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心)

Mohammad Sadegh Akhondzadeh, Soroush H. Zargarbashi, Aleksandar Bojchevski

AI总结:

针对安全对齐语言模型易被对抗性扰动绕过的问题,提出对抗自蒸馏(ASD)方法,将模型自身安全行为扩展到对抗扰动空间,在多项选择准确率几乎无损失时降低攻击成功率,还能在符合要求的开头后恢复拒绝行为。

摘要:

尽管当前安全对齐的语言模型能够拒绝有害请求,但其防护仍可被对抗性扰动绕过。与其他领域类似,对抗训练被视为标准防御手段。然而,由于语言生成的自回归特性,基于模板拒绝的监督微调未必能教会模型拒绝。证据是,当攻击者注入符合要求的前缀时,经对抗训练的模型仍会服从。我们提出对抗自蒸馏(Adversarial Self-Distillation,ASD),将模型自身的安全行为扩展到对抗性扰动空间。教师(给定干净提示的模型自身)默认可拒绝有害请求,或借助上下文的额外指令实现。ASD在学生(受攻击的同一模型)访问的前缀处蒸馏该知识,这些前缀可能包含符合要求的开头(因在线策略采样)。ASD在多项选择准确率几乎无损失的情况下,实现了比现有最优防御更低的攻击成功率,且即使在符合要求的开头后,也能恢复拒绝行为。

英文摘要:

Even though current safety-aligned language models are able to refuse harmful requests, their guard can still be bypassed by adversarial perturbations. As in other domains, adversarial training is considered a standard defense. However, due to the autoregressive nature of language generation, supervised finetuning on template refusals does not necessarily teach the model to refuse. Evidence of this is that the adversarially trained model still complies when the attacker injects a compliant prefill. We propose Adversarial Self-Distillation (ASD), which extends a model's own safe behavior to the space of adversarial perturbations. The teacher (the model itself given the clean prompt) can refuse the harmful request by default, or with the help of an additional instruction in its context. ASD distills this knowledge to the student (which is the same model under attack) at the prefixes that the student visits (due to on-policy sampling). These potentially include compliant openings. ASD achieves lower attack success than state-of-the-art defenses with little loss in multiple-choice accuracy, and it becomes able to recover a refusal even after a compliant opening.

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

↑