MambaIC: State Space Models for High-Performance Learned Image Compression

Fanhu Zeng, Hao Tang, Yihua Shao, Siyu Chen, Ling Shao, Yan Wang

Abstract

Learned image compression (LIC) has evolved rapidly, yet balancing global context modeling with computational efficiency remains a significant challenge. While Transformers offer expansive receptive fields, their quadratic complexity ($O(N^2)$) hinders practical deployment for high-resolution imagery. This paper introduces MambaIC, a novel framework that leverages State Space Models (SSMs) to achieve state-of-the-art compression performance with linear computational complexity ($O(N)$). By integrating Mamba blocks into both the transform and context modeling stages, MambaIC outperforms traditional standards like VVC and previous neural codecs, demonstrating superior efficiency as image resolutions scale to 2K and beyond.

Introduction

Learned image compression has traditionally been dominated by two architectural paradigms: Convolutional Neural Networks (CNNs) and Transformers. CNNs are computationally efficient and hardware-friendly but suffer from a limited "receptive field," which restricts their ability to capture long-range spatial dependencies and global patterns. Conversely, Transformers excel at capturing global context through self-attention mechanisms but are plagued by quadratic complexity. As image resolutions increase from 1080p to 4K, the memory and time requirements for Transformers explode, making them impractical for real-time high-resolution applications.

MambaIC aims to bridge this gap by utilizing the Mamba architecture (State Space Models). Mamba provides the global modeling capabilities of Transformers while maintaining the linear complexity of CNNs, offering a promising path toward high-efficiency, high-resolution neural compression.

Methodology

The core of MambaIC is the integration of the Visual State Space (VSS) block into a standard Variational Autoencoder (VAE) compression pipeline. The framework introduces several key technical innovations:

1. SSM-based Nonlinear Transform

The encoder and decoder utilize VSS blocks equipped with 2D selective scanning (SS2D). This mechanism allows the model to traverse the image across four different paths, effectively capturing global information without the prohibitive computational cost associated with self-attention. This ensures that the latent representations are globally informed and highly compact.

2. Refined Context Modeling

Entropy modeling is critical for minimizing the bitstream by predicting the probability distribution of latent representations. MambaIC integrates SSMs into the entropy model, allowing the network to predict pixels based on a significantly larger surrounding context than previous methods. This leads to more accurate probability estimations and improved compression ratios.

3. Window-based Local Attention (WLA)

While SSMs are adept at handling global dependencies, local spatial redundancies remain a factor. The authors introduced a lightweight Window-based Local Attention mechanism specifically for the entropy modeling stage. This hybrid approach uses SSMs for global "scanning" and WLA for local "refinement," creating a highly optimized entropy model that captures redundancies at multiple scales.

Experimental Setup

The model was trained on the Flickr30k dataset, comprising approximately 31,000 images. Evaluation was conducted using three standard benchmarks to assess performance across different resolutions:

  • Kodak: A classic set of 24 high-quality images for baseline comparison.
  • Tecnick: 100 images at 1200x1200px resolution for medium-resolution testing.
  • CLIC Professional Valid: A dataset featuring 2K resolution images, used to demonstrate performance on high-definition content.

Results and Discussion

Compression Efficiency

MambaIC achieved a -12.52% BD-Rate reduction compared to the VVC (Versatile Video Coding) standard on the Kodak dataset. This performance significantly exceeds other recent neural models, such as ELIC (-3.95%) and the concurrent MambaVC (-7.31%).

Scaling and Latency

A primary advantage of MambaIC is its performance stability at high resolutions. While other models experience performance degradation or latency spikes when processing large images, MambaIC’s performance gap over existing methods actually widens as resolution increases. Furthermore, the model achieves approximately 30% faster decoding than top-tier mixed Transformer-CNN architectures while delivering superior compression efficiency.

Visual Quality

Qualitative analysis indicates that MambaIC preserves fine textures—such as hair, skin pores, and intricate fabric patterns—more effectively than BPG or ELIC at comparable bitrates. This suggests that the global context captured by the SSMs helps the model better reconstruct complex high-frequency details.

Conclusion

MambaIC represents a significant advancement in learned image compression by successfully applying State Space Models to the domain. By achieving linear complexity without sacrificing global context, it provides a scalable solution for high-resolution image processing. Future work may involve optimizing hardware-specific kernels for SSMs, exploring adaptive scanning patterns, and extending the architecture to video compression, where the temporal dimension further emphasizes the need for efficient, long-range dependency modeling.

Summary updated

BibTeX
@inproceedings{zeng2025mambaic,
  author = {Fanhu Zeng and Hao Tang and Yihua Shao and Siyu Chen and Ling Shao and Yan Wang},
  title = {{MambaIC: State Space Models for High-Performance Learned Image Compression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01681},
}
Figure