Deep Image Compression With Latent Optimization and Piece-Wise Quantization Approximation

Yuyang Wu, Zhiyang Qi, Huiming Zheng, Lvfang Tao, Wei Gao

Presented at a CVPR 2021 workshop, this research introduces a refined approach to deep image compression. By rethinking how latent representations are optimized and addressing the non-differentiable nature of quantization, the authors achieve superior visual results, particularly at very low bitrates.

The Core Challenges in Deep Compression

In standard deep image compression, an auto-encoder maps an image to a compact "latent representation." This representation is then quantized (rounded to discrete values) for storage. Two primary hurdles limit this process:

  1. The Optimization Gap: Most models focus solely on minimizing the difference between the input and output images (e.g., Mean Squared Error). This ignores the rich, high-dimensional information within the latent space that could help the model learn more robust features.
  2. The Quantization Problem: Quantization is a discrete "staircase" function. Because its derivative is zero almost everywhere, standard Gradient Descent cannot be used. While researchers often use random noise or linear approximations to bypass this, these methods do not accurately capture the data dynamics during actual rounding.

Proposed Methodology

The authors introduce two key innovations to the standard auto-encoder/hyperprior architecture to address these hurdles.

Latent Optimization ($L_l$)

To bridge the optimization gap, the authors introduce a "latent loss" function to ensure consistency. In this scheme, the original latent variable is decoded into an image and then re-encoded. The difference between the original latent and this re-encoded version constitutes the latent loss. This forces the network to prioritize features robust enough to survive the reconstruction process.

The proposed latent optimization scheme (b) adds a secondary loop to ensure latent consistency compared to the standard image loss approach (a).

Piece-wise Quantization Approximation

To solve the non-differentiable nature of quantization, the authors designed a specific non-linear piece-wise quadratic function for the forward pass. Crucially, its derivative is a triangular function. This provides a more accurate gradient "hint" to the network during training compared to the flat, "straight-through" linear approximations used in previous work.

The piece-wise function (a) approximates the quantization staircase, while its triangular derivative (b) provides a smoother gradient for training.

Architecture Refinements

The model utilizes residual blocks and a simplified attention module to focus on complex textures. It also employs a "hyperprior" network with a 3D context model to better estimate data probability distributions, enhancing the efficiency of the final entropy coding.

Key Insights and Results

  • Perception over Pixels: A major finding is the trade-off between objective scores (PSNR) and perceptual quality. While the model optimized with latent loss sometimes scored lower on PSNR, it produced significantly better visual results for human observers, preserving fine textures like hair that other models often blur.
  • Ablation Success: Using the piece-wise approximation instead of standard uniform noise improved the Peak Signal-to-Noise Ratio (PSNR) by 0.13 dB and MS-SSIM by 0.0002 at lower bitrates.
  • Competitive Performance: The method surpassed the classic Balle et al. (2018) model by a large margin at low bitrates (~0.075 bpp) and achieved results comparable to state-of-the-art models from Minnen et al. (2018) and Cheng et al. (2020).

Conclusion

By treating the latent space as a primary target for optimization and refining the mathematical approximation of quantization, this framework successfully maintains sharper edges and more realistic textures in high-compression scenarios. While these improvements can lead to a discrepancy between mathematical metrics and human vision, they represent a significant step toward more perceptually accurate image compression.

Summary updated

BibTeX
@inproceedings{wu2021deep,
  author = {Yuyang Wu and Zhiyang Qi and Huiming Zheng and Lvfang Tao and Wei Gao},
  title = {{Deep Image Compression With Latent Optimization and Piece-Wise Quantization Approximation}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00219},
}
Figure