TL;DR
This paper introduces EAMamba, a novel Vision Mamba-based framework for image restoration that significantly improves computational efficiency while maintaining high performance. By proposing a Multi-Head Selective Scan Module (MHSSM) and an "all-around" scanning strategy, EAMamba addresses limitations of previous Vision Mamba models, particularly the issue of local pixel forgetting.
What Problem Does This Paper Address?
Image restoration, a fundamental task in computer vision, aims to reconstruct high-quality images from degraded inputs. While traditional Convolutional Neural Networks (CNNs) have been successful, they struggle with capturing global image dependencies. Vision Transformers (ViTs) address this by using self-attention, but their quadratic complexity with respect to image size makes them computationally expensive for high-resolution images. Recently, Vision Mamba models have emerged, offering linear complexity for modeling long-range dependencies. However, existing Vision Mamba approaches for image restoration face challenges with computational complexity scaling with scanning sequences and a tendency to "forget" local pixel information due to the linearization of 2D image patches into 1D sequences. This paper tackles these limitations by proposing a more efficient and effective Vision Mamba architecture.
Methods
The core of EAMamba is its novel Efficient All-Around Mamba (EAMamba) framework, built upon an encoder-decoder architecture. Key innovations include:
- Multi-Head Selective Scan Module (MHSSM): This module replaces the standard selective scan in Vision Mamba. Instead of processing all channels at once, MHSSM splits channels into groups, applies transformations to each group, and then combines them. This significantly reduces computational complexity and parameter count, improving scalability.
- All-Around Scanning Strategy: To combat the "local pixel forgetting" issue, EAMamba employs an "all-around" scanning mechanism. This strategy combines multiple scanning directions (horizontal, vertical, diagonal, flipped diagonal, and their reversed orientations) within the MHSSM. This comprehensive approach ensures better capture of local spatial relationships and global context, overcoming the limitations of 1D linearization.
- MambaFormer Block: This is the primary building block of EAMamba, integrating the MHSSM for token mixing and a channel Multilayer Perceptron (MLP) for feature refinement.
Datasets
EAMamba is evaluated on a variety of standard image restoration benchmarks:
- Image Denoising: SIDD (real-world), CBSD68, Kodak24, McMaster (synthetic Gaussian).
- Image Super-Resolution: RealSR.
- Image Deblurring: GoPro, HIDE.
- Image Dehazing: SOTS-Indoor, SOTS-Outdoor (from the RESIDE dataset).
Key Insights and Ideas
- MHSSM for Efficiency: The multi-head approach in MHSSM is crucial for reducing computational load without sacrificing performance. It allows for more efficient processing of multiple scanning sequences.
- All-Around Scanning Solves Pixel Forgetting: The combination of multiple scanning directions is shown to be highly effective in preserving local spatial relationships, a critical aspect often lost in 1D sequence-based models.
- Balancing Efficiency and Performance: EAMamba demonstrates that it's possible to achieve state-of-the-art or competitive performance in image restoration while drastically reducing computational costs (FLOPs).
- Flexibility of MHSSM: The MHSSM architecture is designed to be flexible, allowing for the seamless integration of novel scanning strategies beyond the proposed all-around approach.
Key Results
EAMamba achieves impressive results across various image restoration tasks:
- Computational Efficiency: EAMamba significantly reduces FLOPs, with reductions of 31-89% compared to existing low-level Vision Mamba methods. For instance, it requires only 11% of the FLOPs of MambaIR for denoising while achieving comparable PSNR.
- Performance: Despite the efficiency gains, EAMamba maintains competitive performance. It achieves superior PSNR on the GoPro deblurring benchmark and shows minimal PSNR gaps compared to baselines in super-resolution.
- Qualitative Improvements: Visual comparisons show EAMamba's ability to reconstruct finer details and preserve spatial coherence, often producing results nearly indistinguishable from ground truth.
Limitations and Future Work
- Channel MLP Choice: While the paper explores different channel MLP options, it settles on a "Simple FFN" for its optimal balance of performance and computational efficiency. The paper notes that other options like GDFN might offer slightly better performance but at a higher computational cost.
- Future Directions: The paper highlights the flexibility of the MHSSM and all-around scanning mechanism, suggesting that these components can be extended to incorporate even more novel scanning strategies for future advancements in image restoration. The authors also mention that their framework is versatile across multiple image restoration tasks, implying potential for further exploration in specialized areas.
Summary updated