Skip to main content
QUICK REVIEW

[Paper Review] Defending against Whitebox Adversarial Attacks via Randomized Discretization

Yuchen Zhang, Percy Liang|arXiv (Cornell University)|Mar 25, 2019
Adversarial Robustness in Machine LearningComputer Science39 references27 citations
TL;DR

This paper proposes Randomized Discretization (RandDisc), a whitebox defense that injects Gaussian noise and discretizes image pixels into cluster centers before classification. It achieves state-of-the-art robustness on ImageNet against strong PGD attacks, outperforming both adversarially trained models and top defenses from the NIPS 2017 competition by at least 18% on average and 35% in the worst case.

ABSTRACT

Adversarial perturbations dramatically decrease the accuracy of state-of-the-art image classifiers. In this paper, we propose and analyze a simple and computationally efficient defense strategy: inject random Gaussian noise, discretize each pixel, and then feed the result into any pre-trained classifier. Theoretically, we show that our randomized discretization strategy reduces the KL divergence between original and adversarial inputs, leading to a lower bound on the classification accuracy of any classifier against any (potentially whitebox) $\\ell_\\infty$-bounded adversarial attack. Empirically, we evaluate our defense on adversarial examples generated by a strong iterative PGD attack. On ImageNet, our defense is more robust than adversarially-trained networks and the winning defenses of the NIPS 2017 Adversarial Attacks & Defenses competition.

Motivation & Objective

  • To develop a defense against whitebox adversarial attacks that does not require retraining pre-trained models.
  • To provide a theoretically grounded, information-theoretic certificate of robustness using KL divergence reduction.
  • To empirically evaluate the defense's robustness against strong iterative attacks like PGD on large-scale datasets such as ImageNet.
  • To demonstrate that stochastic defenses can achieve superior robustness compared to adversarially trained models on ImageNet.
  • To show that randomized discretization improves robustness without requiring model retraining, while maintaining high clean-image accuracy.

Proposed method

  • Inject zero-mean Gaussian noise into each pixel of the input image to randomize the input distribution.
  • Apply a clustering-based discretization step that maps each pixel to the nearest cluster center in the color space (e.g., Lab space).
  • Feed the randomized and discretized image into any pre-trained classifier without retraining.
  • Use a differentiable approximation called Randomized Mixture (RandMix) to generate adversarial examples for evaluating the non-differentiable RandDisc defense.
  • Theoretical analysis shows that RandDisc reduces the KL divergence between clean and adversarial inputs, providing a lower bound on robust accuracy.
  • The defense is evaluated using iterative PGD attacks and compared against adversarially trained models and other transformation-based defenses on MNIST and ImageNet.

Experimental results

Research questions

  • RQ1Can a non-retraining defense achieve strong robustness against whitebox adversarial attacks on ImageNet?
  • RQ2Does randomized discretization reduce the KL divergence between clean and adversarial inputs, thereby certifying robustness?
  • RQ3How does RandDisc compare to adversarially trained models and top defenses from the NIPS 2017 competition under strong PGD attacks?
  • RQ4Why does RandDisc improve robustness on ImageNet but not on MNIST, where other stochastic defenses fail?
  • RQ5Can a stochastic defense provide a non-vacuous certified accuracy bound on high-resolution images like ImageNet?

Key findings

  • On ImageNet, RandDisc achieved 62.9%, 54.2%, and 39.5% accuracy under PGD attacks with ε = 1, 2, and 4, respectively, surpassing the adversarially trained InceptionResNet model.
  • Against the top three attacks from the NIPS 2017 competition (ε = 8), RandDisc outperformed the top three defenses by at least 18% on average and 35% in the worst-case scenario.
  • On MNIST, RandDisc combined with a vanilla CNN achieved 94.4% robust accuracy at ε = 0.1, compared to only 12.0% for the unmodified model.
  • The certified accuracy of RandDisc was non-vacuous only for very small perturbations (ε < 0.1), due to the cumulative KL divergence bound over high-resolution images.
  • RandDisc maintained higher robustness than adversarially trained models on ImageNet, suggesting that the latter may be less effective against strong iterative attacks.
  • The clean-image accuracy of RandDisc (88.6%) and RandMix (92.7%) was lower than the base classifier (97.1%), indicating a trade-off between robustness and clean accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.