本文提出一种仅微调单层的自然梯度微调(NGF)后门净化技术,利用损失表面几何感知优化器与Fisher Information Matrix正则化器,在多个数据集和攻击基准上实现了最先进的防御性能。
摘要:
深度神经网络(DNN)的成功严重依赖于训练方案的细节;例如训练数据、架构、超参数等。近来的后门攻击表明,攻击者可以利用此类训练细节并破坏DNN的完整性。我们的研究表明,后门模型通常被优化到一个糟糕的局部极小值,即与良性模型相比更尖锐的极小值。直观上,可以通过使用少量干净验证数据进行微调,将模型重新优化至更平滑的极小值来净化后门模型。然而,微调所有DNN参数通常需要巨大的计算成本,且往往导致一般的干净测试性能。为了解决这一问题,我们提出了一种新颖的后门净化技术——自然梯度微调(NGF),该方法专注于仅微调一层来移除后门。具体而言,NGF利用一种损失表面几何感知优化器,能够成功克服在单层优化场景下达到平滑极小值的挑战。为了增强所提方法的泛化性能,我们基于损失表面曲率矩阵(即Fisher Information Matrix)的知识,引入了一种干净数据分布感知正则化器。大量实验表明,所提方法在广泛的后门防御基准上实现了最先进的性能:四个不同的数据集——CIFAR10、GTSRB、Tiny-ImageNet和ImageNet;13种近来的后门攻击,例如Blend、Dynamic、WaNet、ISSBA等。
英文摘要:
The success of a deep neural network (DNN) heavily relies on the details of the training scheme; e.g., training data, architectures, hyper-parameters, etc. Recent backdoor attacks suggest that an adversary can take advantage of such training details and compromise the integrity of a DNN. Our studies show that a backdoor model is usually optimized to a bad local minima, i.e. sharper minima as compared to a benign model. Intuitively, a backdoor model can be purified by reoptimizing the model to a smoother minima through fine-tuning with a few clean validation data. However, fine-tuning all DNN parameters often requires huge computational costs and often results in sub-par clean test performance. To address this concern, we propose a novel backdoor purification technique, Natural Gradient Fine-tuning (NGF), which focuses on removing the backdoor by fine-tuning only one layer. Specifically, NGF utilizes a loss surface geometry-aware optimizer that can successfully overcome the challenge of reaching a smooth minima under a one-layer optimization scenario. To enhance the generalization performance of our proposed method, we introduce a clean data distribution-aware regularizer based on the knowledge of loss surface curvature matrix, i.e., Fisher Information Matrix. Extensive experiments show that the proposed method achieves state-of-the-art performance on a wide range of backdoor defense benchmarks: four different datasets- CIFAR10, GTSRB, Tiny-ImageNet, and ImageNet; 13 recent backdoor attacks, e.g. Blend, Dynamic, WaNet, ISSBA, etc.
Backdoor Attacks and Countermeasures on Deep Learning: A Comprehensive Review
Nanjing University of Science and Technology(南京理工大学);Data61, CSIRO(澳大利亚联邦科学与工业研究组织 Data61);The University of Adelaide(阿德莱德大学);The University of Queensland(昆士兰大学);Hunan University(湖南大学);Sungkyunkwan University(成均馆大学)
Neural Antidote: Class-Wise Prompt Tuning for Purifying Backdoors in CLIP
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院,清华大学);School of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Proactive Adversarial Defense: Harnessing Prompt Tuning in Vision-Language Models to Detect Unseen Backdoored Images
University of West Florida(西佛罗里达大学);Florida Institute For Human and Machine Cognition (IHMC)(佛罗里达人机认知研究所);Center for Cybersecurity, University of West Florida(西佛罗里达大学网络安全中心)
Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning
Southeast University(东南大学);University of Queensland(昆士兰大学);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学);National University of Singapore(新加坡国立大学)
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 Cleaning without External Guidance in MLLM Fine-tuning
School of Computer Science, Wuhan University(武汉大学计算机学院);Munich Research Center(慕尼黑研究中心);Huawei Technologies(华为技术有限公司);Nanyang Technological University(南洋理工大学)
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Nanyang Technological University(南洋理工大学);Sun Yat-sen University-Shenzhen(中山大学深圳校区)
InverTune: Removing Backdoors from Multimodal Contrastive Learning Models via Trigger Inversion and Activation Tuning
1 School of Cyber Science;Engineering, Wuhan University 0.3em 2 School of Computer Science, Wuhan University 0.3em 3 Institute for Math \& AI, Wuhan University
BadCLIP++: Stealthy and Persistent Backdoors in Multimodal Contrastive Learning
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);School of Computing, National University of Singapore(新加坡国立大学计算机学院)
PersGuard: Preventing Malicious Personalization in Text-to-Image Diffusion Models via Model Backdoors
Institute of Information Engineering, Chinese Academy of Sciences(信息工程研究所,中国科学院);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);BraneMatrix AI;School of Cyber Science and Technology, Shenzhen Campus, Sun Yat-sen University(中山大学深圳校区计算机科学与技术学院)