[Paper Review] Post-training Quantization with Multiple Points: Mixed Precision without Mixed Precision
This paper proposes multipoint quantization, a post-training quantization method that approximates full-precision weights using a linear combination of multiple low-bit vectors, enabling mixed-precision-like performance without specialized hardware. It achieves state-of-the-art accuracy on ImageNet and PASCAL VOC with minimal memory and computation overhead by adaptively selecting important channels for higher-point approximation via a greedy algorithm.
We consider the post-training quantization problem, which discretizes the weights of pre-trained deep neural networks without re-training the model. We propose multipoint quantization, a quantization method that approximates a full-precision weight vector using a linear combination of multiple vectors of low-bit numbers; this is in contrast to typical quantization methods that approximate each weight using a single low precision number. Computationally, we construct the multipoint quantization with an efficient greedy selection procedure, and adaptively decides the number of low precision points on each quantized weight vector based on the error of its output. This allows us to achieve higher precision levels for important weights that greatly influence the outputs, yielding an 'effect of mixed precision' but without physical mixed precision implementations (which requires specialized hardware accelerators). Empirically, our method can be implemented by common operands, bringing almost no memory and computation overhead. We show that our method outperforms a range of state-of-the-art methods on ImageNet classification and it can be generalized to more challenging tasks like PASCAL VOC object detection.
Motivation & Objective
- To address the challenge of deploying quantized neural networks on resource-constrained devices without retraining or access to training data.
- To achieve mixed-precision-like accuracy improvements in post-training quantization without requiring specialized hardware accelerators.
- To develop a hardware-friendly quantization method that uses only common operations and maintains low memory and computation overhead.
- To enable adaptive, per-channel precision control using a single precision level through multiple low-bit vectors.
- To demonstrate generalization to complex tasks like object detection beyond image classification.
Proposed method
- The method approximates each full-precision weight vector as a linear combination of multiple low-bit vectors, enabling flexible precision allocation per channel.
- A greedy selection algorithm iteratively adds the low-bit vector that most reduces output error, stopping when the error improvement falls below a threshold.
- The number of low-bit vectors per channel is adaptively determined based on the channel's contribution to output error, favoring important channels.
- The approach uses only standard multiply-accumulate (MAC) operations, making it compatible with commodity hardware and avoiding mixed-precision computation requirements.
- The algorithm is applied per-layer or per-channel, with weight and activation quantization to 4-bit or lower, and includes clipping to improve robustness.
- The method generalizes to both per-layer and per-channel quantization, with minimal memory increase and negligible computation overhead.
Experimental results
Research questions
- RQ1Can post-training quantization achieve mixed-precision-like performance without requiring specialized hardware accelerators?
- RQ2Can a single-precision quantization method achieve better accuracy than existing SOTA methods by using multiple low-bit vectors per weight?
- RQ3How does adaptive allocation of low-bit vectors across channels affect model accuracy and resource cost?
- RQ4Can the proposed method generalize beyond image classification to more complex tasks like object detection?
- RQ5What is the trade-off between computational cost, memory overhead, and accuracy improvement in the proposed multipoint quantization framework?
Key findings
- On ImageNet classification, the method outperforms the state-of-the-art mixed-precision baseline (Banner et al., 2019) by over 2% Top-1 accuracy on VGG19-BN and Inception-v3 after weight clipping.
- For 4-bit quantization, the method improves mAP by 1.24% on SSD-VGG16 under per-layer quantization and 0.41% under per-channel quantization.
- With 3-bit weight quantization, the method boosts mAP by 4.38% on SSD-VGG16 under per-layer quantization, with only 0.01MB memory overhead.
- The method achieves a 1.09% mAP improvement on 3-bit per-channel quantization, demonstrating strong performance at low bit-widths.
- Memory overhead remains under 5% across all experiments, and computation overhead is no more than 17% compared to naive quantization.
- The greedy algorithm ensures fast convergence, with error decaying exponentially with the number of low-bit vectors used.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.