Abstract
Learned visual compression faces a trilemma between compression efficacy, computational complexity, and memory overhead. While CNNs are efficient but limited by local receptive fields, Transformers offer global context at the cost of quadratic complexity. MambaVC introduces the first framework to apply Selective State Space Models (SSMs) to visual compression. By utilizing a novel 2D Selective Scanning (2DSS) module, MambaVC achieves superior rate-distortion performance with linear-time complexity. Experimental results demonstrate that MambaVC significantly reduces computation and memory usage, particularly for high-resolution images, outperforming both CNN and Transformer-based benchmarks.
Introduction
The field of learned visual compression has been dominated by Convolutional Neural Networks (CNNs) and Transformers. CNNs are hardware-friendly but struggle with long-range dependencies due to their local receptive fields. Transformers address this with global context modeling but suffer from quadratic complexity relative to image resolution, making them impractical for high-resolution (4K/8K) content. MambaVC proposes a "third way" by leveraging the Mamba architecture, a type of Selective State Space Model (SSM) that offers global receptive fields with linear scaling.
Methods
MambaVC is built upon a Variational Autoencoder (VAE) structure, replacing traditional building blocks with Visual State Space (VSS) blocks.
The core of MambaVC is the Visual State Space (VSS) Block, which acts as a nonlinear activation function. Within this block, the 2D Selective Scanning (2DSS) module handles the transition from 1D SSMs to 2D image data. It unfolds 2D feature maps into four parallel 1D paths, processes them using the S6 SSM operator, and merges them back. This allows the model to capture spatial context from all directions efficiently. For entropy coding, MambaVC employs a channel-wise auto-regressive entropy model (CAM) to estimate latent distributions. The model was also extended to video compression by integrating VSS blocks into the Scale-Space Flow (SSF) framework.
Results
MambaVC was evaluated on standard benchmarks (Kodak, CLIC2020) and high-resolution datasets. It demonstrates a significant leap in the efficiency-performance trade-off.
Key findings include:
- Rate-Distortion Performance: On the Kodak dataset, MambaVC achieved a 9.3% BD-rate improvement over CNN-based models and a 15.6% improvement over Transformer-based models.
- Computational Efficiency: MambaVC reduced MACs by 42% and memory consumption by 71% compared to Transformer-based architectures.
- High-Resolution Scaling: As shown in the evaluation, the performance gap between MambaVC and its competitors widens as image resolution increases, highlighting its suitability for UHD content.
- Latent Decorrelation: Analysis showed that MambaVC's latent representations are more decorrelated than those of CNNs or Transformers, indicating more effective redundancy removal.
Conclusion
MambaVC successfully brings the efficiency of Selective State Spaces to the domain of visual compression. It breaks the complexity-performance trade-off, especially for high-resolution data. Future work includes optimizing entropy models to match the backbone's efficiency and further exploring temporal redundancy in video compression, where MambaVC currently shows promise but has yet to surpass traditional codecs like HEVC in all scenarios.
Summary updated