Learning Hazing to Dehazing: Towards Realistic Haze Generation for Real-World Image Dehazing

Ruiyi Wang, Yushuo Zheng, Zicheng Zhang, Chunyi Li, Shuaicheng Liu, Guangtao Zhai, Xiaohong Liu · OpenReview

Abstract

Existing real-world image dehazing methods primarily attempt to fine-tune pre-trained models or adapt their inference procedures, thus heavily relying on the pre-trained models and associated training data. Moreover, restoring heavily distorted information under dense haze requires generative diffusion models, whose potential in dehazing remains underutilized partly due to their lengthy sampling processes. To address these limitations, we introduce a novel hazing-dehazing pipeline consisting of a Realistic Hazy Image Generation framework (HazeGen) and a Diffusion-based Dehazing framework (DiffDehaze). Specifically, HazeGen harnesses robust generative diffusion priors of real-world hazy images embedded in a pre-trained text-to-image diffusion model. By employing specialized hybrid training and blended sampling strategies, HazeGen produces realistic and diverse hazy images as high-quality training data for DiffDehaze. To alleviate the inefficiency and fidelity concerns associated with diffusion-based methods, DiffDehaze adopts an Accelerated Fidelity-Preserving Sampling process (AccSamp). The core of AccSamp is the Tiled Statistical Alignment Operation (AlignOp), which can provide a clean and faithful dehazing estimate within a small fraction of sampling steps to reduce complexity and enable effective fidelity guidance. Extensive experiments demonstrate the superior dehazing performance and visual quality of our approach over existing methods. The code is available at https://github.com/ruiyi-w/Learning-Hazing-to-Dehazing.

Introduction

Image dehazing—restoring clarity to photos taken in fog or mist—is a critical challenge in computer vision, primarily due to the lack of paired "ground truth" data from real-world environments. Most existing models are trained on synthetic data created using simplified physical scattering models. However, real-world haze is non-uniform and complex, causing models trained on synthetic data to fail when applied to real scenes.

While generative diffusion models offer the potential to restore realistic details, they are traditionally hindered by slow sampling processes and a tendency to introduce structural hallucinations. This paper addresses these challenges by proposing a complete "hazing-to-dehazing" pipeline that leverages generative priors to create realistic training data and an accelerated sampling process for efficient restoration.

Methodology

HazeGen: Realistic Haze Generation

To overcome the data scarcity bottleneck, the authors introduce HazeGen, which utilizes a pre-trained Stable Diffusion model modified with IRControlNet. Unlike traditional mathematical models, HazeGen learns the nuances of real atmospheric effects through a Hybrid Training strategy that uses both synthetic pairs and unlabeled real-world hazy images. A Blended Sampling strategy further ensures that the generated hazy images are both diverse and realistic, providing a high-quality dataset for training restoration models.

Overview of the HazeGen and DiffDehaze frameworks.

DiffDehaze and AccSamp

The restoration framework, DiffDehaze, incorporates an Accelerated Fidelity-Preserving Sampling (AccSamp) process to solve the speed and fidelity issues inherent in diffusion models.

  • AlignOp (Tiled Statistical Alignment): This operation aligns the local mean and variance of early-stage diffusion predictions with the original hazy input. This allows the model to generate a sharp, faithful "coarse" estimate very quickly, bypassing the need for hundreds of sampling steps.
  • Density-Aware Guidance: Recognizing that haze density varies across an image, the model applies spatially adaptive guidance. Using a transmission map derived from Dark Channel Priors, it focuses generative power on dense fog while preserving original details in clearer areas.
Comparison of hazy images generated by HazeGen against existing synthetic methods (OTS and RIDCP).

Experimental Results

Quantitative Performance

The model was trained on a massive dataset of 100,000 realistic hazy images produced by HazeGen. On the real-world RTTS dataset, DiffDehaze achieved a 23.8% improvement in the Q-Align metric (a measure of visual quality) over previous state-of-the-art methods such as PTTD and RIDCP. It also demonstrated superior performance across other no-reference metrics including LIQE and MUSIQ.

Qualitative Analysis

Visual comparisons reveal that DiffDehaze effectively recovers vivid colors and fine textures—such as distant building facades and foliage—that other models either leave obscured or render with blurry artifacts. While the model performed lower on the FADE metric, the authors argue that FADE is often misled by color-distorted residuals that appear "clearer" to algorithms but are visually inferior to human observers.

Conclusion

By mastering the generation of realistic haze, the proposed pipeline significantly improves the effectiveness of real-world image dehazing. The combination of HazeGen's high-quality data generation and DiffDehaze's efficient AccSamp process provides a robust solution for restoring clarity to hazy scenes with significantly reduced computational overhead.

Summary updated

BibTeX
@inproceedings{wang2025learning,
  author = {Ruiyi Wang and Yushuo Zheng and Zicheng Zhang and Chunyi Li and Shuaicheng Liu and Guangtao Zhai and Xiaohong Liu},
  title = {{Learning Hazing to Dehazing: Towards Realistic Haze Generation for Real-World Image Dehazing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02150},
}
Figure