用分布差异同时提升模型抗攻击能力和干净样本准确率
One Stone, Two Birds: Enhancing Adversarial Defense Through the Lens of Distributional Discrepancy
- 通过最大化均值差异检测对抗样本并指导去噪器训练
- 在CIFAR-10和ImageNet上同时提升干净与鲁棒准确率
- 适合需要兼顾性能与安全的实用型防御场景
统计对抗数据检测(SADD)通过测量干净样本与对抗样本间的分布差异来判断批次中是否包含对抗样本。本文从理论上证明,最小化分布差异可降低对抗样本上的期望损失。尽管如此,基于SADD的方法存在局限:检测出的对抗样本会被丢弃,导致信息损失。为此,提出双路径防御方法DAD。训练阶段,通过优化最大均值差异(MMD)的检验功效得到MMD-OPT,兼具去噪引导与判别功能;推理阶段,对检测为干净样本的输入直接分类,对检测为对抗样本的输入则通过分布差异驱动的去噪器去除噪声。大量实验表明,DAD在对抗性白盒攻击下,于CIFAR-10与ImageNet-1K上同时优于当前最优防御方法,显著提升干净准确率与鲁棒准确率。代码已开源。
原文摘要 · Abstract (English)
Statistical adversarial data detection (SADD) detects whether an upcoming batch contains adversarial examples (AEs) by measuring the distributional discrepancies between clean examples (CEs) and AEs. In this paper, we explore the strength of SADD-based methods by theoretically showing that minimizing distributional discrepancy can help reduce the expected loss on AEs. Despite these advantages, SADD-based methods have a potential limitation: they discard inputs that are detected as AEs, leading to the loss of useful information within those inputs. To address this limitation, we propose a two-pronged adversarial defense method, named Distributional-discrepancy-based Adversarial Defense (DAD). In the training phase, DAD first optimizes the test power of the maximum mean discrepancy (MMD) to derive MMD-OPT, which is a stone that kills two birds. MMD-OPT first serves as a guiding signal to minimize the distributional discrepancy between CEs and AEs to train a denoiser. Then, it serves as a discriminator to differentiate CEs and AEs during inference. Overall, in the inference stage, DAD consists of a two-pronged process: (1) directly feeding the detected CEs into the classifier, and (2) removing noise from the detected AEs by the distributional-discrepancy-based denoiser. Extensive experiments show that DAD outperforms current state-of-the-art (SOTA) defense methods by simultaneously improving clean and robust accuracy on CIFAR-10 and ImageNet-1K against adaptive white-box attacks. Codes are publicly available at: https://github.com/tmlr-group/DAD.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。