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

SOM方向优于单一方向:语言模型中的多方向拒绝抑制

SOM Directions are Better than One: Multi-Directional Refusal Suppression in Language Models

Giorgio Piras, Raffaele Mura, Fabio Brau, Luca Oneto, Fabio Roli, Battista Biggio

AI总结:

本文提出利用自组织映射(SOM)提取多方向拒绝特征,通过分析有害提示表示与无害提示表示的差异,验证了多方向抑制方法在提升模型安全性和拒绝能力上的有效性。

摘要:

拒绝指的是使安全对齐的语言模型能够拒绝有害或不道德的提示的功能行为。随着对机制可解释性的科学兴趣增长,近期工作将拒绝行为编码为模型潜在空间中的单一方向;例如,计算为有害提示和无害提示表示的均值差。然而,新兴证据表明,LLM中的概念似乎以低维流形的形式嵌入在高维潜在空间中。受这些发现的启发,我们提出了一种利用自组织映射(SOM)提取多方向拒绝的新型方法。为此,我们首先证明SOMs扩展了先前工作的均值差技术。然后我们在有害提示表示上训练SOMs以识别多个神经元。通过从每个神经元减去无害表示的均值,我们推导出一组多方向表达拒绝概念。我们通过广泛的实验设置验证了我们的方法,证明在模型内部消去多个方向比单一方向基线和专门的 jailbreak 算法更有效,从而有效抑制拒绝。最后,我们通过分析我们的方法的机制影响进行了总结。

英文摘要:

Refusal refers to the functional behavior enabling safety-aligned language models to reject harmful or unethical prompts. Following the growing scientific interest in mechanistic interpretability, recent work encoded refusal behavior as a single direction in the model's latent space; e.g., computed as the difference between the centroids of harmful and harmless prompt representations. However, emerging evidence suggests that concepts in LLMs often appear to be encoded as a low-dimensional manifold embedded in the high-dimensional latent space. Motivated by these findings, we propose a novel method leveraging Self-Organizing Maps (SOMs) to extract multiple refusal directions. To this end, we first prove that SOMs generalize the prior work's difference-in-means technique. We then train SOMs on harmful prompt representations to identify multiple neurons. By subtracting the centroid of harmless representations from each neuron, we derive a set of multiple directions expressing the refusal concept. We validate our method on an extensive experimental setup, demonstrating that ablating multiple directions from models' internals outperforms not only the single-direction baseline but also specialized jailbreak algorithms, leading to an effective suppression of refusal. Finally, we conclude by analyzing the mechanistic implications of our approach.

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

↑