1Mb硬件下实现图像分类与分块压缩的混合精度编码器
A 1Mb mixed-precision quantized encoder for image classification and patch-based compression
- 设计可重构混合精度编码器,支持3位/2位/1位量化
- 1Mb配置下在CIFAR-10上达87.5%分类准确率
- 适用于边缘设备,支持无块效应的端到端图像压缩
尽管专用集成电路(ASIC)已在边缘推理中证明其有效性,但其应用范围常受限制。本文展示了一款专用于图像处理的ASIC神经网络加速器,可同时应用于图像分类与压缩任务,且仅需极低硬件开销。核心是可重构的混合精度(3b/2b/1b)编码器,通过合理的权值与激活量化结合卷积层结构剪枝,降低内存与计算压力。引入自动适应的线性对称量化缩放因子,实现量化层级均衡化,稳定五元与三元权值训练;提出共享层位移归一化,简化硬件昂贵的批量归一化实现。在仅需1Mb存储的配置下,分类准确率达87.5%(CIFAR-10)。此外,该量化编码器可逐块压缩图像,由专用全帧解码器远程重建,实现几乎无块效应的端到端压缩,优于采用固定每块比特率的现有分块压缩技术。
原文摘要 · Abstract (English)
Even if Application-Specific Integrated Circuits (ASIC) have proven to be a relevant choice for integrating inference at the edge, they are often limited in terms of applicability. In this paper, we demonstrate that an ASIC neural network accelerator dedicated to image processing can be applied to multiple tasks of different levels: image classification and compression, while requiring a very limited hardware. The key component is a reconfigurable, mixed-precision (3b/2b/1b) encoder that takes advantage of proper weight and activation quantizations combined with convolutional layer structural pruning to lower hardware-related constraints (memory and computing). We introduce an automatic adaptation of linear symmetric quantizer scaling factors to perform quantized levels equalization, aiming at stabilizing quinary and ternary weights training. In addition, a proposed layer-shared Bit-Shift Normalization significantly simplifies the implementation of the hardware-expensive Batch Normalization. For a specific configuration in which the encoder design only requires 1Mb, the classification accuracy reaches 87.5% on CIFAR-10. Besides, we also show that this quantized encoder can be used to compress image patch-by-patch while the reconstruction can performed remotely, by a dedicated full-frame decoder. This solution typically enables an end-to-end compression almost without any block artifacts, outperforming patch-based state-of-the-art techniques employing a patch-constant bitrate.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。