Qu-ANTI-zation: Exploiting Quantization Artifacts for Achieving Adversarial Outcomes

Sanghyun Hong, Michael-Andrei Panaitescu-Liess, Yiğitcan Kaya, Tudor Dumitraş
10/26/2021
cs.LGcs.CR
quantization-pruning

Official code: Trustworthy-and-Responsible-AI-Lab/Qu-ANTI-zation (18 stars, Python, MIT, last commit 2021-11-09).

Abstract

Quantization is a popular technique that $transforms$ the parameter representation of a neural network from floating-point numbers into lower-precision ones ($e.g.$, 8-bit integers). It reduces the memory footprint and the computational cost at inference, facilitating the deployment of resource-hungry models.

Show full abstract

However, the parameter perturbations caused by this transformation result in $behavioral$ $disparities$ between the model before and after quantization. For example, a quantized model can misclassify some test-time samples that are otherwise classified correctly. It is not known whether such differences lead to a new security vulnerability. We hypothesize that an adversary may control this disparity to introduce specific behaviors that activate upon quantization. To study this hypothesis, we weaponize quantization-aware training and propose a new training framework to implement adversarial quantization outcomes. Following this framework, we present three attacks we carry out with quantization: (i) an indiscriminate attack for significant accuracy loss; (ii) a targeted attack against specific samples; and (iii) a backdoor attack for controlling the model with an input trigger. We further show that a single compromised model defeats multiple quantization schemes, including robust quantization techniques. Moreover, in a federated learning scenario, we demonstrate that a set of malicious participants who conspire can inject our quantization-activated backdoor. Lastly, we discuss potential counter-measures and show that only re-training consistently removes the attack artifacts. Our code is available at https://github.com/Secure-AI-Systems-Group/Qu-ANTI-zation

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2021] Source code for the paper "Qu-ANTI-zation: Exploiting Neural Network Quantization for Achieving Adversarial Outcomes"

184Python, ShellOct 4, 20215 years agoMIT
adversarial-outcomesbackdoor-attacksdeep-learningneurips-2021quantization

Similar Papers

Cite this paper

@article{hong2021quantization,
  title  = {Qu-ANTI-zation: Exploiting Quantization Artifacts for Achieving Adversarial Outcomes},
  author = {Sanghyun Hong and Michael-Andrei Panaitescu-Liess and Yiğitcan Kaya and Tudor Dumitraş},
  year   = {2021},
  eprint = {2110.13541},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.13541}
}

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/2110.13541.svg)](https://codeofpaper.com/paper/2110.13541)

Discussion