TL;DR
Any classifier can be turned into a new classifier that votes over many noisy copies of its input. The paper proves that, when the noise is Gaussian, the vote guarantees a robustness radius in the L2 norm that cannot be enlarged by any analysis that uses only the vote probabilities. The method scales to ImageNet-size networks, where other certified defences had failed, and it certifies 49 percent top-1 accuracy at L2 radius 0.5 on ImageNet.
Builds on: Adversarial Examples, Randomized Smoothing, Lipschitz Continuity, Neyman–Pearson Lemma, Confidence Interval · Leads to: later certified-defence work that compares against smoothing as its baseline
Why it mattered
Before this paper, certified robustness for neural networks was limited to small problems. Exact verifiers had not been shown to scale to large networks, and the conservative methods were loose on expressive networks. The paper states that smoothing was the only certified adversarial defence then shown to work at full ImageNet resolution.
The result also gave a clean guarantee in the L2 norm, the natural measure for perturbing an image's pixel vector. The paper shows that Gaussian smoothing is tight: with no assumptions on the base classifier beyond the vote probabilities, no L2 ball larger than the certified one can be guaranteed.
By late 2026 the paper had about 2,400 citations on OpenAlex.
The problem
An adversarial example is an input changed by a tiny, carefully chosen amount that flips a model's answer (Adversarial Examples). Empirical defences such as Adversarial Training help against known attacks, but later attacks often broke them. What is needed is a certificate: a guarantee that the prediction stays the same inside a set around the input.
For neural networks, exact certificates are expensive, and conservative ones (based on bounds such as a Lipschitz Continuity constant) tend to be too loose for expressive networks. The question is how to get a certificate that works for an arbitrary, large network without assumptions on its architecture.
How it works
The method has two parts: a smoothed classifier, and a Monte Carlo procedure that estimates its certificate. Trace one input through it:
- Start with a base classifier and an input. Call the base classifier , which can be any network, and an image .
- Add Gaussian noise many times. Draw random noise from a Gaussian with standard deviation in each pixel, and run on . Repeat for draws. Check: each draw gives one class label, so the draws give a histogram of votes.
- Pick the top class. The smoothed classifier returns the class that returns most often. Check: this is a majority vote, and it does not depend on the particular noise draws once is large.
- Estimate how sure the vote is. Let be the true probability that returns the top class on the noisy input, and the probability for the runner-up. With a binomial confidence bound, the procedure gets a lower bound on that holds with probability .
- Convert the vote margin into a radius. The certified radius is in the two-class case. Every input within L2 distance of is guaranteed to get the same class. Check: a vote that is almost unanimous gives a large radius; a vote near 50/50 gives a radius near zero.
Two practical points follow. First, the noise level is a single hyperparameter: a larger certifies larger radii but makes the base classifier less accurate on noisy inputs, so the two must be traded off. Second, because the base classifier is trained on clean images, it sees almost no noisy inputs, so the paper trains it with Gaussian data augmentation (Data Augmentation) at the same .
The paper uses two procedures. Predict returns the vote and abstains when the top class is not clearly ahead, with a guarantee that it is wrong with probability at most . Certify uses a small first batch to pick the top class and a larger second batch to estimate , so that the selection step does not bias the estimate.
The math
For a base classifier that maps inputs to classes, the smoothed classifier at is
Here is fixed and does not depend on , and is the identity matrix, so the noise is independent across pixels.
Step 4 in symbols: the vote probabilities
Let be the top class, with , and let be the largest probability among the other classes. The theorem assumes only lower and upper bounds on these quantities:
Step 5 in symbols: the certified radius
Let be the standard Gaussian cumulative distribution function and its inverse. The theorem states that for every perturbation with , where
When there are only two classes, , and the expression reduces to
Interpretation: the radius grows with and with the gap between the top class's probability and the runner-up's. It also grows without bound as approaches 1, because grows without bound near 1.
Why the bound is tight
The proof uses a Neyman-Pearson argument (Neyman–Pearson Lemma). Among all base classifiers that have the stated vote probabilities at , the worst case for a shift is a linear classifier whose boundary is perpendicular to . For that classifier the vote at drops to , and this exceeds one half exactly when . So no larger radius can be certified from the vote probabilities alone.
Worked examples
Take , and (two classes).
- Look up the inverse Gaussian CDF. and .
- Take the difference. .
- Multiply by . .
Interpretation: any change of L2 size below about 0.64 cannot change the smoothed prediction, whatever the base classifier does. The actual image changed by such an amount would look the same to a person at this noise level.
This is the case in which the base classifier returns the same class on every noisy draw. Let be the failure probability, and suppose all draws agree. The one-sided binomial bound then gives . Take .
- Use draws. .
- Invert the Gaussian CDF. , so .
- Repeat with . , and , so .
Interpretation: even in the best case, the certified radius grows slowly with the number of samples, which is why the paper's certification step needs many draws. The bound is a property of the sample count, not of the classifier.
The paper's ImageNet experiments use and with certification samples. Consider a case in which the base classifier agrees on all draws and the sample count is reduced to . Find the certified radius in units of .
- Compute the lower bound. .
- Compare with the Gaussian CDF. , so .
- Scale by . The certified radius is about , which is at .
Try it: repeat for to see how much further the radius grows with ten times the samples. Answer: , and , so the radius is about , or at . The gain from the tenfold increase is only about .
Results
The paper reports approximate certified accuracy: the fraction of test images that Certify classifies correctly without abstaining, with a radius at least . On ImageNet with a ResNet-50 base classifier (Table 1):
| L2 radius | Best sigma | Certified accuracy | Standard accuracy |
|---|---|---|---|
| 0.5 | 0.25 | 49% | 67% |
| 1.0 | 0.50 | 37% | 57% |
| 2.0 | 0.50 | 19% | 57% |
| 3.0 | 1.00 | 12% | 44% |
What these mean: the certified accuracy falls as the radius grows, and a larger is needed for larger radii, at a cost in standard accuracy. The paper's comparison to the earlier bounds of Lecuyer et al. and Li et al. shows that the new radius is larger for the same vote counts, because the earlier bounds are loose.
Other results from the text: Predict on ImageNet at with samples gave 65 percent top-1 accuracy at 0.15 seconds per prediction, and it abstained on 12 percent of images. Larger makes Predict cost more per image, and the paper reports fewer abstentions as grows. Certification costs far more, about 110 seconds per image on ImageNet.
Limits the paper states: the guarantee is for the smoothed classifier, not the base classifier, and it holds only with the failure probability . An adversary who targets the vote can force Predict to abstain, and the empirical test with a projected-gradient attack found adversarial examples for the smoothed classifier at 1.5 times the certified radius 17 percent of the time, and at twice the radius 53 percent of the time. So the certificate is not tight in practice for every image; the paper's tightness is a statement about the vote probabilities alone.
Reading guide
Read the paper in this order:
- Introduction and Table 1. Needs Adversarial Examples and the idea of a certificate. Figure 1 shows the smoothed classifier at one input.
- Section 2, related work. Needs Adversarial Training for the empirical defences and Lipschitz Continuity for the conservative bounds.
- Section 3, the theorem. Needs Gaussian (Normal) Distribution for the noise and Randomized Smoothing for the definition. The binary-case proof sketch needs Neyman–Pearson Lemma.
- Section 3.2, the algorithms. Needs Monte Carlo Method for estimating the vote probabilities and Confidence Interval for the lower bound .
- Section 3.3, training. Needs Data Augmentation and the idea of training under noise.
- Section 4, experiments. Needs Convolutional Neural Network for the ResNet base classifiers and the accuracy metrics.
- Appendix A. The full proofs of Theorems 1 and 2. Read it after the proof sketch.
Check yourself
QuestionIn one sentence, why does the smoothed classifier give a guarantee when the base classifier does not?Show answer
The guarantee depends only on the vote probabilities under Gaussian noise, which can be estimated and bounded by sampling. The base network's internal structure does not enter the argument, so the guarantee holds for any network, however large, while exact verification of the network itself is out of reach.
QuestionA two-class smoothed classifier has and a lower bound . Compute the certified L2 radius to two decimals. You may use .Show answer
With two classes, .
QuestionWhy does the paper train the base classifier with Gaussian data augmentation rather than on clean images only?Show answer
The smoothed classifier only ever runs the base classifier on noisy copies of the input, so the base classifier must classify those copies correctly. A classifier trained only on clean images was never trained for that distribution, and its votes on noisy copies are less reliable. Training with Gaussian noise at the same makes the votes concentrate on the right class.
QuestionA team certifies with a fixed budget of samples and , and every sample agrees. Its noise level is . What is the largest radius it can certify, to two decimals?Show answer
The bound is , and . The radius is . The budget, not the classifier, limits the radius.
Sources
- Cohen, Rosenfeld and Kolter, "Certified Adversarial Robustness via Randomized Smoothing", arXiv:1902.02918, 2019. https://arxiv.org/abs/1902.02918
- Digital object identifier for the same paper: https://doi.org/10.48550/arXiv.1902.02918