后门攻击已被认为是深度神经网络(DNNs)面临的严重安全威胁。有毒样本检测(PSD)旨在从不可信的训练数据集中过滤掉有毒样本,在防御基于数据投毒的后门攻击方面展现出了极具前景的性能。然而,我们观察到,许多先进方法的检测性能在面对弱后门攻击(如低投毒比例或弱触发器强度)时可能并不稳定。为了进一步验证这一观察结果,我们在各种后门攻击和有毒样本检测方法之间进行了统计调查,结果显示后门效应与检测性能之间存在正相关关系。这启发了我们通过增强后门效应来提升检测性能。由于我们无法通过直接操纵投毒比例或触发器强度来实现该目标,因此我们提出使用 Sharpness-Aware Minimization (SAM) 算法而非原始训练算法来训练模型。我们还提供了关于 SAM 训练如何增强后门效应的实证和理论分析。随后,这个经 SAM 训练的模型可以无缝集成到任何现成的 PSD 方法中,这些方法从训练好的模型中提取具有区分性的特征进行检测,被称为 SAM-enhanced PSD。在多个基准数据集上的大量实验表明,所提方法在面对弱和强后门攻击时均具备可靠的检测性能,相较于常规 PSD 方法(即无 SAM 增强),在各种攻击下均取得了显著提升(平均 TPR 提高 $+34.38\%$)。总体而言,这项工作为 PSD 提供了新见解,并提出了一种可补充现有检测方法的新途径,有望激发该领域更深入的探索。
英文摘要:
Backdoor attack has been considered as a serious security threat to deep neural networks (DNNs). Poisoned sample detection (PSD) that aims at filtering out poisoned samples from an untrustworthy training dataset has shown very promising performance for defending against data poisoning based backdoor attacks. However, we observe that the detection performance of many advanced methods is likely to be unstable when facing weak backdoor attacks, such as low poisoning ratio or weak trigger strength. To further verify this observation, we make a statistical investigation among various backdoor attacks and poisoned sample detections, showing a positive correlation between backdoor effect and detection performance. It inspires us to strengthen the backdoor effect to enhance detection performance. Since we cannot achieve that goal via directly manipulating poisoning ratio or trigger strength, we propose to train one model using the Sharpness-Aware Minimization (SAM) algorithm, rather than the vanilla training algorithm. We also provide both empirical and theoretical analysis about how SAM training strengthens the backdoor effect. Then, this SAM trained model can be seamlessly integrated with any off-the-shelf PSD method that extracts discriminative features from the trained model for detection, called SAM-enhanced PSD. Extensive experiments on several benchmark datasets show the reliable detection performance of the proposed method against both weak and strong backdoor attacks, with significant improvements against various attacks ($+34.38\%$ TPR on average), over the conventional PSD methods (i.e., without SAM enhancement). Overall, this work provides new insights about PSD and proposes a novel approach that can complement existing detection methods, which may inspire more in-depth explorations in this field.
RPP: A Certified Poisoned-Sample Detection Framework for Backdoor Attacks under Dataset Imbalance
Old Dominion University(旧 Dominion 大学);University of Texas at El Paso(德克萨斯大学埃尔帕索分校);University of Central Florida(中央佛罗里达大学);Iowa State University(爱荷华州立大学);University of Arizona(亚利桑那大学)
Leveraging Diffusion-Based Image Variations for Robust Training on Poisoned Data
Technical University of Darmstadt(达姆施塔特工业大学);Centre for Cognitive Science(认知科学中心);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心(DFKI));Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI))
Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor Activeness
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院)
Backdoor Defense via Decoupling the Training Process
Zhejiang University(浙江大学);Tsinghua University(清华大学);Shenzhen Research Institute of Big Data(深圳大数据研究院);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))
FLARE: Toward Universal Dataset Purification against Backdoor Attacks
School of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术学院);School of Information Technology, Deakin University(德克萨斯大学信息学院);School of Information and Communication Technology, Griffith University(格里菲斯大学信息与通信技术学院);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院)
The Victim and The Beneficiary: Exploiting a Poisoned Model to Train a Clean Model on Poisoned Data
SKLOIS, Institute of Information Engineering, CAS(中国科学院信息工程研究所SKLOIS);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
Test-Time Backdoor Detection for Object Detection Models
Huazhong University of Science and Technology(华中科技大学);Harbin Institute of Technology(哈尔滨工业大学);University of Technology Sydney(悉尼科技大学);Griffith University(格里菲斯大学)
Flareon: Stealthy any2any Backdoor Injection via Poisoned Augmentation
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);University of Cambridge(剑桥大学);University of Macau(澳门大学)
Imperceptible and Robust Backdoor Attack in 3D Point Cloud
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Peng Cheng Laboratory(鹏城实验室);School of Data Science, the Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳)数据科学学院);Shenzhen Research Institute of Big Data (SBRID)(深圳大数据研究院)
DataElixir: Purifying Poisoned Dataset to Mitigate Backdoor Attacks via Diffusion Models
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
BadSR: Stealthy Label Backdoor Attacks on Image Super-Resolution
Laboratory Of Intelligent Collaborative Computing, University of Electronic Science and Technology of China(智能协同计算实验室,电子科技大学);School of Computer Science and Technology, Xinjiang University(计算机科学与技术学院,新疆大学);School of Computer Science and Engineering, University of Electronic Science and Technology of China(计算机科学与工程学院,电子科技大学);School of Computer Science, Fudan University(计算机科学学院,复旦大学)
Is It Possible to Backdoor Face Forgery Detection with Natural Triggers?
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);CRIPAC & MAIS, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所模式识别国家重点实验室与多模态人工智能系统实验室);Nanjing University of Information Science and Technology(南京信息工程大学)
Erasing Self-Supervised Learning Backdoor by Cluster Activation Masking
State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所 多模态人工智能系统国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Xiaomi Inc.(小米公司);State Key Laboratory of CNS/ATM, Beihang University(北京航空航天大学 CNS/ATM 国家重点实验室);College of Computer Science, Inner Mongolia University(内蒙古大学 计算机学院)
Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork
University of Texas at Austin(德克萨斯大学奥斯汀分校);Michigan State University(密歇根州立大学);Amazon Web Services(亚马逊云科技)
深度神经网络(DNN)容易受到后门攻击。以前的工作已经表明,从网络中消除不需要的后门行为是非常具有挑战性的,因为整个网络都可能受到后门样本的影响。在本文中,我们提出了一个全新的后门防御策略,这使得它更容易从模型中删除后门样本的有害影响。我们的防御战略,\emph{Trap and Replace},包括两个阶段。在第一阶段,我们在一个小而容易替换的子网中诱饵和陷阱后门。具体来说,我们在与轻量分类头共享的干网络之上添加辅助图像重建头。直觉是,辅助图像重建任务鼓励干网络保持足够的难以学习但语义正确的低级视觉特征,而不是过度拟合易于学习但语义不正确的后门相关性。因此,当在后门数据集上训练时,后门很容易被引诱到未受保护的分类头,因为它比共享的主干更容易受到攻击,使得主干网络几乎不会中毒。在第二阶段,我们用一个未污染的分类头替换中毒的轻量级分类头,只在一个具有干净样本的小数据集上从头开始重新训练它,同时修复干网络。因此,最终网络中的主干和分类头几乎不受后门训练样本的影响。我们评估我们的方法对十种不同的后门攻击。我们的方法在CIFAR 10、GTSRB和ImageNet-12上的攻击成功率和平均$3.14\%$、$1.80\%$和$1.21\%$干净分类准确率分别高达$20.57\%$、$9.80\%$和$13.72\%$,优于之前最先进的方法。代码可在线获取。