UHD Image Dehazing via anDehazeFormer with Atmospheric-aware KV Cache

Pu Wang, Pengwen Dai, Chen Wu, Yeying Jin, Dianjie Lu, Guijuan Zhang, Youshan Zhang, Zhuoran ZhengarXiv 2025 · DOI

Abstract

Ultra-High-Definition (UHD) imaging in fields like medical endoscopy and satellite sensing is often compromised by atmospheric haze. While deep learning models offer high restoration quality, their computational demands—often exceeding 80GB of GPU memory for 4K images—hinder real-time deployment. We present anDehazeFormer, a Transformer-based framework designed for real-time 4K dehazing at 53 FPS. By integrating physical atmospheric models into the architecture via an "Atmospheric-aware KV Cache" and adaptive normalization, the proposed method achieves a 5x training speedup and state-of-the-art performance while significantly reducing memory overhead.

Introduction

The proliferation of UHD content (4K/8K) has increased the demand for effective dehazing algorithms. However, existing methods face an efficiency paradox: physics-based models are fast but lack robustness, while deep learning models are accurate but computationally prohibitive. Processing high-resolution images often requires patch-based approaches or downsampling, which introduce artifacts like visible seams or loss of fine detail. anDehazeFormer addresses these challenges by harmonizing physical optics with deep learning to provide globally consistent, high-speed restoration.

Methodology

The anDehazeFormer architecture consists of three primary components designed to optimize both performance and efficiency.

The anDehazeFormer architecture, featuring the Atmospheric Estimator, KV Cache Update module, and Physics-Aware Attribution Map (PAAM).

Atmospheric Parameter Estimator and Adaptive Normalization

Unlike "black box" models, anDehazeFormer explicitly estimates physical parameters: transmission map ($t$), atmospheric light ($A$), and learnable normalization factors ($r, b$). These parameters feed into a novel adaptive normalization layer. By bounding the parameter range based on physical constraints, the model achieves more stable gradients, allowing for higher learning rates and a 5x faster convergence compared to standard architectures.

Atmospheric-aware KV Cache

To manage the massive memory requirements of self-attention at UHD resolutions, the model employs an Atmospheric-aware Key-Value (KV) cache. This module dynamically manages historical attention states by using estimated haze density. It prioritizes the retention of features in heavily hazy regions where global context is critical for restoration, while discarding redundant data in clearer areas. This physics-driven cache eviction strategy reduces memory consumption during inference without compromising quality.

Experimental Results

The model was evaluated on several benchmarks, including the 8KDehaze and 4KID datasets.

Performance comparison: (Left) PSNR vs. FLOPs vs. Parameters bubble chart; (Right) Processing time comparison on 8KDehaze.

Efficiency and Speed

As shown in the performance metrics, anDehazeFormer ("Ours") occupies a superior position in the efficiency-accuracy trade-off. It achieves a PSNR of 33.89 dB on 8KDehaze, outperforming DehazeXL (32.35 dB). Crucially, it processes 4K resolution at 53 FPS on an NVIDIA RTX 4090, representing a significant milestone for real-time UHD video processing. The KV caching mechanism successfully reduced memory usage from 18.3GB to 14.2GB in ablation studies.

Interpretability

Through the Physics-Aware Attribution Map (PAAM), the framework provides insights into how physical priors and deep features interact. This transparency helps validate that the model is correctly leveraging atmospheric physics to guide the dehazing process.

Conclusion

anDehazeFormer demonstrates that integrating physical models into Transformer architectures can overcome the computational barriers of UHD image restoration. By leveraging atmospheric-aware memory management and adaptive normalization, the framework provides a scalable solution for real-time 4K/8K dehazing. Future research will focus on structured compression of the KV cache to further optimize deployment on resource-constrained edge devices.

Summary updated

BibTeX
@misc{wang2025uhd,
  author = {Pu Wang and Pengwen Dai and Chen Wu and Yeying Jin and Dianjie Lu and Guijuan Zhang and Youshan Zhang and Zhuoran Zheng},
  title = {{UHD Image Dehazing via anDehazeFormer with Atmospheric-aware KV Cache}},
  year = {2025},
  eprint = {2505.14010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14010},
}
Figure