arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.12359cs.CRcs.CL
收藏

通过空空间约束将激活转向编译为权重以实现隐蔽后门

Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors

Zhejiang University(浙江大学);Palo Alto Networks(帕洛阿尔托网络);Ningbo Global Innovation Center, Zhejiang University(宁波全球创新中心,浙江大学);OPPO Research Institute(OPPO研究院);Qilu University of Technology(齐鲁大学)

Rui Yin, Tianxu Han, Naen Xu, Changjiang Li, Ping He, Chunyi Zhou, Jun Wang, Zhihui Fu, Tianyu Du, Jinbao Li, Shouling Ji

AI总结:

本文通过将后门目标从表面标记转向内部表示,提出一种高效方法,利用空空间约束在触发时激活后门,同时保持隐蔽性和安全性。

摘要:

安全对齐的大语言模型(LLMs)越来越多地部署在现实世界中,但这也扩大了供应链攻击面:攻击者可以分发带有后门的检查点,这些检查点在标准评估下表现正常,但在存在隐藏触发器时会突破安全限制。最近的后处理权重编辑方法通过直接修改模型权重,将触发器映射到攻击者指定的响应,来高效注入此类后门。然而,现有方法通常优化token级映射,强制肯定前缀(例如“Sure”),这无法保证持续有害输出——模型可能在开始时表现出明显同意,但在几个解码步骤内又转向安全对齐的拒绝。本文通过将后门目标从表面标记转向内部表示,填补了这一可靠性缺口。我们提取了一个转向向量,捕捉合规与拒绝行为之间的差异,并将其编译为持久的权重修改,仅在触发器存在时激活。为保持隐蔽性和良性用途,我们施加空空间约束,使注入的修改在干净输入上保持休眠。该方法高效,仅需少量示例即可获得闭式解。在多个安全对齐LLM和突破测试中,本文方法实现了高触发攻击成功率,同时保持非触发的安全性和通用用途。

英文摘要:

Safety-aligned large language models (LLMs) are increasingly deployed in real-world pipelines, yet this deployment also enlarges the supply-chain attack surface: adversaries can distribute backdoored checkpoints that behave normally under standard evaluation but jailbreak when a hidden trigger is present. Recent post-hoc weight-editing methods offer an efficient approach to injecting such backdoors by directly modifying model weights to map a trigger to an attacker-specified response. However, existing methods typically optimize a token-level mapping that forces an affirmative prefix (e.g., ``Sure''), which does not guarantee sustained harmful output -- the model may begin with apparent agreement yet revert to safety-aligned refusal within a few decoding steps. We address this reliability gap by shifting the backdoor objective from surface tokens to internal representations. We extract a steering vector that captures the difference between compliant and refusal behaviors, and compile it into a persistent weight modification that activates only when the trigger is present. To preserve stealthiness and benign utility, we impose a null-space constraint so that the injected edit remains dormant on clean inputs. The method is efficient, requiring only a small set of examples and admitting a closed-form solution. Across multiple safety-aligned LLMs and jailbreak benchmarks, our method achieves high triggered attack success while maintaining non-triggered safety and general utility.

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

↑