Black-Box Certification with Randomized Smoothing: A Functional Optimization Based Framework

Dinghuai Zhang, Mao Ye, Chengyue Gong, Zhanxing Zhu, Qiang Liu

Abstract

Deep neural networks are vulnerable to adversarial attacks, necessitating robust certification methods. This paper introduces a unified functional optimization framework for randomized smoothing. By identifying the "thin shell" phenomenon—where high-dimensional noise clusters away from the data point—the authors develop a new family of "centripetal" smoothing distributions. These distributions significantly improve certified robustness for $\ell_1, \ell_2,$ and $\ell_\infty$ attacks on standard benchmarks like CIFAR-10 and ImageNet.

Introduction

Adversarial perturbations, though often imperceptible, can drastically alter the predictions of deep neural networks. While heuristic defenses are common, they are frequently bypassed. Certified robustness offers a more rigorous alternative, providing mathematical guarantees that a classifier's output remains stable within a defined radius around an input.

Randomized smoothing is a leading technique for achieving such guarantees. It involves creating a smoothed version of a base classifier by averaging its predictions over random noise added to the input. However, traditional methods predominantly rely on Gaussian noise, which is optimized for $\ell_2$ distance and suffers in high-dimensional spaces. A key geometric hurdle is the "thin shell" phenomenon: in high dimensions, standard distributions like Gaussian or Laplacian concentrate their probability mass on a sphere far from the original image, complicating the balance between accuracy and robustness.

A Functional Optimization Framework

The authors re-envision randomized smoothing as a functional optimization problem. Instead of ad-hoc proofs, they formulate certification as finding the minimum possible value of a smoothed classifier, subject to the constraint that it correctly classifies the original point.

Using Lagrangian duality, this complex search is transformed into a one-dimensional optimization. A significant theoretical contribution is the mathematical decomposition of the certification bound into two parts: an "Accuracy" term and a "Robustness" (discrepancy) term. This clarifies exactly how changing the noise distribution affects the final guarantee.

The framework decomposes certification into accuracy and robustness terms, showing how mixed-norm distributions can optimize this trade-off.

Centripetal and Mixed-Norm Distributions

To overcome the "thin shell" effect, the paper proposes centripetal distributions. By adding a term proportional to $\|\mathbf{z}\|^{-k}$ to the probability density function, the noise is forced to concentrate more heavily near the original image, effectively "canceling out" the geometric expansion of high-dimensional space.

For the challenging task of $\ell_\infty$ certification, the authors introduce mixed-norm distributions that combine $\ell_2$ and $\ell_\infty$ terms. This approach allows the noise to better cover the "corners" of an $\ell_\infty$ perturbation ball, leading to tighter certification bounds than standard isotropic distributions.

Experimental Results

The framework was evaluated on CIFAR-10 and ImageNet using ResNet architectures. The proposed centripetal and mixed-norm distributions consistently outperformed Gaussian and Laplacian baselines across multiple norms:

  • $\ell_1$ Robustness: On CIFAR-10, the proposed method achieved 34% certified accuracy at a radius of 1.0, surpassing the 30% achieved by the Laplacian baseline.
  • $\ell_2$ Robustness: On ImageNet, the new distributions provided a consistent boost, such as 21% vs 19% at a radius of 2.0.
  • $\ell_\infty$ Robustness: In this difficult setting, the mixed-norm approach significantly outperformed Gaussian smoothing. For example, on CIFAR-10, it achieved 32% accuracy vs 25% for the baseline at a radius of 8/255.
Comparison of certified accuracy for $\ell_\infty$ robustness between standard Gaussian smoothing and the proposed method across different noise levels.

Conclusion

This work provides a unified "recipe" for deriving certification bounds for any noise distribution. By addressing the geometric limitations of standard distributions in high dimensions, the proposed centripetal and mixed-norm smoothing techniques set new state-of-the-art results for certified robustness. Future research may involve incorporating additional constraints, such as Lipschitz constants, into the optimization framework to further tighten these bounds.

Summary updated

BibTeX
@inproceedings{zhang2020black,
  author = {Dinghuai Zhang and Mao Ye and Chengyue Gong and Zhanxing Zhu and Qiang Liu},
  title = {{Black-Box Certification with Randomized Smoothing: A Functional Optimization Based Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure