Conference item
How many bits does it take to quantize your neural network?
- Abstract:
- Quantization converts neural networks into low-bit fixed-point computations which can be carried out by efficient integer-only hardware, and is standard practice for the deployment of neural networks on real-time embedded devices. However, like their real-numbered counterpart, quantized networks are not immune to malicious misclassification caused by adversarial attacks. We investigate how quantization affects a network’s robustness to adversarial attacks, which is a formal verification question. We show that neither robustness nor non-robustness are monotonic with changing the number of bits for the representation and, also, neither are preserved by quantization from a real-numbered network. For this reason, we introduce a verification method for quantized neural networks which, using SMT solving over bit-vectors, accounts for their exact, bit-precise semantics. We built a tool and analyzed the effect of quantization on a classifier for the MNIST dataset. We demonstrate that, compared to our method, existing methods for the analysis of real-numbered networks often derive false conclusions about their quantizations, both when determining robustness and when detecting attacks, and that existing methods for quantized networks often miss attacks. Furthermore, we applied our method beyond robustness, showing how the number of bits in quantization enlarges the gender bias of a predictor for students’ grades.
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Version of record, 347.8KB, Terms of use)
-
- Publisher copy:
- 10.1007/978-3-030-45237-7_5
- Publication website:
- https://link.springer.com/chapter/10.1007%2F978-3-030-45237-7_5
Authors
- Publisher:
- Springer
- Host title:
- Tools and Algorithms for the Construction and Analysis of Systems: TACAS 2020
- Pages:
- 79-97
- Series:
- Lecture Notes in Computer Science
- Series number:
- 12079
- Publication date:
- 2020-04-17
- Acceptance date:
- 2019-12-23
- Event title:
- 26th International Conference on Tools and Algorithms for the Construction and Analysis of Systems: TACAS 2020
- Event location:
- Dublin, Ireland
- Event website:
- https://link.springer.com/book/10.1007/978-3-030-45237-7
- Event start date:
- 2020-04-25
- Event end date:
- 2020-04-30
- DOI:
- EISSN:
-
1611-3349
- ISSN:
-
0302-9743
- EISBN:
- 978-3-030-45237-7
- ISBN:
- 978-3-030-45236-0
- Language:
-
English
- Keywords:
- Pubs id:
-
1104488
- Local pid:
-
pubs:1104488
- Deposit date:
-
2021-05-23
Terms of use
- Copyright holder:
- M Giacobbe et al.
- Copyright date:
- 2020
- Rights statement:
- © The Author(s) 2020. This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
- Licence:
- CC Attribution (CC BY)
If you are the owner of this record, you can report an update to it here: Report update to this record