Self-supervised Learning and Adaptation for Single Image Dehazing

Yudong Liang, Bin Wang, Wangmeng Zuo, Jiaying Liu, Wenqi Ren

Abstract

This paper introduces a two-stage self-supervised framework that eliminates the need for expensive paired hazy-clean training data. By leveraging depth-guided image synthesis and a "learning without forgetting" adaptation strategy, the authors achieve state-of-the-art dehazing performance while maintaining extreme efficiency—processing 4K resolution images in just 23 milliseconds.

Introduction

Deep learning has revolutionized image dehazing, but it faces a major bottleneck: data scarcity. Most models require thousands of "hazy-clean" image pairs for supervised training. Since it is nearly impossible to capture the exact same scene with and without haze in the real world, researchers usually rely on synthetic datasets.

However, synthetic haze (often just a uniform overlay) rarely matches the complexity of real-world atmospheric scattering. This creates a domain gap, where models perform brilliantly on benchmarks but fail on actual hazy photos. Existing unsupervised methods try to bridge this gap but often produce artifacts or color shifts because they lack a strong physical grounding.

Methods

The authors propose a two-stage approach that combines physical modeling with self-supervised learning to bridge the gap between synthetic and real-world data.

The two-stage self-supervised framework: Stage 1 focuses on learning from depth-guided synthetic haze, while Stage 2 adapts to real-world hazy images using contrastive regularization.

Stage 1: Self-supervised Pre-training

Instead of using fixed synthetic datasets, the authors generate their own training pairs from a diverse set of clear images.

  1. Depth Guidance: They use a pre-trained monocular depth estimation network to predict the scene structure of a clear image.
  2. Physical Synthesis: Using the classic atmospheric scattering model, they apply haze based on that depth map, creating a more realistic "hazy" version of the clear image.
  3. The Network: They design a modular architecture consisting of T-Net (to estimate transmission), A-Net (to estimate atmospheric light), and R-Net (a refinement U-Net to fix errors and color shifts).

Stage 2: Self-supervised Adaptation

To handle real-world haze, the model undergoes a second stage of "adaptation" using real hazy images.

  • Learning Without Forgetting: To prevent the model from losing what it learned in Stage 1, they concatenate generated hazy images with real hazy images during this phase.
  • Contrastive Learning: Since they don't have "ground truth" for real images, they use Contrast Limited Adaptive Histogram Equalization (CLAHE) to create a "positive" (pseudo-clean) reference. The model is trained to pull its output closer to the CLAHE version and push it away from the original hazy input in the feature space.

Datasets

The study utilizes several key benchmarks for training and evaluation:

  • SOTS (Synthetic Objective Testing Set): Part of the RESIDE dataset, used for quantitative evaluation on indoor and outdoor synthetic scenes.
  • 4KID: A large-scale dataset containing 4K resolution synthetic hazy images.
  • URHI (Unannotated Real Hazy Images): Used for the self-supervised adaptation stage and qualitative evaluation of real-world performance.
  • Web-scraped Data: 2,000 diverse clear images were collected from the internet to generate the self-supervised training pairs in Stage 1.

Key Results

The proposed method demonstrates a significant leap in both accuracy and computational efficiency compared to existing benchmarks.

Performance comparison of various dehazing methods. Our approach achieves superior PSNR with significantly lower runtime, even at high resolutions.
  • Superior Accuracy: On the SOTS-outdoor dataset, the method achieved a PSNR of 24.33 dB, significantly outperforming previous unsupervised and even some supervised methods like AOD-Net (19.58 dB).
  • Real-World Generalization: Qualitative results show that the Stage 2 adaptation effectively removes haze from real-world cityscapes and landscapes where other models leave "haze residues" or create dark, unnatural regions.
  • Blazing Speed: The model is highly optimized for high-resolution tasks. It processes a 4K image in 23ms, making it viable for real-time video applications or high-end mobile photography.

Key Insights

  • Depth is the Key: Traditional synthetic data often ignores depth. By using a high-quality off-the-shelf depth estimator, the authors create synthetic training data that mimics how light actually scatters in 3D space.
  • Refinement over Raw Physics: The inclusion of R-Net (Refinement Network) is crucial for correcting physical inconsistencies and color shifts introduced by pure physical models.
  • CLAHE as a Proxy: Using CLAHE results as positive anchors in contrastive learning provides a "direction" for the model to improve on real-world data without needing a true clean label.

Conclusion and Future Work

While the paper presents a robust framework, a few limitations remain. The quality of the Stage 1 training data depends on the accuracy of the pre-trained depth model. Additionally, CLAHE isn't perfect and can introduce its own flaws. Future directions include extending this self-supervised adaptation strategy to other low-level vision tasks like low-light enhancement or underwater image restoration.

Summary updated

BibTeX
@inproceedings{liang2022self,
  author = {Yudong Liang and Bin Wang and Wangmeng Zuo and Jiaying Liu and Wenqi Ren},
  title = {{Self-supervised Learning and Adaptation for Single Image Dehazing}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/159},
}
Figure