通过嵌入空间毒性衰减绕过大语言模型的安全对齐
Circumventing Safety Alignment in Large Language Models Through Embedding Space Toxicity Attenuation
AI总结:
本文提出ETTA框架,通过线性变换衰减嵌入空间中的毒性敏感维度,在无需微调或训练数据的情况下绕过LLM安全对齐,在五个开源模型上平均攻击成功率达88.61%,揭示了当前对齐策略的漏洞。
摘要:
大语言模型(LLMs)在医疗、教育和网络安全等领域取得了显著成功。然而,这种开放性也带来了重大的安全风险,特别是通过嵌入空间投毒,这是一种微妙的攻击向量,攻击者借此操纵输入数据的内部语义表示以绕过安全对齐机制。尽管先前的研究已调查了通用扰动方法,但对嵌入级别的LLM安全对齐动态仍缺乏充分理解。因此,更具针对性和准确性的对抗扰动技术(构成重大威胁)尚未得到充分研究。在本工作中,我们提出了ETTA(Embedding Transformation Toxicity Attenuation,嵌入变换毒性衰减),这是一种新颖的框架,通过线性变换识别并衰减嵌入空间中的毒性敏感维度。ETTA在保持语言连贯性的同时绕过模型拒答行为,且不需要模型微调或访问训练数据。使用AdvBench基准在五个代表性的开源LLM上进行评估,ETTA实现了88.61%的高平均攻击成功率,比最佳基线高出11.34%,并泛化到安全增强模型(例如,在指令微调防御上达到77.39%的ASR)。这些结果突显了当前对齐策略中的一个关键漏洞,并强调了对嵌入感知防御的需求。
英文摘要:
Large Language Models (LLMs) have achieved remarkable success across domains such as healthcare, education, and cybersecurity. However, this openness also introduces significant security risks, particularly through embedding space poisoning, which is a subtle attack vector where adversaries manipulate the internal semantic representations of input data to bypass safety alignment mechanisms. While previous research has investigated universal perturbation methods, the dynamics of LLM safety alignment at the embedding level remain insufficiently understood. Consequently, more targeted and accurate adversarial perturbation techniques, which pose significant threats, have not been adequately studied. In this work, we propose ETTA (Embedding Transformation Toxicity Attenuation), a novel framework that identifies and attenuates toxicity-sensitive dimensions in embedding space via linear transformations. ETTA bypasses model refusal behaviors while preserving linguistic coherence, without requiring model fine-tuning or access to training data. Evaluated on five representative open-source LLMs using the AdvBench benchmark, ETTA achieves a high average attack success rate of 88.61%, outperforming the best baseline by 11.34%, and generalizes to safety-enhanced models (e.g., 77.39% ASR on instruction-tuned defenses). These results highlight a critical vulnerability in current alignment strategies and underscore the need for embedding-aware defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。