Image Compression With Recurrent Neural Network and Generalized Divisive Normalization

Khawar Islam, L. Minh Dang, Sujin Lee, Hyeonjoon MoonWorkshops @ CVPR 2021

Abstract

This paper introduces a novel variable-rate image compression framework that integrates Generalized Divisive Normalization (GDN) into a Recurrent Neural Network (RNN) architecture. Traditional deep learning models for compression are often fixed-rate, requiring multiple models for different quality levels. By combining the spatial redundancy reduction capabilities of GDN with the iterative refinement of RNNs, the proposed method enables a single model to support multiple bitrates. Evaluation on the Kodak dataset shows that this hybrid approach outperforms standard codecs like JPEG and previous RNN-based methods, particularly in perceptual similarity metrics such as MS-SSIM.

Introduction

Standard image compression techniques, such as JPEG, frequently introduce visible artifacts at low bitrates. While Convolutional Neural Networks (CNNs) have shown promise in improving compression quality, they typically suffer from a "fixed-rate" limitation, necessitating separate training for every desired bitrate. Furthermore, increasing network depth to improve accuracy often leads to prohibitive computational costs.

Recurrent Neural Networks (RNNs) address the fixed-rate problem by iteratively refining the reconstructed image, allowing for variable-rate compression within a single architecture. However, prior RNN-based methods have not fully exploited advanced normalization techniques like Generalized Divisive Normalization (GDN), which is effective at "Gaussianizing" natural image data. This work bridges this gap by proposing the first GDN-RNN hybrid for variable-rate image compression.

Methods

The proposed framework consists of three primary modules: an encoder, a binarizer, and a decoder.

Analysis and Synthesis Blocks

The core innovation lies in the integration of GDN within the network's blocks. The encoder utilizes an Analysis Block comprising a convolutional layer followed by GDN. This configuration captures spatial information in the latent representation more effectively for natural images. Conversely, the decoder employs a Synthesis Block with inverse GDN (iGDN) to up-sample and reconstruct the image from the compressed representation.

Architecture of the proposed variable-rate RNN-based image compression framework featuring GDN-based Analysis and Synthesis blocks.

Iterative Residual Encoding

The network employs seven RNN cells (three in the encoder and four in the decoder). In each iteration $t$, the model calculates a residual $r_t = x - \hat{x}_t$, representing the difference between the original image $x$ and the current reconstruction $\hat{x}_t$. By encoding only this residual, the model progressively "fills in" image details, avoiding the redundant transmission of information already captured in previous steps.

Binarization and Quantization

To achieve actual compression, latent representations are converted into bits. The authors implement a "pixel RNN" approach for quantization, creating a bottleneck that encourages the network to learn highly efficient representations.

Experimental Setup

The model was trained on a subset of 20,745 high-quality images from Flickr, using 3,600 images to generate random 32x32 patches. Evaluation was conducted on the Kodak dataset (24 images), a standard benchmark for image processing, to compare performance against established codecs (JPEG, WebP, BPG) and other deep learning models.

Key Results

The integration of GDN significantly improves both Peak Signal-to-Noise Ratio (PSNR) and Multi-Scale Structural Similarity (MS-SSIM).

Rate-distortion performance comparison (MS-SSIM and PSNR) against standard and modern codecs on the Kodak dataset.
  • Perceptual Superiority: The framework consistently outperforms standard JPEG and previous RNN-based methods across various bitrates. In terms of MS-SSIM, which correlates more closely with human perception than PSNR, the model is competitive with or superior to modern codecs like BPG (HEVC-based) and WebP.
  • Visual Quality: Qualitative analysis indicates that the proposed method produces smoother reconstructions with fewer "ringing" artifacts compared to JPEG and JPEG2000, particularly around object edges.
  • Architectural Gains: Experiments demonstrated that increasing the number of hidden units in the binarizer and encoder (e.g., from [64, 128] to [256, 512]) in conjunction with GDN yielded the most favorable rate-distortion curves.

Conclusion

This work demonstrates the effectiveness of combining RNNs with GDN for variable-rate image compression. While the model excels in perceptual similarity (MS-SSIM), a slight gap remains in PSNR compared to the most advanced codecs like BPG. Future work may focus on enhancing RNN cell architectures or integrating more sophisticated entropy coding modules to further improve compression ratios without sacrificing visual fidelity. The sequential nature of RNNs also presents a computational challenge that could be addressed in future iterations to improve processing speed.

Summary updated

BibTeX
@inproceedings{islam2021image,
  author = {Khawar Islam and L. Minh Dang and Sujin Lee and Hyeonjoon Moon},
  title = {{Image Compression With Recurrent Neural Network and Generalized Divisive Normalization}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00209},
}
Figure