Certified Adversarial Robustness via Randomized Smoothing 2: The Certified ℓ2 Radius Cannot Be EnlargedResearch Paper
Motivation
Neural-network classifiers can be made to change their output by perturbations of the input that are imperceptible to a person. A certified defense is a classifier together with a proof that its prediction at a point does not change for any perturbation in a stated set, typically an ball . Randomized smoothing turns an arbitrary base classifier into one with such a certificate by classifying Gaussian-noised copies of the input and returning the most likely class. Cohen, Rosenfeld and Kolter (arXiv:1902.02918v2, ICML 2019) gave the certified radius (their Theorem 1) and showed, in their Theorem 2, that this radius cannot be enlarged when only the two class-probability bounds are known about the base classifier. This mission formalizes Theorem 2. Theorem 1 is the subject of the companion mission of this series.
Earlier certificates for the same smoothed classifier, by Lecuyer et al. (2019) via differential privacy and Li et al. (2018) via Rényi divergence, gave smaller radii. Theorem 2 shows that no further analysis that uses only the class-probability bounds can improve on Theorem 1.
Setting
Inputs live in with the Euclidean norm ; classes form a set . A base classifier is a map with Borel decision regions. For a noise level , write for the isotropic Gaussian law of with . The class probability of at is , and the smoothed classifier is
Let be the standard Gaussian CDF and its inverse on . A classifier is consistent with the observed class probabilities (6) for a top class and numbers if
The certified radius is . In Lean these are gaussNoise x σ, classProb f σ x c, IsConsistent f σ x cA pA pB and radius σ pA pB in the namespace Cohen2019.Tight, with Phi and PhiInvReal from the series' shared module Cohen2019.Robust; the half-spaces and of the paper's Appendix A are setA and setB.
Quotations write the paper's underlined lower bound as p̲A and its overlined upper bound as p̄B. The PDF has no printed page numbers; every page cited is the PDF page of arXiv:1902.02918v2.
Formalization targets
Goal: Theorem 2 (corrected)
Assume , , and that some finite set of classes other than satisfies . Then for every with there is a base classifier consistent with (6) and a class with
so that under any tie-breaking. The classifier may depend on .
The class-capacity hypothesis is a correction. As printed, with only , the theorem fails for two classes: with , , and , one has , yet every consistent gives probability at least , and Theorem 1 then certifies radius .
Milestones
The milestones are the steps the paper itself states, in its order: the Claims and for ; the disjointness of and (corrected to "null" when ); equations (13) and (14) for ,
the equivalence ; and the existence of the worst-case classifier satisfying (6) with equalities.
Significance
Theorem 2 makes the guarantee of Theorem 1 exact: when only (6) is known about , the set of perturbations under which the Gaussian-smoothed prediction is provably constant is exactly the open ball of radius . It settles that improvements to Gaussian-smoothing certificates must use more information about the base classifier than the two bounds, as later work on higher-order and Lipschitz-based certificates does.
The paper's proof is complete in its main lines and has two gaps that this mission records and repairs: the printed statement omits a condition on the number of classes, and the claim fails at . To our knowledge neither Theorem 1 nor Theorem 2 has a machine-checked proof. Mathlib at the pinned revision has the multivariate standard Gaussian but no normal quantile function and no Gaussian half-space lemma; this mission adds statements for both kinds of fact.
Difficulty
Each step is elementary on paper but rests on facts about Gaussians that Mathlib does not package: the image of the standard Gaussian on under a linear functional is the one-dimensional Gaussian with variance , and is a continuous strictly increasing bijection with . The construction of has a further step the paper leaves informal: the region between and , of mass , must be shared among "other classes" with none exceeding , which is where the capacity hypothesis enters. Measurability of the constructed decision regions must be carried along.
Formalization scope
is EuclideanSpace ℝ (Fin d). is the pushforward of Mathlib's stdGaussian under , with a binder. is cdf (gaussianReal 0 1); is the generalized inverse , which is the true inverse on and the junk value at the endpoints, so every statement that evaluates it assumes ; at or the paper's radius is infinite and Theorem 2 is vacuous. Class probabilities are real numbers. The base classifier in the conclusion is deterministic with Borel decision regions, which is the stronger existence statement. The conclusion is the strict inequality between class probabilities, not merely the failure of to be a strict unique argmax.
A formalization in which the junk endpoint value of makes negative, or in which the classifier's decision regions are non-measurable so that its class probabilities are default values, would make the goal trivial; the hypotheses above exclude both.
Reusable beyond this mission: the Gaussian half-space probabilities and the normal quantile on . Contributions of general Mathlib-style lemmas (the law of for , properties of ) are welcome.
Selected references
- J. M. Cohen, E. Rosenfeld, J. Z. Kolter, Certified Adversarial Robustness via Randomized Smoothing, ICML 2019; arXiv:1902.02918v2. https://arxiv.org/abs/1902.02918v2
- M. Lecuyer, V. Atlidakis, R. Geambasu, D. Hsu, S. Jana, Certified Robustness to Adversarial Examples with Differential Privacy, IEEE S&P 2019. https://arxiv.org/abs/1802.03471
- B. Li, C. Chen, W. Wang, L. Carin, Certified Adversarial Robustness with Additive Noise, NeurIPS 2019. https://arxiv.org/abs/1809.03113
- J. Neyman, E. S. Pearson, On the Problem of the Most Efficient Tests of Statistical Hypotheses, Phil. Trans. R. Soc. A 231, 1933. https://doi.org/10.1098/rsta.1933.0009