REVIEW 3 cited by
PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantization
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
read the original abstract
Quantization is one of the most effective methods to compress neural networks, which has achieved great success on convolutional neural networks (CNNs). Recently, vision transformers have demonstrated great potential in computer vision. However, previous post-training quantization methods performed not well on vision transformer, resulting in more than 1% accuracy drop even in 8-bit quantization. Therefore, we analyze the problems of quantization on vision transformers. We observe the distributions of activation values after softmax and GELU functions are quite different from the Gaussian distribution. We also observe that common quantization metrics, such as MSE and cosine distance, are inaccurate to determine the optimal scaling factor. In this paper, we propose the twin uniform quantization method to reduce the quantization error on these activation values. And we propose to use a Hessian guided metric to evaluate different scaling factors, which improves the accuracy of calibration at a small cost. To enable the fast quantization of vision transformers, we develop an efficient framework, PTQ4ViT. Experiments show the quantized vision transformers achieve near-lossless prediction accuracy (less than 0.5% drop at 8-bit quantization) on the ImageNet classification task.
Forward citations
Cited by 3 Pith papers
-
I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentation
I-Segmenter is an integer-only Vision Transformer for semantic segmentation that keeps mIoU within roughly 5 points of the FP32 baseline while cutting model size by up to 3.8x.
-
QuantV2X: A Fully Quantized Multi-Agent System for Cooperative Perception
QuantV2X shows that a fully quantized multi-agent fusion system reduces end-to-end latency by 3.2x and improves system-level mAP30 by 9.5 over a full-precision system on the V2X-Real dataset.
-
DFQ-ViT: Data-Free Quantization for Vision Transformers without Fine-tuning
DFQ-ViT combines easy-to-hard synthetic sample generation with activation correction to quantize vision transformers without data or fine-tuning, outperforming PSAQ-ViT and roughly matching real-data calibration.
Discussion (0). Sign in to comment.