Introduction
Underwater imaging is inherently challenging due to the unique optical properties of aquatic environments. Light behaves differently depending on its wavelength and the water's turbidity, leading to a complex array of degradations including color casts (typically green or blue), haze, and significant blur. Most existing restoration methods act as "specialists," focusing on a single distortion type while ignoring others. However, in real-world scenarios, these degradations are overlapping and spatially varying.
UniUIR addresses this by treating underwater image restoration as an "all-in-one" learning task. It introduces a unified framework capable of handling the full spectrum of underwater degradation by combining efficient state-space models, mixture-of-experts (MoE) architectures, and generative refinement.
Methodology
The UniUIR framework utilizes a multi-stage approach to disentangle and correct complex distortions:
Mamba Mixture-of-Experts (MMoEM)
The backbone of the system is built on the Mamba architecture, which is favored for its linear computational complexity compared to traditional Transformers. This is integrated with a Mixture-of-Experts (MoE) mechanism. A gating network dynamically routes image features to specific "experts" trained to handle different degradation aspects. This allows the model to effectively "divide and conquer" mixed distortions, such as simultaneously correcting a color shift while deblurring a distant object.
Spatial-Frequency Prior Generator (SFPG)
To guide the restoration process, the SFPG extracts degradation information from both the spatial and frequency domains. By utilizing Fast Fourier Transforms (FFT), the model can more easily identify and restore high-frequency details—like sharp edges and fine textures—that are often obliterated by underwater scattering. These insights are converted into task-specific prompts that adaptively condition the restoration backbone.
Depth-Aware Restoration
Because underwater degradation is depth-dependent (objects further away are hazier), UniUIR incorporates depth information from Depth Anything V2, a large-scale pre-trained foundation model. This provides a robust spatial prior, allowing the network to perceive how light attenuation varies with distance without requiring a depth estimator trained from scratch on limited underwater data.
Latent Conditional Diffusion Model (LCDM)
In the final stage, a diffusion model is used to refine the restored images. Operating in a latent space, the LCDM helps recover fine-grained textures and ensures high-quality, visually consistent results. This stage is crucial for overcoming the over-smoothing or "plastic" look often produced by standard regression-based models.
Experimental Results
Quantitative Performance
UniUIR was evaluated against state-of-the-art (SOTA) methods like Semi-UIR and HCLR-Net across a comprehensive suite of datasets, including UIEB, LSUI, and U45. On the T90 dataset, UniUIR achieved a PSNR of 25.11 dB, significantly surpassing the previous best of 24.33 dB. It also demonstrated superior performance in structural similarity (SSIM) and perceptual metrics (LPIPS).
Qualitative and Downstream Impact
Visual comparisons show that UniUIR avoids common pitfalls such as chromatic aberrations (unnatural color fringes) or loss of detail in high-turbidity areas. Furthermore, the researchers demonstrated that UniUIR's restoration significantly boosts the accuracy of downstream tasks, such as semantic segmentation (using SAM) and depth estimation, making it a valuable tool for autonomous underwater vehicles (AUVs).
Efficiency
Despite its sophisticated multi-stage architecture, the Mamba-based backbone maintains competitive inference times (approximately 105ms). This efficiency makes it more viable for practical applications than many heavy Transformer-based or GAN-based alternatives.
Conclusion and Future Work
UniUIR represents a significant advancement in universal underwater restoration. By leveraging MoE for expert specialization and diffusion models for texture refinement, it provides a robust solution for diverse aquatic environments. While the model currently faces challenges in extreme scenarios like near-total darkness, future work aims to incorporate synthetic "extreme" datasets and efficient fine-tuning techniques like LoRA to further enhance its versatility.
Summary updated