[论文解读] MambaVC: Learned Visual Compression with Selective State Spaces
MambaVC 提出首个基于选择性状态空间模型(SSMs)的视觉压缩框架,引入二维选择性扫描(2DSS)模块以增强全局上下文建模能力。在 Kodak 数据集上,其性能达到当前最优的率失真表现,相较于基于 Transformer 的模型,计算量减少 42%,显存占用降低 71%;在高分辨率图像上,性能提升更为显著。
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.
研究动机与目标
- 探索状态空间模型(SSMs),特别是 Mamba,在视觉压缩中的潜力,超越传统 CNN 与 Transformer 架构。
- 解决学习型压缩中率失真性能与模型效率之间的权衡问题。
- 设计一种新型视觉状态空间(VSS)模块,结合二维选择性扫描(2DSS),以实现高效的全局上下文建模。
- 评估 MambaVC 在高分辨率图像与视频压缩任务中的可扩展性与优越性。
- 对不同架构下的冗余性、感受野与量化损失进行全面分析。
提出的方法
- 在压缩网络的每个下采样层后引入视觉状态空间(VSS)模块,作为非线性激活函数。
- 采用二维选择性扫描(2DSS)机制,同时沿四种预定义的空间遍历路径执行选择性扫描。
- 利用 Mamba 的数据依赖选择性机制,在压缩过程中聚焦于信息丰富的特征,抑制噪声。
- 采用结构化重参数化与并行扫描策略,实现 GPU 上的硬件高效训练与推理。
- 使用条件因子化高斯先验与超网络,建模潜在表示 $(m{ u}, m{ au})$,以降低相关性。
- 对归一化后的潜在特征 $(m{y}-m{ u})/m{ au}$ 应用标准熵编码,以实现高效的压缩。
![(a) BD-rate (lower is better) vs computational complexity and memory overhead (circle area) on Kodak [ 12 ] .](https://ar5iv.labs.arxiv.org/html/2405.15413/assets/x1.png)
实验结果
研究问题
- RQ1状态空间模型(SSMs),特别是 Mamba,能否被有效适配于视觉压缩,以提升全局上下文建模能力?
- RQ2MambaVC 的二维选择性扫描(2DSS)机制在率失真性能与计算效率方面,相较于 CNN 与 Transformer 架构表现如何?
- RQ3与现有方法相比,MambaVC 在多大程度上减少了空间冗余与潜在表示相关性?
- RQ4MambaVC 的有效感受野与 CNN 及 Transformer 变体相比有何差异?这对高分辨率图像压缩有何影响?
- RQ5量化过程对信息损失的影响在 MambaVC 中相较于基线模型有何不同?
主要发现
- 在 Kodak 数据集上,MambaVC 相较于基于 CNN 的模型实现 9.3% 的 BD-rate 改进,相较于基于 Transformer 的模型实现 15.6% 的改进,表明其具有更优的率失真性能。
- 在 Kodak 数据集上,MambaVC 相较于 CNN 减少 42% 的计算量,相较 Transformer 减少 24% 的计算量;同时,显存占用分别节省 12% 与 71%。
- MambaVC 展现出全局有效感受野,而 ConvVC 为局部感受野,SwinVC 为受限感受野,因此在长距离冗余减少方面更具优势。
- 潜在表示相关性分析显示,MambaVC 在所有距离上的交叉相关性均低于 SwinVC 与 ConvVC,表明其具有更优的去相关能力。
- MambaVC 中归一化潜在表示 $(m{y}-m{ u})/m{ au}$ 的分布更接近标准正态分布(KL 散度为 1.55),优于 SwinVC(1.72)与 ConvVC(1.89),证实其先验建模更优。
- 量化偏差分析表明,MambaVC 的平均信息损失较 SwinVC 降低 3.3%,较 ConvVC 降低 17%,尤其在高对比度区域表现更优。
![(b) BD-rate of MambaVC over variants across different image resolutions on UHD [ 48 ] .](https://ar5iv.labs.arxiv.org/html/2405.15413/assets/x2.png)
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。