arXiv:2409.01952cs.CRcs.AI2024-09被引 4

不通过训练,直接在模型结构中植入隐蔽后门,可绕过主流防御机制。

Exploiting the Vulnerability of Large Language Models via Defense-Aware Architectural Backdoor

  • 在模型架构层添加触发检测与噪声注入模块,实现无需训练的后门攻击
  • 在5个大语言模型数据集上验证,攻击成功率超90%,且能通过重训练测试
  • 适合关注模型安全、后门防御的研究者和系统开发者阅读

深度神经网络长期存在后门攻击漏洞。通过微调过程提供污染数据,攻击者可将后门植入目标模型,使符合特定文本触发模式的输入被分类为攻击者指定的目标标签。尽管黑盒攻击在计算机视觉和自然语言处理中已有广泛研究,但基于白盒思路的后门攻击尚未深入探索。本文首次提出一种新型后门攻击——将后门隐藏于底层模型架构中。我们设计了包含触发检测与噪声注入功能的独立后门模块,作为模型架构层的附加组件,可检测输入中的触发标记,并通过高斯噪声扰动层权重,改变基线模型的特征分布。我们在两种模型架构设置下,针对五个不同的大语言模型数据集进行了大量实验。结果表明,该无需训练的架构型后门对大型语言模型构成真实威胁,不仅能抵御严格的微调与重训练,还可规避基于输出概率的防御方法(如BDDR)。所有代码与数据已公开于https://github.com/SiSL-URI/Arch_Backdoor_LLM。

原文摘要 · Abstract (English)

Deep neural networks (DNNs) have long been recognized as vulnerable to backdoor attacks. By providing poisoned training data in the fine-tuning process, the attacker can implant a backdoor into the victim model. This enables input samples meeting specific textual trigger patterns to be classified as target labels of the attacker's choice. While such black-box attacks have been well explored in both computer vision and natural language processing (NLP), backdoor attacks relying on white-box attack philosophy have hardly been thoroughly investigated. In this paper, we take the first step to introduce a new type of backdoor attack that conceals itself within the underlying model architecture. Specifically, we propose to design separate backdoor modules consisting of two functions: trigger detection and noise injection. The add-on modules of model architecture layers can detect the presence of input trigger tokens and modify layer weights using Gaussian noise to disturb the feature distribution of the baseline model. We conduct extensive experiments to evaluate our attack methods using two model architecture settings on five different large language datasets. We demonstrate that the training-free architectural backdoor on a large language model poses a genuine threat. Unlike the-state-of-art work, it can survive the rigorous fine-tuning and retraining process, as well as evade output probability-based defense methods (i.e. BDDR). All the code and data is available https://github.com/SiSL-URI/Arch_Backdoor_LLM.

后门攻击LLM安全模型防御架构攻击

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。