Corner-to-Center Long-range Context Model for Efficient Learned Image Compression

Yang Sui, Ding Ding, Xiang Pan, Xiaozhong Xu, Shan Liu, Bo Yuan, Zhenzhong Chen · DOI

Introduction

In learned image compression, the context model is critical for predicting the probability distribution of latent representations. Accurate prediction minimizes the bits required for storage. However, current research is caught in a trade-off between speed and quality. Serial autoregressive models offer high accuracy but suffer from $O(n^2)$ complexity, making them too slow for practical use. Conversely, parallel context models like the checkerboard method are fast but provide incomplete causal context, leading to reduced compression efficiency.

The Corner-to-Center Context Model (C3M)

To bridge this gap, the Corner-to-Center Context Model (C3M) introduces a logarithmic multi-stage prediction strategy. Unlike the two-pass checkerboard approach, C3M begins by decoding the four corner points of the latent feature map and progressively predicts middle points.

Comparison between the standard Parallel Context Model and the proposed Corner-to-Center Context Model (C3M).

This progression ensures that as the model moves toward the center, each new point has access to previously decoded neighbors. This approach satisfies the "Quantity Condition" of having sufficient prior information while maintaining $O(\log n)$ complexity, significantly outperforming serial methods in speed.

Long-range Crossing Attention Module (LCAM)

Beyond the prediction strategy, the authors address the "Quality Condition"—the need to capture broad spatial dependencies. Traditional CNNs are limited by their receptive fields. C3M utilizes a Transformer-based backbone featuring the Long-range Crossing Attention Module (LCAM). LCAM employs shape-fused local windows, splitting attention into horizontal strips, vertical strips, and square windows of varying sizes. This allows the model to capture both fine-grained local textures and long-range semantic structures simultaneously.

Performance and Results

The model was trained on the Flicker2W dataset and evaluated on standard benchmarks including Kodak, Tecnick, and CLIC.

Rate-distortion performance (PSNR vs. BPP) on the Kodak dataset, showing C3M outperforming traditional and state-of-the-art learned methods.

Key Findings:

  • Compression Efficiency: C3M with LCAM achieved a 20.84% improvement in BD-rate over the BPG baseline on the Kodak dataset, consistently outperforming other parallel methods.
  • Decoding Speed: On an NVIDIA V100 GPU, C3M decoded a Kodak image in approximately 250ms, compared to over 1000ms for serial autoregressive models.
  • Visual Fidelity: Qualitative analysis indicates that C3M better preserves complex structures, such as sharp edges and fine branches, which are often distorted by JPEG2000 or VVC at low bitrates.

Conclusion and Future Work

C3M successfully balances the requirements of high-quality context and parallel execution. While it represents a significant step forward, it remains slightly slower than the simplest parallel models. Future research may focus on further optimizing latency for mobile applications and improving the representation of fine local textures, where Transformers sometimes struggle compared to CNN-based inductive biases.

Summary updated

BibTeX
@article{sui2024corner,
  author = {Yang Sui and Ding Ding and Xiang Pan and Xiaozhong Xu and Shan Liu and Bo Yuan and Zhenzhong Chen},
  title = {{Corner-to-Center Long-range Context Model for Efficient Learned Image Compression}},
  journal = {J. Vis. Commun. Image Represent.},
  year = {2024},
  doi = {10.1016/j.jvcir.2023.103990},
}
Figure