Skip to main content
QUICK REVIEW

[Paper Review] End-to-End Learned Image Compression with Quantized Weights and Activations

Heming Sun, Lu Yu|arXiv (Cornell University)|Nov 17, 2021
Video Coding and Compression TechnologiesComputer Science55 references5 citations
TL;DR

This paper proposes an end-to-end learned image compression framework with 8-bit fixed-point quantization for both weights and activations, achieving superior MS-SSIM performance over BPG while reducing memory usage by 75%. It introduces channel-wise non-linear weight quantization with a clipping fine-tuning scheme, dynamic-range-optimized activation codebooks, and mean-removed quantization to minimize quantization error and bit-depth cost.

ABSTRACT

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.

Motivation & Objective

  • To enable practical deployment of end-to-end learned image compression (LIC) on resource-limited embedded systems by reducing memory and computational costs.
  • To analyze the trade-off between coding gain and memory cost in quantized LIC networks, particularly for hardware implementation.
  • To develop a complete quantization strategy for both weights and activations that preserves high compression performance.
  • To minimize quantization error and bit-width cost through novel quantization schemes and fine-tuning techniques.

Proposed method

  • Proposes a channel-wise non-linear quantization scheme for weights, optimized via coding gain analysis to minimize distortion.
  • Introduces a weight-clipping fine-tuning method that restricts weight ranges to reduce quantization error after quantization.
  • Designs four non-linear activation codebooks with varying dynamic ranges, selected via a multiplexer to maximize quantization precision.
  • Applies mean-removed quantization to analysis transform outputs to reduce bit-width for channels with large non-zero means.
  • Quantizes both weights and activations from 32-bit floating point to 8-bit fixed point, reducing memory cost by 75%.
  • Uses a hyperprior-based network architecture (hyperprior-5) as the baseline, with quantization applied to all layers including the hyper-path.

Experimental results

Research questions

  • RQ1What is the optimal grouping and quantization scheme for weights in a quantized LIC network to maximize coding gain?
  • RQ2How can quantization error be minimized in low-precision weight and activation representations without sacrificing compression performance?
  • RQ3Can dynamic-range-adaptive activation quantization improve the efficiency of learned image compression?
  • RQ4How does mean-removed quantization affect bit-depth requirements and overall memory cost in the analysis transform?
  • RQ5To what extent can 8-bit fixed-point quantization preserve coding performance while reducing memory and computational cost?

Key findings

  • The proposed quantized LIC achieves higher MS-SSIM than BPG, demonstrating superior perceptual quality despite 8-bit quantization.
  • Memory consumption for both weights and activations is reduced by 75% compared to full-precision models, with 4.48% higher weight cost than [18] but 21% lower for the decoder.
  • The weight-clipping fine-tuning scheme significantly reduces quantization error, improving coding gain after quantization.
  • The use of four non-linear activation codebooks with dynamic range selection enables better saturation of the quantization range, improving precision.
  • Mean-removed quantization reduces bit-depth requirements for high-mean channels, contributing to lower activation memory cost.
  • Energy cost for multiplication and addition is reduced from 3.7pJ and 0.9pJ (32-bit FP) to 0.2pJ and 0.03pJ (8-bit INT), respectively, indicating significant computational savings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.