Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank

Shirui Huang, Keyan Wang, Huan Liu, Jun Chen, Yunsong Li

TL;DR

Semi-UIR is a new semi-supervised framework that tackles the chronic shortage of paired training data for underwater image restoration. By combining a "Reliable Bank" of high-quality pseudo-labels with contrastive regularization, the model effectively learns from unlabeled real-world images to outperform existing state-of-the-art methods.

What Problem Does This Paper Address?

Restoring underwater images is notoriously difficult due to light absorption and scattering, which cause severe color distortion, low contrast, and blur. While deep learning has shown promise, it typically requires large datasets of paired images (degraded vs. "ground truth" clean versions).

In the underwater world, such pairs are nearly impossible to capture simultaneously. Researchers often resort to synthetic data created via physical models or GANs, but these often fail to bridge the "domain gap"—a model trained on synthetic water often looks terrible when applied to the real ocean.

Semi-supervised learning (SSL), specifically the Mean-Teacher approach, offers a way to use abundant unlabeled real-world data. However, standard Mean-Teacher setups suffer from two flaws in restoration tasks:

  1. Ineffective Consistency: If the "teacher" model makes a mistake, the "student" model learns that mistake as truth.
  2. Confirmation Bias: Using standard L1 loss can cause the network to overfit to these incorrect teacher predictions.

Methods

The authors propose Semi-UIR, which enhances the Mean-Teacher framework with three key innovations:

  1. The Reliable Bank: Instead of the student learning from the teacher's current (and potentially noisy) prediction, the system maintains a "Reliable Bank." This bank stores the "best-ever" output for each unlabeled image seen during training. As the teacher improves, the bank is updated only if the new output is of higher quality.
  2. Trustworthy Metric Selection: To decide what constitutes a "best-ever" output without a ground-truth reference, the authors evaluated several Non-Reference Image Quality Assessment (NR-IQA) metrics. They discovered that most common metrics (like UCIQE) are unreliable. Through empirical testing, they found that MUSIQ best follows a "monotonicity law"—meaning its score consistently drops as image quality is artificially degraded.
  3. Contrastive Regularization: To fight confirmation bias, the authors added a contrastive loss. This forces the student's output to be closer to the "reliable" pseudo-label (positive pair) and further away from the original degraded input (negative pair) in a high-level feature space.
The Semi-UIR framework overview, showing the student/teacher interaction and the Reliable Bank update mechanism.

The underlying architecture, AIM-Net (Asymmetric Illumination-aware Multi-scale Network), uses two branches: one to handle illumination and color, and another to preserve structural gradients and edges.

Figure 5. An overview of the proposed Asymmetric Illumination- aware Multi-scale Network (AIM-Net).

Datasets

The model was trained on a mix of:

  • Labeled: 1600 image pairs sampled from UWCNN (synthetic) and UIEB (real-world with manually selected pseudo-labels).
  • Unlabeled: 1600 images from the EUVP benchmark.

Evaluation was conducted on several benchmarks, including testS (synthetic), testR (real-world UIEB), RUIE, and Seathru.

Key Insights and Ideas

  • The Monotonicity Law for IQA: The authors' most clever insight was how to validate an IQA metric. By blending a clean image with its degraded version at different ratios ($\alpha$), they created a quality gradient. A reliable metric must show a linear decrease in score as the degradation increases. As shown in the figure below, MUSIQ was the clear winner with 91.21% reliability.
Figure 4. The results of different non-reference IQA indicators on EUVP benchmark, including UIQM [36], UCIQE [54], BRISQUE [33], NIQE [34], NIMA [44], PAQ2PIQ [57] and MUSIQ [21].
  • Stability over Recency: In restoration, the most recent prediction isn't always the best. The Reliable Bank acts as a "memory" that prevents the student from being led astray by temporary dips in teacher performance.
  • Contrastive Loss as a Safety Rail: By treating the degraded input as a negative sample, the contrastive loss ensures the model doesn't just "pass through" the original image, which is a common failure mode in semi-supervised restoration.

Key Results

  • Quantitative: On the real-world testR dataset, Semi-UIR outperformed the previous best method (Ucolor) by 1.67 dB in PSNR and significantly improved SSIM (0.901 vs 0.881).
  • Qualitative: Visual results show that Semi-UIR effectively removes the heavy green/blue color casts common in deep-sea photography while maintaining sharp edges, whereas other methods often over-saturate or leave hazy artifacts.
  • Generalization: The framework proved "extensible"—applying the Semi-UIR training logic to a standard U-Net significantly boosted that U-Net's performance on real-world data.

Limitations and Future Work

  • Memory Overhead: Maintaining a "Reliable Bank" requires storing pseudo-labels for the entire unlabeled dataset, which could become a bottleneck for extremely large-scale training.
  • Task Expansion: The authors suggest that this framework could be adapted for other "blind" restoration tasks where paired data is scarce, such as image dehazing or low-light enhancement.
  • Optimization: Future work could focus on optimizing memory management during the bank update process.

Summary updated

BibTeX
@misc{huang2023contrastive,
  author = {Shirui Huang and Keyan Wang and Huan Liu and Jun Chen and Yunsong Li},
  title = {{Contrastive Semi-supervised Learning for Underwater Image Restoration via Reliable Bank}},
  year = {2023},
  eprint = {2303.09101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.09101},
}
Figure