TL;DR
This paper introduces a novel learned image compression (LIC) architecture that combines the strengths of CNNs with a Cross Window-based Attention Module (CWAM). By integrating a multi-scale attention mechanism and dense-block-based feature encoding, the authors achieve rate-distortion performance that is on par with or superior to the state-of-the-art VVC (Versatile Video Coding) standard and existing neural compression models.
What Problem Does This Paper Address?
Traditional image compression (like JPEG or BPG) relies on hand-crafted transforms. While Learned Image Compression (LIC) using Variational Autoencoders (VAEs) has recently surpassed these methods, it faces a persistent "receptive field" dilemma.
CNN-based models are excellent at capturing global features but often struggle with fine-grained local redundancies. Conversely, Transformer-based models use window-based attention to capture local details, but these windows are often too small to "see" the broader context, limiting their ability to optimize the bit-rate effectively. The authors aim to bridge this gap by creating a module that captures local details while effectively enlarging the receptive field without the massive computational overhead of global attention.
Methods
The authors propose an end-to-end VAE-based architecture with two primary innovations:
- Feature Encoding and Decoding Modules: Before entering the main encoder, the image passes through a module built on Dense Blocks (utilizing 1x1 and 3x3 convolutions). This helps the network focus on "challenging" areas of an image—parts that are harder to compress—while reusing features efficiently through residual connections.
- Cross Window-based Attention Module (CWAM): This is the core contribution. Instead of performing self-attention on a single scale, CWAM downscales the feature map by half to create a "coarse" version. It then calculates attention between the original "fine" features and these "coarse" features. Because a window in the downscaled map covers four times the area of a window in the original map, the model effectively quadruples its receptive field, allowing it to capture much more spatial context.
The rest of the pipeline follows the standard LIC framework: an analysis transform ($g_a$), a synthesis transform ($g_s$), and a hyperprior-based entropy model to predict the distribution of latent variables for efficient arithmetic coding.
Datasets
- Training: The Flicker 2W dataset (approx. 20,000 high-quality images), processed into $256 \times 256$ patches.
- Evaluation:
- Kodak: A classic benchmark consisting of 24 images ($768 \times 512$).
- CLIC (Challenge on Learned Image Compression): 30 high-resolution images ($1152 \times 2048$ or higher), used to test the model's robustness on modern, high-detail photography.
Key Insights and Ideas
- Multi-Scale is Key: The "aha moment" here is that you don't need global attention to get global context. By looking at a downsampled version of the feature map, the attention mechanism gains a "bird's eye view" of the neighborhood, which helps in making better decisions about which bits to save.
- Flexibility: Both the Feature Encoding and CWAM modules are designed to be "plug-and-play." They can be integrated into other existing CNN or Transformer architectures to boost performance.
- Dense Connections for Compression: Using Dense Blocks in the pre-processing stage helps in "feature distillation," ensuring that the most important information is preserved before the bottleneck of the latent space.
Key Results
- Rate-Distortion (RD) Performance: The proposed method demonstrates superior performance over traditional codecs like JPEG, JPEG2000, WebP, and BPG.
- Comparison to VVC: On the Kodak and CLIC datasets, the model is competitive with (and sometimes slightly exceeds) the latest VVC (VTM 12.1) standard in terms of PSNR (Peak Signal-to-Noise Ratio) and MS-SSIM.
- Ablation Success: Removing the CWAM or the Feature Encoding module led to a measurable drop in PSNR and an increase in bit-rate (BPP), validating that both components are necessary for the performance gains.
Limitations and Future Work
The primary drawback acknowledged by the authors is computational complexity.
- Latency: The encoding process takes approximately 6.29 seconds per image on a Titan X GPU, which is significantly slower than simpler models like the standard Hyperprior (0.16s).
- Model Size: With 63.17 million parameters and a 776MB footprint, the model is quite heavy compared to some older SOTA models (like Cheng 2020 at 13M parameters).
The authors suggest that future work will focus on optimizing the number of channels and reducing the GMacs (Giga Multiply-Accumulate operations) to make the model more suitable for real-time applications without sacrificing its impressive compression gains.
Summary updated