arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.01952cs.CRcs.AIcs.AR
收藏

通过防御感知的架构后门利用大语言模型的脆弱性

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

University of Rhode Island(罗德岛大学)

Abdullah Arafat Miah, Yu Bi

AI总结:

本文提出一种隐藏于大语言模型架构中的防御感知后门,通过触发检测与高斯噪声注入模块实现免训练攻击,并证明其可抵御微调、重训练及 BDDR 防御。

摘要:

长期以来,深度神经网络(DNN)一直被公认为容易受到后门攻击。通过在微调过程中提供投毒训练数据,攻击者可以将后门植入受害模型。这使得满足特定文本触发器模式的输入样本会被分类为攻击者选择的目标标签。尽管此类黑盒攻击在计算机视觉和自然语言处理(NLP)中都已得到充分研究,但依赖白盒攻击理念的后门攻击几乎尚未得到深入考察。本文中,我们率先引入一种新型后门攻击,该攻击将自身隐藏在底层模型架构中。具体而言,我们提出设计独立的后门模块,这些模块包含两项功能:触发器检测和噪声注入。模型架构层的附加模块能够检测输入触发词元是否存在,并使用高斯噪声修改层权重,以干扰基线模型的特征分布。我们在五个不同的大型语言数据集上,使用两种模型架构设置开展了大量实验,以评估我们的攻击方法。我们证明,大语言模型上这种无需训练的架构后门构成了真实威胁。与最先进的工作不同,它能够在严格的微调和重新训练过程中存活下来,并规避基于输出概率的防御方法(即 BDDR)。所有代码和数据均可在 https://github.com/SiSL-URI/Arch_Backdoor_LLM 获取。

英文摘要:

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.

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

↑