[Paper Review] Certifying Confidence via Randomized Smoothing
This paper proposes a method to certify prediction confidence in randomized smoothing classifiers by leveraging the distribution of confidence scores from the base classifier, rather than relying solely on binary voting. By adapting the Neyman-Pearson lemma to incorporate softmax confidence scores, the approach computes tighter certified radii for confidence thresholds, significantly improving robustness guarantees on CIFAR-10 and ImageNet compared to naive bounds.
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. Code for the experiments is available at https://github.com/aounon/cdf-smoothing.
Motivation & Objective
- To address the lack of confidence information in standard randomized smoothing, which only certifies labels without quantifying prediction certainty.
- To develop a method that certifies the confidence score of a smoothed classifier, not just its predicted class.
- To improve certified robustness by utilizing the distribution of confidence scores from the base classifier, rather than treating all votes equally.
- To demonstrate that incorporating confidence score distributions leads to significantly better certified radii than naive bounds.
Proposed method
- The method replaces binary voting with averaging softmax confidence scores across Gaussian perturbations around the input.
- It derives a lower bound on the expected confidence score of the predicted class under adversarial perturbations using the cumulative distribution function (CDF) of the confidence scores.
- The bound is constructed by adapting the Neyman-Pearson lemma to account for continuous confidence values, not just vote counts.
- A binary search algorithm computes the largest ℓ₂-radius such that the expected confidence remains above a user-defined threshold with high probability.
- Two confidence measures are used: average prediction score of the top class and the margin between top and second-top class scores.
- The method provides a tighter lower bound than naive Hoeffding-based bounds by exploiting the full distribution of confidence scores.
Experimental results
Research questions
- RQ1Can we certify confidence scores in smoothed classifiers beyond just the predicted class?
- RQ2Does incorporating the distribution of confidence scores lead to stronger certified robustness guarantees than standard randomized smoothing?
- RQ3How does the performance of the CDF-based bound compare to naive bounds that ignore confidence distribution?
- RQ4Can confidence-certified smoothing improve certified accuracy on real-world datasets like CIFAR-10 and ImageNet?
Key findings
- The CDF-based method achieves significantly better certified accuracy than the naive bound across multiple confidence thresholds on both CIFAR-10 and ImageNet.
- For a radius of 0.25 on CIFAR-10 with σ=0.25, the CDF-based method improves certified accuracy by a substantial margin compared to the baseline.
- The margin-based confidence measure yields slightly better certified accuracy than the average prediction score when thresholded at zero.
- The method demonstrates that confidence score distribution contains exploitable information that strengthens certified robustness, even when the base classifier's accuracy is high.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.