NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Assessment of Randomized Mechanisms for Certifying Adversarial Robustness

Tianhang Zheng, Di Wang, Baochun Li, Jinhui XuarXiv 2020

Abstract

As a certified defensive technique, randomized smoothing has received considerable attention due to its scalability to large datasets and neural networks. However, several important questions remain unanswered, such as (i) whether the Gaussian mechanism is an appropriate option for certifying $\ell_2$-norm robustness, and (ii) whether there is an appropriate randomized (smoothing) mechanism to certify $\ell_\infty$-norm robustness. To shed light on these questions, we argue that the main difficulty is how to assess the appropriateness of each randomized mechanism. In this paper, we propose a generic framework that connects the existing frameworks in \cite{lecuyer2018certified, li2019certified}, to assess randomized mechanisms. Under our framework, for a randomized mechanism that can certify a certain extent of robustness, we define the magnitude of its required additive noise as the metric for assessing its appropriateness. We also prove lower bounds on this metric for the $\ell_2$-norm and $\ell_\infty$-norm cases as the criteria for assessment. Based on our framework, we assess the Gaussian and Exponential mechanisms by comparing the magnitude of additive noise required by these mechanisms and the lower bounds (criteria). We first conclude that the Gaussian mechanism is indeed an appropriate option to certify $\ell_2$-norm robustness. Surprisingly, we show that the Gaussian mechanism is also an appropriate option for certifying $\ell_\infty$-norm robustness, instead of the Exponential mechanism. Finally, we generalize our framework to $\ell_p$-norm for any $p\geq2$. Our theoretical findings are verified by evaluations on CIFAR10 and ImageNet.

Introduction

Deep neural networks are notoriously fragile; small, human-imperceptible perturbations, known as adversarial attacks, can easily flip a model's prediction. Randomized smoothing has emerged as a leading "certifiable" defense against such attacks. It works by adding random noise to an input and taking a majority vote of the predictions. This process provides a mathematical guarantee: within a certain radius (the "robust radius"), the model's prediction is guaranteed to remain constant.

Despite its popularity, a fundamental question has persisted: Which noise distribution is optimal for which type of attack? While researchers have traditionally defaulted to Gaussian noise for $\ell_2$ attacks, there has been no systematic way to determine if this choice is optimal or what mechanism should be employed for $\ell_\infty$ attacks. This research provides a formal "yardstick" to measure the appropriateness of these mechanisms.

Methods: A Generic Assessment Framework

The authors propose a generic assessment framework based on Maximal Relative Rényi (MR) divergence. The framework evaluates mechanisms through three main components:

  1. The Metric: "Appropriateness" is defined by the magnitude of additive noise required to certify a specific level of robustness. A superior mechanism achieves the same level of protection with less noise, preserving more of the model's original "clean" accuracy.
  2. The Criteria: The authors derive theoretical lower bounds on the noise magnitude required by any randomized mechanism to certify robustness for $\ell_2$ and $\ell_\infty$ norms.
  3. The Comparison: By comparing the noise required by specific mechanisms (e.g., Gaussian, Exponential) against these theoretical lower bounds, they calculate the "gap." A smaller gap indicates a near-optimal mechanism.

This framework is significant because it bridges and generalizes previous disparate theories, such as PixelDP and Rényi Divergence-based bounds, into a unified mathematical landscape.

Key Insights and Ideas

The theoretical analysis yielded several counter-intuitive findings:

  • The Gaussian Surprise: One might expect a mechanism tailored to the geometry of the $\ell_\infty$ norm, such as the Exponential mechanism, to be the best choice. However, the authors demonstrate that the Gaussian mechanism is actually more appropriate. The gap between Gaussian noise and the theoretical lower bound is only $O(\sqrt{\log d})$, where $d$ is the dimensionality.
  • The Failure of Exponential Noise: For $\ell_\infty$ certification, the Exponential mechanism requires noise that scales with $O(d)$. In high-dimensional spaces like ImageNet, this "noise explosion" makes the mechanism practically useless as it obliterates the original signal.
Comparison of Gaussian and Exponential mechanisms for $\ell_\infty$ robustness certification. The Gaussian mechanism (1st and 3rd) significantly outperforms the Exponential mechanism (2nd and 4th) in high-dimensional settings.
  • The Curse of Dimensionality: Extending the work to $\ell_p$-norms where $p > 2$, the authors demonstrate a "curse of dimensionality." Certifying robustness for higher-order norms becomes exponentially harder as data dimensionality increases.

Key Results and Empirical Validation

The theoretical findings were verified using standard benchmarks: CIFAR-10 ($d=3072$) and ImageNet ($d=150528$ with ResNet-50).

  • $\ell_2$ Robustness: The Gaussian mechanism is confirmed as an appropriate choice, with a very small gap ($O(\sqrt{\log d})$) from the theoretical optimum.
  • $\ell_\infty$ Robustness: The Gaussian mechanism remains appropriate ($O(\sqrt{\log d})$ gap), while the Exponential mechanism is shown to be poor ($O(\sqrt{d})$ gap).
  • Performance: On both datasets, the Gaussian mechanism certified 40–60% accuracy at radii that matched the predicted $O(1/\sqrt{\log d})$ and $O(1/\sqrt{d \log d})$ scaling laws for $\ell_2$ and $\ell_\infty$ respectively.
Certified $\ell_2$ accuracy across different training regimes (noisy training vs. smooth-adversarial training) and noise levels ($\sigma$).

The framework yielded certified radii comparable to or better than other state-of-the-art methods like Cohen et al. (2019), while providing a much broader theoretical understanding.

Limitations and Future Work

While providing a robust framework, the authors note several areas for further exploration:

  • Tightness of Lower Bounds: It remains unknown if a randomized mechanism exists that can perfectly reach the derived theoretical lower bounds.
  • Scope of Norms: The "curse of dimensionality" results focus on $p \ge 2$. The behavior for $p < 2$ (e.g., $\ell_1$ robustness) is a potential area where the lower bound might vanish as $d \to \infty$.
  • Computational Cost: Like all randomized smoothing methods, this approach requires multiple inferences per sample to estimate the "smoothed" prediction, which remains a hurdle for real-time applications.

Summary updated

BibTeX
@misc{zheng2020towards,
  author = {Tianhang Zheng and Di Wang and Baochun Li and Jinhui Xu},
  title = {{Towards Assessment of Randomized Mechanisms for Certifying Adversarial Robustness}},
  year = {2020},
  eprint = {2005.07347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.07347},
}
Figure