MLIC++: Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression

Wei Jiang, Ronggang Wang · DOI

TL;DR

This paper introduces MLIC++, a novel learned image compression method that significantly improves compression efficiency and reduces computational complexity. By proposing a linear complexity multi-reference entropy model (MEM++), it effectively captures multi-dimensional correlations in latent representations, achieving state-of-the-art performance while being highly scalable for high-resolution images.

What Problem Does This Paper Address?

The core challenge addressed is the computational complexity of existing entropy models in learned image compression, particularly for high-resolution images. While learned compression methods have surpassed traditional ones, their entropy models often rely on computationally intensive modules (e.g., quadratic complexity attention) to capture spatial and channel correlations. This leads to high GPU memory consumption and slow processing, hindering their practical application for large images. The paper aims to develop an entropy model that efficiently captures these crucial correlations with linear complexity, enabling better rate-distortion performance and scalability.

Methods

The paper proposes MLIC++, a learned image compression method built upon a novel Linear Complexity Multi-Reference Entropy Model (MEM++). MEM++ is designed to capture channel-wise, local spatial, and global spatial correlations with linear complexity.

Key components of MEM++ include:

  • Channel-wise Context Module ($g_{ch}$): Previously compressed slices of the latent representation serve as contexts for the current slice, enabling channel-wise correlation modeling.
  • Shifted Window-based Checkerboard Attention ($g_{lc,attn}$): A novel attention mechanism that captures local spatial contexts with linear complexity, improving upon traditional checkerboard modules by being content-adaptive.
  • Linear Complexity Intra-Slice Global Spatial Context Module ($g_{gc,intra}$): Captures global correlations within a single slice by decomposing the softmax operation in attention mechanisms, achieving linear complexity.
  • Linear Complexity Inter-Slice Global Spatial Context Module ($g_{gc,inter}$): Extends the intra-slice concept to capture global correlations across multiple preceding slices, also with linear complexity.

The overall MLIC++ architecture uses a standard auto-encoder framework with these advanced entropy modeling components.

Datasets

  • Training: The authors used a large dataset of 10⁵ images with resolutions exceeding 512 × 512, sourced from ImageNet, COCO 2017, DIV2K, and Flickr2K. To mitigate JPEG artifacts, images were further down-sampled.
  • Evaluation: Performance was evaluated on standard datasets:
  • Kodak (Kodak, 1993): 24 raw 768 × 512 images.
  • Tecnick (Asuni & Giachetti, 2014): 100 1200 × 1200 RGB images.
  • CLIC Professional Valid (Toderici et al., 2020): 41 images with resolutions around 2048 × 1440.

Key Insights and Ideas

  • Linear Complexity Attention for Global Context: The core innovation is decomposing the softmax operation in attention mechanisms to achieve linear complexity for capturing global spatial correlations. This is crucial for high-resolution images where quadratic complexity is prohibitive.
  • Multi-Reference Entropy Modeling: By effectively integrating channel-wise, local spatial, and both intra- and inter-slice global spatial contexts, the MEM++ model captures richer dependencies in the latent representation, leading to significant bit-rate savings.
  • Scalability for High-Resolution Images: The linear complexity of the proposed modules directly translates to a linear scaling of GPU memory consumption and processing time with image resolution, making MLIC++ practical for very large images.
  • Content-Adaptive Local Context: The shifted window-based checkerboard attention module offers a more flexible and adaptive way to capture local spatial contexts compared to fixed-weight CNN-based approaches.

Key Results

  • State-of-the-Art Performance: MLIC++ achieves state-of-the-art rate-distortion performance across multiple datasets.
  • BD-Rate Reduction: It reduces BD-rate by 13.39% over VTM-17.0 Intra on the Kodak dataset. Compared to Cheng'20, it achieves a maximum improvement of 0.5-0.8 dB in PSNR and 0.6 dB in MS-SSIM.
  • Reduced GPU Memory: MLIC++ significantly reduces GPU memory consumption compared to models with quadratic complexity attention. For a 2048 × 2048 image, it uses ~5.55 GB, compared to ~22.37 GB for MLIC+.
  • Faster Encoding/Decoding: The linear complexity leads to faster encoding and decoding times, especially for high-resolution images, compared to methods with quadratic complexity global context modules.
  • Improved MS-SSIM: The model shows significant improvements in MS-SSIM, reducing bits by about 50% compared to VTM-17.0 Intra.

Limitations and Future Work

  • Limitations: While the paper focuses on linear complexity, the "vanilla" approach for intra-slice global context still has some quadratic complexity aspects in its initial formulation, though the proposed method addresses this. The authors also note that the channel-wise context module has the most parameters and highest MACs among the context modules, though its overall contribution to total MACs is small.
  • Future Work: The authors suggest investigating asymmetrical design between analysis and synthesis transforms and exploring lighter linear complexity multi-reference entropy models.

Summary updated

BibTeX
@article{jiang2023mlic,
  author = {Wei Jiang and Ronggang Wang},
  title = {{MLIC++: Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2023},
  doi = {10.1145/3719011},
}
Figure