arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.02854eess.IV
收藏

面向学习型图像压缩的率失真优化训练后量化

Rate-Distortion Optimized Post-Training Quantization for Learned Image Compression

Junqi Shi, Ming Lu, Zhan Ma

AI总结:

针对学习型图像压缩模型量化需重训练的问题,提出率失真优化的训练后量化方法,逐层调整量化参数实现FP32到INT8转换,性能接近浮点模型,且可推广至超分辨率和图像分类任务。

摘要:

将浮点神经网络量化为定点表示对学习型图像压缩(Learned Image Compression, LIC)至关重要,因为它能提升解码一致性以实现互操作性,并降低实现的时空复杂度。现有解决方案通常需要为模型量化重新训练网络,这既耗时又在一定程度上不切实际。本研究提出采用训练后量化(Post-Training Quantization, PTQ)来处理预训练的现成LIC模型。我们从理论上证明,在PTQ中最小化模型参数(如权重、偏置和激活值)的量化诱导均方误差(mean square error, MSE)对于压缩任务而言是次优的,因此开发了一种新颖的率失真(Rate-Distortion, R-D)优化PTQ(RDO-PTQ),以最大程度地保留压缩性能。给定一个LIC模型,RDO-PTQ逐层确定量化参数,将原始32位精度(FP32)的浮点参数转换为8位精度(INT8)的定点参数,优化过程中会压缩一个小型校准图像集以最小化R-D损失。实验表明,所提方法在不同LIC模型上具有出色的效率,其编码性能最接近对应的浮点模型。我们的方法是一种轻量级的即插即用方案,无需重新训练模型参数,仅需调整量化参数,对从业者极具吸引力。这种RDO-PTQ是一种面向任务的PTQ方案,随后被扩展用于量化流行的超分辨率和图像分类模型,性能损失可忽略不计,进一步证明了我们方法的通用性。相关材料将发布于https://njuvision.github.io/RDO-PTQ。

英文摘要:

Quantizing a floating-point neural network to its fixed-point representation is crucial for Learned Image Compression (LIC) because it improves decoding consistency for interoperability and reduces space-time complexity for implementation. Existing solutions often have to retrain the network for model quantization, which is time-consuming and impractical to some extent. This work suggests using Post-Training Quantization (PTQ) to process pretrained, off-the-shelf LIC models. We theoretically prove that minimizing quantization-induced mean square error (MSE) of model parameters (e.g., weight, bias, and activation) in PTQ is sub-optimal for compression tasks and thus develop a novel Rate-Distortion (R-D) Optimized PTQ (RDO-PTQ) to best retain the compression performance. Given a LIC model, RDO-PTQ layer-wisely determines the quantization parameters to transform the original floating-point parameters in 32-bit precision (FP32) to fixed-point ones at 8-bit precision (INT8), for which a tiny calibration image set is compressed in optimization to minimize R-D loss. Experiments reveal the outstanding efficiency of the proposed method on different LICs, showing the closest coding performance to their floating-point counterparts. Our method is a lightweight and plug-and-play approach without retraining model parameters but just adjusting quantization parameters, which is attractive to practitioners. Such an RDO-PTQ is a task-oriented PTQ scheme, which is then extended to quantize popular super-resolution and image classification models with negligible performance loss, further evidencing the generalization of our methodology. Related materials will be released at https://njuvision.github.io/RDO-PTQ.

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

↑