CGGAN: A Context Guided Generative Adversarial Network For Single Image Dehazing

Zhaorun Zhou, Zhenghao Shi, Mingtao Guo, Yaning Feng, Minghua ZhaoarXiv 2020

TL;DR

The paper introduces CGGAN (Context Guided Generative Adversarial Network), a novel single-image dehazing framework featuring a unique "one encoder, two decoders" generator architecture. By separating structural context extraction from final image fusion and applying tailored loss functions to each path, CGGAN significantly improves color fidelity and structural restoration in heavily hazed and long-shot images.

What Problem Does This Paper Address?

Haze severely degrades outdoor images, causing poor contrast, color distortion, and a loss of fine details. This degradation creates significant hurdles for downstream computer vision tasks like object detection and image understanding.

While deep learning-based dehazing methods have advanced significantly, standard encoder-decoder networks still struggle under heavy haze or in distant views (such as sky regions). In these challenging scenarios, fine details are completely obscured. Standard encoders fail to extract sufficient contextual information, leading to severe artifacts, color washing, and inaccurate atmospheric transmission estimations in the final restored image.

Methods

To overcome the limitations of traditional architectures, the authors propose a generator split into three sequential sub-networks:

  1. Feature-Extraction-Net (Encoder): Extracts shallow, low-level features from the hazy input image.
  2. Context-Extraction-Net (Coarse Decoder): A multi-scale parallel pyramid decoder that aggregates deep semantic features and generates an intermediate, coarse dehazed image ($\hat{F}$).
  3. Fusion-Net (Fine Decoder): Fuses the low-level features from the encoder with the multi-scale structural features from the context decoder to produce the final high-quality, haze-free image ($\hat{S}$).
The CGGAN architecture featuring one encoder and two decoders.

One-Way Gradient Cutoff

A key architectural detail is the introduction of a gradient cutoff node between the context-extraction-net and the fusion-net. This ensures that the context network acts strictly as a one-way structural guide, preventing the complex loss functions of the fusion network from destabilizing the context network's training.

Tailored Loss Functions

Rather than optimizing the entire network uniformly, the authors apply distinct optimization strategies to the two paths:

  • Context Path: Optimized using Mean Squared Error (MSE) and Structural Similarity Index (SSIM) losses to enforce strict structural and layout fidelity.
  • Fusion Path: Optimized using a combination of Wasserstein GAN with gradient penalty (WGAN-GP) adversarial loss, Mean Absolute Deviation (MAD/$L_1$) loss for low-frequency details, and a pre-trained VGG-19 Perceptual Loss to ensure realistic textures and color boundaries.

Datasets

The network was trained and evaluated on a total of 15,000 synthetic images and validated on real-world hazy scenes:

  • Indoor Dataset: 10,000 training images and 200 test images synthesized from the NYU2 depth dataset using the Gated Fusion Network (GFN) haze synthesis method.
  • Outdoor Dataset: 5,000 training images and 200 test images sampled from the Outdoor Training Set (OTS) within the RESIDE benchmark dataset.
  • Real-World Images: Used for qualitative evaluation to verify the model's ability to generalize beyond synthetic distortions.

Key Insights and Ideas

  • Coarse-to-Fine Separation: Instead of forcing a single decoder to simultaneously learn spatial geometry and fine color textures, dividing the task into a coarse structural step and a fine fusion step makes the optimization landscape much more manageable.
  • The Power of Structural Guidance: The intermediate context network acts as an explicit prior. By forcing it to focus purely on structure (via MSE + SSIM), it provides a stable foundation for the fusion network to reconstruct color and fine details.
  • Decoupled Backpropagation: Cutting off backpropagation between the two decoders prevents conflicting gradients. The fusion network can optimize for perceptual realism without distorting the underlying structural features learned by the context network.

Key Results

CGGAN achieves notable quantitative and qualitative improvements over existing state-of-the-art methods, including DCP, MSCNN, AOD-Net, GCA-Net, and EPDN.

Quantitative Performance

On synthetic benchmarks, CGGAN significantly outperforms competing models in both Peak Signal-to-Noise Ratio (PSNR) and SSIM:

  • Indoor Test Set: Achieved 25.17 dB PSNR and 0.8706 SSIM (outperforming the next best method, GCA-Net, which scored 22.89 dB / 0.8347).
  • Outdoor Test Set: Achieved 26.42 dB PSNR and 0.8897 SSIM (outperforming EPDN's 21.27 dB and GCA-Net's 0.8259 SSIM).

Ablation studies confirmed that passing the decoded features from the context-extraction-net directly into the fusion-net is the primary driver behind these performance gains.

Table 1: Quantitative comparison on different sub-networks.

Qualitative Performance

When tested on real-world images, CGGAN effectively eliminates the "halo" artifacts and color distortions common in older prior-based methods (like DCP). It demonstrates a unique capability to naturally restore challenging sky regions and distant horizons where light scattering is most severe.

Limitations and Future Work

While CGGAN demonstrates robust performance across standard indoor and outdoor datasets, the authors note that extreme real-world conditions remain a challenge. Future work will focus on further refining the network architecture to handle highly irregular illumination, non-uniform haze concentrations, and more complex, heterogeneous environmental haze scenarios.

Summary updated

BibTeX
@misc{zhou2020cggan,
  author = {Zhaorun Zhou and Zhenghao Shi and Mingtao Guo and Yaning Feng and Minghua Zhao},
  title = {{CGGAN: A Context Guided Generative Adversarial Network For Single Image Dehazing}},
  year = {2020},
  eprint = {2005.13884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.13884},
}

Loading related content...

Figure