Unleashing the Potential of the Semantic Latent Space in Diffusion Models for Image Dehazing

Zizheng Yang, Hu Yu, Bing Li, Jinghao Zhang, Jie Huang, Feng Zhao · DOI

Unleashing the Potential of the Semantic Latent Space in Diffusion Models for Image Dehazing

Abstract

Image restoration tasks, particularly image dehazing, have recently benefited from the generative power of Diffusion Models (DMs). However, these models typically impose significant "taxes" in the form of high training costs and slow, iterative inference. This paper presents DiffLI$^2$D (Diffusion Latent Inspired network for Image Dehazing), a novel framework that bypasses these limitations by leveraging the semantic latent space ($h$-space) of a frozen, pre-trained diffusion model. By identifying that $h$-space representations transition from content-rich to degradation-aware over the diffusion timeline, DiffLI$^2$D effectively guides a lightweight dehazing network. The resulting model achieves state-of-the-art performance on synthetic and real-world benchmarks with a fraction of the parameters and no iterative sampling overhead.

Introduction

Image dehazing is a classic ill-posed inverse problem where the goal is to recover a latent clean image from an observed hazy input. While deep learning architectures like CNNs and Transformers have set high standards, the stochastic nature and rich priors of Diffusion Models have opened new avenues for high-fidelity restoration. Despite their promise, the practical deployment of DMs is hindered by the "Training Tax"—the need for massive compute to train task-specific models—and the "Inference Tax"—the requirement for hundreds of sampling steps to generate a single output.

DiffLI$^2$D addresses these challenges by asking: Can we extract the knowledge embedded within a pre-trained, frozen diffusion model to guide a faster, deterministic dehazing network?

Methodology: Tapping into the $h$-space

The core of the proposed method lies in the $h$-space, defined as the bottleneck feature layer of the U-Net architecture within a standard Denoising Diffusion Probabilistic Model (DDPM).

Latent Investigation

The researchers conducted a systematic study of how $h$-space features evolve as noise is added to an image (increasing time-step $t$). They discovered a critical transition:

  • Low $t$ (e.g., $t_1=0$): The $h$-space primarily encodes fine-grained content and structural information.
  • Mid-to-High $t$ (e.g., $t_2=500$): As the original image content is obscured by noise, the $h$-space begins to capture the characteristics of the degradation itself (in this case, haze).
Figure 1: Visualization of the diffusion process and the evolution of h-space representations. t-SNE maps demonstrate how features transition from content-centric to degradation-aware as the time-step t increases.

Architecture and Modules

DiffLI$^2$D utilizes these insights through two primary components integrated into a feed-forward dehazing network:

  1. Content Integration Module (CIM): This module extracts $h$-space features at $t_1$. Using a cross-attention mechanism, it injects clean structural priors into the network, ensuring that the recovered image maintains high fidelity to the original scene's geometry.
  2. Haze-Aware Enhancement (HAE) Module: By extracting features at $t_2$, where the latent space acts as a "haze descriptor," the HAE module dynamically modulates the network's internal features. This allows the model to adaptively focus on areas with varying haze density.
Figure 6: Overview of the Decoder Training and Testing phases, illustrating how hazy and clean image pairs are processed through the frozen diffusion model to extract h-space guidance.

Crucially, the pre-trained diffusion model remains frozen throughout the process. DiffLI$^2$D acts as a student that "queries" the frozen teacher's internal states to perform single-pass dehazing.

Experimental Results

The model was evaluated on standard benchmarks including RESIDE (SOTS), Dense-Haze, and NH-HAZE.

  • Quantitative Performance: On the SOTS indoor dataset, DiffLI$^2$D achieved a PSNR of 40.33 dB, outperforming the state-of-the-art Restormer (38.43 dB) and significantly exceeding previous diffusion-based restoration methods like IR-SDE (33.82 dB).
  • Efficiency: DiffLI$^2$D is remarkably efficient, containing only 8.63M parameters. In contrast, Restormer uses 26.13M, and IR-SDE requires 537M. Because it is a feed-forward network, it avoids the slow iterative sampling typical of DMs.
  • Generalization: The authors demonstrated the versatility of $h$-space guidance by applying the same framework to low-light image enhancement (LOL-v1/v2) and image deraining (Rain100H), achieving top-tier results in both domains.

Conclusion and Future Work

DiffLI$^2$D proves that the internal representations of frozen diffusion models are powerful, time-dependent descriptors of both image content and degradation. By leveraging this "frozen knowledge," the framework achieves superior dehazing performance without the computational burden of standard diffusion sampling.

Future research may explore the use of more complex latent spaces from models like Stable Diffusion or extending this guidance strategy to other restoration tasks such as super-resolution and deblurring. While the selection of optimal time-steps ($t_1, t_2$) currently requires empirical tuning, the efficiency gains make this a promising direction for real-world image restoration.

Summary updated

BibTeX
@inproceedings{yang2024unleashing,
  author = {Zizheng Yang and Hu Yu and Bing Li and Jinghao Zhang and Jie Huang and Feng Zhao},
  title = {{Unleashing the Potential of the Semantic Latent Space in Diffusion Models for Image Dehazing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72784-9\_21},
}
Figure