Skip to main content
QUICK REVIEW

[论文解读] MaIR: A Locality- and Continuity-Preserving Mamba for Image Restoration

Boyun Li, Hanbing Zhao|arXiv (Cornell University)|Dec 28, 2024
Medical Image Segmentation TechniquesComputer Science被引用 3
一句话总结

MaIR 提出了一种基于 Mamba 的新型图像恢复模型,通过嵌套 S 形扫描(NSS)策略和序列混洗注意力(SSA)实现局部性和空间连续性的保持。该方法在超分辨率、去噪、去模糊和去雾共 14 项基准测试中达到最先进性能,优于 40 个基线模型,且计算开销极低。

ABSTRACT

Recent advancements in Mamba have shown promising results in image restoration. These methods typically flatten 2D images into multiple distinct 1D sequences along rows and columns, process each sequence independently using selective scan operation, and recombine them to form the outputs. However, such a paradigm overlooks two vital aspects: i) the local relationships and spatial continuity inherent in natural images, and ii) the discrepancies among sequences unfolded through totally different ways. To overcome the drawbacks, we explore two problems in Mamba-based restoration methods: i) how to design a scanning strategy preserving both locality and continuity while facilitating restoration, and ii) how to aggregate the distinct sequences unfolded in totally different ways. To address these problems, we propose a novel Mamba-based Image Restoration model (MaIR), which consists of Nested S-shaped Scanning strategy (NSS) and Sequence Shuffle Attention block (SSA). Specifically, NSS preserves locality and continuity of the input images through the stripe-based scanning region and the S-shaped scanning path, respectively. SSA aggregates sequences through calculating attention weights within the corresponding channels of different sequences. Thanks to NSS and SSA, MaIR surpasses 40 baselines across 14 challenging datasets, achieving state-of-the-art performance on the tasks of image super-resolution, denoising, deblurring and dehazing. The code is available at https://github.com/XLearning-SCU/2025-CVPR-MaIR.

研究动机与目标

  • 解决现有基于 Mamba 的图像恢复方法在将 2D 图像展平为 1D 序列时破坏空间局部性和连续性的问题。
  • 设计一种扫描策略,在序列处理过程中同时保持 2D 图像的局部结构和空间连续性。
  • 开发一种有效的序列聚合机制,以捕捉不同展开序列(如正向与反向行/列)之间的互补依赖关系。
  • 在不引入显著计算成本的前提下,实现图像恢复的最先进性能。

提出的方法

  • 提出一种嵌套 S 形扫描(NSS)策略,将图像划分为非重叠条带,并在条带内和条带间应用 S 形扫描路径,以保持空间连续性。
  • 在 NSS 中引入移位条带机制,以在条带边界保持连续性,确保扫描路径的平滑过渡。
  • 引入序列混洗注意力(SSA)模块,通过计算多个序列对应通道的注意力权重,实现对上下文差异显著序列的自适应融合。
  • 采用三步流程:(1) 通过 NSS 实现基于条带的 2D 到 1D 展平,(2) 独立处理选择性扫描,(3) 基于 SSA 的序列聚合。
  • 将 NSS 设计为零成本解决方案,在不增加参数或计算量的前提下保持局部性和连续性。
  • 利用 Mamba 的固有长程建模能力,同时通过空间感知扫描和基于注意力的融合保持结构一致性。

实验结果

研究问题

  • RQ1如何设计一种扫描策略,使基于 Mamba 的 2D 图像恢复在处理过程中同时保持局部性和空间连续性?
  • RQ2不同序列展开模式(如 Z 形、S 形、窗口化)对图像恢复性能有何影响?
  • RQ3如何有效聚合通过不同扫描路径(如正向与反向行/列)处理的序列,以利用互补信息?
  • RQ4NSS 策略中的条带宽度在多大程度上影响最终的图像恢复质量?
  • RQ5基于 Mamba 的模型能否在保持低计算成本和结构保真度的前提下实现图像恢复的 SOTA 性能?

主要发现

  • MaIR 在 14 项多样化的图像恢复基准测试中均达到最先进性能,在超分辨率、去噪、去模糊和去雾任务中超越 40 个基线模型。
  • 在户外 SOTS-Outdoor 基准测试中,MaIR 相较 DehazeFormer 提升 PSNR 2.67 dB,相较 UVM-Net 提升 2.04 dB,且仅使用其 0.3% 和 4.8% 的参数量与 MACs。
  • 消融研究证实,NSS 持续优于其他扫描策略(Z 形、Hilbert、LocalMamba、ZigMa),在 ×2 超分辨率任务中 Urban100 的 PSNR 达 32.97。
  • SSA 显著优于简单序列相加(PSNR:32.97 vs. 32.90)和门控机制(PSNR:32.90),证明其在跨序列注意力中的有效性。
  • 模型对条带宽度变化具有鲁棒性,在 Urban100 上条带宽度 2 到 32 范围内 PSNR 保持在 32.92–32.97 之间,最优性能出现在宽度 4–16。
  • 所提出的 NSS 和 SSA 组件计算高效,实现局部性和连续性保持的同时不增加额外参数或计算成本。

阅读本论文

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

在 Nubint 中阅读本论文

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