SNPD: Semi-Supervised Neural Process Dehazing Network with Asymmetry Pseudo Labels

Fan Zhou, Xiaozhe Meng, Yuxin Feng, Zhuo SuSymmetry 2022

TL;DR

This paper introduces SNPD, a novel semi-supervised approach to image dehazing that tackles the domain shift between synthetic and real-world hazy images. By leveraging a neural process to map real image features into the synthetic domain's latent space and incorporating a histogram equalization loss, SNPD effectively improves dehazing performance on real data while mitigating issues like overly dark outputs.

What Problem Does This Paper Address?

Image dehazing aims to remove atmospheric haze from images, improving clarity and contrast for better visual perception and downstream tasks. While deep learning models have shown great promise, they often struggle with generalization to real-world hazy images. This is primarily because these models are typically trained on large datasets of synthetic hazy images, which don't perfectly capture the complexities and distribution of real hazy scenes. This "domain shift" leads to models that perform well on synthetic data but poorly on actual hazy photographs. Existing methods often rely solely on synthetic data or struggle with computational complexity. Furthermore, many approaches focus on either intermediate feature representations or the final output for dehazing, but not both simultaneously.

Methods

The proposed SNPD (Semi-Supervised Neural Process Dehazing Network) tackles these challenges with a multi-pronged approach:

  • Semi-Supervised Learning with Asymmetry Pseudo Labels: The core idea is to leverage both labeled synthetic data and unlabeled real-world hazy data.
  • Backbone Network: A standard encoder-decoder architecture (MSBDN is used as an example) is first trained on labeled synthetic data. Intermediate latent features from this stage are stored.
  • Neural Process (NP) for Latent Space Mapping: The key innovation is using a Neural Process to bridge the domain gap. The NP learns to map the latent features extracted from unlabeled real hazy images into the latent space of the labeled synthetic images. This creates a "pseudo latent feature label" (PLFL) in the synthetic domain's feature space. A loss function is then designed to minimize the distance between the real image's predicted latent features and this PLFL, effectively aligning the latent representations across domains.
  • Histogram Equalization (HE) Loss for Output Enhancement: To address the common issue of dehazed images being too dark, a second pseudo label is generated using a simple histogram equalization technique on the real hazy images. An "HE loss" is then introduced to guide the network's output, enhancing luminance and contrast and preventing overly dark results.
  • Combined Loss: The final loss function combines the supervised loss from synthetic data, the NP loss for latent space alignment, and the HE loss for output enhancement.

Datasets

  • Training Data:
    • Synthetic Outdoor Training Set (SOTS): Used for initial supervised training of the backbone network.
  • Unannotated RealHazyImages (URHI): A subset of RESIDE containing 4807 real hazy images, used for the semi-supervised training phase with NP and HE losses.
  • Testing Data:
    • Synthetic Outdoor Test Set (SOTS): 500 outdoor images.
  • RTTS dataset: 4322 images.
  • Fattal's dataset: 32 real hazy images collected by Fattal.

Key Insights and Ideas

  • Latent Space Alignment is Crucial for Domain Generalization: The paper strongly suggests that aligning intermediate feature representations between synthetic and real data is more effective for generalization than solely relying on output-level matching.
  • Neural Processes as a Bridge for Domain Shift: NP's ability to model distributions and map between function spaces makes them a powerful tool for transferring knowledge from a labeled domain (synthetic) to an unlabeled domain (real).
  • Addressing the "Dark Output" Problem: The HE loss is a simple yet effective way to counteract a common failure mode in dehazing, ensuring visually pleasing and well-lit results.
  • Simultaneous Constraint on Latent and Output Spaces: By applying losses at both the intermediate latent layer (via NP) and the final output layer (via HE), the model benefits from a more comprehensive and robust training signal.
  • Computational Efficiency of NP over GP: The paper highlights that NP offers a significant speed advantage over Gaussian Processes (GP) for similar functional mapping tasks, making it more practical for deep learning pipelines.

Key Results

  • Subjective Evaluation: The proposed SNPD method demonstrates visually pleasing dehazing results on real-world hazy images, effectively removing haze without oversaturation, color confusion, or overly dark outputs. The results are consistently better than many state-of-the-art methods, especially on real data.
  • Quantitative Evaluation:
    • On the RTTS dataset, SNPD achieved the best performance among tested methods using no-reference image quality assessment metrics (NIQE, BRISQUE, BlurMetric, NIMA), with a particularly strong showing in BRISQUE and NIMA.
  • Ablation studies showed that combining NP and HE losses with the backbone network significantly improved PSNR and SSIM scores compared to using only the backbone, or the backbone with NP or HE individually. The full model (Backbone + NP + HE) achieved the highest PSNR (27.18) and SSIM (0.9409) on the RESIDE dataset tested on SOTS.
  • Speed: The NP approach is significantly faster than GP, with NP taking approximately 67,912.5 seconds for training compared to GP's 359,916.9 seconds for a similar task.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper mentions that the HE loss weight ($\lambda_{HE}$) should be small, suggesting some sensitivity to hyperparameter tuning.
  • Computational Cost: While NP is faster than GP, it still represents a significant computational overhead compared to purely supervised methods.
  • Future Work: The paper doesn't explicitly detail future work, but the success of the NP-based domain adaptation and the HE loss suggests potential for extending this approach to other image restoration tasks or exploring more sophisticated NP architectures. Further investigation into the optimal selection of features for NP mapping could also be a direction.

Summary updated

Abstract

Haze can cause a significant reduction in the contrast and brightness of images. CNN-based methods have achieved benign performance on synthetic data. However, they show weak generalization performance on real data because they are only trained on fully labeled data, ignoring the role of natural data in the network. That is, there exists distribution shift. In addition to using little real data for training image dehazing networks in the literature, few studies have designed losses to constrain the intermediate latent space and the output simultaneously. This paper presents a semi-supervised neural process dehazing network with asymmetry pseudo labels. First, we use labeled data to train a backbone network and save intermediate latent features and parameters. Then, in the latent space, the neural process maps the latent features of real data to the latent space of synthetic data to generate one pseudo label. One neural process loss is proposed here. For situations where the image may be darker after dehazing, another pseudo label is created, and one new loss is used to guide the dehazing result at the output end. We combine the two pseudo labels with designed losses to suppress the distribution shift and guide better dehazing results. Finally, the artificial and hazy natural images are tested experimentally to demonstrate the method’s effectiveness.
BibTeX
@inproceedings{zhou2022snpd,
  author = {Fan Zhou and Xiaozhe Meng and Yuxin Feng and Zhuo Su},
  title = {{SNPD: Semi-Supervised Neural Process Dehazing Network with Asymmetry Pseudo Labels}},
  booktitle = {Symmetry},
  year = {2022},
  doi = {10.3390/sym14040806},
}
Figure