激活手术:无需修改提示的白盒LLM劫持
Activation Surgery: Jailbreaking White-box LLMs without Touching the Prompt
AI总结:
本文提出通过直接操控模型内部激活来改变生成轨迹,揭示拒绝产生的位置与机制,并抑制安全机制,探讨开放权重模型的安全影响。
摘要:
大多数针对大型语言模型(LLM)的劫持技术主要依赖于提示修改,包括改写、混淆或对话策略。同时,擦除技术(也称为内部组件的定向擦除)已被用于通过探测哪些内部结构因果支持特定响应来研究和解释LLM输出。在本文中,我们通过直接操控模型内部激活来改变生成轨迹,而无需修改提示。我们的方法构建了一个附近的良性提示,并通过分层激活替换进行分步操作。我们展示了这种激活手术方法揭示了拒绝产生的位置与方式,并防止拒绝信号在层间传播,从而抑制模型的安全机制。最后,我们讨论了开放权重模型和仪器化推理环境的安全影响。
英文摘要:
Most jailbreak techniques for Large Language Models (LLMs) primarily rely on prompt modifications, including paraphrasing, obfuscation, or conversational strategies. Meanwhile, abliteration techniques (also known as targeted ablations of internal components) have been used to study and explain LLM outputs by probing which internal structures causally support particular responses. In this work, we combine these two lines of research by directly manipulating the model's internal activations to alter its generation trajectory without changing the prompt. Our method constructs a nearby benign prompt and performs layer-wise activation substitutions using a sequential procedure. We show that this activation surgery method reveals where and how refusal arises, and prevents refusal signals from propagating across layers, thereby inhibiting the model's safety mechanisms. Finally, we discuss the security implications for open-weights models and instrumented inference environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。