[论文解读] Diffusion-Based Adversarial Sample Generation for Improved Stealthiness and Controllability
引入 Diff-PGD,一种以扩散为引导的投影梯度下降框架,利用预训练的扩散模型并将对抗损失与现实性/风格损失分离,生成现实且可迁移、可控的对抗样本。
Neural networks are known to be susceptible to adversarial samples: small variations of natural examples crafted to deliberately mislead the models. While they can be easily generated using gradient-based techniques in digital and physical scenarios, they often differ greatly from the actual data distribution of natural images, resulting in a trade-off between strength and stealthiness. In this paper, we propose a novel framework dubbed Diffusion-Based Projected Gradient Descent (Diff-PGD) for generating realistic adversarial samples. By exploiting a gradient guided by a diffusion model, Diff-PGD ensures that adversarial samples remain close to the original data distribution while maintaining their effectiveness. Moreover, our framework can be easily customized for specific tasks such as digital attacks, physical-world attacks, and style-based attacks. Compared with existing methods for generating natural-style adversarial samples, our framework enables the separation of optimizing adversarial loss from other surrogate losses (e.g., content/smoothness/style loss), making it more stable and controllable. Finally, we demonstrate that the samples generated using Diff-PGD have better transferability and anti-purification power than traditional gradient-based methods. Code will be released in https://github.com/xavihart/Diff-PGD
研究动机与目标
- 激励并解决梯度基方法生成的对抗样本在现实性方面的差距。
- 开发一个扩散模型引导的优化框架,在保持攻击有效性的同时维持分布层面的真实感。
- 实现定制化能力,如区域掩模和风格引导提示,以实现可控攻击。
- 展示基于扩散的对抗样本在可迁移性和抗净化鲁棒性方面的提升。
- 展示在数字、区域、风格化以及物理世界攻击中的适用性。
提出的方法
- 使用预训练的扩散模型通过将输入的净化版本 x0 输入到对抗损失中来引导扰动优化。
- 在每次迭代中通过 SDEdit 用 x0 替换标准 PGD 输入,以使扰动保持接近自然数据分布。
- 引入 Diff-PGD(以及用于区域攻击的 Diff-rPGD),在优化对抗目标的同时保持真实感。
- 将对抗损失与其他代理损失(风格/真实感)分离,以提高稳定性和可控性。
- 扩展到带有提示的定制化攻击(掩模、风格参考)以及通过 Diff-Phys 变体实现的物理世界攻击。
- 通过梯度近似技术提供加速,以在保持效果的同时降低内存/时间成本。
实验结果
研究问题
- RQ1Diff-PGD 是否能生成比传统 PGD 更高真实感(隐蔽性)的对抗样本?
- RQ2扩散引导是否提高对抗样本的可迁移性和抗净化特性?
- RQ3基于扩散的框架能否在区域受限、风格引导以及物理世界对抗攻击中提供更强的可控性?
- RQ4在数字、区域、定制化以及物理攻击方面,Diff-PGD 与 PGD、AdvPatch、AdvCam 的对比如何?
主要发现
- Diff-PGD 产生的对抗样本比 PGD 更隐蔽,扰动看起来更平滑且更具局部依赖性。
- 在数字攻击与区域攻击中,Diff-PGD 与 Diff-rPGD 在多次迭代中取得更高的成功率。
- 带有风格参考的定制攻击保持真实感,并比基于 AdvCam 的方法具有更高的隐蔽性。
- Diff-PGD及其变体对未見模型具有更好的可迁移性,并对净化模块有更强的抗净化鲁棒性。
- 在物理世界攻击中,Diff-Phys 生成更平滑、更真实的补丁,同时仍能成功攻击目标对象。
- 定量结果表明 Diff-PGD 在可迁移性和抗净化方面超越了在测试模型上的基线。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。