[论文解读] Boosting Adversarial Transferability by Achieving Flat Local Maxima
本文提出 Penalizing Gradient Norm (PGN) 攻击,通过在梯度范数惩罚和有限差分海森近似来定位对抗样本在平坦局部区域,以提高跨模型转移性。
Transfer-based attack adopts the adversarial examples generated on the surrogate model to attack various models, making it applicable in the physical world and attracting increasing interest. Recently, various adversarial attacks have emerged to boost adversarial transferability from different perspectives. In this work, inspired by the observation that flat local minima are correlated with good generalization, we assume and empirically validate that adversarial examples at a flat local region tend to have good transferability by introducing a penalized gradient norm to the original loss function. Since directly optimizing the gradient regularization norm is computationally expensive and intractable for generating adversarial examples, we propose an approximation optimization method to simplify the gradient update of the objective function. Specifically, we randomly sample an example and adopt a first-order procedure to approximate the curvature of Hessian/vector product, which makes computing more efficient by interpolating two neighboring gradients. Meanwhile, in order to obtain a more stable gradient direction, we randomly sample multiple examples and average the gradients of these examples to reduce the variance due to random sampling during the iterative process. Extensive experimental results on the ImageNet-compatible dataset show that the proposed method can generate adversarial examples at flat local regions, and significantly improve the adversarial transferability on either normally trained models or adversarially trained models than the state-of-the-art attacks. Our codes are available at: https://github.com/Trustworthy-AI-Group/PGN.
研究动机与目标
- 使人相信在平坦的局部区域中的对抗样本更易在跨模型之间转移的假设。
- 提出一种可行方法(PGN)在生成对抗扰动时定位平坦的局部极大值。
- 证明梯度范数惩罚能提升普通训练和对抗训练模型的转移性。
- 证明 PGN 可以与现有的基于梯度的攻击和输入变换攻击结合以获得更高的转移性。
提出的方法
- 引入一个梯度正则化项,惩罚对抗样本局部邻域内的最大梯度。
- 使用有限差分方法和对两个相邻梯度的插值来近似正则化所需的海森/向量乘积。
- 在一个小邻域内进行随机采样以估计局部梯度,并对多次采样取平均以降低方差。
- 用受惩罚梯度信息影响的一阶过程更新对抗扰动,从而实现高效优化。
- 给出一个具体算法(PGN),将惩罚与标准迭代攻击(I-FGSM/MI-FGSM)以及输入变换相结合。
实验结果
研究问题
- RQ1在局部邻域施加最大梯度惩罚是否会产生在跨模型转移性上更好的对抗样本?
- RQ2是否可行的海森近似(通过有限差分和梯度插值)能否实现对对抗攻击的实用平坦区域优化?
- RQ3与现有基于梯度的和输入变换攻击相比,PGN 在普通训练和对抗训练模型上的表现如何?
- RQ4PGN 是否与集成攻击以及其他提高转移性的技术组合兼容?
主要发现
- 位于平坦局部区域的对抗样本在跨模型转移性方面表现更好。
- 相较于 MI-/NI-/VMI-/EMI-/RAP FGSM 等基线,PGN 显著提升了对普通训练和对抗训练的代理模型的转移性。
- 在单模型与集成模型设置中,PGN 实现了更高的攻击成功率,并且在可观的边际幅度内超越最佳基线(如报告结果中的平均提升为若干百分点)。
- 将 PGN 与输入变换攻击(DIM、TIM、SIM、Admix、SSA)结合时,转移性显著提升,PGN 仍然有效。
- 基于有限差分的海森近似加速了计算并在对比直接海森优化时维持了较高的攻击性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。