木马激活攻击:使用激活导向对安全对齐的大语言模型进行红队测试
Trojan Activation Attack: Red-Teaming Large Language Models using Activation Steering for Safety-Alignment
AI总结:
该研究提出名为TA²的木马激活攻击方法,通过向大语言模型激活层注入木马导向向量,在推理时触发以操纵模型行为,在四项对齐任务上验证了其高效低开销的特性,并探讨了对应防御方案。
摘要:
为保障AI安全,经过指令微调的大语言模型(LLM)会经过专门训练以实现对齐,即让模型的行为符合人类意图。尽管这些模型在各类安全基准上取得了可观的成果,但其安全对齐的脆弱性尚未得到充分研究。考虑到LLM可能造成的危害,这一问题尤其令人担忧。现有的LLM攻击方法通常依赖投毒训练数据或注入恶意提示词,这类方法会降低攻击的隐蔽性和泛化性,容易被检测到。此外,这类模型的实现往往需要大量计算资源,在实际场景中的实用性较低。在本研究中,我们探讨了一种不同的攻击场景,名为Trojan Activation Attack(木马激活攻击,简称TA²),该方法将木马导向向量注入LLM的激活层中。这些恶意导向向量可在推理阶段被触发,通过操纵模型的激活值,引导模型产生攻击者期望的行为。我们在四项主要对齐任务上的实验结果表明,TA²攻击效果极强,且几乎不会增加攻击开销或完全无额外开销。此外,我们还讨论了针对这类激活攻击的潜在防御措施。
英文摘要:
To ensure AI safety, instruction-tuned Large Language Models (LLMs) are specifically trained to ensure alignment, which refers to making models behave in accordance with human intentions. While these models have demonstrated commendable results on various safety benchmarks, the vulnerability of their safety alignment has not been extensively studied. This is particularly troubling given the potential harm that LLMs can inflict. Existing attack methods on LLMs often rely on poisoned training data or the injection of malicious prompts. These approaches compromise the stealthiness and generalizability of the attacks, making them susceptible to detection. Additionally, these models often demand substantial computational resources for implementation, making them less practical for real-world applications. In this work, we study a different attack scenario, called Trojan Activation Attack (TA^2), which injects trojan steering vectors into the activation layers of LLMs. These malicious steering vectors can be triggered at inference time to steer the models toward attacker-desired behaviors by manipulating their activations. Our experiment results on four primary alignment tasks show that TA^2 is highly effective and adds little or no overhead to attack efficiency. Additionally, we discuss potential countermeasures against such activation attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。