# 通用对抗扰动

通用对抗扰动（universal adversarial perturbation, UAP）是一种单一的、与图像无关的噪声向量，将其加到大多数自然图像上，会使深度神经网络分类器将其错误分类，同时对人类观察者来说几乎不可察觉。这一概念由赛义德-莫赫森·穆萨维-德兹富利（Seyed-Mohsen Moosavi-Dezfooli）、阿尔侯赛因·法齐（Alhussein Fawzi）、奥马尔·法齐（Omar Fawzi）和帕斯卡尔·弗罗萨德（Pascal Frossard）在2016年的一篇arXiv论文和2017年的一篇CVPR论文中提出，这些工作表明最先进的图像分类器对整个数据集一次性计算出的一个固定扰动高度脆弱。<sup>[1](https://openaccess.thecvf.com/content_cvpr_2017/html/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.html)</sup><sup> • </sup><sup>[2](https://arxiv.org/abs/1610.08401)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 一个单一的准不可察觉扰动向量，能够使目标深度神经网络在大多数自然图像上出错，且与输入无关。<sup>[1](https://openaccess.thecvf.com/content_cvpr_2017/html/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.html)</sup> |
| 提出者 | 穆萨维-德兹富利、法齐、法齐和弗罗萨德；arXiv 2016年10月，CVPR 2017，第1765-1773页。<sup>[2](https://arxiv.org/abs/1610.08401)</sup><sup> • </sup><sup>[1](https://openaccess.thecvf.com/content_cvpr_2017/html/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.html)</sup> |
| 核心算法 | 遍历训练图像，除非当前向量已能使该图像出错，否则用DeepFool计算每张图像的最小扰动，并将其累加到通用向量中，投影以保持在范数界限内。<sup>[3](https://addi.ehu.es/bitstream/handle/10810/55137/1-s2.0-S0167404821003199-main.pdf?isAllowed=y&sequence=1)</sup> |
| 成功指标 | 欺骗率：加入扰动后预测标签发生变化的图像所占比例。<sup>[3](https://addi.ehu.es/bitstream/handle/10810/55137/1-s2.0-S0167404821003199-main.pdf?isAllowed=y&sequence=1)</sup> |
| 迁移性 | 扰动可跨神经网络泛化，使其具有双重通用性（与图像无关且与网络无关）。<sup>[4](https://openaccess.thecvf.com/content_cvpr_2017/papers/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.pdf)</sup> |
| 几何解释 | 一个低维子空间捕捉了决策边界各区域之间的相关性；从该子空间中随机选取一个方向可欺骗近38%的图像，而随机扰动仅约10%。<sup>[4](https://openaccess.thecvf.com/content_cvpr_2017/papers/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.pdf)</sup> |
| 实用吸引力 | 由于扰动是预先计算的，攻击时几乎不需要计算，这使得UAP比逐图像攻击更易于部署。<sup>[5](https://arxiv.org/abs/2005.08087)</sup> |

## 原始算法的工作原理

2017年的方法迭代地构建扰动。给定包含n个样本的训练集，算法每次取一张图像，如果当前通用向量v尚未改变该图像的标签，则使用DeepFool算法计算到达决策边界所需的每图像最小扰动，然后将该局部扰动加到v上。每次累加后，v被投影回半径为ε的ℓ_p球内，以保持噪声较小。该过程在数据集上重复，直到欺骗率——即在x + v下标签发生变化的图像比例——不再提升。<sup>[3](https://addi.ehu.es/bitstream/handle/10810/55137/1-s2.0-S0167404821003199-main.pdf?isAllowed=y&sequence=1)</sup>

原始论文报告称，此类向量在标准基准上以高概率欺骗自然图像，同时具有准不可察觉性，并且它们可迁移到在同一任务上训练的不同网络架构之间。<sup>[1](https://openaccess.thecvf.com/content_cvpr_2017/html/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.html)</sup> 作者将这一现象归因于高维决策边界不同区域之间的几何相关性，假设存在一个包含自然图像周围边界法向量的低维子空间；从该子空间中随机抽取的一个方向可欺骗近38%的图像，而同等大小的随机扰动仅能欺骗约10%。<sup>[4](https://openaccess.thecvf.com/content_cvpr_2017/papers/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.pdf)</sup>

## 生成方法

后续工作将UAP生成分为两大类。数据驱动方法使用来自训练分布的样本，通常最大化数据上的分类损失（如交叉熵），一般能达到更高的欺骗率。无数据方法不需要访问训练数据，这在目标模型的数据不可用时尤为重要；莫普里（Mopuri）及其同事提出的快速特征愚弄（Fast Feature Fool, FFF）方法直接最大化卷积层的激活值，在没有任何输入图像的情况下通过网络累积误差。<sup>[6](https://openaccess.thecvf.com/content/ICCV2023/papers/Liu_TRM-UAP_Enhancing_the_Transferability_of_Data-Free_Universal_Adversarial_Perturbation_via_ICCV_2023_paper.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/2306.11261)</sup>

2023年的一项比较评估将该领域分为基于噪声的攻击（优化一个固定向量）和基于生成器的攻击（训练一个输出扰动的网络），并在白盒与黑盒、有目标与无目标设置下评估了损失函数、替代模型选择和训练数据规模。<sup>[7](https://arxiv.org/abs/2306.11261)</sup> 跨模型迁移性是核心目标：在替代模型上构造的扰动应当能欺骗其他架构，已有方法通过利用层次特征和非加性空间变换（如旋转和平移）来改进这一点。<sup>[8](https://www.sciencedirect.com/science/article/pii/S0957417426016842)</sup>

## 超越图像分类

通用扰动的思想扩展到其他任务和模态。梅岑（Metzen）、库马尔（Kumar）、布罗克斯（Brox）和菲舍尔（Fischer）在ICCV 2017上展示，几乎不可察觉的通用噪声可以迫使语义分割网络对任意输入产生几乎相同的目标分割，或者从分割中移除选定类别（如所有行人），同时保持其余部分基本不变。<sup>[9](https://openaccess.thecvf.com/content_ICCV_2017/papers/Metzen_Universal_Adversarial_Perturbations_ICCV_2017_paper.pdf)</sup> 李（Li）、张（Zhang）和黄（Huang）将该思想扩展到目标检测，报告了检测器级通用扰动的首次实证演示，使检测器在大多数图像上无法找到任何目标，以及仅消除目标类别检测的类别特定版本。<sup>[10](https://doi.org/10.1016/j.patcog.2020.107584)</sup>

在音频领域，研究人员展示了使自动语音识别系统对任意语音信号产生错误转录的通用扰动，以及一种2023年将环境噪声整合到生成中的方法，产生了真实世界的UAP，在任意输入波形上将词错误率提高至最高80%。<sup>[11](https://www.sciencedirect.com/science/article/pii/S2667295222000502)</sup> 通用攻击也被应用于视觉-语言预训练模型，其中单一扰动会降低跨图像-文本任务的多模态对齐。<sup>[12](https://arxiv.org/abs/2406.05491)</sup>

## 防御

**对抗训练。** 沙法希（Shafahi）及其同事在AAAI 2020上提出了通用对抗训练，最小化网络权重和共享扰动上的损失。在CIFAR-10上，自然训练的WideResNet在通用扰动下准确率为9.2%，而他们用uFGSM训练的模型保持了91.8%的准确率，干净准确率为93.50%；一种在单次反向传播中更新权重和扰动的低成本变体达到了86.1%的鲁棒准确率，训练时间约为完整方法的一半。在ImageNet上，他们的随机方法生成的通用扰动将ResNet-152的验证准确率从76.8%降至16.4%，将Inception-V3从78%降至20.1%。<sup>[13](https://ojs.aaai.org/index.php/AAAI/article/download/6017/5873)</sup> 佩罗拉（Perolat）及其同事在谷歌提出的更早的博弈论建模将鲁棒训练表述为分类器与扰动生成器之间的两人零和博弈，在CIFAR-10、CIFAR-100和ImageNet上进行了评估。<sup>[14](https://research.google/pubs/playing-the-game-of-universal-adversarial-perturbations/)</sup>

**认证。** 经验性防御不能证明鲁棒性，因此曾（Zeng）、石（Shi）及其同事在ICLR 2023上提出了首个针对通用扰动的鲁棒认证方法，将基于线性松弛的扰动分析与混合整数线性规划相结合，并利用了所有样本共享一个扰动的约束——这是逐样本认证所忽略的。该认证还能比较模型鲁棒性并检测后门目标类别。<sup>[15](https://ai.sony/publications/Towards-Robustness-Certification-Against-Universal-Perturbations/)</sup> 后续的认证训练工作，如徐（Xu）和辛格（Singh）在ECCV 2024上的跨输入方法，将标准准确率较先前认证训练提高了多达10.3%，同时达到了最先进的认证UAP准确率。<sup>[16](https://www.ecva.net/papers/eccv_2024/papers_ECCV/html/8210_ECCV_2024_paper.php)</sup>

**攻击本身的鲁棒性。** 实际部署会在扰动到达模型之前对其进行扭曲。徐和辛格在ICML 2024上构造了能在旋转和对比度变化等真实世界变换下存活的UAP，并泛化到雾和JPEG压缩等未见变换，在CIFAR-10和ILSVRC 2012上生成的扰动比先前基线鲁棒性高出多达23%。<sup>[17](https://proceedings.mlr.press/v235/xu24v.html)</sup>

## 这一现象为何重要

输入空间中存在一个单一方向即可在大多数自然图像上破坏分类器，这表明深度网络的脆弱性不限于单独构造的样本。该领域的综述指出，UAP比逐图像攻击更易于部署，因为攻击时几乎不需要计算，而理解和防御它们仍然是一个活跃的研究领域，涵盖构造方法、对其存在性的解释以及防御。<sup>[5](https://arxiv.org/abs/2005.08087)</sup><sup> • </sup><sup>[18](https://www.ijcai.org/proceedings/2021/635)</sup>

## References

1. [Moosavi-Dezfooli, S.-M., Fawzi, A., Fawzi, O., Frossard, P. (2017). Universal Adversarial Perturbations. CVPR 2017, pp. 1765-1773.](https://openaccess.thecvf.com/content_cvpr_2017/html/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.html)
2. [Moosavi-Dezfooli, S.-M., et al. (2016). Universal adversarial perturbations. arXiv:1610.08401.](https://arxiv.org/abs/1610.08401)
3. [Computers & Security 112 (2022) 102495, describing the UAP algorithm and fooling ratio.](https://addi.ehu.es/bitstream/handle/10810/55137/1-s2.0-S0167404821003199-main.pdf?isAllowed=y&sequence=1)
4. [Moosavi-Dezfooli, S.-M., et al. (2017). Universal Adversarial Perturbations, CVPR 2017 paper PDF.](https://openaccess.thecvf.com/content_cvpr_2017/papers/Moosavi-Dezfooli_Universal_Adversarial_Perturbations_CVPR_2017_paper.pdf)
5. [Chaubey, A., et al. (2020). Universal Adversarial Perturbations: A Survey. arXiv:2005.08087.](https://arxiv.org/abs/2005.08087)
6. [Liu et al. (2023). TRM-UAP: Enhancing the Transferability of Data-Free Universal Adversarial Perturbation. ICCV 2023.](https://openaccess.thecvf.com/content/ICCV2023/papers/Liu_TRM-UAP_Enhancing_the_Transferability_of_Data-Free_Universal_Adversarial_Perturbation_via_ICCV_2023_paper.pdf)
7. [Weng, J., Luo, Z., Lin, D., Li, S. (2023). Comparative Evaluation of Recent Universal Adversarial Perturbations in Image Classification. arXiv:2306.11261.](https://arxiv.org/abs/2306.11261)
8. [Improving generalization of universal adversarial perturbation via integrating hierarchical features and spatial transformations. Expert Systems with Applications.](https://www.sciencedirect.com/science/article/pii/S0957417426016842)
9. [Metzen, J. H., Kumar, M. C., Brox, T., Fischer, V. (2017). Universal Adversarial Perturbations Against Semantic Image Segmentation. ICCV 2017, pp. 2755-2764.](https://openaccess.thecvf.com/content_ICCV_2017/papers/Metzen_Universal_Adversarial_Perturbations_ICCV_2017_paper.pdf)
10. [Li, D., Zhang, J., Huang, K. (2021). Universal adversarial perturbations against object detection. Pattern Recognition 110:107584.](https://doi.org/10.1016/j.patcog.2020.107584)
11. [A robust adversarial attack against speech recognition with UAP. High-Confidence Computing 3(1), 2023.](https://www.sciencedirect.com/science/article/pii/S2667295222000502)
12. [Fang, H., et al. (2024). One Perturbation is Enough: On Generating Universal Adversarial Perturbations against Vision-Language Pre-training Models. arXiv:2406.05491.](https://arxiv.org/abs/2406.05491)
13. [Shafahi, A., et al. (2020). Universal Adversarial Training. AAAI 2020.](https://ojs.aaai.org/index.php/AAAI/article/download/6017/5873)
14. [Perolat, J., et al. (2018). Playing the Game of Universal Adversarial Perturbations. arXiv.](https://research.google/pubs/playing-the-game-of-universal-adversarial-perturbations/)
15. [Zeng, Y., Shi, Z., et al. (2023). Towards Robustness Certification Against Universal Perturbations. ICLR 2023.](https://ai.sony/publications/Towards-Robustness-Certification-Against-Universal-Perturbations/)
16. [Xu, C., Singh, G. (2024). Cross-Input Certified Training for Universal Perturbations. ECCV 2024.](https://www.ecva.net/papers/eccv_2024/papers_ECCV/html/8210_ECCV_2024_paper.php)
17. [Xu, C., Singh, G. (2024). Robust Universal Adversarial Perturbations. ICML 2024, PMLR 235:55241-55266.](https://proceedings.mlr.press/v235/xu24v.html)
18. [Zhang, C., Benz, P., et al. (2021). A Survey on Universal Adversarial Attack. IJCAI 2021, pp. 4687-4694.](https://www.ijcai.org/proceedings/2021/635)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 基础模型方法与训练 › 安全方法、可解释性与红队测试 › 对抗攻击

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/universal-adversarial-perturbation

English original: https://www.edgepedia.org/universal-adversarial-perturbation
