[论文解读] Hi-Mamba: Hierarchical Mamba for Efficient Image Super-Resolution
Hi-Mamba 提出了一种用于高效图像超分辨率的分层 Mamba 架构,采用分层 Mamba 块(HMB)结合局部和区域 SSM 实现多尺度上下文建模,并通过方向交替分层 Mamba 组(DA-HMG)在级联块中采用等距单向扫描来增强空间关系。该方法在 Manga109 数据集上实现 ×3 超分时,PSNR 相较于 MambaIR 提升 0.29 dB,且未增加 FLOPs 或参数量。
State Space Models (SSM), such as Mamba, have shown strong representation ability in modeling long-range dependency with linear complexity, achieving successful applications from high-level to low-level vision tasks. However, SSM's sequential nature necessitates multiple scans in different directions to compensate for the loss of spatial dependency when unfolding the image into a 1D sequence. This multi-direction scanning strategy significantly increases the computation overhead and is unbearable for high-resolution image processing. To address this problem, we propose a novel Hierarchical Mamba network, namely, Hi-Mamba, for image super-resolution (SR). Hi-Mamba consists of two key designs: (1) The Hierarchical Mamba Block (HMB) assembled by a Local SSM (L-SSM) and a Region SSM (R-SSM) both with the single-direction scanning, aggregates multi-scale representations to enhance the context modeling ability. (2) The Direction Alternation Hierarchical Mamba Group (DA-HMG) allocates the isomeric single-direction scanning into cascading HMBs to enrich the spatial relationship modeling. Extensive experiments demonstrate the superiority of Hi-Mamba across five benchmark datasets for efficient SR. For example, Hi-Mamba achieves a significant PSNR improvement of 0.29 dB on Manga109 for $ imes3$ SR, compared to the strong lightweight MambaIR.
研究动机与目标
- 解决基于 Mamba 的图像超分辨率模型中多方向扫描带来的高计算成本问题。
- 在不增加 FLOPs 或参数量的前提下,增强空间与多尺度上下文建模能力。
- 设计一种轻量化、高效的架构,在图像超分辨率任务中超越现有 SOTA 方法。
- 利用线性复杂度的 SSM 实现高分辨率图像中有效长距离依赖建模。
提出的方法
- 提出分层 Mamba 块(HMB),结合局部 SSM(L-SSM)与区域 SSM(R-SSM),两者均采用单向扫描以实现多尺度特征聚合。
- 提出方向交替分层 Mamba 组(DA-HMG),通过级联 HMB 并交替使用水平与垂直扫描方向,以增强空间建模能力。
- 在 R-SSM 中引入可学习融合模块,采用 2D 特征重复与门控机制,以提升空间特征整合效果。
- 在前馈路径中采用门控前馈网络(G-FFN),通过简单门控机制增强非线性表示能力。
- 通过将 R-SSM 的通道数设为 30、区域补丁大小设为 4×4,优化模型效率,实现性能与推理速度的平衡。
- 在 HMB 中采用单向扫描策略,同时在 DA-HMG 中利用方向交替机制,避免多方向扫描带来的二次方计算开销。
实验结果
研究问题
- RQ1在基于 Mamba 的模型中,采用单向扫描策略是否能在不增加多方向扫描计算负担的前提下,实现图像超分辨率任务中的竞争力表现?
- RQ2如何通过具有局部与区域感受野的分层 SSM 改进图像超分辨率中的多尺度上下文建模?
- RQ3在级联的 HMB 中交替使用扫描方向是否能在不增加 FLOPs 或参数量的前提下,增强空间关系建模能力?
- RQ4在分层 Mamba 设计中,R-SSM 区域大小、通道数与推理速度之间的最优权衡是什么?
主要发现
- Hi-Mamba 在 Manga109 数据集上实现 ×3 超分时,相较 MambaIR 提升 0.29 dB PSNR,且未增加 FLOPs 或参数量。
- 采用四向交替的 DA-HMG 相较于单向扫描提升 PSNR 0.14 dB,验证了方向交替的有效性。
- R-SSM 使用 4×4 区域大小时在 PSNR 与推理速度之间达到最佳平衡,GPU 推理时间由 1×1 大小的 662ms 降低至 379ms。
- 可学习融合参数 $S_f$ 相较于固定 $S_f$ 提升 PSNR 0.05 dB,仅增加 0.01M 参数与 8ms GPU 耗时。
- R-SSM 中通道数为 30 时实现最优的 PSNR-FLOPs 权衡,达到 33.13 dB PSNR 与 274 G FLOPs。
- 消融实验证实,所有组件——HMB、DA-HMG、G-FFN 与融合模块——均对性能提升有贡献,其中 DA-HMG 贡献最大(提升 0.14 dB PSNR)。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。