# 对抗性补丁

对抗性补丁是一种经过精心优化的小型图像图案，将其置于场景中，或打印出来附着在物体上，会使深度神经网络对该物体产生误分类或无法检测。与经典对抗样本——对图像每个像素施加微小扰动——不同，补丁将扰动集中在局部区域，不对逐像素强度施加约束，且在打印和拍摄后仍然有效。<sup>[1](https://arxiv.org/abs/1712.09665)</sup><sup> • </sup><sup>[2](https://www.mdpi.com/2079-9292/14/21/4236)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由汤姆·B·布朗、丹德利昂·马内、奥尔科·罗伊、马丁·阿巴迪和贾斯汀·吉尔默在《对抗性补丁》（arXiv，2017年12月27日提交）中提出<sup>[1](https://arxiv.org/abs/1712.09665)</sup> |
| 定义性特征 | 通用性（适用于任何场景）、鲁棒性（经受多种变换后仍有效）和定向性（使分类器输出任意指定类别）<sup>[1](https://arxiv.org/abs/1712.09665)</sup> |
| 优化方法 | 在随机图像、位置和变换上使用变换期望（EOT）进行训练<sup>[3](https://adversarialml.dev/posts/adversarial-patch-attacks/)</sup> |
| 攻击目标 | 隐藏攻击，使检测器漏检物体；篡改攻击，使检测器对物体误分类<sup>[4](https://www.usenix.org/system/files/conference/usenixsecurity26/sec26_prepub_wang-jiayimei.pdf)</sup> |
| 物理形态 | 打印在纸张或表面上并粘贴于物体；补丁通常形状规则（如圆形），而贴纸形状不规则，可适应汽车、交通标志和行人等非刚性表面<sup>[2](https://www.mdpi.com/2079-9292/14/21/4236)</sup> |
| 现实性检验 | 在包含14,651张道路标志图像的REAP基准上，现有攻击未能在多数图像上取得成功，且在较简单数字仿真中的成功并不能预测真实世界中的有效性<sup>[5](https://people.eecs.berkeley.edu/~daw/papers/reap-iccv23.pdf)</sup> |
| 防御类别 | 经验性检测与移除流程、可证明鲁棒的架构（如PatchGuard）以及对抗训练<sup>[6](https://www.usenix.org/system/files/sec21-xiang.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/2003.06693)</sup> |

## 起源与定义性特征

对抗性补丁由时任[谷歌大脑](https://www.edgepedia.org/zh/google-brain)（Google Brain）研究员的汤姆·B·布朗、丹德利昂·马内、奥尔科·罗伊、马丁·阿巴迪和贾斯汀·吉尔默在2017年12月27日提交至arXiv的论文中提出。<sup>[1](https://arxiv.org/abs/1712.09665)</sup> 该方法生成的补丁具有通用性——一个补丁可攻击任何场景；鲁棒性——在多种变换下仍然有效；以及定向性——可使分类器输出攻击者选定的任意类别。即使补丁很小，打印出来后也能使分类器忽略场景中的其他物体，转而报告选定的目标类别。<sup>[1](https://arxiv.org/abs/1712.09665)</sup>

后来的一项实证调查将原始攻击描述为一种白盒方法，即利用梯度下降为给定网络优化补丁；该补丁在数据集中的图像间具有通用性，但可能过拟合于网络架构。这种通用性引发了担忧：攻击者可能针对给定数据集生成通用的离线攻击。<sup>[8](https://link.springer.com/article/10.1007/s10462-023-10521-4)</sup>

## 补丁的制作方法

**优化目标。** 补丁生成在随机图像、补丁位置和变换的期望下最大化目标类别的概率，使用阿塔利耶及其同事开发的变换期望（EOT）框架使扰动对随机变换具有鲁棒性。<sup>[3](https://adversarialml.dev/posts/adversarial-patch-attacks/)</sup> 在物理攻击文献中，EOT被描述为一种数据增强技术，在优化过程中考虑潜在的真实世界变换，从而提高对观察距离、角度和光照变化的鲁棒性。<sup>[9](https://www.researchgate.net/publication/367062620_A_Survey_on_Physical_Adversarial_Attack_in_Computer_Vision)</sup>

**物理可实现性。** 由于扰动被限制在无强度约束的小区域内，部署时只需打印并粘贴到目标表面，这使得该方法简单易行，在各类攻击任务中被广泛使用。<sup>[2](https://www.mdpi.com/2079-9292/14/21/4236)</sup> 面向物理部署的优化增加了诸如不可打印分数等约束，迫使扰动使用打印机实际能够再现的颜色，并考虑补丁的精确放置。<sup>[10](https://openaccess.thecvf.com/content/CVPR2021/papers/Zolfi_The_Translucent_Patch_A_Physical_and_Universal_Attack_on_Object_CVPR_2021_paper.pdf)</sup>

**威胁模型。** 白盒攻击在完全了解受害模型的情况下进行优化；黑盒攻击使用基于查询的细化，或从本地训练的替代模型进行迁移，期望补丁的对抗特性能够传递到未知目标上。<sup>[11](https://www.preprints.org/manuscript/202510.1706/v1/download)</sup>

## 攻击目标与对象

对抗性补丁攻击通常追求两个目标：隐藏攻击，即补丁使检测器无法识别其所覆盖的物体；以及篡改攻击，即物体被误分类为其他类别。<sup>[4](https://www.usenix.org/system/files/conference/usenixsecurity26/sec26_prepub_wang-jiayimei.pdf)</sup> 在针对自动驾驶车辆的物体消失变体中，补丁攻击可导致检测模型无法检测到场景中的大部分或全部物体。<sup>[12](https://arxiv.org/abs/2412.06215)</sup>

**自动驾驶与监控**是被引用最多的风险场景。贴在停车标志上的贴纸可能使自动驾驶汽车将其读作限速标志而未能停车，类似攻击已在学术环境和真实世界的自动驾驶车辆上得到验证。<sup>[5](https://people.eecs.berkeley.edu/~daw/papers/reap-iccv23.pdf)</sup> 补丁攻击还扩展到目标检测之外：CAPatch是一种占据图像5%的物理补丁，在视频录制器上对图像描述系统实现了持续攻击，其中描述篡改攻击成功率达73.1%，关键词隐藏攻击成功率达92.4%。<sup>[13](https://www.usenix.org/system/files/usenixsecurity23-zhang-shibo.pdf)</sup> 针对视觉语言模型，补丁式视觉提示注入被描述为最现实的物理威胁模型，而一种使用扩散模型先验的自然化补丁方法在白盒图像到文本实验中报告了100%的攻击成功率。<sup>[14](https://arxiv.org/abs/2405.10529)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/2410.04884)</sup>

**变体**将基本思路适配到更严苛的条件。TPatch在正常情况下保持良性，仅通过注入摄像头的声学信号触发隐藏、创建或篡改攻击；该方案针对YOLO V3/V5和Faster R-CNN检测器以及八种图像分类器进行了评估。<sup>[16](https://www.usenix.org/conference/usenixsecurity23/presentation/zhu)</sup> 一种统一的跨模态补丁用单一打印图案同时欺骗可见光和红外目标检测器。<sup>[17](https://openaccess.thecvf.com/content/ICCV2023/papers/Wei_Unified_Adversarial_Patch_for_Cross-Modal_Attacks_in_the_Physical_World_ICCV_2023_paper.pdf)</sup>

## 补丁在真实世界中的有效性如何？

数字评估往往夸大了威胁。REAP基准基于Mapillary Vistas数据集构建，包含14,651张经几何和光照变换增强的道路标志图像，发现现有攻击在现实条件下未能在多数图像上取得成功，这与较简单基准上接近100%的成功率形成对比。经[对抗训练](https://www.edgepedia.org/zh/adversarial-training)的模型几乎完全阻止了攻击，而在良性数据上仅有轻微性能下降。对攻击成功率最显著的一阶效应来自光照变换和补丁定位，透视变换的重要性略低。<sup>[5](https://people.eecs.berkeley.edu/~daw/papers/reap-iccv23.pdf)</sup> APRICOT数据集包含1,000多张在公共场所拍摄的打印补丁标注照片，同样得出结论：在不受控环境中保持对抗鲁棒性极具挑战性，尽管在白盒以及有时黑盒设置下仍可实现定向检测。<sup>[18](https://arxiv.org/abs/1912.08166)</sup>

## 防御

**检测与移除。** 许多防御方法定位补丁并重建图像。分割与补全（SAC）框架训练U-Net分割器来检测和移除补丁，并引入了带有像素级补丁标签的APRICOT-Mask标注。<sup>[19](https://arxiv.org/abs/2112.04532)</sup> 在CVPR 2024上提出的PAD是一种与补丁无关的定位与移除方法，无需攻击的先验知识或额外训练，消除了对现有攻击数据的依赖。<sup>[20](https://openaccess.thecvf.com/content/CVPR2024/papers/Jing_PAD_Patch-Agnostic_Defense_against_Adversarial_Patch_Attacks_CVPR_2024_paper.pdf)</sup> APEX是一个零样本三阶段框架，先用边界框集中候选区域，再通过融合互信息模糊热图和边缘感知边界热图来定位补丁，最后用结构引导的图像修复恢复图像；它无需重新训练即可处理非自然化、自然化和红外补丁。<sup>[4](https://www.usenix.org/system/files/conference/usenixsecurity26/sec26_prepub_wang-jiayimei.pdf)</sup>

**可证明鲁棒性。** 在USENIX Security 2021上提出的PatchGuard使用小感受野的CNN来限制补丁可破坏的特征数量，然后应用鲁棒掩码聚合来检测和掩蔽被破坏的特征；其在威胁模型内对任意对手的鲁棒性是可证明的，并在ImageNet、ImageNette和CIFAR-10上取得了最先进的可证明鲁棒准确率和干净准确率。<sup>[6](https://www.usenix.org/system/files/sec21-xiang.pdf)</sup> 更广泛地针对补丁的认证防御至少自2020年以来一直是活跃的研究方向。<sup>[7](https://arxiv.org/abs/2003.06693)</sup>

**基于训练和系统级的防御。** 针对位置优化补丁的对抗训练被证明不会降低干净准确率，这与针对不可感知样本的对抗训练不同。<sup>[21](https://arxiv.org/abs/2005.02313)</sup> 对于视觉语言模型，SmoothVLM利用补丁提示对像素级随机化的敏感性，将两个领先VLM上的攻击成功率降至0%至5.0%之间，同时恢复67.3%至95.0%的良性图像上下文。<sup>[14](https://arxiv.org/abs/2405.10529)</sup> 对于嵌入式平台，PatchGuard-Freq将频域中的检测与通过对抗微调进行的缓解分离，不增加推理模块或架构变更。<sup>[22](https://www.mdpi.com/2073-431X/15/9/631)</sup>

**防御评估。** 2025年ICCV的一项基准使用13种补丁攻击、11种目标检测器以及包含94种补丁类型、覆盖94,000张图像的新数据集重新审视了11种代表性防御。该研究发现，防御自然化补丁的困难在于其数据分布而非普遍认为的高频特性；被攻击物体上的平均精度比补丁检测准确率更能预测防御性能；自适应攻击可以大幅绕过现有防御。<sup>[23](https://openaccess.thecvf.com/content/ICCV2025/html/Zheng_Revisiting_Adversarial_Patch_Defenses_on_Object_Detectors_Unified_Evaluation_Large-Scale_ICCV_2025_paper.html)</sup>

## 意义

对抗性补丁为机器学习安全确立了一个物理可实现的威胁模型：攻击者无需访问训练数据或模型内部信息，只需能够打印图案并将其置于摄像头视野中。这种简便性使补丁成为自动驾驶、监控以及近来多模态系统鲁棒性的标准压力测试，而自2023年以来的基准工作已缩小了相对于早期数字仿真的估计真实世界风险。<sup>[1](https://arxiv.org/abs/1712.09665)</sup><sup> • </sup><sup>[5](https://people.eecs.berkeley.edu/~daw/papers/reap-iccv23.pdf)</sup><sup> • </sup><sup>[14](https://arxiv.org/abs/2405.10529)</sup>

## References

1. [Tom B. Brown, Dandelion Mané, Aurko Roy, Martín Abadi, Justin Gilmer (2017). Adversarial Patch. arXiv:1712.09665.](https://arxiv.org/abs/1712.09665)
2. [From 2D-Patch to 3D-Camouflage: A Review of Physical Adversarial Attack in Object Detection. Electronics (MDPI), 2025.](https://www.mdpi.com/2079-9292/14/21/4236)
3. [Adversarial Patch Attacks in the Physical World. adversarialml.dev.](https://adversarialml.dev/posts/adversarial-patch-attacks/)
4. [Jiayimei Wang et al. Adversarial Patch EXterminator: Zero-Shot and Patch-Agnostic Defense Framework Against Adversarial Patch Attacks. USENIX Security.](https://www.usenix.org/system/files/conference/usenixsecurity26/sec26_prepub_wang-jiayimei.pdf)
5. [Nabeel Hingun, Chawin Sitawarin, Jerry Li, David Wagner (2023). REAP: A Large-Scale Realistic Adversarial Patch Benchmark. ICCV 2023.](https://people.eecs.berkeley.edu/~daw/papers/reap-iccv23.pdf)
6. [Chong Xiang, Arjun Nitin Bhagoji, Vikash Sehwag, Prateek Mittal (2021). PatchGuard: A Provably Robust Defense against Adversarial Patches. USENIX Security 2021.](https://www.usenix.org/system/files/sec21-xiang.pdf)
7. [Certified Defenses for Adversarial Patches. arXiv:2003.06693.](https://arxiv.org/abs/2003.06693)
8. [Safety-critical computer vision: an empirical survey of adversarial evasion attacks and defenses. Artificial Intelligence Review.](https://link.springer.com/article/10.1007/s10462-023-10521-4)
9. [A Survey on Physical Adversarial Attack in Computer Vision. ResearchGate.](https://www.researchgate.net/publication/367062620_A_Survey_on_Physical_Adversarial_Attack_in_Computer_Vision)
10. [Ori Zolfi et al. (2021). The Translucent Patch: A Physical and Universal Attack on Object Detectors. CVPR 2021.](https://openaccess.thecvf.com/content/CVPR2021/papers/Zolfi_The_Translucent_Patch_A_Physical_and_Universal_Attack_on_Object_CVPR_2021_paper.pdf)
11. [Physical adversarial patches preprint. Preprints.org.](https://www.preprints.org/manuscript/202510.1706/v1/download)
12. [Jaden Mu (2024). A Real-Time Defense Against Object Vanishing Adversarial Patch Attacks for Object Detection in Autonomous Vehicles. arXiv:2412.06215.](https://arxiv.org/abs/2412.06215)
13. [Shibo Zhang et al. (2023). CAPatch: Physical Adversarial Patch against Image Captioning Systems. USENIX Security 2023.](https://www.usenix.org/system/files/usenixsecurity23-zhang-shibo.pdf)
14. [Jiachen Sun et al. (2024). Safeguarding Vision-Language Models Against Patched Visual Prompt Injectors. arXiv:2405.10529.](https://arxiv.org/abs/2405.10529)
15. [Dehong Kong et al. (2024). Patch is Enough: Naturalistic Adversarial Patch against Vision-Language Pre-training Models. arXiv:2410.04884.](https://arxiv.org/abs/2410.04884)
16. [Wenjun Zhu et al. (2023). TPatch: A Triggered Physical Adversarial Patch. USENIX Security 2023.](https://www.usenix.org/conference/usenixsecurity23/presentation/zhu)
17. [Xingxing Wei et al. (2023). Unified Adversarial Patch for Cross-Modal Attacks in the Physical World. ICCV 2023.](https://openaccess.thecvf.com/content/ICCV2023/papers/Wei_Unified_Adversarial_Patch_for_Cross-Modal_Attacks_in_the_Physical_World_ICCV_2023_paper.pdf)
18. [Anneliese Braunegg et al. (2020). APRICOT: A Dataset of Physical Adversarial Attacks on Object Detection. ECCV 2020.](https://arxiv.org/abs/1912.08166)
19. [Segment and Complete: Defending Object Detectors against Adversarial Patch Attacks with Robust Patch Detection. arXiv:2112.04532.](https://arxiv.org/abs/2112.04532)
20. [Lihua Jing et al. (2024). PAD: Patch-Agnostic Defense against Adversarial Patch Attacks. CVPR 2024.](https://openaccess.thecvf.com/content/CVPR2024/papers/Jing_PAD_Patch-Agnostic_Defense_against_Adversarial_Patch_Attacks_CVPR_2024_paper.pdf)
21. [Adversarial Training against Location-Optimized Adversarial Patches. arXiv:2005.02313.](https://arxiv.org/abs/2005.02313)
22. [PatchGuard-Freq: Zero-Overhead Adversarial Patch Defense via Frequency Detection and Data-Driven Robustness. Computers (MDPI), 2026.](https://www.mdpi.com/2073-431X/15/9/631)
23. [Junhao Zheng et al. (2025). Revisiting Adversarial Patch Defenses on Object Detectors: Unified Evaluation, Large-Scale Dataset, and New Insights. ICCV 2025.](https://openaccess.thecvf.com/content/ICCV2025/html/Zheng_Revisiting_Adversarial_Patch_Defenses_on_Object_Detectors_Unified_Evaluation_Large-Scale_ICCV_2025_paper.html)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Safety methods, interpretability, and red-teaming › Adversarial attacks

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/adversarial-patch

English original: https://www.edgepedia.org/adversarial-patch
