TL;DR
This paper introduces SSMIC, a novel image compression architecture that leverages State Space Models (SSMs) inspired by the Mamba architecture. SSMIC achieves competitive compression performance with significantly reduced computational complexity and latency, making it suitable for real-time applications on resource-constrained devices.
What Problem Does This Paper Address?
Traditional image compression standards like JPEG and H.265/HEVC have been dominant for years. However, recent advancements in deep learning, particularly using Transformers, have shown superior compression performance. The catch? These Transformer-based methods are often computationally very expensive, limiting their practical use in real-world scenarios, especially on mobile devices or for real-time applications. While some approaches try to make these models lighter (e.g., knowledge distillation, smaller models), they often sacrifice compression quality. This paper aims to bridge this gap by developing an image compression model that is both efficient and high-performing.
Methods
The core innovation of SSMIC lies in its integration of State Space Models (SSMs), specifically drawing inspiration from the Mamba architecture. SSMs are a class of models that can efficiently process sequential data by maintaining a latent state. The paper adapts the SSM transformation, originally designed for 1D sequences, into a 2D selective scan (SS2D) block for image processing. This SS2D block is then incorporated into a two-level hierarchical architecture, similar to many modern learned image compressors.
The architecture consists of:
- Generative Encoder/Decoder: This part handles the main image compression and reconstruction. It uses a "patch merge block" and the novel "Visual State Space (VSS) block" (which contains the SS2D block) to process image features.
- Hyper-prior Encoder/Decoder: This component models the distribution of the latent representations, crucial for entropy coding.
- Context Model: Inspired by traditional coding techniques, this model predicts probabilities of unknown codes based on previously decoded latents.
The key novelty is the use of the VSS block, which allows for efficient contextual reasoning within the image compression pipeline, mimicking the strengths of Transformers but with potentially better efficiency. The authors also mention using RMSNorm instead of LayerNorm for improved training convergence and a learned factorized model for entropy coding.
Datasets
- Training: CLIC20 training set.
- Evaluation: Kodak, JPEG-AI, and the test set of CLIC20 (including mobile and professional categories).
Key Insights and Ideas
- SSMs for Image Compression: The paper demonstrates that SSMs, particularly Mamba-inspired ones, can be effectively adapted for image compression, offering a promising alternative to computationally heavy Transformers.
- Efficiency vs. Performance Trade-off: SSMIC successfully navigates the common trade-off between compression efficiency and computational cost. It achieves competitive compression ratios while significantly reducing complexity.
- Lightweight Architecture: The proposed VSS block and patch merge block contribute to a lightweight architecture that is suitable for real-time applications.
- Contextual Reasoning: SSMs' ability to handle long-range dependencies and contextual information is leveraged to improve compression performance without the quadratic complexity of standard self-attention.
Key Results
- BD-rate Performance: SSMIC achieves an average BD-rate of -21.75% compared to VTM-15.0, indicating superior compression efficiency. It also shows a relative improvement over LIC_TCM.
- Computational Complexity: The paper highlights a significant reduction in computational complexity (MACs and FLOPs) compared to other state-of-the-art methods like SwinT and MambaVC. For instance, at 1280x1280 resolution, SSMIC's MACs are substantially lower than SwinT and LIC_TCM.
- Latency: SSMIC demonstrates competitive decoding times, comparable to LightweightLIC, and significantly better than MambaVC, while maintaining efficient encoding times.
Limitations and Future Work
- Complexity of SSMs: While more efficient than Transformers, SSMs themselves can still have high computational and memory requirements due to their latent state representation. The Mamba model and SSMIC aim to mitigate this, but it remains an area of active research.
- Further Optimizations: The authors suggest that further optimizations could lead to even higher quality real-time visual data compression.
- Exploration of SSM Variants: The paper focuses on a specific adaptation of SSMs. Future work could explore other SSM variants or different integration strategies within the compression pipeline.
Summary updated