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

通过无训练权重编辑抵制有害指令

Resisting Harmful Instructions through Training-Free Weight Editing

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Ali Ebrahimpour-Boroojeny, Xiaocong Yang, Samuel Schapiro, Zahra Borhani, Francisco R. Ortega, Yujia Zheng, ChengXiang Zhai

AI总结:

本研究提出无训练权重编辑方法,通过对模型权重进行修改,降低语言模型对有害指令的顺从性,在指令性虚假陈述和性别歧视两类有害行为上,较现有方法提升了诚实响应率、降低了性别歧视响应率,效果显著。

摘要:

遵循指令的语言模型可能会顺从与预期行为及安全对齐相冲突的请求。我们提出一种无训练的权重编辑方法,以降低模型对目标不良指令的顺从性。该方法仅需对每个目标行为的一小组提示对进行前向传播,且由于编辑内容存储在模型权重中,提示中的指令更改或删除无法撤销该权重修改。我们在五个经过指令微调的模型上针对两种目标有害行为(指令性虚假陈述和指令性别歧视)评估该方法。在两个指令性说谎基准测试中,与最强替代方法相比,该方法将平均诚实响应率分别提高了6.2和4.6个百分点,在五个模型中的三个上效果显著,另外两个模型上则在误差范围内。在对七种提示格式的对照研究中,当要求说谎的提示格式为未用于构建编辑的单轮格式时,该方法保持的诚实响应率高于单层激活引导。对于指令性别歧视,该方法将平均性别歧视响应率从57.9%降至24.3%;将该编辑与公平提示结合后,进一步降至11.9%。这些结果表明,我们基于对比的权重编辑方法是两个不同行为领域中有效的无训练干预措施,支持其独立使用或与基于提示的安全措施结合使用。

英文摘要:

Instruction-following language models can comply with requests that conflict with intended behaviors and safety alignment. We introduce a training-free weight-editing approach for reducing compliance with targeted undesirable instructions. Our method needs only forward passes on a small set of prompt pairs per target behavior, and because the edit is stored in the model's weights, changing or deleting instructions in the prompt cannot undo the weight modification. We evaluate the approach on two target harmful behaviors across five instruction-tuned models: instructed falsehood and instructed sexism. On two instructed-lying benchmarks, it improves mean honest response rates by 6.2 and 4.6 percentage points over the strongest alternative, significantly on three of the five models and within noise on the other two. In a controlled study of seven prompt formats, it maintains higher honest-response rates than single-layer activation steering when orders to lie arrive in single-turn formats not used to construct the edit. For instructed sexism, it reduces the mean sexist-response rate from 57.9% to 24.3%; combining the edit with a fairness prompt reduces it further to 11.9%. These results establish our contrast-based weight editing approach as an effective training-free intervention in two distinct behavioral domains, supporting its use both independently and alongside prompt-based safeguards.

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

↑