MLIC++: Linear Complexity Multi-Reference Entropy Modeling for Learned Image Compression
Wei Jiang, Jiayu Yang, Yongqi Zhai, Feng Gao, Ronggang Wang
TL;DR
This work tackles the bottleneck of entropy modeling in learned image compression by introducing MEM++—a linear-complexity, multi-reference entropy model that jointly captures channel-wise, local spatial, and global spatial correlations. Building on MEM++, the authors present MLIC++, a codec that partitions latent representations into slices and uses four context streams (channel-wise, local, intra-slice global, inter-slice global) to estimate conditional entropies efficiently. Key innovations include a shifted window-based overlapped checkerboard attention for local context and linear-complexity decomposed softmax-based global attention for intra- and inter-slice contexts, enabling high-resolution coding with linear memory and reduced computation. Empirical results on Kodak, Tecnick, and CLIC demonstrate state-of-the-art BD-rate reductions (e.g., $-13.39\%$ on Kodak) and competitive RD performance, with substantial memory and speed advantages over quadratic-context methods. The work provides practical, scalable advances for learned image compression and includes public code and training data to support reproducibility.
Abstract
The latent representation in learned image compression encompasses channel-wise, local spatial, and global spatial correlations, which are essential for the entropy model to capture for conditional entropy minimization. Efficiently capturing these contexts within a single entropy model, especially in high-resolution image coding, presents a challenge due to the computational complexity of existing global context modules. To address this challenge, we propose the Linear Complexity Multi-Reference Entropy Model (MEM$^{++}$). Specifically, the latent representation is partitioned into multiple slices. For channel-wise contexts, previously compressed slices serve as the context for compressing a particular slice. For local contexts, we introduce a shifted-window-based checkerboard attention module. This module ensures linear complexity without sacrificing performance. For global contexts, we propose a linear complexity attention mechanism. It captures global correlations by decomposing the softmax operation, enabling the implicit computation of attention maps from previously decoded slices. Using MEM$^{++}$ as the entropy model, we develop the image compression method MLIC$^{++}$. Extensive experimental results demonstrate that MLIC$^{++}$ achieves state-of-the-art performance, reducing BD-rate by $13.39\%$ on the Kodak dataset compared to VTM-17.0 in Peak Signal-to-Noise Ratio (PSNR). Furthermore, MLIC$^{++}$ exhibits linear computational complexity and memory consumption with resolution, making it highly suitable for high-resolution image coding. Code and pre-trained models are available at https://github.com/JiangWeibeta/MLIC. Training dataset is available at https://huggingface.co/datasets/Whiteboat/MLIC-Train-100K.
