Robustness Certificates for Sparse Adversarial Attacks by Randomized Ablation

Alexander Levine, Soheil Feizi

Abstract

This paper introduces Randomized Ablation, a novel defense providing the first strong certified robustness guarantees against sparse ($L_0$) adversarial attacks. By randomly ablating most input features and employing a majority-vote smoothed classifier, the authors mathematically prove that predictions remain stable even when an attacker modifies a specific number of pixels.

Introduction: The $L_0$ Threat Model

Adversarial attacks typically involve small perturbations designed to mislead machine learning models. While $L_2$ and $L_\infty$ attacks are widely studied, this work focuses on the $L_0$ threat model, or sparse attacks, where an attacker significantly alters a small subset of pixels (e.g., flipping a pixel from white to black). Existing empirical defenses are often bypassed by adaptive attacks. To address this, the authors propose a method for certified robustness: a mathematical guarantee that no attack within a defined budget (number of pixels changed) can alter the model's output.

Methodology: Randomized Ablation

The core of the proposed defense is a variation of randomized smoothing tailored for discrete input changes.

  1. Ablation Process: Instead of adding continuous noise, the system randomly "ablates" almost all pixels in an image. Only a small number ($k$) of pixels are retained, while the rest are replaced with a NULL symbol.
  2. Smoothed Classifier: A base classifier is trained on these sparse images. For a final prediction, the system aggregates the outputs of the base classifier over thousands of random ablation patterns, selecting the majority vote.
  3. Certification Theorem: The authors prove that if the margin between the top two classes in the majority vote is sufficiently large, the prediction is guaranteed to be robust against any change to $\rho$ pixels. This works because, for small $\rho$, the probability that an attacker's modified pixels are included in a random sample of $k$ pixels is extremely low.
Visualizing the effect of the number of kept pixels ($k$) on classification accuracy and certified robustness.

To prevent the model from confusing the NULL symbol with actual pixel values, a multichannel encoding is used, doubling the color channels to represent both the pixel and its inverse, with NULL represented as zeros across all channels.

Key Insights

  • Ablation vs. Noise: The authors demonstrate that ablation is fundamentally superior to noise-based smoothing for $L_0$ attacks. By keeping only a tiny fraction of pixels (e.g., 45 out of 784 on MNIST), the likelihood of including adversarial pixels is minimized.
  • Information Retention: Mutual information analysis shows that ablation preserves more relevant image features than noise, leading to better accuracy and stronger certificates.
  • The "Sweet Spot" for $k$: Choosing $k$ involves a trade-off. A very small $k$ hinders recognition, while a large $k$ increases the risk of including adversarial pixels, weakening the robustness guarantee.

Experimental Results

The method was evaluated on MNIST, CIFAR-10, and ImageNet benchmarks.

  • MNIST: The model certifies over 50% of images against changes to up to 8 pixels. Empirically, it resisted attacks of up to 31 pixels, surpassing the previous state-of-the-art of 22 pixels.
  • ImageNet: The authors achieved a median certified robustness of 16 pixels, a significant leap over previous work which could only certify a median of 1 pixel.
  • Tightness: The small gap between certified and empirical robustness suggests the theoretical bounds are highly accurate.
Original vs. adversarial images under the $L_0$ threat model, demonstrating the model's ability to abstain when robustness cannot be certified.

Limitations and Conclusion

While providing strong guarantees, Randomized Ablation introduces a "robustness tax," resulting in a slight drop in clean accuracy (e.g., 2.3% on MNIST). Additionally, the computational cost of inference is high due to the need for thousands of samples per prediction. Performance on CIFAR-10 was less pronounced, likely because its dense, low-resolution images lose critical information under heavy ablation. Future work may involve optimizing base classifier architectures to mitigate the accuracy-robustness trade-off.

Summary updated

BibTeX
@inproceedings{levine2020robustness,
  author = {Alexander Levine and Soheil Feizi},
  title = {{Robustness Certificates for Sparse Adversarial Attacks by Randomized Ablation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5888},
}
Figure