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

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

Abstract

Despite the remarkable achievement of recent underwater image restoration techniques, the lack of labeled data has become a major hurdle for further progress. In this work, we propose a mean-teacher based Semi-supervised Underwater Image Restoration (Semi-UIR) framework to incorporate the unlabeled data into network training. However, the naive mean-teacher method suffers from two main problems: (1) The consistency loss used in training might become ineffective when the teacher's prediction is wrong. (2) Using L1 distance may cause the network to overfit wrong labels, resulting in confirmation bias. To address the above problems, we first introduce a reliable bank to store the “best-ever” outputs as pseudo ground truth. To assess the quality of outputs, we conduct an empirical analysis based on the monotonicity property to select the most trustworthy NR-IQA method. Besides, in view of the confirmation bias problem, we incorporate contrastive regularization to prevent the overfitting on wrong labels. Experimental results on both full-reference and non-reference underwater benchmarks demonstrate that our algorithm has obvious improvement over SOTA methods quantitatively and qualitatively.

Introduction

Restoring underwater images is notoriously difficult due to light absorption and scattering, which cause heavy color casts (usually blue or green), low contrast, and blurring. While deep learning has revolutionized image restoration, it typically requires "paired" data—a degraded image and its perfectly clean ground-truth counterpart.

In the underwater world, capturing such pairs is nearly impossible. Researchers often resort to synthetic data, but these models frequently fail when faced with the messy complexity of real oceans. Existing real-world datasets are tiny; for instance, the UIEB dataset has fewer than 900 pairs. This paper addresses the data scarcity gap by introducing a framework that leverages the vast amount of unlabeled underwater images available to improve restoration performance.

Sample images from the UIEBD, UWCNN, and EUVP datasets illustrating diverse underwater degradations.

Methodology

The authors introduce Semi-UIR, a framework based on the Mean-Teacher paradigm. In a standard setup, a "student" network learns from labeled data, while a "teacher" network (a moving average of the student) generates pseudo-labels for unlabeled data. However, the authors identify two failures: "the blind leading the blind" (incorrect teacher predictions) and confirmation bias (overfitting to wrong labels).

The Reliable Bank

To solve these issues, the system maintains a Reliable Bank that stores the "best-ever" output seen so far for every unlabeled image, rather than just the teacher's current prediction. This ensures the student is guided by the highest-quality pseudo-labels available throughout the training process.

Algorithm 1: The update process for the Reliable Bank using NR-IQA scores.

Metric Selection and Contrastive Regularization

To determine the "best-ever" output without ground truth, the authors conducted an empirical study on Non-Reference Image Quality Assessment (NR-IQA) metrics. They discovered that MUSIQ is the most reliable metric for ranking restoration quality, far outperforming older standards like UCIQE.

Additionally, to fight confirmation bias, they incorporate Contrastive Regularization. The student is trained to pull its output closer to the "reliable" pseudo-label (positive sample) while pushing it away from the original degraded image (negative sample), preventing the model from simply learning to output a modified version of the blurry input.

Key Results

  • Quantitative: On the real-world testR benchmark, Semi-UIR achieved a PSNR of 24.59 dB, outperforming the next best method (Ucolor) by a significant 1.67 dB.
  • Qualitative: Visual results show that Semi-UIR is superior at removing "haze" and green/blue tints without over-saturating images or introducing artifacts common in GAN-based methods.
  • Ablation Success: Studies confirmed that the Reliable Bank and Contrastive Loss are essential; without them, semi-supervised performance actually drops below the supervised baseline due to pseudo-label noise.

Conclusion

Semi-UIR demonstrates that a "Best-Ever" strategy combined with contrastive learning can effectively bridge the data gap in underwater restoration. While maintaining a Reliable Bank introduces some memory overhead, the gains in stability and accuracy are substantial. Future work will explore extending this framework to other "blind" restoration tasks, such as heavy fog or nighttime photography, where ground truth is equally scarce.

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