Skip to main content
QUICK REVIEW

[Paper Review] MambaVC: Learned Visual Compression with Selective State Spaces

S. Joe Qin, Jinpeng Wang|arXiv (Cornell University)|May 24, 2024
Advanced Vision and ImagingComputer Science3 citations
TL;DR

MambaVC proposes the first learned visual compression framework using selective state space models (SSMs), introducing a 2D selective scanning (2DSS) block to enhance global context modeling. It achieves state-of-the-art rate-distortion performance with 42% less computation and 71% less memory than Transformer-based models on Kodak, while showing even greater gains on high-resolution images.

ABSTRACT

Learned visual compression is an important and active task in multimedia. Existing approaches have explored various CNN- and Transformer-based designs to model content distribution and eliminate redundancy, where balancing efficacy (i.e., rate-distortion trade-off) and efficiency remains a challenge. Recently, state-space models (SSMs) have shown promise due to their long-range modeling capacity and efficiency. Inspired by this, we take the first step to explore SSMs for visual compression. We introduce MambaVC, a simple, strong and efficient compression network based on SSM. MambaVC develops a visual state space (VSS) block with a 2D selective scanning (2DSS) module as the nonlinear activation function after each downsampling, which helps to capture informative global contexts and enhances compression. On compression benchmark datasets, MambaVC achieves superior rate-distortion performance with lower computational and memory overheads. Specifically, it outperforms CNN and Transformer variants by 9.3% and 15.6% on Kodak, respectively, while reducing computation by 42% and 24%, and saving 12% and 71% of memory. MambaVC shows even greater improvements with high-resolution images, highlighting its potential and scalability in real-world applications. We also provide a comprehensive comparison of different network designs, underscoring MambaVC's advantages. Code is available at https://github.com/QinSY123/2024-MambaVC.

Motivation & Objective

  • To explore the potential of state-space models (SSMs), particularly Mamba, in visual compression beyond CNNs and Transformers.
  • To address the trade-off between rate-distortion performance and model efficiency in learned compression.
  • To design a novel visual state space (VSS) block with 2D selective scanning (2DSS) for effective global context modeling.
  • To evaluate MambaVC’s scalability and superiority on high-resolution image and video compression tasks.
  • To provide a comprehensive analysis of redundancy, receptive field, and quantization loss across different architectures.

Proposed method

  • Introduces a visual state space (VSS) block as a nonlinear activation after each downsampling layer in the compression network.
  • Employs a 2D selective scanning (2DSS) mechanism that performs selective scanning along four pre-defined spatial traverse paths in parallel.
  • Leverages the data-dependent selective mechanism of Mamba to focus on informative features and suppress noise during compression.
  • Uses structured reparameterization and parallel scanning for hardware-efficient training and inference on GPUs.
  • Applies a conditionally factorized Gaussian prior with a hypernetwork to model latent representation $(m{ u}, m{ au})$ and reduce correlation.
  • Employs standard entropy coding on normalized latent features $(m{y}-m{ u})/m{ au}$ to achieve compression efficiency.
(a) BD-rate (lower is better) vs computational complexity and memory overhead (circle area) on Kodak [ 12 ] .
(a) BD-rate (lower is better) vs computational complexity and memory overhead (circle area) on Kodak [ 12 ] .

Experimental results

Research questions

  • RQ1Can state-space models (SSMs), particularly Mamba, be effectively adapted for visual compression to improve global context modeling?
  • RQ2How does MambaVC’s 2D selective scanning (2DSS) mechanism compare to CNN and Transformer-based architectures in terms of rate-distortion performance and computational efficiency?
  • RQ3To what extent does MambaVC reduce spatial redundancy and latent correlation compared to existing methods?
  • RQ4How does MambaVC’s effective receptive field compare to CNN and Transformer variants, and what impact does this have on high-resolution image compression?
  • RQ5What is the impact of quantization on information loss in MambaVC versus baseline models?

Key findings

  • MambaVC achieves a 9.3% BD-rate gain over CNN-based models and 15.6% over Transformer-based models on the Kodak dataset, indicating superior rate-distortion performance.
  • On Kodak, MambaVC reduces computation by 42% compared to CNNs and 24% compared to Transformers, while saving 12% and 71% of memory, respectively.
  • MambaVC exhibits a global effective receptive field, unlike ConvVC (local) and SwinVC (limited), enabling better long-range redundancy reduction.
  • Latent correlation analysis shows MambaVC achieves lower cross-correlation across all distances compared to SwinVC and ConvVC, indicating more effective decorrelation.
  • The distribution of normalized latents $(m{y}-m{ u})/m{ au}$ in MambaVC is closer to standard normal (KL divergence 1.55) than SwinVC (1.72) and ConvVC (1.89), confirming better prior modeling.
  • Quantization deviation analysis reveals MambaVC has 3.3% and 17% lower average information loss than SwinVC and ConvVC, respectively, especially in high-contrast regions.
(b) BD-rate of MambaVC over variants across different image resolutions on UHD [ 48 ] .
(b) BD-rate of MambaVC over variants across different image resolutions on UHD [ 48 ] .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.