An FPGA-Oriented Quantization Approach for Vision Transformer with LUT-Friendly Operations
Vision Transformers (ViTs) have demonstrated remarkable performance in various computer vision tasks. Due to their large model size and computational complexity, model compression is a critical step for deploying vision transformer models on edge devices. This paper focuses on weight quantization, a vision transformer model compression technique that complements weight pruning. Unlike existing quantization methods, we propose an improved quantization scheme that achieves comparable performance with lower bit-width. To better utilize hardware resources, we also introduce an FPGA-oriented quantization approach, which enhances the efficient use of look-up table (LUT) resources in FPGA. Combining these two schemes allows us to maintain accuracy while improving resource utilization and performance of the model on FPGAs. On the ImageNet dataset, our non-zero fix-length quantization scheme achieves 80.74% accuracy at 2 bit-widths and improves accuracy by 0.1% to 0.5% at the same bit-width compared to state-of-the-art vision transformer quantization methods, and scale power-of-2 quantization scheme can effectively utilize LUT resources in FPGA while maintaining an acceptable level of accuracy loss.
Authors
- Yirong Kan (ORCID: https://orcid.org/0000-0002-4070-0672)
- Renyuan Zhang
- Yasuhiko Nakashima (ORCID: https://orcid.org/0000-0002-9457-5061)
- Xu Cheng (ORCID: https://orcid.org/0000-0002-0314-0178)
Institutions
- Nara Institute of Science and Technology (JP)
Publication Details
- Published
- 2024-11-26
- DOI
- https://doi.org/10.1109/candar64496.2024.00042
- Citations
- 2
- Primary Topic
- CCD and CMOS Imaging Sensors
- Type
- article
- Field-Weighted Citation Impact
- 0.42