Causal Contextual Prediction for Learned Image Compression

Zongyu Guo, Zhizheng Zhang, Runsen Feng, Zhibo Chen · DOI

Abstract

Over the past several years, we have witnessed impressive progress in the field of learned image compression. Recent learned image codecs are commonly based on autoencoders, that first encode an image into low-dimensional latent representations and then decode them for reconstruction purposes. To capture spatial dependencies in the latent space, prior works exploit hyperprior and spatial context model to build an entropy model, which estimates the bit-rate for end-to-end rate-distortion optimization. However, such an entropy model is suboptimal from two aspects: (1) It fails to capture global-scope spatial correlations among the latents. (2) Cross-channel relationships of the latents remain unexplored. In this paper, we propose the concept of separate entropy coding to leverage a serial decoding process for causal contextual entropy prediction in the latent space. A causal context model is proposed that separates the latents across channels and makes use of channel-wise relationships to generate highly informative adjacent contexts. Furthermore, we propose a causal global prediction model to find global reference points for accurate predictions of undecoded points. Both these two models facilitate entropy estimation without the transmission of overhead. In addition, we further adopt a new group-separated attention module to build more powerful transform networks. Experimental results demonstrate that our full image compression model outperforms standard VVC/H.266 codec on Kodak dataset in terms of both PSNR and MS-SSIM, yielding the state-of-the-art rate-distortion performance.

1. Introduction

In the field of learned image compression, autoencoders are typically used to compress images into latent representations. To minimize file size, an entropy model predicts the probability of these latents. However, current models often suffer from "local bias," ignoring global patterns like repeating textures, and "channel neglect," treating latent channels as independent. This paper introduces a "bit-free" method to capture these global and cross-channel relationships by splitting latents into two groups, allowing the decoder to use the first group to predict the second without extra overhead.

2. Proposed Methodology

The core innovation is Separate Entropy Coding. By dividing the latent representation into two channel groups (Group 1 and Group 2), the model enables a serial decoding process where Group 1 acts as a "preview" for Group 2.

2.1 Causal Global Prediction

To capture long-range patterns, the model utilizes a Causal Global Prediction Model. It calculates a causal correlation matrix based on the already-decoded Group 1 to find the most similar points across the entire image. These points serve as global references to predict Group 2.

Conceptual overview of the causal correlation matrix and latent grouping for global prediction.

2.2 System Architecture

The architecture integrates these components into a unified framework. Unlike standard models that rely solely on local context, the proposed architecture (shown in diagram b below) incorporates both local and global context paths to refine parameter estimation for the entropy model.

Comparison between (a) a standard entropy model and (b) the proposed separate entropy coding framework with global prediction.

3. Experimental Results

The model was trained on ImageNet and evaluated on the standard Kodak dataset.

  • State-of-the-Art Performance: The model achieved a 5.1% BD-rate saving over the VVC/H.266 (VTM 8.0) standard in terms of PSNR.
  • Visual Quality: When optimized for MS-SSIM, the model significantly outperformed traditional codecs by better preserving complex textures.
  • Ablation Studies: Experiments confirmed that both the causal global prediction and the causal context models are essential; removing either led to a clear drop in rate-distortion performance.

4. Limitations and Future Work

The primary challenge is computational complexity. The causal global search is expensive, increasing decoding time from 6.7 seconds (for local-only models) to 38.7 seconds for a Kodak image. Additionally, like most neural codecs, it faces a "distortion floor" at very high bitrates due to the non-invertible nature of autoencoders. Future research will focus on optimizing the software and hardware implementation of the global search for real-time applications.

Summary updated

BibTeX
@article{guo2021causal,
  author = {Zongyu Guo and Zhizheng Zhang and Runsen Feng and Zhibo Chen},
  title = {{Causal Contextual Prediction for Learned Image Compression}},
  journal = {IEEE Transactions on Circuits and Systems for Video Technology},
  year = {2021},
  doi = {10.1109/tcsvt.2021.3089491},
}
Figure