arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2111.09348eess.IV
收藏

具有量化权重和激活的端到端学习图像压缩

End-to-End Learned Image Compression with Quantized Weights and Activations

Heming Sun, Lu Yu, Jiro Katto

摘要:

端到端学习图像压缩(LIC)在编码增益方面已经达到传统手工制作的方法,例如BPG(HEVC帧内)。然而,大的网络规模禁止在资源有限的嵌入式系统上使用LIC。本文通过量化权值和激活量来降低网络的复杂度。1)对于权值量化,我们首先研究了不同的分组和量化方案。基于编码增益分析确定逐通道非线性量化方案。在此之后,我们提出了一个微调方案,在一定范围内裁剪的权重,使量化误差可以减少。2)对于激活量化,我们首先提出了具有不同最大动态范围的多个非线性量化码本。通过多路复用器选择一个最佳的量化范围,可以最大程度地饱和量化范围。此外,我们还利用均值去除量化的分析变换输出,以减少位宽的成本与大的非零均值的特定通道。通过将每个权重和激活元素从32位浮点量化为8位定点,可以将权重和激活的存储器成本降低75%,而编码性能损失可以忽略不计。因此,我们的量化LIC在MS-SSIM方面仍然可以优于BPG。据我们所知,这是第一个工作,给出了一个量化的LIC网络的编码增益和存储成本的完整分析,这验证了硬件实现的可行性。

英文摘要:

End-to-end Learned image compression (LIC) has reached the traditional hand-crafted methods such as BPG (HEVC intra) in terms of the coding gain. However, the large network size prohibits the usage of LIC on resource-limited embedded systems. This paper reduces the network complexity by quantizing both weights and activations. 1) For the weight quantization, we study different kinds of grouping and quantization scheme at first. A channel-wise non-linear quantization scheme is determined based on the coding gain analysis. After that, we propose a fine tuning scheme to clip the weights within a certain range so that the quantization error can be reduced. 2) For the activation quantization, we first propose multiple non-linear quantization codebooks with different maximum dynamic ranges. By selecting an optimal one through a multiplexer, the quantization range can be saturated to the greatest extent. In addition, we also exploit the mean-removed quantization for the analysis transform outputs in order to reduce the bit-width cost for the specific channel with the large non-zero mean. By quantizing each weight and activation element from 32-bit floating point to 8-bit fixed point, the memory cost for both weight and activation can be reduced by 75% with negligible coding performance loss. As a result, our quantized LIC can still outperform BPG in terms of MS-SSIM. To our best knowledge, this is the first work to give a complete analysis on the coding gain and the memory cost for a quantized LIC network, which validates the feasibility of the hardware implementation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑