Conference item icon

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:
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


More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author


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



Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP