arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.15883cs.CRcs.CVcs.LG
收藏

模型供应链投毒:通过嵌入不可区分性对预训练模型植入后门

Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability

Chongqing University(重庆大学);Nanyang Technological University(南洋理工大学)

Hao Wang, Shangwei Guo, Jialing He, Hangcheng Liu, Tianwei Zhang, Tao Xiang

AI总结:

本文提出 TransTroj 后门攻击,通过两阶段优化实现嵌入不可区分性,使预训练模型中的后门在供应链微调后仍能高效迁移,在多数下游任务上达到近 100% 攻击成功率。

摘要:

预训练模型(PTMs)在机器学习供应链中被广泛用于各种下游任务。采用不可信的预训练模型会带来重大安全风险,攻击者可以通过在预训练模型中嵌入隐藏的恶意行为(后门)来污染模型供应链。然而,现有的针对预训练模型的后门攻击只能实现部分任务无关性,并且嵌入的后门在微调过程中容易被擦除。这使得后门难以在供应链中持续存在并传播。在本文中,我们提出了一种新颖且更严重的后门攻击方法 TransTroj,它使嵌入在预训练模型中的后门能够在模型供应链中高效迁移。具体而言,我们首先将该攻击形式化为嵌入空间中中毒样本与干净样本之间的不可区分性问题。我们将嵌入不可区分性分解为前不可区分性和后不可区分性,分别表示攻击前后中毒嵌入与参考嵌入的相似性。然后,我们提出了一种两阶段优化方法,分别优化触发器和受害预训练模型以实现嵌入不可区分性。我们在四个预训练模型和六个下游任务上评估了 TransTroj。实验结果表明,我们的方法显著优于最先进的任务无关后门攻击——在大多数下游任务上实现了接近 100% 的攻击成功率——并在各种系统设置下表现出鲁棒性。我们的发现强调了保护模型供应链免受此类可迁移后门攻击的迫切需要。代码可在 https://github.com/haowang-cqu/TransTroj 获取。

英文摘要:

Pre-trained models (PTMs) are widely adopted across various downstream tasks in the machine learning supply chain. Adopting untrustworthy PTMs introduces significant security risks, where adversaries can poison the model supply chain by embedding hidden malicious behaviors (backdoors) into PTMs. However, existing backdoor attacks to PTMs can only achieve partially task-agnostic and the embedded backdoors are easily erased during the fine-tuning process. This makes it challenging for the backdoors to persist and propagate through the supply chain. In this paper, we propose a novel and severer backdoor attack, TransTroj, which enables the backdoors embedded in PTMs to efficiently transfer in the model supply chain. In particular, we first formalize this attack as an indistinguishability problem between poisoned and clean samples in the embedding space. We decompose embedding indistinguishability into pre- and post-indistinguishability, representing the similarity of the poisoned and reference embeddings before and after the attack. Then, we propose a two-stage optimization that separately optimizes triggers and victim PTMs to achieve embedding indistinguishability. We evaluate TransTroj on four PTMs and six downstream tasks. Experimental results show that our method significantly outperforms SOTA task-agnostic backdoor attacks -- achieving nearly 100% attack success rate on most downstream tasks -- and demonstrates robustness under various system settings. Our findings underscore the urgent need to secure the model supply chain against such transferable backdoor attacks. The code is available at https://github.com/haowang-cqu/TransTroj .

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

↑