Shedding the Bits: Pushing the Boundaries of Quantization with Minifloats on FPGAs
Post-training quantization (PTQ) is a powerful technique for model compression, reducing the numerical precision in neural networks without additional training overhead. Recent works have investigated adopting 8 -bit floating-point formats (FP8) in the context of PTQ for model inference. However, floating-point formats smaller than 8 bits and their relative comparison in terms of accuracy-hardware cost with integers remains unexplored on FPGAs. In this work, we present minifloats, which are reduced-precision floating-point formats capable of further reducing the memory footprint, latency, and energy cost of a model while approaching full-precision model accuracy. We implement a custom FPGA-based multiply-accumulate operator library and explore the vast design space, comparing minifloat and integer representations across 3 to 8 bits for both weights and activations. We also examine the applicability of various integer-based quantization techniques to minifloats. Our experiments show that minifloats offer a promising alternative for emerging workloads such as vision transformers.
Authors
- Giuseppe Franco
- Hans Jakob Damsgaard (ORCID: https://orcid.org/0000-0001-8409-0282)
- Michaela Blott (ORCID: https://orcid.org/0000-0002-7833-4057)
- Tulika Mitra (ORCID: https://orcid.org/0000-0003-4136-4188)
- Thomas B. Preußer (ORCID: https://orcid.org/0000-0003-3998-7896)
- Alessandro Pappalardo (ORCID: https://orcid.org/0000-0001-9386-5510)
- Shivam Aggarwal (ORCID: https://orcid.org/0000-0003-1748-9810)
Institutions
- National University of Singapore (SG)
- Tampere University (FI)
- Akademie Mode & Design (DE)
Publication Details
- Published
- 2024-09-02
- DOI
- https://doi.org/10.1109/fpl64840.2024.00048
- Citations
- 5
- Primary Topic
- CCD and CMOS Imaging Sensors
- Type
- article
- Field-Weighted Citation Impact
- 1.04
Funders
- Ministry of Education
- European Commission
- National Research Foundation
- National Research Foundation Singapore