Improved Gradient based Adversarial Attacks for Quantized Networks

Kartik Gupta, Thalaiyasingam Ajanthan
3/30/2020
cs.CVcs.LG
quantization-pruning

Official code: kartikgupta-at-anu/attack-bnn (3 stars, Python, last commit 2022-05-06).

Abstract

Neural network quantization has become increasingly popular due to efficient memory consumption and faster computation resulting from bitwise operations on the quantized networks. Even though they exhibit excellent generalization capabilities, their robustness properties are not well-understood.

Show full abstract

In this work, we systematically study the robustness of quantized networks against gradient based adversarial attacks and demonstrate that these quantized models suffer from gradient vanishing issues and show a fake sense of robustness. By attributing gradient vanishing to poor forward-backward signal propagation in the trained network, we introduce a simple temperature scaling approach to mitigate this issue while preserving the decision boundary. Despite being a simple modification to existing gradient based adversarial attacks, experiments on multiple image classification datasets with multiple network architectures demonstrate that our temperature scaled attacks obtain near-perfect success rate on quantized networks while outperforming original attacks on adversarially trained models as well as floating-point networks. Code is available at https://github.com/kartikgupta-at-anu/attack-bnn.

View on arXivView PDF

Code Implementations(1)

Code implementation of our AAAI'22 paper "Improved Gradient-Based Adversarial Attacks for Quantized Networks"

32Python, ShellMay 6, 20224 years ago
adversarial-attacksbinarized-neural-networkspgdquantized-neural-networks

Similar Papers

Cite this paper

@article{gupta2020improved,
  title  = {Improved Gradient based Adversarial Attacks for Quantized Networks},
  author = {Kartik Gupta and Thalaiyasingam Ajanthan},
  year   = {2020},
  eprint = {2003.13511},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.13511}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.13511.svg)](https://codeofpaper.com/paper/2003.13511)

Discussion