Learning a Code-Space Predictor by Exploiting Intra-Image-Dependencies

Jan Klopp, Yu-Chiang Frank Wang, Shao-Yi Chien, Liang-Gee Chen

Abstract

Neural image compression often assumes statistical independence between symbols in the latent representation, missing opportunities for further data reduction. This paper proposes a spatial predictor that operates directly within the compact latent space (code-space) to exploit intra-image dependencies. By integrating a 3-layer CNN predictor and a novel Sparse Generalized Divisive Normalization (SGDN) layer, the model achieves significant coding gains. Experimental results on the Kodak dataset demonstrate state-of-the-art performance on the MS-SSIM scale, with a -3.2% BD-Rate saving over previous benchmarks and substantial improvements over traditional codecs like BPG and JPEG2000.

Introduction

In traditional image compression standards like HEVC, spatial prediction is a fundamental technique: the codec predicts block content based on previously decoded neighboring blocks, storing only the residual. While Deep Learning-based Compressive Autoencoders (CAEs) have shown promise by transforming images into compact latent representations, many models assume these latent symbols are statistically independent. Existing attempts to implement spatial prediction in the high-resolution pixel space are computationally prohibitive. This work addresses this gap by bringing the efficiency of spatial prediction directly into the spatially dense latent space.

Methods

The proposed architecture augments a standard CAE with two primary innovations: a Spatial Code-Space Predictor and Sparse Generalized Divisive Normalization (SGDN).

Overall architecture of the proposed neural image codec with spatial code-space prediction.

Spatial Code-Space Predictor

Instead of assuming independence, the model uses a small 3-layer CNN to predict the probability distribution of a code symbol based on its already-decoded causal neighbors. It models this distribution as a mixture of Gaussians. Because the predictor relies solely on previously decoded information, both the encoder and decoder can generate identical predictions, enabling efficient arithmetic coding.

Sparse Generalized Divisive Normalization (SGDN)

Standard deep codecs use GDN to reduce redundancies between channels. However, the addition of a spatial predictor creates complex gradient paths during training (balancing distortion, entropy, and prediction). To prevent these gradients from interfering, the authors modified GDN by adding a ReLU non-linearity to the denominator. This induces "orthogonality by sparsity," ensuring that weight updates are more focused and stable, which empirically leads to higher coding gains.

Key Results

The model was evaluated on the Kodak dataset, a standard benchmark of 24 RGB images. When integrated with a hyperprior model (hierarchical modeling of code variance), the approach achieves a new state-of-the-art on the MS-SSIM metric.

Rate-distortion performance comparison on the Kodak dataset using the MS-SSIM metric.
  • State-of-the-Art Performance: The integrated model achieves a -3.2% BD-Rate saving over the previous state-of-the-art (Ballé et al., 2018).
  • Comparison to Conventional Codecs: The model significantly outperforms traditional methods on MS-SSIM, showing BD-Rate savings of -41.4% against BPG, -51.4% against JPEG2000, and -65.7% against JPEG.
  • Visual Quality: Qualitative results indicate that the model preserves fine structural details better than recurrent predictors and avoids the blocking artifacts common in BPG at low bitrates.

Conclusion

Predicting in the latent space provides a computationally efficient method to exploit spatial dependencies in neural codecs. The authors found that spatial prediction and hierarchical hyperprior modeling capture complementary types of image dependencies. Future work may involve integrating this spatial predictor into other architectures, such as residual coding approaches that iteratively produce layers of binary codes.

Summary updated

BibTeX
@inproceedings{klopp2018learning,
  author = {Jan Klopp and Yu-Chiang Frank Wang and Shao-Yi Chien and Liang-Gee Chen},
  title = {{Learning a Code-Space Predictor by Exploiting Intra-Image-Dependencies}},
  booktitle = {BMVC},
  year = {2018},
}
Figure