Frequency Domain-Based Diffusion Model for Unpaired Image Dehazing

Chengxu Liu, Lu Qi, Jinshan Pan, Xueming Qian, Ming-Hsuan Yang

TL;DR

This paper introduces FrDiff, a novel diffusion model that leverages the frequency domain to tackle unpaired image dehazing. By focusing on reconstructing the amplitude spectrum of clear images from hazy ones, FrDiff achieves state-of-the-art results on synthetic and real-world datasets with improved efficiency.

What Problem Does This Paper Address?

Haze significantly degrades image quality, impacting various computer vision tasks. While supervised methods for image dehazing exist, they rely on paired hazy-clear datasets, which are expensive and time-consuming to acquire. Unpaired methods, which use readily available hazy and clear images, have emerged but often struggle with domain gaps and fail to fully exploit haze-specific properties. Existing unpaired methods, like those based on contrastive learning, can introduce irrelevant content and overlook the fact that haze degradation primarily affects the amplitude spectrum in the frequency domain. This paper aims to bridge this gap by developing an effective unpaired image dehazing method that specifically leverages frequency domain information and the generative power of diffusion models.

Methods

The core of FrDiff is a frequency domain-based diffusion model. It operates in two stages:

  1. Stage One: Amplitude Residual Extraction and Dehazing Network Training:
    • An Amplitude Residual Encoder (ARE) is introduced. It takes the amplitude spectra of hazy and clear images, aligns their distributions, and computes an "amplitude residual." This residual captures the difference in amplitude between hazy and clear domains without altering texture information.
  2. A Frequency Compensation Layer (FCL) is integrated into a standard UNet-based dehazing network. This FCL uses the amplitude residual from ARE to refine frequency domain features.
  3. A Phase Correction Module (PCM) is also incorporated. It refines the phase spectrum using an attention mechanism guided by the amplitude residual, mitigating artifacts that can arise from haze obscuring texture.
  4. The dehazing network is trained using adversarial and contrastive losses to ensure the output matches the distribution of clear images.
  5. Stage Two: Diffusion Model-based Reconstruction:
    • A Diffusion Model (DM) is trained to reconstruct the amplitude residual from Gaussian noise. This DM is conditioned on the amplitude spectrum of the hazy image.
  6. The DM learns to generate the amplitude residual, which is then fed into the FCL of the dehazing network during inference. This allows the DM to provide valuable information for haze removal.

The overall architecture combines a dehazing network with a diffusion model, where the DM's output guides the dehazing process by reconstructing the amplitude residual.

Datasets

The paper evaluates FrDiff on several widely-used datasets:

  • RESIDE [27]: Includes ITS (synthetic indoor), SOTS-Indoor/Outdoor (synthetic indoor/outdoor), HSTS-Synth/Real (synthetic and real-world), and URHI (real-world).
  • I-HAZE [1]: Contains artificial hazy-clear pairs.
  • Fattal's [17]: Includes real-world hazy images.

For training, the ITS dataset is used, and for testing, SOTS-Indoor/Outdoor, HSTS-Synth/Real, I-HAZE, Fattal's, and URHI are used.

Key Insights and Ideas

  • Frequency Domain is Key for Haze: The paper strongly emphasizes that haze degradation is primarily manifested in the amplitude spectrum, a crucial insight that guides their entire approach.
  • Diffusion Models for Unpaired Restoration: FrDiff is presented as the first work to integrate diffusion models into unpaired image restoration tasks, demonstrating their potential beyond image synthesis.
  • Amplitude Residuals as a Bridge: The concept of amplitude residuals is novel. It effectively bridges the domain gap between hazy and clear images without introducing new learnable parameters, serving as a crucial supervisory signal for the diffusion model.
  • Dehazing via Amplitude Reconstruction: Instead of directly generating clear images, FrDiff focuses on reconstructing the amplitude residual, which is a more focused and efficient task for diffusion models, leading to fewer iterations and better performance.
  • Synergy of Amplitude and Phase: The paper highlights the importance of both amplitude and phase spectra. While amplitude is key for haze intensity, the PCM refines the phase to ensure texture fidelity.

Key Results

  • State-of-the-Art Performance: FrDiff outperforms existing state-of-the-art unsupervised and supervised methods on various synthetic and real-world datasets in terms of PSNR and SSIM. For instance, on SOTS-Indoor, it achieves a PSNR of 27.43 dB and SSIM of 0.957.
  • Improved Efficiency: FrDiff achieves comparable or better performance with fewer parameters and comparable FLOPs compared to other methods. For example, it has significantly fewer parameters (8.76M) and FLOPs (54.56G) than some competitors while achieving top results.
  • Robustness on Real-World Data: The method demonstrates strong performance on real-world datasets like HSTS-Real and Fattal's, as validated by NR-IQA metrics (FADE and BRISQUE), indicating good generalizability.
  • Ablation Studies Confirm Component Effectiveness: Ablation studies confirm the crucial role of each proposed component (DM, ARE, PCM, multi-scale FCLs) in achieving the overall performance. Removing any component leads to a noticeable drop in performance.

Limitations and Future Work

  • Computational Cost of Diffusion Models: While FrDiff is more efficient than some diffusion model applications, diffusion models inherently involve iterative denoising processes, which can still be computationally intensive compared to non-generative models. The paper notes that performance gains diminish after 8 iterations, suggesting a trade-off.
  • Unpaired Setting Challenges: While FrDiff excels in the unpaired setting, the inherent difficulty of perfectly aligning distributions without ground truth remains a general challenge in unpaired learning.
  • Future Work: The authors suggest that their work can provide inspiration for other unpaired restoration tasks. The successful application of diffusion models to frequency domain reconstruction opens avenues for exploring similar approaches in other image restoration problems. Further research could focus on optimizing the diffusion process for even greater efficiency or exploring more sophisticated frequency domain representations.

Summary updated

BibTeX
@inproceedings{liu2025frequency,
  author = {Chengxu Liu and Lu Qi and Jinshan Pan and Xueming Qian and Ming-Hsuan Yang},
  title = {{Frequency Domain-Based Diffusion Model for Unpaired Image Dehazing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure