O-Mamba: O-shape State-Space Model for Underwater Image Enhancement

Chenyu Dong, Chen Zhao, Weiling Cai, Bo YangarXiv 2024 · DOI

Introduction

Underwater image enhancement (UIE) is a critical yet challenging task in computer vision. The underwater environment acts as a complex medium that absorbs and scatters light unevenly across different wavelengths. Typically, red light attenuates most rapidly, followed by green and blue, resulting in the characteristic blue-green color casts and "hazy" appearance of deep-sea photography.

While Convolutional Neural Networks (CNNs) and Transformers have been applied to this problem, they face significant limitations. CNNs often lack the global receptive field necessary to correct large-scale lighting distortions, while Transformers suffer from quadratic computational complexity, making high-resolution processing difficult. Recently, State-Space Models (SSMs) like Mamba have emerged as a promising alternative, offering global modeling with linear complexity. However, standard SSMs primarily focus on spatial dependencies and often struggle to model the cross-channel relationships essential for correcting wavelength-specific color degradation.

To address these challenges, we introduce O-Mamba, a novel O-shaped dual-branch network designed to decouple and optimize both spatial and channel information for superior underwater restoration.

Methods: The O-Mamba Architecture

O-Mamba departs from traditional single-stream architectures by employing a dual-branch structure that treats spatial and channel features as distinct yet complementary priorities.

The O-Mamba architecture featuring dual spatial and channel branches with multi-scale promotion.

Dual-Branch Processing

  1. Spatial Mamba Branch (SM): This branch utilizes a four-directional selective scan (S-SSM) to capture long-range spatial dependencies, ensuring structural integrity and global context.
  2. Channel Mamba Branch (CM): A key innovation of O-Mamba is the Channel Selective Scan Module (C-SSM). By applying Global Average Pooling followed by a specialized SSM layer, this branch models dependencies across color channels. This directly addresses the physical reality of differential light attenuation in water.

Multi-scale Bi-mutual Promotion (MSBMP)

To integrate the features from both branches, O-Mamba uses the MSBMP module, which consists of two primary components:

  • Multi-scale Mamba MoE (MS-MoE): Utilizing a "Mixture of Experts" approach, the model dynamically selects the most relevant feature representations across multiple scales (1x, 1/2x, 1/4x). This allows the network to adapt to varying levels of turbidity and degradation.
  • Mutual Promotion (MP) Module: This fusion mechanism facilitates information exchange between the spatial and channel branches, ensuring that structural sharpening and color correction are synchronized.

Cyclic Multi-scale (CMS) Optimization

Training on multiple scales simultaneously can often lead to gradient interference. O-Mamba introduces a Cyclic Optimization strategy, where the loss function rotates through different scales across training iterations. This approach stabilizes the learning process and ensures the model effectively leverages multi-scale information without optimization conflicts.

Experimental Results

O-Mamba was rigorously evaluated on several standard UIE benchmarks, including UIEBD (890 paired images) and LSUI (5,004 images). It was also tested on "in-the-wild" datasets like U45 and Challenge-60 to assess generalization.

Quantitative Performance

O-Mamba achieves state-of-the-art (SOTA) performance across nearly all metrics. On the LSUI dataset, it achieved a PSNR of 30.47 dB, significantly outperforming competitors such as MambaIR (28.05 dB) and U-shape (26.18 dB). On the UIEBD dataset, it reached a PSNR of 26.78 dB and an SSIM of 0.9597.

Qualitative Impact

Visually, O-Mamba excels at restoring natural color balance, particularly in the red spectrum, and removing the hazy "veil" common in underwater scenes. Unlike some existing methods, it avoids introducing artificial artifacts or over-saturation.

Qualitative comparison of O-Mamba against state-of-the-art methods on underwater scenes.

Efficiency and Scalability

Despite its dual-branch complexity, O-Mamba is highly efficient. While it has more parameters (57.8M) than models like MambaIR (16.7M), its computational load is significantly lower, with 300G FLOPs compared to MambaIR's 654G. For resource-constrained applications, the authors also developed O-Mamba-light, which uses half the parameters while maintaining SOTA-level performance.

Key Insights and Conclusion

The success of O-Mamba highlights that for underwater tasks, channel modeling is as critical as spatial modeling. By dedicating a specific branch to channel dependencies, the model effectively learns the physics of light attenuation. Furthermore, the use of a Mixture of Experts (MoE) provides the robustness needed to handle the high variability of real-world underwater environments.

While the O-shape architecture is more complex than standard UNets, its efficiency and performance gains make it a powerful tool for high-resolution underwater restoration. Future work may involve optimizing the architecture for real-time deployment on autonomous underwater vehicles (AUVs) and extending the O-shape design to other restoration tasks like low-light enhancement or dehazing.

Summary updated

BibTeX
@misc{dong2024o,
  author = {Chenyu Dong and Chen Zhao and Weiling Cai and Bo Yang},
  title = {{O-Mamba: O-shape State-Space Model for Underwater Image Enhancement}},
  year = {2024},
  eprint = {2408.12816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.12816},
}
Figure