[Paper Review] Black-box Smoothing: A Provable Defense for Pretrained Classifiers.
This paper introduces black-box smoothing, a provable defense that enhances any pretrained image classifier's robustness against $ε$-adversarial attacks in $τ_p$-norms by applying a custom-trained denoiser and randomized smoothing. The method ensures robustness without modifying the original classifier, even with only query access, and successfully defends major cloud APIs like Azure, Google, AWS, and ClarifAI on ImageNet and CIFAR-10.
We present a method for provably defending any pretrained image classifier against $\ell_p$ adversarial attacks. By prepending a custom-trained denoiser to any off-the-shelf image classifier and using randomized smoothing, we effectively create a new classifier that is guaranteed to be $\ell_p$-robust to adversarial examples, without modifying the pretrained classifier. The approach applies both to the case where we have full access to the pretrained classifier as well as the case where we only have query access. We refer to this defense as black-box smoothing, and we demonstrate its effectiveness through extensive experimentation on ImageNet and CIFAR-10. Finally, we use our method to provably defend the Azure, Google, AWS, and ClarifAI image classification APIs. Our code replicating all the experiments in the paper can be found at this https URL .
Motivation & Objective
- To develop a defense that provably protects pretrained image classifiers against $ε$-adversarial attacks in $τ_p$-norms without modifying the model.
- To enable robustness when only query access to the pretrained classifier is available, not full model access.
- To demonstrate the method's effectiveness on real-world APIs such as Azure, Google, AWS, and ClarifAI.
- To maintain high accuracy while ensuring robustness through a denoiser-based smoothing mechanism.
Proposed method
- A custom-trained denoiser is prepended to the pretrained classifier to transform inputs before classification.
- Randomized smoothing is applied to the output of the denoiser, producing a new classifier with guaranteed $τ_p$-robustness.
- The method operates under both full model access and query-only access, enabling black-box application.
- The denoiser is trained to minimize the expected robustness error under the smoothing distribution.
- The final classifier's prediction is based on the majority vote of multiple noisy inputs, with confidence bounds derived from the smoothing distribution.
- The approach is applied end-to-end to real-world APIs, demonstrating practical deployment.
Experimental results
Research questions
- RQ1Can a defense be constructed that provably ensures $τ_p$-robustness for any pretrained image classifier without modifying the model?
- RQ2How effective is the defense when only query access to the classifier is available, rather than full model access?
- RQ3Can the method be successfully deployed on real-world cloud-based image classification APIs such as Azure and Google?
- RQ4What is the trade-off between robustness and standard accuracy in the context of black-box smoothing?
- RQ5How does the performance of the defense scale across diverse datasets like ImageNet and CIFAR-10?
Key findings
- The method achieves provable $τ_p$-robustness for any pretrained classifier, regardless of architecture or training data.
- The defense maintains high standard accuracy while providing robustness guarantees under $τ_p$-norm perturbations.
- The approach successfully defends the Azure, Google, AWS, and ClarifAI image classification APIs against adversarial attacks.
- The method works effectively under both full model access and query-only access, demonstrating its black-box applicability.
- Extensive experiments on ImageNet and CIFAR-10 validate the robustness and practicality of the defense across diverse settings.
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.