Hardware-Friendly Post-Training Quantization: Input- and Output-Channelwise Scale and Offset
Abstract
Post-training quantization enables swift quantization of neural networks using a minimal calibration dataset. Specifically, these methods tend to underperform dramatically on hardware with fixed integer bit width, particularly in extremely low-bit quantization scenarios. In response, we introduce an optimized method for uniform channel-wise quantization, which is compatible with existing hardware. This approach does not increase memory requirements and results in only a marginal increase in computation. This strategy involves applying a specific multiplier to the result of the weighted activation products, thereby yielding a more accurate result for the multiply-accumulate (MAC) operation in convolutional or fully-connected layers. We also present an optimization technique to determine the optimal channel grouping approach. To affirm the superiority of our proposed quantization scheme, we conducted tests on a variety of CNN-based models. Our proposed approach enhances accuracy in 2/4-bit weight and feature quantization by 1-5%p while only increasing the number of integer operations in convolutional-based networks by less than 1.5%.
BibTeX
@misc{choi2024hardware,
author = {Geunjae Choi and Kamin Lee and KiYoon Yoo and Nojun Kwak},
title = {{Hardware-Friendly Post-Training Quantization: Input- and Output-Channelwise Scale and Offset}},
year = {2024},
url = {https://openreview.net/forum?id=itJj6p7ssr},
howpublished = {OpenReview},
note = {Submitted to ICLR 2024},
}Ask Althea to put this paper to the test.
Loading related content...