Abstract
CMamba is a novel image compression framework that combines the global modeling power of State Space Models (SSMs) with the local detail-capturing ability of CNNs. It achieves state-of-the-art rate-distortion performance while being significantly more efficient than previous methods—reducing decoding time by over 70% compared to the leading transformer-based models.
Introduction
In Learned Image Compression (LIC), researchers strive to optimize the trade-off between Rate-Distortion (RD) performance and computational complexity. While Convolutional Neural Networks (CNNs) excel at capturing local textures, they often fail to model long-range global context. Conversely, Transformers provide excellent global modeling but suffer from quadratic computational complexity, making them difficult to scale with image size.
State Space Models (SSMs), particularly the Mamba architecture, have recently emerged as a linear-complexity alternative to Transformers. However, a significant challenge remains: as SSM-based networks grow deeper, they tend to lose high-frequency details such as sharp edges and fine textures. CMamba addresses this "high-frequency gap" by integrating SSMs with CNNs in a hybrid architecture.
Methodology
The CMamba framework introduces two primary innovations to balance global context and local detail:
- Content-Adaptive SSM (CA-SSM) Module: This module utilizes parallel branches to process features. One branch employs a Visual State Space (VSS) block for global context, while the other uses a standard CNN ResBlock for local details. A "Dynamic Fusion" block adaptively weights these features, determining whether specific image regions require more global context or local refinement.
- Context-Aware Entropy (CAE) Module: To efficiently compress latent representations, CMamba uses SSMs to model spatial dependencies across the entire image. It also implements a channel-wise autoregressive approach, reducing redundancy between data layers without the high latency associated with traditional spatial autoregressive models.
Key Insights: The High-Frequency Gap
A critical finding of this work is that SSMs effectively act as low-pass filters. Analysis of the Fourier spectrum of features reveals that SSMs lose significantly more high-frequency information than CNNs as the network depth increases.
By combining Mamba with CNNs, CMamba maintains a "global receptive field" while preserving the sharp textures necessary for high-quality image reconstruction. This hybrid approach ensures that the model can see the whole image to make better predictions while keeping the computational cost linear.
Experimental Results
CMamba was evaluated on standard benchmarks including Kodak, Tecnick, and CLIC. The model demonstrates superior efficiency and performance:
- Rate-Distortion Performance: CMamba outperforms the VVC (VTM 17.0) standard by 14.95% in BD-Rate on the Kodak dataset.
- Efficiency Gains: Compared to the state-of-the-art MLIC++ method, CMamba reduces parameters by 51.8%, FLOPs by 28.1%, and decoding time by 71.4%.
- Visual Quality: Qualitative evaluations show that CMamba successfully preserves intricate details, such as balcony railings and mural textures, which are often blurred by competing models at low bitrates.
Conclusion and Future Work
CMamba sets a new benchmark for efficiency in learned image compression by successfully bridging the gap between global context and local detail. While the current work focuses on static images, the linear scaling and temporal modeling capabilities of SSMs suggest that this architecture is a promising candidate for future research in video compression. Future studies may also explore performance on ultra-high-resolution images (e.g., 8K), where the efficiency of SSMs becomes even more critical.
Summary updated