# 可认证鲁棒性

可认证鲁棒性描述的是这样一类机器学习模型：它们附带数学证明，保证在给定输入的有界邻域内的任意对抗扰动下，模型的预测都保持不变——因此提供的是一种基于证明的保证，而非仅仅依赖经验的防御。<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup> 该证明会指定一个扰动预算，例如低于某个阈值的L2范数，在此范围内，无论采用何种攻击算法，预测都被保证是稳定的<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 认证的内容 | 在输入周围的有界区域（例如L2或L-infinity球）内不存在改变模型预测的对抗样本<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup> |
| 主要方法族 | 使用可满足性或线性规划求解器的精确验证；区间界传播与抽象解释；通过随机平滑的概率认证<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup> |
| 里程碑式平滑结果 | ImageNet分类器在L2范数小于0.5（=127/255）的对抗扰动下认证top-1准确率为49%<sup>[2](https://proceedings.mlr.press/v97/cohen19c.html)</sup> |
| 认证训练结果 | CROWN-IBP在L-infinity鲁棒性下，MNIST上epsilon = 0.3时验证测试误差为7.02%，CIFAR-10上epsilon = 8/255时为66.94%<sup>[3](https://arxiv.org/abs/1906.06316)</sup> |
| 平滑的已知局限 | 在没有比随机扰动下标签统计更多信息的情况下，对于大输入维度d，随机平滑无法针对Omega(1/sqrt(d))的L-infinity扰动实现非平凡的认证准确率<sup>[4](https://www.microsoft.com/en-us/research/publication/randomized-smoothing-of-all-shapes-and-sizes/)</sup> |
| 主要指标 | 认证准确率，即被验证为鲁棒的评估样本所占比例<sup>[5](https://sokcertifiedrobustness.github.io/)</sup> |

## 为何证明至关重要

经验防御通过攻击来评估。这种评估很难正确进行：大多数被提出的防御很快就被证明是不正确的，而针对特定防御调优的自适应攻击已经绕过了在ICLR、ICML和NeurIPS上发表的13种防御，尽管这些防御自身进行了自适应评估<sup>[6](https://arxiv.org/abs/1902.06705)</sup><sup> • </sup><sup>[7](https://papers.nips.cc/paper/2020/hash/11f38f8ecd71867b42433548d1078e38-Abstract.html)</sup>。证明在其覆盖的区域内填补了这一空白：在认证半径内，任何强度的攻击都无法改变预测，因此这种保证不依赖于攻击者的创造力<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup>。

这种最坏情况的特性，正是可认证鲁棒性被考虑用于医疗诊断和自动驾驶等安全关键应用的原因——在这些场景中，需要对最坏情况行为提供保证<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup>。

## 认证方法

**精确验证。** [可满足性](https://www.edgepedia.org/zh/satisfiability)和线性规划求解器可以精确判定鲁棒性，但计算代价高昂，且仅限于小型网络<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup>。

**区间界传播与抽象解释。** 这些方法在网络中传播边界，可扩展到更大的模型，代价是边界略显宽松<sup>[1](https://aisecurityandsafety.org/en/glossary/certified-robustness/)</sup>。区间界传播（IBP）成为最先进认证训练的基础：米尔曼（Mirman）等人于2018年首次使用区间界训练了一个可认证鲁棒的网络，高瓦尔（Gowal）等人在同年使该方法更加有效<sup>[8](https://proceedings.neurips.cc/paper_files/paper/2021/file/988f9153ac4fd966ea302dd9ab9bae15-Paper.pdf)</sup>。CROWN-IBP在前向传播中结合了快速的IBP边界，在反向传播中结合了更紧的CROWN线性松弛，在MNIST和CIFAR上优于先前的线性松弛和边界传播认证防御<sup>[3](https://arxiv.org/abs/1906.06316)</sup>。

IBP具有可证明的局限。即使一个神经网络只需对三个点进行分类，也存在一个关于这些点的合法规范，区间分析无法确立；对于具有单个隐藏层的网络，一个更强的不可能性结论成立：对于每个半径 \( \alpha < 1 \)，都可以构造 \( O(\alpha^{-1}) \) 个点，两两相距为2，且每个点的鲁棒半径均为 \( \alpha \)，对于这些点，区间分析永远无法认证任何此类网络的鲁棒分类。<sup>[9](https://arxiv.org/abs/2112.05235)</sup>

使用IBP的认证训练也表现出非显而易见的行为。基于不精确区间界的方法始终优于使用更精确边界方法的训练方法。对于深度线性模型，在初始化时边界的紧致度随宽度和深度而降低，但在给定足够宽度的情况下通过IBP训练会得到改善，而IBP边界变为精确的条件施加了强正则化，这解释了观察到的鲁棒性与标准准确率之间的权衡<sup>[10](https://arxiv.org/abs/2306.10426)</sup>。

**随机平滑。** 这种概率方法将任何在高斯噪声下分类良好的分类器转变为在L2范数下可认证鲁棒的分类器。科恩（Cohen）、罗森菲尔德（Rosenfeld）和科尔特（Kolter）证明了高斯平滑的紧致鲁棒性保证，并用它训练了一个ImageNet分类器，在L2扰动低于0.5（=127/255）时认证top-1准确率达到49%；在竞争性认证L2方法可行的较小数据集上，平滑提供了更高的认证准确率<sup>[2](https://proceedings.mlr.press/v97/cohen19c.html)</sup>。平滑需要在测试时进行昂贵的采样，通常应用于L2扰动，并且对[L-infinity](https://www.edgepedia.org/zh/l-infinity)扰动具有根本性局限<sup>[8](https://proceedings.neurips.cc/paper_files/paper/2021/file/988f9153ac4fd966ea302dd9ab9bae15-Paper.pdf)</sup>：在没有比随机输入扰动下的标签统计更多信息的情况下，当输入维度 \( d \) 很大时，它无法针对 \( \Omega(1/\sqrt{d}) \) 的L-infinity扰动实现非平凡的认证准确率<sup>[4](https://www.microsoft.com/en-us/research/publication/randomized-smoothing-of-all-shapes-and-sizes/)</sup>。更广泛地说，概率方法为L1和L2鲁棒性提供保证，但在认证L-infinity鲁棒性方面面临理论局限<sup>[11](https://proceedings.mlr.press/v168/jafarpour22a/jafarpour22a.pdf)</sup>。

## 衡量与比较认证

标准指标是认证准确率，定义为被验证为鲁棒的样本数除以所有被评估的样本数<sup>[5](https://sokcertifiedrobustness.github.io/)</sup>。SoK基准网站追踪论文报告的最高认证准确率；对于概率认证，它只计入认证置信度至少为99.9%的结果<sup>[12](https://sokcertifiedrobustness.github.io/leaderboard/)</sup>。在MNIST上，L-infinity扰动为 \( \epsilon = 0.1 \) 时，领先的条目是确定性方法：CC-IBP为98.43%（ICLR 2024），SABR为98.22%（ICLR 2023），SortNet为98.14%（NeurIPS 2022）<sup>[12](https://sokcertifiedrobustness.github.io/leaderboard/)</sup>。

结果按范数和半径分别报告，跨范数的比较需要进行转换；基准测试中使用的一条规则是：在点 \( x_0 \) 处以L2半径 \( \epsilon \) 认证的模型，对于输入维度 \( d \)，在L-infinity下也以半径 \( \epsilon/\sqrt{d} \) 获得认证<sup>[13](https://sokcertifiedrobustness.github.io/benchmark/)</sup>。

## 近期进展

**类别条件平滑。** 2026年的一种随机平滑算法学习类别特定的噪声分布，其动机是观察到神经网络并非以统一的方式拟合各类别。该方法为高斯平滑估计类别噪声水平，将认证过程扩展到学习到的噪声参数，并可以以可忽略的计算开销纳入基于平滑的认证算法；其评估报告称，在评估的平滑分类器中，认证指标有显著改善<sup>[14](https://www.sciencedirect.com/science/article/pii/S0167865526002321)</sup>。

**保证的范围。** 2025年的一篇立场论文认为，可认证鲁棒性尚不意味着模型安全，并指出了若干空白，包括“检测而无区分”的悖论、缺乏供从业者评估认证方案的明确标准，以及用户对“有保证的”鲁棒性声明的期望所带来的安全风险<sup>[15](https://proceedings.mlr.press/v267/cullen25a.html)</sup>。

## References

1. [Certified Robustness, AI Safety & Security Directory](https://aisecurityandsafety.org/en/glossary/certified-robustness/)
2. [Cohen, J., Rosenfeld, E., Kolter, J. Z. (2019). Certified Adversarial Robustness via Randomized Smoothing. ICML, PMLR 97:1310-1320.](https://proceedings.mlr.press/v97/cohen19c.html)
3. [Zhang, H. et al. (2019). Towards Stable and Efficient Training of Verifiably Robust Neural Networks. arXiv:1906.06316.](https://arxiv.org/abs/1906.06316)
4. [Yang, G., Duan, T., Hu, E., Salman, H., Razenshteyn, I., Li, J. (2020). Randomized Smoothing of All Shapes and Sizes. Microsoft Research.](https://www.microsoft.com/en-us/research/publication/randomized-smoothing-of-all-shapes-and-sizes/)
5. [SoK: Certified Robustness for Deep Neural Networks, main site](https://sokcertifiedrobustness.github.io/)
6. [Carlini, N. et al. (2019). On Evaluating Adversarial Robustness. arXiv:1902.06705.](https://arxiv.org/abs/1902.06705)
7. [Tramer, F., Carlini, N., Brendel, W., Madry, A. (2020). On Adaptive Attacks to Adversarial Example Defenses. NeurIPS 33.](https://papers.nips.cc/paper/2020/hash/11f38f8ecd71867b42433548d1078e38-Abstract.html)
8. [NeurIPS 2021 paper on certified training (related-work section on IBP history and smoothing limitations)](https://proceedings.neurips.cc/paper_files/paper/2021/file/988f9153ac4fd966ea302dd9ab9bae15-Paper.pdf)
9. [Mirman, M., Baader, M., Vechev, M. (2021). The Fundamental Limits of Interval Arithmetic for Neural Networks. arXiv:2112.05235.](https://arxiv.org/abs/2112.05235)
10. [Mao, Y., Müller, M. N., Fischer, M., Vechev, M. (2024). Understanding Certified Training with Interval Bound Propagation. ICLR 2024; arXiv:2306.10426.](https://arxiv.org/abs/2306.10426)
11. [Jafarpour, S. et al. (2022). Robustness Certificates for Implicit Neural Networks: A Mixed Monotone Contractive Approach. L4DC, PMLR 168.](https://proceedings.mlr.press/v168/jafarpour22a/jafarpour22a.pdf)
12. [SoK: Certified Robustness leaderboard](https://sokcertifiedrobustness.github.io/leaderboard/)
13. [SoK: Certified Robustness benchmark](https://sokcertifiedrobustness.github.io/benchmark/)
14. [Jamroż, M., Kurdziel, M. (2026). Certified robustness with class-conditional randomized smoothing. Pattern Recognition Letters 207:220-226.](https://www.sciencedirect.com/science/article/pii/S0167865526002321)
15. [Cullen, A. C. et al. (2025). Position: Certified Robustness Does Not (Yet) Imply Model Security. ICML, PMLR 267:81185-81198.](https://proceedings.mlr.press/v267/cullen25a.html)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/certified-robustness

English original: https://www.edgepedia.org/certified-robustness
