[Paper Review] Post-Training Quantization for Cross-Platform Learned Image Compression
This paper proposes a post-training quantization (PTQ) framework to enable cross-platform consistent inference in learned image compression models by enforcing integer-only arithmetic and deterministic entropy parameter discretization. The method achieves state-of-the-art rate-distortion performance while eliminating floating-point inconsistency across platforms, enabling practical deployment of SOTA learned compression models without retraining or hardware-specific tuning.
It has been witnessed that learned image compression has outperformed conventional image coding techniques and tends to be practical in industrial applications. One of the most critical issues that need to be considered is the non-deterministic calculation, which makes the probability prediction cross-platform inconsistent and frustrates successful decoding. We propose to solve this problem by introducing well-developed post-training quantization and making the model inference integer-arithmetic-only, which is much simpler than presently existing training and fine-tuning based approaches yet still keeps the superior rate-distortion performance of learned image compression. Based on that, we further improve the discretization of the entropy parameters and extend the deterministic inference to fit Gaussian mixture models. With our proposed methods, the current state-of-the-art image compression models can infer in a cross-platform consistent manner, which makes the further development and practice of learned image compression more promising.
Motivation & Objective
- To address the critical issue of cross-platform inconsistency in learned image compression caused by non-deterministic floating-point inference.
- To enable deterministic, hardware-friendly, and general-purpose deployment of state-of-the-art learned compression models across diverse platforms.
- To preserve the high rate-distortion performance of SOTA models while eliminating reliance on floating-point arithmetic and model-specific fine-tuning.
- To extend deterministic inference to complex models using Gaussian Mixture Models (GMMs) for entropy parameter modeling.
Proposed method
- Applies well-established post-training quantization (PTQ) to convert floating-point models into integer-only inference networks, ensuring deterministic behavior across platforms.
- Introduces offline-constrained requantization to stabilize entropy parameter quantization and reduce performance degradation during PTQ.
- Proposes a 65-level discretization scheme for entropy parameters, enabling deterministic lookup via integer arithmetic without floating-point operations.
- Designs a deterministic CDF indexing mechanism for GMM-based entropy models using floor-rounded means and quantized weights to ensure consistent probability estimation.
- Integrates Golomb coding as a fallback for extreme values to maintain numerical stability and deterministic decoding.
- Uses standard PTQ calibration with minimal data to quantize weights and activations, avoiding the need for quantization-aware training (QAT).
Experimental results
Research questions
- RQ1Can post-training quantization eliminate cross-platform inconsistency in learned image compression without retraining or performance loss?
- RQ2How can deterministic entropy parameter quantization be achieved for complex models with GMM-based context modeling?
- RQ3Can the proposed method maintain state-of-the-art rate-distortion performance while ensuring integer-only inference across heterogeneous platforms?
- RQ4What is the impact of discretizing entropy parameters on compression efficiency and decoding consistency?
Key findings
- The proposed PTQ-based method achieves cross-platform consistent inference for state-of-the-art learned image compression models, including those with joint autoregressive and hyperprior modeling.
- The method maintains near-identical rate-distortion performance compared to the original floating-point models, with negligible performance degradation.
- The 65-level discretization of entropy parameters enables deterministic CDF indexing using only integer arithmetic, eliminating floating-point inconsistencies.
- The approach supports GMM-based entropy models through a deterministic CDF indexing mechanism that uses floor-rounded means and quantized weights.
- The method is hardware-friendly and general-purpose, compatible with standard inference engines and widely deployed hardware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.