Abstract
Image dehazing in real-world scenarios is often hampered by the lack of paired training data and the computational inefficiency of generative models. This paper presents a novel "hazing-to-dehazing" pipeline. We first introduce HazeGen, which leverages pre-trained diffusion models to generate highly realistic hazy images from clean counterparts. Subsequently, we propose DiffDehaze, a restoration model that incorporates a "Tiled Statistical Alignment" (AlignOp) to achieve high-fidelity dehazing with significantly reduced sampling steps. Our approach demonstrates state-of-the-art performance on real-world datasets, particularly in preserving structural fidelity and recovering fine details.
Introduction
Single image dehazing is a classic ill-posed problem aimed at recovering a clear scene from an image degraded by atmospheric haze. Despite the success of deep learning, two primary challenges remain:
- The Data Gap: Capturing perfectly aligned hazy and clean image pairs in the real world is practically impossible. Most existing models rely on synthetic data generated via simplified physical scattering models, which fail to capture the complexity of real-world haze, leading to poor generalization.
- The Diffusion Dilemma: While diffusion models excel at generating high-quality details, they are computationally expensive due to iterative sampling and can suffer from "hallucination," where structural fidelity to the original scene is lost.
Methods
The proposed framework addresses these challenges through a two-stage process: realistic haze generation followed by efficient restoration.
HazeGen: Realistic Haze Generation
HazeGen utilizes the rich priors of a pre-trained Stable Diffusion model to synthesize realistic haze. To ensure both realism and content consistency, the model undergoes Hybrid Training using both paired synthetic data and unpaired real-world hazy images. A Blended Sampling strategy is employed during generation, mixing conditional and unconditional predictions to produce diverse yet realistic hazy-clean pairs.
DiffDehaze and AccSamp
To overcome the efficiency and fidelity issues of standard diffusion models, we introduce AccSamp (Accelerated Fidelity-Preserving Sampling).
- AlignOp (Tiled Statistical Alignment): This core innovation is based on the observation that local patches of hazy images are essentially scaled and shifted versions of clean ones. AlignOp aligns the local mean and variance of an early-stage diffusion prediction with the input hazy image to create a "coarse dehazing estimate."
- Step Skipping: This accurate estimate allows the model to skip intermediate diffusion steps, jumping directly to the final refinement phase, thus drastically reducing inference time.
- Density-Aware Guidance: Utilizing a haze density map derived from the Dark Channel Prior, the model applies stronger guidance in lightly hazy areas to preserve original pixels, while allowing more generative freedom in densely hazy regions to reconstruct lost details.
Key Results
The framework was evaluated using 4,800 real-world hazy images from the URHI dataset for training HazeGen, which then generated 100,000 pairs for training DiffDehaze. Testing was conducted on the RTTS and Fattal’s datasets using no-reference metrics like Q-Align, LIQE, and CLIPIQA.
- Quantitative Performance: DiffDehaze achieved a 23.8% improvement on the Q-Align metric, outperforming existing methods such as PSD and RIDCP.
- Qualitative Superiority: As shown in the visual comparisons, our model effectively removes residual haze in deep backgrounds where other methods fail, while maintaining high structural fidelity.
- Efficiency: The AccSamp process enables high-quality restoration in significantly fewer steps than standard diffusion-based methods, making it more practical for real-world applications.
Conclusion
This work demonstrates that "hazing is the key to dehazing." By generating realistic training data that captures the non-uniform nature of real-world atmosphere, we can significantly improve restoration performance. The introduction of AlignOp treats dehazing as a local style-transfer problem, effectively reversing physical scattering without explicit parameter estimation. While metrics like FADE show some discrepancies, visual evidence confirms that our approach produces more natural and clearer results. Future work will focus on further optimizing the balance between generation speed and detail vividness.
Summary updated