Skip to main content
QUICK REVIEW

[论文解读] Towards an Adversarially Robust Normalization Approach

Muhammad Awais, Fahad Shamshad|arXiv (Cornell University)|Jun 19, 2020
Adversarial Robustness in Machine LearningComputer Science参考文献 46被引用 18
一句话总结

本文提出 RobustNorm,一种对抗鲁棒性更强的批量归一化(BatchNorm)替代方法,通过用推理时的批次统计量替代训练时估计的总体统计量,缓解对抗噪声引起的分布偏移问题。实验表明,RobustNorm 在 ResNet、VGG 和 ImageNet 模型上显著提升了对抗鲁棒性,同时保留了 BatchNorm 的训练优势。

ABSTRACT

Batch Normalization (BatchNorm) is effective for improving the performance and accelerating the training of deep neural networks. However, it has also shown to be a cause of adversarial vulnerability, i.e., networks without it are more robust to adversarial attacks. In this paper, we investigate how BatchNorm causes this vulnerability and proposed new normalization that is robust to adversarial attacks. We first observe that adversarial images tend to shift the distribution of BatchNorm input, and this shift makes train-time estimated population statistics inaccurate. We hypothesize that these inaccurate statistics make models with BatchNorm more vulnerable to adversarial attacks. We prove our hypothesis by replacing train-time estimated statistics with statistics calculated from the inference-time batch. We found that the adversarial vulnerability of BatchNorm disappears if we use these statistics. However, without estimated batch statistics, we can not use BatchNorm in the practice if large batches of input are not available. To mitigate this, we propose Robust Normalization (RobustNorm); an adversarially robust version of BatchNorm. We experimentally show that models trained with RobustNorm perform better in adversarial settings while retaining all the benefits of BatchNorm. Code is available at \url{https://github.com/awaisrauf/RobustNorm}.

研究动机与目标

  • 探究为何批量归一化会增加深度神经网络的对抗脆弱性。
  • 将这种脆弱性的根本原因归因于对抗输入引起的分布偏移,导致训练时估计的总体统计量不准确。
  • 开发一种归一化方法,在保持 BatchNorm 训练优势的同时提升对对抗攻击的鲁棒性。
  • 在多种架构和数据集(包括 ImageNet)上验证所提方法的有效性。

提出的方法

  • 作者假设对抗输入会改变输入分布,导致训练时估计的 BatchNorm 统计量不准确,从而增加模型脆弱性。
  • 通过将训练时的统计量替换为当前推理时批次的统计量来验证该假设,结果显著提升了鲁棒性。
  • 为解决完全依赖推理时统计量的不切实际性(尤其在小批量时),提出 RobustNorm——一种在训练和推理过程中动态调整统计量的混合归一化方法。
  • RobustNorm 使用总体统计量与当前批次统计量的加权组合,通过可学习或固定的超参数控制两者的平衡。
  • 该方法设计为与现有深度学习框架后向兼容,可无缝替换 BatchNorm 层。
  • 在多个架构(ResNet、VGG)和数据集(CIFAR-10、ImageNet)上评估 RobustNorm,与 BatchNorm 及使用固定总体均值的变体进行对比。

实验结果

研究问题

  • RQ1为何批量归一化会增加深度神经网络的对抗脆弱性?
  • RQ2对抗输入引起的分布偏移如何影响 BatchNorm 估计总体统计量的准确性?
  • RQ3能否通过用推理时的批次统计量替代训练时估计的统计量来提升对抗鲁棒性?
  • RQ4能否设计一种新归一化方法,在保持 BatchNorm 训练优势的同时实现更优的鲁棒性?
  • RQ5RobustNorm 在不同网络架构和数据集(包括大规模 ImageNet)上的泛化能力如何?

主要发现

  • 在 ResNet38 上,RobustNorm 在 FGSM 攻击下达到 78.71% 的对抗准确率,而标准 BatchNorm 仅为 18.77%,提升 59.94 个百分点。
  • 在 ResNet50 上,RobustNorm 的 FGSM 鲁棒准确率达到 76.58%,而 BatchNorm 为 51.14%,提升 25.44 个百分点。
  • 在 VGG16 上,RobustNorm 的 FGSM 鲁棒准确率达到 83.56%,而 BatchNorm 为 63.60%,提升 19.96 个百分点。
  • 在 ImageNet 上使用 ResNet18 时,RobustNorm 在 FGSM 攻击下达到 28.5% 的鲁棒准确率,而 BatchNorm 为 12.5%,提升 16 个百分点。
  • RobustNorm 在所有评估的攻击(FGSM、BIM、MIM、CW、PGD)中均显著提升了鲁棒性,同时保持或提升了干净样本准确率。
  • 消融实验中使用固定总体均值的变体(RobustNorm w/ μₚ)进一步提升了鲁棒性,表明稳定的统计量是实现鲁棒性的关键。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。