Abstract
Underwater image enhancement (UIE) has attracted much attention owing to its importance for underwater operation and marine engineering. Motivated by the recent advance in generative models, we propose a novel UIE method based on image-conditional diffusion transformer (ICDT). Our method takes the degraded underwater image as the conditional input and converts it into latent space where ICDT is applied. ICDT replaces the conventional U-Net backbone in a denoising diffusion probabilistic model (DDPM) with a transformer, and thus inherits favorable properties such as scalability from transformers. Furthermore, we train ICDT with a hybrid loss function involving variances to achieve better log-likelihoods, which meanwhile significantly accelerates the sampling process. We experimentally assess the scalability of ICDTs and compare with prior works in UIE on the Underwater ImageNet dataset. Besides good scaling properties, our largest model, ICDT-XL/2, outperforms all comparison methods, achieving state-of-the-art (SOTA) quality of image enhancement.
Introduction
Capturing clear images underwater is a physical nightmare. Because water absorbs and scatters light differently depending on the wavelength and distance, raw underwater photos often suffer from a heavy blue-green tint, low contrast, and significant haziness. While deep learning has improved things, current tools have hit a wall. CNNs have a finite receptive field, struggling with long-range relationships. GANs are often unstable and produce artifacts. Standard Diffusion Models (DDPMs) produce high-quality results but are slow and rely on the U-Net architecture, which lacks the predictable scalability of Transformers.
Methodology
The proposed Image-Conditional Diffusion Transformer (ICDT) combines the stability of diffusion models with the scalability of Transformers. The architecture operates in a compressed latent space using a pre-trained Variational Autoencoder (VAE) to reduce computational overhead.
Key components include:
- Transformer Backbone: ICDT replaces the standard U-Net with a Transformer. The degraded image and the noised image are concatenated and fed into the Transformer as a sequence of patches, enabling the capture of global context.
- Adaptive Layer Norm (adaLN): To incorporate the diffusion timestep, an adaptive normalization layer shifts and scales features based on the noise level.
- Hybrid Loss Function: Training utilizes a mix of mean-squared error and Variational Lower Bound (VLB) loss. This allows the model to learn noise variance, significantly accelerating the sampling process during inference.
Experimental Setup
The study utilizes the Underwater ImageNet dataset, a subset of the EUVP (Enhancement of Underwater Visual Perception) dataset. It consists of 3,700 paired images (3,328 for training, 372 for testing) featuring diverse marine scenes like coral reefs and various fish species.
Results and Scaling Analysis
The largest model variant, ICDT-XL/2, achieved state-of-the-art performance with a PSNR of 28.16 and an SSIM of 0.8744, outperforming models like Water-Net and FUnIEGAN.
A critical finding is the predictable scalability of the architecture. As shown in the figure above, image quality is strongly correlated (0.965) with total computational complexity (FLOPs). This suggests that increasing model depth, width, or input resolution (smaller patch sizes) leads to consistent improvements. Furthermore, larger models were found to be more compute-efficient, reaching higher quality levels faster than smaller models for a given training budget.
Conclusion
ICDT represents a significant advancement in underwater image enhancement by leveraging the scaling laws of Transformers within a diffusion framework. While inference speed remains a challenge for real-time applications, the model's ability to remove haze and restore natural colors sets a new benchmark. Future work will explore broader image-to-image tasks and further scaling to determine the performance ceiling of this architecture.
Summary updated