Teaching Tailored to Talent: Adverse Weather Restoration via Prompt Pool and Depth-Anything Constraint

Sixiang Chen, Tian Ye, Kai Zhang, Zhaohu Xing, Yunlong Lin, Lei Zhu

Abstract

Recent advancements in adverse weather restoration have shown potential, yet the unpredictable and varied combinations of weather degradations in the real world pose significant challenges. Previous methods typically struggle with dynamically handling intricate degradation combinations and carrying on background reconstruction precisely, leading to performance and generalization limitations. Drawing inspiration from prompt learning and the “Teaching Tailored to Talent” concept, we introduce a novel pipeline, T(^{3})-DiffWeather. Specifically, we employ a prompt pool that allows the network to autonomously combine sub-prompts to construct weather-prompts, harnessing the necessary attributes to adaptively tackle unforeseen weather input. Moreover, from a scene modeling perspective, we incorporate general prompts constrained by Depth-Anything feature to provide the scene-specific condition for the diffusion process. Furthermore, by incorporating contrastive prompt loss, we ensures distinctive representations for both types of prompts by a mutual pushing strategy. Experimental results demonstrate that our method achieves state-of-the-art performance across various synthetic and real-world datasets, markedly outperforming existing diffusion techniques in terms of computational efficiency.

Introduction

Restoring images captured in adverse weather—such as rain, snow, or haze—is a fundamental challenge in computer vision. Real-world conditions are rarely isolated; they often involve complex, overlapping degradations that standard "all-in-one" models struggle to resolve. Existing methods frequently fail to adapt to these unpredictable combinations or lose critical background structure while attempting to remove weather noise.

We present $T^3$-DiffWeather, a high-efficiency diffusion-based pipeline designed to address these hurdles. By combining an autonomous prompt pool with a geometric constraint derived from the Depth-Anything model, our approach achieves state-of-the-art (SOTA) restoration quality with a fraction of the computational cost of previous diffusion models.

Methodology

The $T^3$-DiffWeather architecture is built on the principle of providing highly specific, instance-aware guidance to the diffusion process. The pipeline consists of three core innovations:

Overview of the $T^3$-DiffWeather pipeline, highlighting the Prompt Pool (b), General Prompts with Depth-Anything constraint (c), and the Contrastive Prompt Loss (d).
  1. The Prompt Pool: Instead of static queries, the system maintains a pool of "sub-prompts." For each input, a query-key mechanism selects and combines the most relevant sub-prompts to "assemble" a custom weather-prompt tailored to the specific degradation.
  2. Depth-Anything Constraint: To preserve scene geometry, we leverage the Depth-Anything model. We found that depth features are remarkably resilient to weather noise, acting as a "geometric anchor" that helps the model reconstruct the 3D structure of the scene accurately.
  3. Contrastive Prompt Loss: This loss function ensures that weather-specific prompts and scene-general prompts remain distinct in the latent space, preventing the degradation information from muddling the background reconstruction.
  4. Residual Reconstruction: Rather than generating a clean image from scratch, the model targets the degradation residual, making the learning process significantly more stable.

Key Insights: Depth as a Universal Prior

A pivotal finding in this research is that intermediate features from depth-estimation models (like Depth-Anything) are significantly more robust to weather degradations than features from standard classification models like DINO or DINOv2.

Comparison of feature maps from Depth-Anything, DINO, and DINOv2 across various degradation samples, demonstrating the robustness of depth features.

As illustrated in the figure above, Depth-Anything features maintain structural clarity even under heavy rain or snow. This robustness makes depth an ideal universal prior for guiding restoration. Furthermore, because the prompts provide such rich contextual information, the model requires only 2 sampling steps (using DDIM) to achieve high-quality results, whereas previous SOTA diffusion models often required 25 to 100 steps.

Experimental Results

$T^3$-DiffWeather was evaluated on several standard benchmarks, including Snow100K, Outdoor-Rain, and RainDrop. The model set a new bar for both quality and efficiency:

  • Quantitative Performance: It achieved a 37.51 PSNR on Snow100K-S, outperforming the previous best diffusion model by 1.68 dB.
  • Computational Efficiency: The model has roughly 1/52 the computational complexity (GFLOPs) of the previous SOTA diffusion method (WeatherDiffusion), primarily due to the drastic reduction in required sampling steps.
  • Qualitative Superiority: Visual comparisons demonstrate that the model is superior at restoring fine textures and maintaining color accuracy in real-world scenes, avoiding the ghosting artifacts and blurriness common in competing methods.

Conclusion

$T^3$-DiffWeather demonstrates that "teaching tailored to talent"—providing adaptive, instance-specific guidance—is a powerful strategy for complex image restoration tasks. While the current model excels on synthetic and real-world benchmarks, future work will explore extending this logic to video restoration to maintain temporal consistency and testing the framework on extreme edge cases like sandstorms or volcanic ash.

Summary updated

BibTeX
@inproceedings{chen2024teaching,
  author = {Sixiang Chen and Tian Ye and Kai Zhang and Zhaohu Xing and Yunlong Lin and Lei Zhu},
  title = {{Teaching Tailored to Talent: Adverse Weather Restoration via Prompt Pool and Depth-Anything Constraint}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=GalAHxBbm5},
}
Figure