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

从拒绝标记到拒绝控制:发现并引导类别特定的拒绝方向

From Refusal Tokens to Refusal Control: Discovering and Steering Category-Specific Refusal Directions

Algoverse AI Research(Algoverse AI研究院);School of Computer Science, University of Maryland, College Park, United States(美国马里兰大学计算机科学学院);School of Computer Science, Carnegie Mellon University, Pittsburgh, United States(美国卡内基梅隆大学计算机科学学院)

Rishab Alagharu, Ishneet Sukhvinder Singh, Shaibi Shamsudeen, Zhen Wu, Ashwinee Panda

AI总结:

本文通过训练模型生成类别化拒绝标记,实现推理时对细粒度拒绝行为的控制,提升安全性和可靠性,通过提取残差流方向构建类别引导向量,并引入低秩组合实现多类拒绝控制。

摘要:

语言模型通常通过微调以安全对齐来拒绝有害提示。一种方法是在响应前微调模型以生成区分不同拒绝类型的类别拒绝标记。在本工作中,我们利用微调了这些类别拒绝标记的Llama 3 8B版本,实现推理时对细粒度拒绝行为的控制,提高安全性和可靠性。我们证明拒绝标记微调会在残差流中诱导出可分离的、类别对齐的方向,我们提取并利用这些方向构建类别引导向量,通过轻量级探针确定推理时是否引导向或远离拒绝。此外,我们引入了一个学习的低秩组合,将这些类别方向混合成白化、正交的引导基底,从而在激活空间各向异性下实现单个可控干预,并展示该干预在相同架构模型变体间具有可转移性。在多个基准测试中,类别引导向量和低秩组合在良性提示上减少过度拒绝,同时在有害提示上增加拒绝率,突显了其在多类别拒绝控制中的实用性。

英文摘要:

Language models are commonly fine-tuned for safety alignment to refuse harmful prompts. One approach fine-tunes them to generate categorical refusal tokens that distinguish different refusal types before responding. In this work, we leverage a version of Llama 3 8B fine-tuned with these categorical refusal tokens to enable inference-time control over fine-grained refusal behavior, improving both safety and reliability. We show that refusal token fine-tuning induces separable, category-aligned directions in the residual stream, which we extract and use to construct categorical steering vectors with a lightweight probe that determines whether to steer toward or away from refusal during inference. In addition, we introduce a learned low-rank combination that mixes these category directions in a whitened, orthonormal steering basis, resulting in a single controllable intervention under activation-space anisotropy, and show that this intervention is transferable across same-architecture model variants without additional training. Across benchmarks, both categorical steering vectors and the low-rank combination consistently reduce over-refusals on benign prompts while increasing refusal rates on harmful prompts, highlighting their utility for multi-category refusal control.

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

↑