TL;DR
This paper introduces a novel end-to-end trainable variational autoencoder (VAE) framework for low bit-rate image compression. It improves upon existing methods by using a Laplacian distribution for modeling compressed representations, a pyramidal encoder for better feature fusion, and an effective convolutional post-processing module to reduce artifacts, achieving state-of-the-art performance in perceptual quality metrics.
What Problem Does This Paper Address?
Achieving high-quality image compression at very low bit-rates is a significant challenge. Traditional methods often struggle to maintain visual fidelity, leading to noticeable artifacts and blurriness. While deep learning-based autoencoders have shown promise, they can still suffer from these issues, especially when optimizing for simple metrics like mean squared error (MSE). This paper aims to bridge this gap by developing a VAE-based compression system that explicitly optimizes for perceptual quality and reduces compression artifacts, particularly at low bit-rates.
Methods
The proposed framework is built upon a variational autoencoder architecture, consisting of:
- Nonlinear Encoder and Decoder: These transform images to and from a compressed latent space. The encoder uses a pyramidal feature fusion structure, incorporating GDN/IGDN nonlinearities, which are effective for density modeling. To reduce parameters and computation, 5x5 convolutions are replaced with two 3x3 convolutions.
- Uniform Quantizer: This discretizes the latent representation. For training, additive uniform noise is used to enable gradient flow.
- Hyperprior Autoencoder: This module models the prior probability distribution of the quantized latent representations. Crucially, it uses a zero-mean Laplacian distribution to model the compressed representation's probability, which the authors found to be more effective than Gaussian distributions for natural images. This hyperprior is trained jointly with the main autoencoder.
- Convolutional Post-processing Module: To combat compression artifacts and blur, a dedicated convolutional network is applied to the reconstructed image. This module is designed to enhance details and improve perceptual quality.
- Rate Control Algorithm: A rate control mechanism is implemented to adaptively allocate bits to each image, ensuring compliance with bit-rate constraints.
The overall loss function combines rate (R) and distortion (D), with options for MSE or a perceptual loss (weighted sum of MSE and MS-SSIM).
Datasets
- Training: 0.5 million image patches of size 256x256 were extracted from 1500 high-quality images downloaded from flickr.com (licensed under creative commons). Images were downsampled to 2000x2000 pixels and saved as lossless PNGs.
- Validation: 102 images were used for validation.
- Test: 286 images from the test set were used for evaluation.
The paper also references results on the CLIC 2018 validation and test datasets.
Key Insights and Ideas
- Laplacian Prior for Compression: Modeling the distribution of compressed latent representations with a zero-mean Laplacian distribution, rather than a Gaussian, leads to improved compression performance. This suggests that the distribution of compressed image features is closer to Laplacian than Gaussian.
- Hyperprior for Distribution Modeling: Using a hyperprior autoencoder to estimate the parameters of the latent distribution is crucial for accurate rate estimation and effective entropy coding.
- Pyramidal Encoder for Feature Fusion: A pyramidal structure in the encoder helps fuse features from multiple scales, leading to more robust representations.
- Post-processing for Artifact Reduction: A simple convolutional post-processing module can significantly improve the perceptual quality of reconstructed images, especially at low bit-rates, by reducing artifacts and enhancing details. This module proved effective for both their deep learning method and traditional codecs.
- Perceptual Loss for MS-SSIM Optimization: Training with a perceptual loss function (incorporating MS-SSIM) allows the model to achieve the highest performance in terms of MS-SSIM, outperforming methods optimized solely for MSE.
Key Results
- The proposed framework, when trained with perceptual loss and rate control, achieved the highest MS-SSIM score (0.968) on the CLIC 2018 validation set.
- The post-processing module improved PSNR by 0.2 to 0.6 dB for their method and also boosted performance for BPG and H.266 codecs.
- The highest PSNR reported was 32.09 at a bit-rate of 0.15 bpp, achieved with the post-processing module.
- Using a Laplacian prior instead of Gaussian resulted in a 0.1 dB improvement at 0.15 bpp.
Limitations and Future Work
- High Computation Cost: The convolution-based framework, particularly the post-processing module, incurs a significant computational cost, which is a drawback compared to existing codecs that often benefit from hardware acceleration.
- Future Work: The authors suggest exploring more effective network architectures and developing hardware-optimized implementations for convolutional neural networks to address the computational cost. They also aim to further improve compression performance with deeper post-processing architectures.
Summary updated