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

拒绝的几何:安全对齐大语言模型中的线性不稳定性

The Geometry of Refusal: Linear Instability in Safety-Aligned LLMs

University of Southern California(南加州大学);Independent Researcher(独立研究员)

Shivam Ratnakar, Kartikeya Vats

AI总结:

研究通过对比安全与不安全系统提示的隐藏状态,提出对比逻辑操控(CLS)框架,揭示安全对齐的线性脆弱性,并证明逻辑级干预比隐藏状态方法更有效,同时可实现双向控制。

摘要:

现代大语言模型(LLM)依赖于广泛的安全对齐,但拒绝的机制基础仍然不透明。在这项工作中,我们研究安全合规是一个深层的语义决策还是一个可操控的线性特征。我们引入了对比逻辑操控(CLS),这是一个零优化框架,通过对比来自安全和无限制系统提示的隐藏状态来隔离“拒绝方向”。与干预内部激活的表示工程方法不同,CLS直接作用于输出分布,作为对齐脆弱性的诊断探针。当与前缀注入结合以绕过初始拒绝反射时,该方法引发了一个防护栏崩溃的相变。我们在7个模型家族上的实验表明,安全实现在架构上是确定性的。虽然像Llama-3.1这样的模型表现出“晚期决策”拓扑,容易被CLS绕过(在大约一秒钟内达到95%的攻击成功率),但其他模型如Qwen-2.5通过将安全集成到计算中期表现出“早期分歧”。与已建立的激活级操控方法的直接比较表明,CLS在Llama 2上实现了显著更高的攻击成功率(73%对22.6%),在Qwen 7B上(91%对79.2%),表明逻辑级干预暴露了隐藏状态方法低估的对齐脆弱性。除了攻击,我们展示了这种线性性实现了双向控制:反转操控向量可以在不重新训练的情况下“硬化”模型以抵御越狱。我们的发现表明,当前的对齐技术创建了一个可操控的“安全轴”,它既是一个关键的脆弱点,也是一个精确的防御基元。

英文摘要:

Modern Large Language Models (LLMs) rely on extensive safety alignment, yet the mechanistic basis of refusal remains opaque. In this work, we investigate whether safety compliance is a deep semantic decision or a manipulable linear feature. We introduce Contrastive Logit Steering (CLS), a zero-optimization framework that isolates the "refusal direction" by contrasting hidden states derived from safe and unrestricted system prompts. Unlike representation engineering methods that intervene on internal activations, CLS operates directly on the output distribution, serving as a diagnostic probe for alignment fragility. When coupled with prefix injection to bypass initial refusal reflexes, this method induces a phase transition where guardrails collapse. Our experiments on 7 model families reveal that safety implementation is architecturally deterministic. While models like Llama-3.1 exhibit a "Late Decision" topology that is easily bypassed by CLS (reaching 95% ASR in approximately one second), others like Qwen-2.5 demonstrate "Early Divergence" by integrating safety mid-computation. Direct comparison with established activation-level steering methods shows that CLS achieves substantially higher attack success rates on Llama 2 (73% vs. 22.6%) and Qwen 7B (91% vs. 79.2%), demonstrating that logit-level intervention exposes alignment vulnerabilities that hidden-state methods underestimate. Beyond attacks, we show that this linearity enables bidirectional control: inverting the steering vector "hardens" models against jailbreaks without retraining. Our findings suggest that current alignment techniques create a steerable "safety axis" that serves as both a critical vulnerability and a precise primitive for defense.

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

↑