ReviveDiff: A Universal Diffusion Model for Restoring Images in Adverse Weather Conditions

Wenfeng Huang, Guoan Xu, Wenjing Jia, Stuart Perry, Guangwei Gao

TL;DR

ReviveDiff is a universal image restoration framework based on diffusion models that can simultaneously tackle diverse adverse conditions like rain, low-light, smoke, and underwater distortion. By leveraging general structural and color priors instead of task-specific designs, it outperforms specialized state-of-the-art models while significantly reducing computational overhead.

What Problem Does This Paper Address?

Images captured in challenging environments—such as during heavy rain, underwater, or at night—suffers from severe degradation, making them difficult for both humans and downstream computer vision algorithms to interpret.

Historically, researchers have addressed these issues using highly specialized, task-specific priors. For example, low-light enhancement often relies on Retinex theory, while dehazing methods frequently leverage atmospheric scattering models. However, these tailored solutions do not generalize well to other types of degradation. While recent multi-task networks attempt to unify image restoration, they often struggle with severe, complex natural degradations like underwater color casts or nighttime haze.

The authors of ReviveDiff observe that unlike motion blur or sensor noise, degradation from natural media (fog, water, rain) alters light propagation but generally preserves the underlying geometric structures of objects. This insight allows them to design a single, universal architecture that uses general image attributes—like edges and color histograms—to guide restoration across multiple distinct weather and environmental conditions.

Fig. 1: Our ReviveDiff can address various adverse degra- dations (such as rain, low light, underwater, and nighttime dehazing) by enhancing and restoring their quality.

Methods

ReviveDiff is built on a U-shaped latent diffusion framework utilizing Mean-Reverting Stochastic Differential Equations (SDEs), which implicitly model image degradation and restoration as a continuous diffusion process. The core architecture introduces three main innovations:

  1. Coarse-to-Fine Learning Block (C2FBlock): To capture features at multiple granularities, the C2FBlock splits processing into two branches. The Fine Branch uses a standard $3 \times 3$ receptive field to preserve local details. The Coarse Branch uses stacked, grouped-dilated convolutions (with increasing dilation rates of 2, 4, and 8) to efficiently achieve a massive $31 \times 31$ receptive field. This allows the network to capture broad contextual information without the massive computational cost of Vision Transformers or large-kernel convolutions.
  2. Multi-Attentional Feature Complementation (MAFC) Module: Merging macro-level context and micro-level details is challenging. The MAFC module adaptively integrates these features by combining spatial, channel, and pixel attention mechanisms with a dynamic weighting strategy, ensuring optimal feature alignment.
  3. Prior-Guided Loss Functions: To train the network, the authors supplement standard pixel-wise ($L_1$) loss with two prior-driven losses: an Edge Loss (using a Canny edge detector) to maintain sharp object boundaries, and a Histogram Loss to ensure accurate color distribution and correct environmental color casts.
Fig. 2: The basic framework of our proposed ReviveDiff, which is a U-shaped latent diffusion model with stacked Coarse-to- Fine Learning Blocks (C2FBlock) and Multi-Attentional Feature Complementation (MAFC) modules, guided by a combined loss to tackle diverse real-world image restoration tasks.

Datasets

The model was rigorously evaluated across seven benchmark datasets covering five distinct degradation categories:

  • Image Deraining: Rain100L
  • Underwater Image Enhancement: UIEB (specifically the T90 test split), U45, and C60
  • Low-light Image Enhancement: LOw-Light (LOL) dataset
  • Nighttime Dehazing: GTA5 (a synthetic dataset generated via a game engine)
  • Image Desmoking: SMOKE (real-world images featuring machine-generated fog)

Key Insights and Ideas

  • Structure is King in Natural Degradation: Because weather and water distort light rather than shifting pixels, object geometry remains intact. This justifies using structural edge maps and color histograms as universal guiding priors across entirely different tasks.
  • Efficiency via Dilated Stacking: Achieving global context typically requires resource-heavy self-attention mechanisms. ReviveDiff proves that stacked grouped-dilated convolutions can mimic these large receptive fields, drastically lowering the computational footprint.
  • Dynamic Blending Matters: Ablation studies revealed that fixed-weight blending of coarse and fine features severely degrades performance. The attention-driven dynamic weighting in the MAFC module is essential for adapting to different degradation types.

Key Results

ReviveDiff consistently achieved state-of-the-art (SOTA) quantitative metrics and superior visual quality across all evaluated tasks:

  • Deraining (Rain100L): Achieved a PSNR of 39.09 dB, outperforming the next-best method (FrePrompter) by 0.34 dB and standing out as the only evaluated method to break the 39 dB mark.
  • Underwater (T90): Reached a PSNR of 25.01 dB, surpassing the previous SOTA (NU2Net) by a substantial 2.08 dB, while maintaining an exceptionally high structural similarity index (SSIM of 0.92).
  • Efficiency: Compared to similar diffusion-based restoration models like IR-SDE, ReviveDiff reduced parameters from 137.15M to 88.31M and slashed computational complexity (Multi-Adds) from 379.31G down to 73.95G, making it far more viable for resource-constrained deployments.

Limitations and Future Work

Despite its efficiency gains over other diffusion models, ReviveDiff is still bound by the iterative nature of diffusion processes. The model requires 300 diffusion steps for inference, which inherently limits its real-time processing capability. The authors note that their primary direction for future work is exploring sampling acceleration strategies to reduce the number of required diffusion steps without compromising the high quality of the restored images.

Summary updated

BibTeX
@article{huang2025revivediff,
  author = {Wenfeng Huang and Guoan Xu and Wenjing Jia and Stuart Perry and Guangwei Gao},
  title = {{ReviveDiff: A Universal Diffusion Model for Restoring Images in Adverse Weather Conditions}},
  journal = {IEEE Transactions on Image Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=G8ELmDQSF3},
}
Figure