TL;DR
This paper introduces SAMIC, a novel image compression method that leverages Mamba's efficient long-range modeling capabilities. SAMIC enhances compression by using a "semantic-aware" scanning strategy to better preserve image content and a redundancy reduction module inspired by Singular Value Decomposition (SVD). This approach achieves a superior balance of compression efficiency, perceptual quality, and computational complexity compared to existing methods.
What Problem Does This Paper Address?
Traditional image compression methods, like JPEG, often introduce noticeable artifacts (blocking, blurring) at low bitrates. More advanced learned image compression (LIC) techniques using Convolutional Neural Networks (CNNs) struggle with capturing long-range dependencies due to their limited receptive fields. While Transformers offered a solution for global context modeling, their quadratic complexity makes them computationally expensive for high-resolution images. Perceptual image compression aims to improve visual quality, often using Generative Adversarial Networks (GANs) or diffusion models, but these can be overly complex and resource-intensive. Existing methods that try to improve efficiency and perceptual quality often rely on external semantic information or complex architectures, increasing overall system complexity. This paper addresses the need for an efficient, high-quality perceptual image compression method that can effectively model long-range dependencies without prohibitive computational costs.
Methods
The core innovation of SAMIC lies in two key components:
- Semantic-Aware Mamba Block (SAMB): This block enhances the standard Mamba architecture by introducing a "semantic-aware selective scanning" (SASS) strategy. Instead of a fixed scanning order, SASS dynamically reorganizes image features based on their semantic content. It achieves this through:
- Semantic Feature Extraction: A lightweight convolutional network extracts semantic features from input feature maps.
- Semantic Clustering: These features are then clustered using a soft assignment mechanism and Gumbel-Softmax to create "hard assignments" for semantic groups.
- Semantic-Guided Selective Scanning: Pixels are reordered based on these semantic clusters, ensuring that semantically similar regions are processed contiguously. This process is guided by learned cluster centers and preserves spatial continuity using 2D positional encodings. This approach allows Mamba to better capture semantic context and alleviate issues like long-range information decay.
- SVD-Inspired Redundancy Reduction Module (SVD-RRM): Incorporated into the encoder, this module aims to reduce channel-wise redundancy in the latent representation. It performs Singular Value Decomposition (SVD) on the latent features, applies a learnable soft-thresholding operation to truncate less significant singular values (effectively performing low-rank approximation), and then reconstructs the feature. A learnable scaling factor further controls the strength of this redundancy reduction, leading to a more compact representation without sacrificing essential information.
Datasets
- Training: LSDIR dataset (84,991 high-quality images).
- Evaluation: Kodak dataset (24 natural images) and CLIC2020 dataset (428 images).
Key Insights and Ideas
- Semantic Continuity is Key for Efficient Compression: The paper strongly suggests that by understanding and grouping semantically similar image regions, compression models can achieve better representations and reduce redundancy more effectively than methods relying on fixed spatial scanning or simple feature similarity.
- Mamba's Potential for Compression: The work highlights Mamba's suitability for image compression due to its linear complexity and ability to model long-range dependencies, but crucially demonstrates how to adapt it for better semantic understanding.
- SVD for Latent Space Sparsity: Applying SVD with a learnable soft-thresholding mechanism is an elegant way to exploit and reduce inherent redundancy in latent representations, leading to more efficient coding.
- Balancing Metrics is Crucial: The paper emphasizes that achieving a good rate-distortion-perception tradeoff requires careful consideration of multiple metrics, and SAMIC aims to optimize this balance rather than excelling at just one.
Key Results
- Performance: SAMIC achieves competitive rate-distortion-perception performance, outperforming most existing perceptual image compression methods, particularly in low-bitrate scenarios. It ranks favorably against state-of-the-art methods on PSNR and MS-SSIM, while surpassing them in perceptual metrics like LPIPS and DISTS.
- Efficiency: The method demonstrates significant advantages in model complexity, with fewer parameters and lower FLOPs compared to many competing approaches. It also boasts faster inference speeds. For example, the proposed SAMIC has only 24.88M parameters and 53.41 G FLOPs, with an average inference time of 19.04 ms on an RTX 4090 GPU.
- Ablation Studies:
- The SASS strategy (semantic-aware scanning) provides a bitrate savings of 7.9% compared to the standard SS2D scan.
- The SVD-RRM module contributes a further 1.22% bitrate savings with negligible impact on parameters and FLOPs.
- Visual comparisons show SAMIC recovering high-frequency details and structural textures more faithfully than competing methods at lower bitrates.
Limitations and Future Work
- UHD Image Limitation: The authors acknowledge that for very high-resolution (4K) images with diverse semantic categories, the current clustering mechanism might struggle to form accurate clusters, potentially leading to over-smoothed results and loss of building structure.
- Future Work: The authors suggest exploring more fine-grained grouping solutions to address the UHD image limitation.
Summary updated