注入 matters:在视觉-语言预训练模型中的模型级后门检测
Assimilation Matters: Model-level Backdoor Detection in Vision-Language Pretrained Models
AI总结:
AMDET提出了一种无需先验知识的模型级后门检测框架,通过梯度反向传播恢复隐含特征以检测后门。
摘要:
视觉-语言预训练模型(VLPs)如CLIP已取得显著成功,但同时也极易受到后门攻击的影响。给定一个由不可信第三方微调的模型,确定该模型是否被注入了后门是一个关键且具有挑战性的问题。现有的检测方法通常依赖于训练数据集、后门触发器和目标或下游分类器的先验知识,这可能在实际应用中不切实际。为此,我们引入了Assimilation Matters in DETection(AMDET),一种新的模型级检测框架,其无需任何此类先验知识。具体而言,我们首先揭示了在受后门污染的文本编码器中特征融合的性质:在后门样本中所有token的表示都表现出高度相似性。进一步分析将这种效应归因于对触发token的注意力权重集中。利用这一见解,AMDET通过在token嵌入上进行基于梯度的反向传播来扫描模型,以恢复能够激活后门行为的隐含特征。此外,我们识别了OpenAI官方CLIP模型中的自然后门特征,这些特征并非故意注入,但仍表现出后门样行为。我们然后通过分析它们的损失景观将它们从真实注入的后门中过滤出去。在3600个受后门污染和良性微调的模型上进行了大量实验,使用两种攻击范式和三种VLP模型结构,结果显示AMDET的F1得分为89.90%。此外,它在RTX 4090 GPU上大约5分钟内完成一次完整检测,并表现出对自适应攻击的强鲁棒性。代码可在:https://github.com/Robin-WZQ/AMDET上获得。
英文摘要:
Vision-language pretrained models (VLPs) such as CLIP have achieved remarkable success, but are also highly vulnerable to backdoor attacks. Given a model fine-tuned by an untrusted third party, determining whether the model has been injected with a backdoor is a critical and challenging problem. Existing detection methods usually rely on prior knowledge of training dataset, backdoor triggers and targets, or downstream classifiers, which may be impractical for real-world applications. To address this, To address this challenge, we introduce Assimilation Matters in DETection (AMDET), a novel model-level detection framework that operates without any such prior knowledge. Specifically, we first reveal the feature assimilation property in backdoored text encoders: the representations of all tokens within a backdoor sample exhibit a high similarity. Further analysis attributes this effect to the concentration of attention weights on the trigger token. Leveraging this insight, AMDET scans a model by performing gradient-based inversion on token embeddings to recover implicit features that capable of activating backdoor behaviors. Furthermore, we identify the natural backdoor feature in the OpenAI's official CLIP model, which are not intentionally injected but still exhibit backdoor-like behaviors. We then filter them out from real injected backdoor by analyzing their loss landscapes. Extensive experiments on 3,600 backdoored and benign-finetuned models with two attack paradigms and three VLP model structures show that AMDET detects backdoors with an F1 score of 89.90%. Besides, it achieves one complete detection in approximately 5 minutes on a RTX 4090 GPU and exhibits strong robustness against adaptive attacks. Code is available at: https://github.com/Robin-WZQ/AMDET
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。