Learned Block-Based Hybrid Image Compression

Yaojun Wu, Xin Li, Zhizheng Zhang, Xin Jin, Zhibo Chen

TL;DR

This paper introduces a novel block-based hybrid image compression framework (LBHIC) that tackles the limitations of full-resolution learned compression methods. By incorporating explicit intra-block prediction and a boundary-aware postprocessing module, LBHIC achieves state-of-the-art compression performance while significantly reducing decoding time and memory usage, making it more practical for real-world applications.

What Problem Does This Paper Address?

Current state-of-the-art learned image compression methods typically process images at full resolution. While this allows for end-to-end optimization, it presents two major practical challenges:

  1. Slow Decoding: Autoregressive entropy models, crucial for accurate rate estimation, require serial decoding. This means each element must be decoded sequentially, making the overall decoding process very slow.
  2. High Memory Usage: Processing high-resolution images at full resolution demands substantial GPU memory, often leading to "out-of-memory" (OOM) errors on limited hardware.

To overcome these issues, researchers have explored block-based compression. However, simply partitioning images into blocks introduces new problems: loss of correlation between blocks and the emergence of "blocking artifacts" at block boundaries. This paper aims to address these challenges by developing a learned block-based approach that effectively leverages inter-block relationships and mitigates artifacts.

Methods

The proposed Learned Block-based Hybrid Image Compression (LBHIC) framework integrates traditional hybrid coding principles with learned approaches. Key components include:

  • Block Partitioning: The input image is divided into non-overlapping blocks. This enables parallel processing and reduces memory requirements.
  • Contextual Prediction Module (CPM): This is a core innovation. Instead of just using boundary pixels (like traditional codecs) or feeding entire adjacent blocks into a CNN, CPM uses "strip pooling" to capture long-range correlations from neighboring latent spaces. This allows it to extract more relevant information for predicting the current block, thereby reducing the amount of residual information that needs to be encoded.
  • Standard VAE-based Compression for Residuals: After prediction, the residual information is compressed using a standard Variational Autoencoder (VAE) framework, involving nonlinear transformation, quantization, and entropy coding.
  • Boundary-Aware Postprocessing Module (BPM): To combat the blocking artifacts introduced by block partitioning, BPM is designed to specifically focus on block boundaries. It uses a boundary mask to guide a multiscale architecture that smooths out artifacts and improves both subjective and objective image quality.
  • Block-wise Parallel Processing: The framework leverages the block-based nature to enable parallel encoding and decoding of blocks along diagonal lines, significantly accelerating the process.

Datasets

  • Training: Imagenet (for initial stages), DIV2K, and CLIC 2020 challenge training set. Images were cropped into 256x256 patches.
  • Testing: Kodak dataset (24 lossless images, 512x768) and Tecnick SAMPLING dataset (40 images, 1200x1200).

Key Insights and Ideas

  • Block Partitioning is Key for Practicality: The paper strongly advocates for block-based processing as a necessary step to overcome memory limitations and enable parallel acceleration in learned image compression.
  • Beyond Simple Context: Traditional intra-prediction relies on limited local context. CPM's use of strip pooling to capture long-range correlations from neighboring blocks is a significant step towards more effective inter-block redundancy reduction.
  • Targeted Artifact Removal: BPM's focus on block boundaries, guided by a boundary mask, is a more efficient way to handle blocking artifacts than general image restoration techniques.
  • Hybrid Approach Synergy: Combining the strengths of traditional hybrid coding (like explicit prediction) with learned components (like CPM and BPM) leads to superior performance.

Key Results

  • Performance: LBHIC outperforms VVC (intra) with a 4.1% bit-rate saving. It also achieves state-of-the-art (SOTA) performance compared to other learned image compression methods on both Kodak and Tecnick datasets, showing gains in PSNR and MS-SSIM.
  • Speed: Decoding time is reduced by approximately 86.7% compared to other SOTA learned methods. Encoding time is also significantly reduced due to parallel processing.
  • Memory: The block-based approach makes the framework more memory-efficient and hardware-friendly, especially for high-resolution images.
  • Subjective Quality: Visual comparisons show LBHIC effectively removes ringing, noising, and blocking artifacts, leading to better visual quality than traditional codecs like BPG and VTM 8.0 at similar bitrates.

Limitations and Future Work

  • Model Size: The addition of CPM and BPM nearly doubles the model size compared to baseline learned methods. The authors argue this is a worthwhile trade-off for the performance and acceleration benefits, especially given fixed GPU memory constraints.
  • Parallelism Strategy: While effective, the current parallel processing strategy has limitations for blocks at the edges of the image that have fewer reference blocks. The authors suggest that training additional CPM models for these edge cases could further improve efficiency.
  • Future Directions: The paper suggests that further optimization of GPU technology and engineering can lead to performance exceeding traditional codecs in all aspects. The block-based approach also opens avenues for efficient video compression.

Summary updated

BibTeX
@article{wu2022learned,
  author = {Yaojun Wu and Xin Li and Zhizheng Zhang and Xin Jin and Zhibo Chen},
  title = {{Learned Block-Based Hybrid Image Compression}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  doi = {10.1109/tcsvt.2021.3119660},
}
Figure