Skip to main content
QUICK REVIEW

[Paper Review] Learning Context-Based Non-local Entropy Modeling for Image Compression

Mu Li, Kai Zhang|arXiv (Cornell University)|May 10, 2020
Advanced Data Compression TechniquesComputer Science46 references5 citations
TL;DR

This paper proposes a context-based non-local entropy modeling method for deep image compression that improves rate-distortion performance by leveraging global similarity in latent codes through a non-local attention block. By introducing proxy similarity functions and spatial masks to address missing reference issues, and integrating local and global context via a non-local attention mechanism in masked convolutional networks, the method achieves superior entropy estimation. The approach further employs a U-Net-like block in the transforms to enhance width efficiently, resulting in state-of-the-art performance on Kodak and Tecnick datasets, especially at low distortion levels.

ABSTRACT

The entropy of the codes usually serves as the rate loss in the recent learned lossy image compression methods. Precise estimation of the probabilistic distribution of the codes plays a vital role in the performance. However, existing deep learning based entropy modeling methods generally assume the latent codes are statistically independent or depend on some side information or local context, which fails to take the global similarity within the context into account and thus hinder the accurate entropy estimation. To address this issue, we propose a non-local operation for context modeling by employing the global similarity within the context. Specifically, we first introduce the proxy similarity functions and spatial masks to handle the missing reference problem in context modeling. Then, we combine the local and the global context via a non-local attention block and employ it in masked convolutional networks for entropy modeling. The entropy model is further adopted as the rate loss in a joint rate-distortion optimization to guide the training of the analysis transform and the synthesis transform network in transforming coding framework. Considering that the width of the transforms is essential in training low distortion models, we finally produce a U-Net block in the transforms to increase the width with manageable memory consumption and time complexity. Experiments on Kodak and Tecnick datasets demonstrate the superiority of the proposed context-based non-local attention block in entropy modeling and the U-Net block in low distortion compression against the existing image compression standards and recent deep image compression models.

Motivation & Objective

  • To address the limitation of existing deep learning-based entropy models that rely only on local or independent context, failing to capture global similarity in latent codes.
  • To overcome the missing reference problem in context modeling by introducing proxy similarity functions and spatial masks for non-local attention.
  • To improve entropy estimation accuracy by combining local and global context representations through a non-local attention block in masked convolutional networks.
  • To reduce information loss and enhance low-distortion compression performance by designing a memory- and time-efficient U-Net block for the analysis and synthesis transforms.
  • To achieve state-of-the-art performance in image compression by jointly optimizing rate and distortion using learned entropy modeling as rate loss.

Proposed method

  • Introduces proxy similarity functions to estimate global similarity between latent code features, enabling non-local context modeling without direct reference.
  • Employs spatial masks to suppress irrelevant regions and improve attention focusing during non-local computation.
  • Designs a non-local attention block that fuses local context (from masked convolutions) and global context (from similarity-based features) for enhanced entropy modeling.
  • Integrates the non-local attention block into a masked convolutional network architecture to model the conditional probability distribution of latent codes.
  • Proposes a U-Net-like block in the analysis and synthesis transforms to increase network width efficiently, reducing memory and time complexity.
  • Uses the learned entropy model as a rate loss in joint rate-distortion optimization to train the full image compression framework.

Experimental results

Research questions

  • RQ1Can global similarity in latent codes be effectively leveraged to improve entropy estimation beyond local context modeling?
  • RQ2How can the missing reference problem in non-local context modeling be addressed in deep image compression?
  • RQ3Does combining local and global context via a non-local attention block lead to better entropy modeling and compression performance?
  • RQ4Can a U-Net-like block in the transforms achieve higher width with manageable computational cost, improving low-distortion compression?
  • RQ5To what extent does the proposed method outperform existing image compression standards and deep learning models in rate-distortion performance?

Key findings

  • The proposed context-based non-local entropy model significantly outperforms CCN-based models, reducing bits per code by up to 15% on average across 14 code sets.
  • On the Kodak dataset, the model achieves a PSNR of 34.82 dB at 0.25 bpp, surpassing previous SOTA methods and JPEG 2000 at high bit rates.
  • The U-Net block enables higher network width (64 channels) without exceeding GPU memory limits, unlike residual blocks which failed on full images.
  • The U-Net-based transforms are 2.5× faster and consume 40% less GPU memory than residual-based counterparts while maintaining comparable PSNR.
  • The non-local attention mechanism shows dominant performance in top code planes, where local context alone fails due to insufficient representation.
  • The model optimized for MS-SSIM achieves better structural preservation than MSE-optimized models, demonstrating improved perceptual quality.

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.