Fast Implementation of 4-bit Convolutional Neural Networks for Mobile Devices
Authors: Anton Trusov, Elena Limonova, Dmitry Slugin, Dmitry Nikolaev, Vladimir V. Arlazarov
AI-generated Key Points
- Quantized low-precision neural networks are popular for high performance with less computational resources
- Advantages for FPGA and ASIC devices, but general-purpose processors may not efficiently perform low-bit integer computations
- Typically, 8-bit quantized network used for mobile central processors, but in some cases fewer bits can be used
- Challenge is implementing this efficiently
- Authors introduce efficient implementation of 4-bit matrix multiplication specifically designed for quantized neural networks
- Time measurements on mobile ARM processor showed 2.9 times speedup compared to standard floating-point multiplication and 1.5 times faster than an 8-bit quantized network
- Presented a 4-bit quantized neural network designed for OCR recognition on the MIDV-500 dataset achieving an accuracy of 95% with overall inference speedup of 48%
- Using fewer bits in neural networks can reduce inference time without significantly sacrificing accuracy
- Efficient implementation of 4-bit matrix multiplication provides promising results that could benefit mobile devices with limited computational resources
Abstract: Quantized low-precision neural networks are very popular because they require less computational resources for inference and can provide high performance, which is vital for real-time and embedded recognition systems. However, their advantages are apparent for FPGA and ASIC devices, while general-purpose processor architectures are not always able to perform low-bit integer computations efficiently. The most frequently used low-precision neural network model for mobile central processors is an 8-bit quantized network. However, in a number of cases, it is possible to use fewer bits for weights and activations, and the only problem is the difficulty of efficient implementation. We introduce an efficient implementation of 4-bit matrix multiplication for quantized neural networks and perform time measurements on a mobile ARM processor. It shows 2.9 times speedup compared to standard floating-point multiplication and is 1.5 times faster than 8-bit quantized one. We also demonstrate a 4-bit quantized neural network for OCR recognition on the MIDV-500 dataset. 4-bit quantization gives 95.0% accuracy and 48% overall inference speedup, while an 8-bit quantized network gives 95.4% accuracy and 39% speedup. The results show that 4-bit quantization perfectly suits mobile devices, yielding good enough accuracy and low inference time.
Tools for this paper
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
⚠The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
⚠The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
We compare the title and abstract with papers indexed in our database. For arXiv papers, we search within the same category; for DOI and other sources, we search across sources and subjects. You can rerun the search as our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.