Abstract
Image dehazing remains a challenging ill-posed problem in computer vision. While diffusion models have shown promise in modeling complex data distributions, their practical application is hindered by immense training costs and slow iterative sampling. This paper introduces DiffLI2D (Diffusion Latent Inspired network for Image Dehazing), a framework that taps into the "hidden knowledge" of frozen, pre-trained diffusion models. We discover that the semantic latent space (h-space) of these models transitions from encoding image content to encoding haze characteristics as diffusion time-steps increase. By leveraging these features, DiffLI2D achieves state-of-the-art results with significantly reduced computational overhead.
Introduction
Recovering a clear scene from a hazy image is difficult because multiple clean images could theoretically produce the same hazy observation. Traditional deep learning approaches using CNNs and Transformers have made strides, but recent Diffusion Models offer even greater potential due to their generative capabilities. However, standard diffusion-based dehazing requires re-training massive models on paired datasets and performing hundreds of sampling steps during inference, making them impractical for many real-world scenarios. DiffLI2D addresses these limitations by using a frozen diffusion model as a rich feature extractor to guide a faster, specialized dehazing network.
Methods
The Content-to-Haze Transition
A key contribution of this work is the observation of feature evolution within the diffusion model's bottleneck layer, or h-space. By feeding hazy images into a frozen diffusion model at varying time-steps ($t$), we observe a distinct shift in representation:
- Small $t$ (e.g., $t=t_1$): Features primarily encode underlying structural content.
- Medium $t$ (e.g., $t=t_2$): Features shift toward representing haze characteristics.
- Large $t$ (e.g., $t=T$): High noise levels lead to chaotic representations.
DiffLI2D Architecture
DiffLI2D utilizes a U-Net-like backbone integrated with two specialized modules that extract and utilize features from the frozen diffusion model without iterative sampling:
- Content Integration Module (CIM): Extracts h-space features at small time-steps to restore sharp structural details via a cross-attention mechanism.
- Haze-Aware Enhancement (HAE): Utilizes h-space features from medium time-steps as a "haze map" to guide the network in localized haze removal using Spatial Feature Transform (SFT).
Experimental Results
Performance Benchmarks
DiffLI2D was evaluated on several standard benchmarks, demonstrating superior performance over existing state-of-the-art methods:
- SOTS (Synthetic Objective Testing Set): Achieved a 40.33 dB PSNR, significantly outperforming Restormer (38.43 dB) and previous diffusion-based methods like IR-SDE (33.82 dB).
- Real-World Robustness: The model achieved top results on the Dense-Haze and NH-HAZE datasets, which feature thick and non-homogeneous haze, respectively.
- Generalization: Beyond dehazing, the model set new records for low-light image enhancement on the LOL-v1 and LOL-v2 datasets.
Efficiency
Despite its high performance, DiffLI2D is remarkably efficient. It contains only 8.63M parameters, making it approximately 60 times smaller than the diffusion-based IR-SDE (537M parameters). By keeping the diffusion model frozen, the approach also avoids catastrophic forgetting and reduces GPU memory requirements during training.
Conclusion
DiffLI2D demonstrates that the latent space of pre-trained diffusion models contains valuable priors for image restoration. By identifying the content-to-haze transition in the h-space, we can effectively guide a lightweight dehazing network to achieve state-of-the-art results with high efficiency. Future work may extend this "h-space" extraction technique to other restoration tasks such as deblurring or denoising, as well as high-level vision tasks in adverse weather conditions.
Summary updated