TL;DR
DehazeDCT introduces a highly efficient architecture designed to tackle the challenge of non-homogeneous image dehazing on ultra-high-resolution ($4000 \times 6000$) images. By replacing computationally expensive self-attention mechanisms with Deformable Convolution v4 (DCNv4) inside a transformer-like pipeline and pairing it with a Retinex-inspired refinement module, the network achieves state-of-the-art restoration quality with rapid processing speeds. This approach earned the team 2nd place in the prestigious NTIRE 2024 Dense and Non-Homogeneous Dehazing Challenge.
What Problem Does This Paper Address?
Haze in real-world scenarios is rarely uniform. Non-homogeneous haze varies drastically in density and spatial distribution, making it exceptionally difficult to clear up cleanly. While deep learning models—specifically Transformers—excel at capturing the long-range spatial dependencies needed to model these complex distributions, they hit a massive bottleneck when scaling up.
Standard self-attention mechanisms scale quadratically with image resolution. This makes it computationally impossible to process ultra-high-resolution images directly without heavy downsampling, which destroys fine structural details. Traditional Convolutional Neural Networks (CNNs) with massive fixed kernels attempt to bypass this but introduce heavy computational overhead and lack the ability to adaptively aggregate spatial features based on the input image.
Methods
The authors propose DehazeDCT, a two-stage framework consisting of a Dehazing Module and a Refinement Module.
- Dehazing Module: This module features two parallel tracks: a Main Branch and a Frequency-Aware Branch. The Main Branch utilizes DCNFormer blocks, which mimic standard Transformer blocks but swap out self-attention for Deformable Convolution v4 (DCNv4). DCNv4 removes the redundant softmax normalization found in previous iterations, enabling unbounded dynamic weights, faster convergence, and rapid forward speeds using a simple $3 \times 3$ kernel. Concurrently, the Frequency-Aware Branch uses Discrete Wavelet Transforms (DWT) and Fast Fourier Convolutions (FFC) to capture global spectral properties.
- Refinement Module: After initial dehazing, a lightweight (1.61M parameters) Retinex-inspired transformer performs color correction and structure refinement to eliminate any color shifts or artifacts left behind.
- Loss Functions: Stage I optimizes the Dehazing Module using a combination of $L_1$, MS-SSIM, perceptual, and adversarial losses. Stage II fine-tunes the entire network, dropping the adversarial loss to stabilize the refinement process.
Datasets
The model was rigorously evaluated on four real-world non-homogeneous dehazing benchmarks:
- NH-HAZE: 55 image pairs at $1200 \times 1600$ resolution.
- NH-HAZE2: 35 image pairs at $1200 \times 1600$ resolution.
- HD-NH-HAZE: 50 pairs of ultra-high-resolution $4000 \times 6000$ images.
- DNH-HAZE2: The official dataset for the NTIRE 2024 Dense and Non-Homogeneous Dehazing Challenge, featuring $4000 \times 6000$ images.
Key Insights and Ideas
- Attention Behavior without Quadratic Cost: Swapping self-attention for DCNv4 provides the best of both worlds: the long-range dependency and adaptive spatial aggregation of a Transformer, but with the linear complexity and efficiency of a sparse convolutional operator.
- Unbounded Weights for Speed: Removing the softmax normalization from the modulation scalars in the deformable convolution allows the network to learn unbounded dynamic weights, drastically accelerating convergence and inference speeds.
- Retinex for Color Fidelity: Dehazing often distorts global illumination and color balance. Incorporating a dedicated module explicitly grounded in Retinex theory ensures that color and structural details are restored in harmony rather than as an afterthought.
Key Results
- NTIRE 2024 Challenge: DehazeDCT won 2nd place out of 16 submissions in the Dense and Non-Homogeneous Dehazing Challenge, outperforming the 3rd place team by a notable margin of 0.24 dB PSNR and 0.17 in Mean Opinion Score (MOS).
- Quantitative Superiority: Across all four datasets, DehazeDCT consistently outperformed existing state-of-the-art methods (such as DWT-FFC and DehazeFormer). For instance, on the ultra-high-res DNH-HAZE2 dataset, it achieved 21.73 dB PSNR and 0.743 SSIM.
- Qualitative Excellence: Visual results demonstrate superior haze removal in dense regions, sharper structural details in complex foliage, and significantly better color preservation without the "washed-out" look common to other methods.
Limitations and Future Work
Not discussed in the paper.
Summary updated