Learning Accurate Entropy Model with Global Reference for Image Compression

Yichen Qian, Zhiyu Tan, Xiuyu Sun, Ming Lin, Dongyang Li, Zhenhong Sun, Hao Li, Rong Jin

TL;DR

This paper introduces a novel Global Reference Model for deep image compression that captures long-range spatial redundancies often missed by local-only models. By combining global search, a new confidence-weighted attention mechanism, and an improved normalization layer (GSDN), the authors achieve a 6.1% bit-rate saving over previous state-of-the-art context-adaptive models and a 21.0% saving relative to the BPG format.

What Problem Does This Paper Address?

In deep image compression, an autoencoder transforms an image into a "latent representation." To store this representation efficiently, we need an entropy model to estimate its probability distribution; the more accurate the estimate, the fewer bits we need to spend.

Current state-of-the-art models typically look at two things:

  1. Hyperpriors: Side information sent along with the image.
  2. Local Context: Information from immediate neighbors (e.g., the pixels to the left and top).
Example of global redundancy in an image, where distant patches share similar textures and structures.

However, images often contain global redundancy—patterns that repeat far apart, like windows on a building or textures in a field. Existing models have a "blind spot" for these distant similarities because they only look at local neighborhoods. This paper aims to give entropy models "global vision" to exploit these repeating patterns for better compression.

Methods

The authors propose a three-pronged entropy model that progressively ensembles information:

The proposed architecture incorporating the Global Reference (Ref) and Confidence Map (CM) modules.
  1. Global Reference Module: This is the core innovation. As the decoder processes the image, it searches through previously decoded latents to find the most similar patch (using cosine similarity). It then uses this "global reference" to help predict the distribution of the current patch.
  2. Confidence Score ($U$): Not all global matches are equally useful. The model calculates a confidence score based on texture complexity. This ensures that the model relies on the global reference when the match is strong and reverts to other cues when the background is noisy or unique.
  3. GSDN (Generalized Subtractive and Divisive Normalization): The authors identified a "mean-shifting" problem in the widely used GDN layer, where latent densities weren't perfectly centered at zero. They introduced a subtractive term to the standard divisive normalization, creating GSDN, which better aligns the data for the entropy model.

The final architecture is a progressive ensemble: it first estimates parameters using local context, then refines them with the global reference, and finally adjusts them using the hyperprior.

Datasets

  • Training: The models were trained on color PNG images from the CVPR workshop CLIC (Challenge on Learned Image Compression) training dataset.
  • Evaluation: Performance was benchmarked using the Kodak dataset (24 images), a standard in image compression research.

Key Insights and Ideas

  • Long-range Redundancy is Low-Hanging Fruit: Even in highly compressed latent spaces, spatial patterns repeat. Capturing these via a search mechanism significantly improves bit-rate efficiency without needing a deeper or wider autoencoder.
  • Similarity Isn't Enough: Simply finding a similar patch isn't sufficient for compression. You need a Confidence Map to handle high-order statistics and noise. This prevents the model from being "distracted" by coincidental similarities in noisy regions.
  • Normalization Matters for Entropy: The shift from GDN to GSDN shows that even small mathematical misalignments (like a non-zero mean in latent distributions) can lead to sub-optimal bit-rate estimation.

Key Results

  • Rate-Distortion Performance: The proposed model outperforms standard codecs like JPEG, JPEG2000, and BPG (HEVC-based).
  • Efficiency Gains: It achieves a 6.1% bit-rate saving compared to the previous best context-adaptive deep models (like Minnen et al., 2018) and a massive 21.0% saving over BPG.
  • Qualitative Quality: Visual results show fewer "ringing" artifacts around edges and better texture preservation in complex areas (like a girl's face or parrot feathers) compared to BPG and JPEG at similar bit-rates.

Limitations and Future Work

  • Computational Complexity: The global search module has a complexity of $O(N^2)$ relative to the size of the latents. While manageable for standard images, the authors note that the complexity increases faster than other modules as image resolution grows.
  • Serial Bottleneck: Because the global search relies on "previously decoded" latents, it inherits the serial processing bottleneck common in autoregressive models, which can be slow on modern parallel hardware (GPUs).
  • Future Directions: The authors suggest extending this global reference concept to multi-image compression or video compression, where global references could be pulled from previous frames or even different images in a gallery.

Summary updated

BibTeX
@inproceedings{qian2021learning,
  author = {Yichen Qian and Zhiyu Tan and Xiuyu Sun and Ming Lin and Dongyang Li and Zhenhong Sun and Hao Li and Rong Jin},
  title = {{Learning Accurate Entropy Model with Global Reference for Image Compression}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=BNhpqKcnUt},
}
Figure