[Paper Review] MambaIRv2: Attentive State Space Restoration
MambaIRv2 proposes an attentive state-space mechanism that overcomes Mamba's causal modeling limitations in image restoration by enabling non-causal, global attention via prompt-based querying and semantic-guided sequence reordering. It achieves state-of-the-art performance with 9.3% fewer parameters and 50% less computation than MambaIR, outperforming SRFormer by 0.35dB PSNR on lightweight super-resolution and HAT by 0.29dB on classical super-resolution.
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.
Motivation & Objective
- To address the inherent causal modeling limitation in Mamba, which restricts global information access during image restoration.
- To eliminate the need for multi-directional scanning in Mamba-based models by enabling single-scan, non-causal attention.
- To mitigate long-range decay in Mamba by promoting interaction between distant but semantically similar pixels.
- To integrate ViT-like non-causal capabilities into Mamba while preserving its computational efficiency.
- To develop a generalized, efficient, and high-performing backbone for diverse image restoration tasks.
Proposed method
- Proposes the Attentive State-space Equation (ASE), which uses prompt learning to query semantically similar pixels beyond the scanned sequence, enabling non-causal attention.
- Introduces semantic prompts derived from image semantics to represent sets of similar pixels, which are added residually to the state-space output matrix.
- Designs a Semantic Guided Neighboring (SGN) mechanism that reorders the 1D sequence based on semantic labels, placing similar pixels spatially closer to reduce long-range decay.
- Employs a single-pass scanning strategy using the semantic-neighboring sequence to achieve efficient, global feature aggregation.
- Combines ASE and SGN into MambaIRv2, a unified architecture that integrates Mamba’s efficiency with ViT-like global modeling.
- Uses a straight-through backbone structure without U-Net to maintain architectural consistency across image restoration tasks.
Experimental results
Research questions
- RQ1Can Mamba-based models achieve ViT-like non-causal global modeling without sacrificing computational efficiency?
- RQ2How can the causal limitation of Mamba be overcome to improve global feature aggregation in image restoration?
- RQ3Can prompt-based querying enable Mamba to attend to unscanned, relevant pixels in a single scan?
- RQ4Does semantic reordering of the image sequence reduce long-range decay and improve interaction between distant but similar pixels?
- RQ5Can the proposed method achieve state-of-the-art performance with fewer parameters and lower FLOPs than existing Mamba and Transformer-based models?
Key findings
- MambaIRv2 outperforms SRFormer by 0.35dB PSNR on the Urban100 dataset for 2× lightweight super-resolution, despite using 9.3% fewer parameters.
- MambaIRv2 suppresses HAT by 0.29dB PSNR on the Manga109 dataset for 2× classical super-resolution, demonstrating strong generalization.
- On JPEG compression artifact reduction, MambaIRv2 achieves the best PSNR across all quality factors, outperforming MambaIR by 0.11dB at q=40 on Classic5.
- In Gaussian color image denoising, MambaIRv2 surpasses U-shaped Restormer by 0.29dB PSNR on Urban100, validating its effectiveness as a generalized backbone.
- MambaIRv2 reduces computational cost by 50% and parameters by 43% compared to MambaIR with 4 scans, while improving PSNR by 0.34dB on Urban100.
- Visualization confirms that the prompt mechanism enables the query pixel to attend to semantically relevant, unscanned regions, mimicking self-attention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.