[Paper Review] Enhancing Underwater Images via Adaptive Semantic-aware Codebook Learning
SUCode introduces semantic-aware, pixel-level codebooks and a three-stage training paradigm to adapt UIE to region-wise degradation, achieving state-of-the-art results on full-reference metrics and competitive no-reference performance.
Underwater Image Enhancement (UIE) is an ill-posed problem where natural clean references are not available, and the degradation levels vary significantly across semantic regions. Existing UIE methods treat images with a single global model and ignore the inconsistent degradation of different scene components. This oversight leads to significant color distortions and loss of fine details in heterogeneous underwater scenes, especially where degradation varies significantly across different image regions. Therefore, we propose SUCode (Semantic-aware Underwater Codebook Network), which achieves adaptive UIE from semantic-aware discrete codebook representation. Compared with one-shot codebook-based methods, SUCode exploits semantic-aware, pixel-level codebook representation tailored to heterogeneous underwater degradation. A three-stage training paradigm is employed to represent raw underwater image features to avoid pseudo ground-truth contamination. Gated Channel Attention Module (GCAM) and Frequency-Aware Feature Fusion (FAFF) jointly integrate channel and frequency cues for faithful color restoration and texture recovery. Extensive experiments on multiple benchmarks demonstrate that SUCode achieves state-of-the-art performance, outperforming recent UIE methods on both reference and no-reference metrics. The code will be made public available at https://github.com/oucailab/SUCode.
Motivation & Objective
- Address ill-posedness and region-wise degradation in underwater images by introducing semantic-aware discrete representations.
- Learn pixel-level, category-specific codebooks guided by semantic masks for joint restoration and enhancement.
- Mitigate pseudo ground-truth contamination via a three-stage training paradigm that separates codebook learning, representation, and enhancement.
- Propose GCAM and FAFF to improve color fidelity and texture detail while preserving semantic consistency.
Proposed method
- Learn semantic-category specific codebooks Z_c for C semantic classes using raw underwater images and semantic masks.
- Stage II self-recovery: synthesize a unified discrete representation by weighting and aggregating per-class quantized features via a weight predictor.
- Stage III enhancement: domain-adaptive feature modulation with FAFF to fuse raw and enhanced features and a dual-decoder with GCAM for color-aware restoration.
- Use a dual-decoder architecture where G_q restores raw images and G_r supports domain conversion with a Swin Transformer-based weight predictor.
- GCAM reweights color channels to address underwater color cast and preserve color realism.
- FAFF performs frequency-domain fusion using real FFT, phase preservation, magnitude modulation, and affine feature modulation to transfer enhanced textures while keeping structure.

Experimental results
Research questions
- RQ1How can semantic information be incorporated into discrete codebook learning for UIE to handle region-specific degradation?
- RQ2Can a three-stage training paradigm mitigate reliance on pseudo ground-truth references in UIE while learning robust representations?
- RQ3Do semantic-aware, pixel-level codebooks improve restoration quality over one-shot or category-agnostic codebooks?
- RQ4Can frequency-domain feature fusion (FAFF) and GCAM provide better color fidelity and texture restoration in underwater images?
Key findings
- SUCode achieves state-of-the-art performance on full-reference metrics (PSNR, SSIM, LPIPS) across SUIM-E and UIEB datasets.
- SUCode delivers competitive no-reference metrics (UCIQE, UIQM), notably achieving the highest UCIQE on both SUIM-E and UIEB.
- Cross-dataset evaluations show strong generalization, outperforming several baselines when trained on UIEB and tested on LSUI and UFO-120.
- Semantic-aware codebooks lead to sharper, more natural color restoration and better texture retention than non-semantic codebook approaches.
- The three-stage training strategy effectively handles ill-posed ground-truth issues and aligns enhancement with semantic content.

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.