arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.11296cs.LG
收藏

使用稀疏自编码器引导语言模型的拒答行为

Steering Language Model Refusal with Sparse Autoencoders

Microsoft(微软)

Kyle O'Brien, David Majercak, Xavier Fernandes, Richard Edgar, Blake Bullwinkel, Jingya Chen, Harsha Nori, Dean Carignan, Eric Horvitz, Forough Poursabzi-Sangdeh

AI总结:

本文提出在推理时利用稀疏自编码器(SAE)特征引导语言模型拒答行为,发现该方法虽能提升对越狱攻击的鲁棒性,但会导致多个基准任务性能系统性退化,揭示了安全特征与通用能力间的深层纠缠。

摘要:

负责任地部署语言模型需要拒绝不安全提示同时保持模型性能的机制。大多数方法通过额外训练修改模型权重,我们探索了一种替代方案:在推理时通过放大介导拒答的稀疏自编码器(SAE)特征来引导模型激活。本研究揭示了基于SAE引导的安全性提升与通用模型能力之间的根本矛盾。虽然特征引导成功提升了对单轮和具有挑战性的多轮越狱攻击的鲁棒性,我们发现这伴随着此前未被充分探索的代价——即使在与拒答行为无明显关联的安全输入上,多个基准任务的性能也出现系统性退化。这表明介导拒答的特征可能比此前认为的更深地与通用语言模型能力纠缠在一起。我们的发现揭示了关于语言模型中安全相关特征的本质以及将其隔离用于定向干预的可行性的重要开放问题。虽然基于SAE的引导作为增强语言模型安全性的灵活方法展现出前景,但我们的结果强调,在此类技术能够实际部署之前,理解和解决这些能力权衡背后的机制至关重要。

英文摘要:

Responsible deployment of language models requires mechanisms for refusing unsafe prompts while preserving model performance. While most approaches modify model weights through additional training, we explore an alternative: steering model activations at inference time via amplifying sparse autoencoder (SAE) features that mediate refusal. This work uncovers a fundamental tension between SAE steering-based safety improvements and general model capabilities. While feature steering successfully improves robustness against both single-turn and challenging multi-turn jailbreak attempts, we discover that this comes at a previously underexplored cost -- systematic degradation of performance across multiple benchmark tasks, even on safe inputs with no apparent connection to refusal behavior. This suggests that features mediating refusal may be more deeply entangled with general language model capabilities than previously understood. Our findings reveal important open questions about the nature of safety-relevant features in language models and the feasibility of isolating them for targeted intervention. While SAE-based steering shows promise as a flexible approach to enhancing language model safety, our results highlight the critical need to understand and address the mechanisms behind these capability tradeoffs before such techniques can be practically deployed.

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

↑