arrow
返回

Mixed precision quantization based on information entropy

delete2025-04-15
delete0
delete
OA
AI
T
Ting Qin
Z
Zhao Li *
J
Jiaqi Zhao
Y
Yuting Yan
Y
Yafei Du
DOI:10.1038/s41598-025-91684-8delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Mixed precision quantization represents a sophisticated technique that markedly diminishes a system's computational and memory demands by reducing the bit width of the model. However, in practical applications, an improper allocation strategy can fail to leverage the advantages of quantization and lead to wasted computational resources and degraded model performance. We propose a bit-width allocation method based on information entropy as a means of mitigating the precision loss caused by quantization. During the forward pass of the model, the entropy value of each layer output is calculated, and a sliding window is employed to smooth these entropy values. By computing a dynamic threshold based on the smoothed average entropy of each layer, we adaptively allocate the bit width for each layer. Furthermore, the threshold and the sliding window size are treated as hyperparameters, which Optuna optimizes. Model accuracy is the constraint, thereby automating the bit-width allocation across layers. Finally, we integrate knowledge distillation, where a larger teacher model guides the training of the quantized model, ensuring high performance despite compression by transferring soft labels and deeper knowledge. Experiments on ResNet20, ResNet32, and ResNet56 architectures show that our method can effectively reduce the bit width of weights and activations to 3.6M/3.6MP while maintaining the accuracy of the model. The maximum accuracy loss of this method on the CIFAR-100 dataset is only 0.6%, and it achieves an accuracy comparable to that of the full-precision model on the CIFAR-10 dataset, fully demonstrating its effectiveness in balancing model compression and performance.
Keyword:
Sliding window
Information entropy
Mixed precision quantization
Knowledge distillation
Model compression
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Scientific Reports 封面图
Scientific Reports
IF:
3.9
论文数:
27.8W
被引数:
83.5W

机构

S
Shandong University of Technology
学者数:
1.2W
论文数: 6.7K
被引数: 8.7K