Abstract
Randomized smoothing has been shown to provide good certified-robustness guarantees for high-dimensional classification problems. It uses the probabilities of predicting the top two most-likely classes around an input point under a smoothing distribution to generate a certified radius for a classifier's prediction. However, most smoothing methods do not give us any information about the confidence with which the underlying classifier (e.g., deep neural network) makes a prediction. In this work, we propose a method to generate certified radii for the prediction confidence of the smoothed classifier. We consider two notions for quantifying confidence: average prediction score of a class and the margin by which the average prediction score of one class exceeds that of another. We modify the Neyman-Pearson lemma (a key theorem in randomized smoothing) to design a procedure for computing the certified radius where the confidence is guaranteed to stay above a certain threshold. Our experimental results on CIFAR-10 and ImageNet datasets show that using information about the distribution of the confidence scores allows us to achieve a significantly better certified radius than ignoring it. Thus, we demonstrate that extra information about the base classifier at the input point can help improve certified guarantees for the smoothed classifier.
Introduction
Standard randomized smoothing is a state-of-the-art technique for certifying the adversarial robustness of large neural networks. It works by adding Gaussian noise to an input, querying the base model many times, and taking a majority vote to determine the final label. However, this "binary voting" approach throws away crucial information: the continuous confidence scores (e.g., softmax outputs) of the base classifier. In safety-critical domains like autonomous driving or medical diagnosis, knowing that a prediction's label won't flip isn't enough; we need to know that the model is robustly confident in that prediction.
Methods
The authors propose moving from binary voting to averaging continuous confidence scores. They explore two metrics: the average prediction score of a class, and the margin (the gap between the top class score and the runner-up). To certify these scores against $L_2$-bounded adversarial perturbations, they compare a naive baseline against a novel CDF-based approach.
The Naive approach simply averages the continuous scores and applies the standard Neyman-Pearson lemma. In contrast, the CDF-based method leverages the Cumulative Distribution Function (CDF) of the confidence scores. By dividing the score range into intervals and using the Dvoretzky-Kiefer-Wolfowitz (DKW) inequality to bound the empirical CDF, they capture exactly how the scores are distributed across the Gaussian samples. They then mathematically modify the Neyman-Pearson lemma to handle these continuous distributions, computing a much tighter lower bound on the expected confidence score under perturbation.
Key Insights
A central finding is that a high certified radius does not necessarily correlate with high model confidence or human visual clarity. A heavily blurred, ambiguous image can have a massive certified radius simply because every noisy sample consistently yields the same low-confidence guess.
By rescuing discarded distributional information via the CDF, the authors prove that stronger robustness guarantees are possible. The modified Neyman-Pearson lemma reveals that the worst-case adversarial perturbation forces the confidence scores to drop in discrete steps. Modeling these steps via the CDF is what unlocks the tighter mathematical bounds.
Experimental Results
The method was evaluated on CIFAR-10 (using ResNet-110) and ImageNet (using ResNet-50). The CDF-based certificate significantly outperforms the naive baseline across the board. For instance, on CIFAR-10 with noise $\sigma=0.25$, the CDF method yields a substantially higher certified accuracy at a radius of 0.25 for high-confidence thresholds (e.g., requiring a score > 0.7). Additionally, the margin-based confidence measure yields slightly better certified accuracy than thresholding the raw average prediction score.
Conclusion
This work demonstrates that incorporating the distribution of confidence scores allows for significantly better certified radii than ignoring it. While the method certifies the model's internal confidence rather than absolute calibration, it provides a vital step toward more transparent and reliable safety guarantees for deep learning models in adversarial environments.
Summary updated