Countering Adversarial Examples: Combining Input Transformation and Noisy Training
arXiv:2106.13394
Abstract
Recent studies have shown that neural network (NN) based image classifiers are highly vulnerable to adversarial examples, which poses a threat to security-sensitive image recognition task. Prior work has shown that JPEG compression can combat the drop in classification accuracy on adversarial examples to some extent. But, as the compression ratio increases, traditional JPEG compression is insufficient to defend those attacks but can cause an abrupt accuracy decline to the benign images. In this paper, with the aim of fully filtering the adversarial perturbations, we firstly make modifications to traditional JPEG compression algorithm which becomes more favorable for NN. Specifically, based on an analysis of the frequency coefficient, we design a NN-favored quantization table for compression. Considering compression as a data augmentation strategy, we then combine our model-agnostic preprocess with noisy training. We fine-tune the pre-trained model by training with images encoded at different compression levels, thus generating multiple classifiers. Finally, since lower (higher) compression ratio can remove both perturbations and original features slightly (aggressively), we use these trained multiple models for model ensemble. The majority vote of the ensemble of models is adopted as final predictions. Experiments results show our method can improve defense efficiency while maintaining original accuracy.
References in corpus (6)
- Certified Adversarial Robustness via Randomized Smoothing
- Fast is better than free: Revisiting adversarial training
- Adversarial Machine Learning at Scale
- A study of the effect of JPG compression on adversarial images
- Improving Adversarial Robustness via Promoting Ensemble Diversity
- Adversarial Examples Are a Natural Consequence of Test Error in Noise