Skip to main content
QUICK REVIEW

[论文解读] MambaIRv2: Attentive State Space Restoration

Hang Guo, Yong Guo|arXiv (Cornell University)|Nov 22, 2024
Advanced Neural Network ApplicationsComputer Science被引用 3
一句话总结

MambaIRv2 提出了一种注意力状态空间机制,通过基于提示的查询和语义引导的序列重排,克服了 Mamba 在图像恢复中因果建模的局限性,实现了非因果、全局注意力。该方法在参数量减少 9.3%、计算量减少 50% 的情况下达到最先进性能,相较于 MambaIR,轻量化超分辨率任务上提升 0.35dB PSNR,经典超分辨率任务上超越 HAT 0.29dB PSNR。

ABSTRACT

The Mamba-based image restoration backbones have recently demonstrated significant potential in balancing global reception and computational efficiency. However, the inherent causal modeling limitation of Mamba, where each token depends solely on its predecessors in the scanned sequence, restricts the full utilization of pixels across the image and thus presents new challenges in image restoration. In this work, we propose MambaIRv2, which equips Mamba with the non-causal modeling ability similar to ViTs to reach the attentive state space restoration model. Specifically, the proposed attentive state-space equation allows to attend beyond the scanned sequence and facilitate image unfolding with just one single scan. Moreover, we further introduce a semantic-guided neighboring mechanism to encourage interaction between distant but similar pixels. Extensive experiments show our MambaIRv2 outperforms SRFormer by even 0.35dB PSNR for lightweight SR even with 9.3\% less parameters and suppresses HAT on classic SR by up to 0.29dB. Code is available at https://github.com/csguoh/MambaIR.

研究动机与目标

  • 为解决 Mamba 中固有的因果建模限制,该限制在图像恢复过程中限制了全局信息的访问。
  • 通过实现单次扫描的非因果注意力,消除 Mamba 基模型中多方向扫描的需求。
  • 通过促进远距离但语义相似像素之间的交互,缓解 Mamba 中的长距离衰减问题。
  • 在保留 Mamba 计算效率的同时,将 ViT 类似的非因果能力集成到 Mamba 中。
  • 开发一种通用、高效且高性能的主干网络,适用于多种图像恢复任务。

提出的方法

  • 提出注意力状态空间方程(ASE),利用提示学习查询扫描序列之外的语义相似像素,实现非因果注意力。
  • 引入基于图像语义的语义提示,用于表示一组相似像素,并以残差形式添加到状态空间输出矩阵中。
  • 设计语义引导邻近(SGN)机制,根据语义标签重排一维序列,将语义相似的像素在空间上更紧密排列,以减少长距离衰减。
  • 采用单次扫描策略,结合语义邻近序列,实现高效且全局的特征聚合。
  • 将 ASE 与 SGN 整合为 MambaIRv2,构建统一架构,融合 Mamba 的效率与 ViT 类似的全局建模能力。
  • 采用直通主干结构,不使用 U-Net,以保持图像恢复任务中架构的一致性。

实验结果

研究问题

  • RQ1Mamba 基模型能否在不牺牲计算效率的前提下,实现类似 ViT 的非因果全局建模?
  • RQ2如何克服 Mamba 的因果限制,以改善图像恢复中的全局特征聚合?
  • RQ3基于提示的查询能否使 Mamba 在单次扫描中关注未扫描但相关的像素?
  • RQ4图像序列的语义重排是否能减少长距离衰减,并增强远距离但相似像素之间的交互?
  • RQ5所提方法能否在参数量更少、FLOPs 更低的情况下,超越现有 Mamba 和 Transformer 基模型,实现 SOTA 性能?

主要发现

  • 在 Urban100 数据集上,MambaIRv2 在 2× 轻量化超分任务中,尽管参数量减少 9.3%,仍比 SRFormer 提升 0.35dB PSNR。
  • 在 Manga109 数据集上,MambaIRv2 在 2× 经典超分任务中,比 HAT 提升 0.29dB PSNR,展现出强大的泛化能力。
  • 在 JPEG 压缩伪影去除任务中,MambaIRv2 在所有质量因子下均取得最佳 PSNR,且在 Classic5 数据集上 q=40 时比 MambaIR 提升 0.11dB。
  • 在高斯彩色图像去噪任务中,MambaIRv2 在 Urban100 上比 U-Net 结构的 Restormer 提升 0.29dB PSNR,验证了其作为通用主干的有效性。
  • 与使用 4 次扫描的 MambaIR 相比,MambaIRv2 在 Urban100 上将计算成本降低 50%,参数量减少 43%,同时 PSNR 提升 0.34dB。
  • 可视化结果证实,提示机制使查询像素能够关注语义相关的未扫描区域,其行为类似于自注意力机制。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。