Genuine Knowledge from Practice: Diffusion Test-Time Adaptation for Video Adverse Weather Removal

Yijun Yang, Hongtao Wu, Angelica I. Avilés-Rivero, Yulun Zhang, Jing Qin, Lei Zhu

Removing rain, snow, or haze from videos is a critical safety requirement for autonomous vehicles and surveillance systems. While deep learning has made massive strides in "all-in-one" weather removal, most models suffer from a common flaw: they are "blinded" by the specific weather they saw during training. When they encounter a new type of storm in the real world, they often fail due to distribution shifts.

Diff-TTA is a framework that allows a restoration model to "learn on the fly" as it processes a video stream, significantly improving its ability to handle unseen weather conditions. It is the first diffusion-based framework for video weather removal that incorporates Test-Time Adaptation (TTA). By using a novel temporal noise model and a self-calibration proxy task, it can adapt to unknown weather conditions during inference, outperforming state-of-the-art methods while being 90x more efficient than previous diffusion-based restoration models.

Figure 1: Overview of the Diff-TTA framework compared to existing methods, showing performance on seen and unseen weather conditions.

Methodology

The authors propose a two-pronged approach to solve the challenges of distribution shift and temporal consistency in video restoration.

1. Temporal Diffusion Process

Standard diffusion models add and remove independent Gaussian noise. To handle video, the authors developed a Temporal Noise Model based on ARMA (Auto-Regressive Moving Average). Instead of treating each frame's noise as a separate entity, they model the noise as a sequence where the current frame's noise is mathematically linked to its neighbors. This captures frame-to-frame correlations without needing the massive parameter counts of 3D convolutions or heavy attention mechanisms.

2. Diffusion Tubelet Self-Calibration (Diff-TSC)

This is the core of the Test-Time Adaptation (TTA) strategy. During the inference (testing) phase, the model performs a proxy task to calibrate itself to the specific degradation it is currently seeing:

  • Tubelet Cropping: It crops small spatio-temporal blocks called "tubelets" from the previous restored frames.
  • Self-Calibration: It uses these tubelets to "taste" the specific characteristics of the current weather.
  • Weight Update: It runs a quick optimization step to update the model’s internal weights before finishing the restoration of the current frame.
Figure 6: Detailed pipeline of the training phase (a) and the test-time adaptation process (b) using Diffusion Tubelet Self-calibration.

Experimental Results

The researchers evaluated Diff-TTA using a "mixed set" training strategy and tested it on both seen and unseen conditions, including synthetic datasets (RainMotion, REVIDE, KITTI-snow, VRDS, RVSD) and real-world videos.

  • Quantitative Performance: On seen weather, Diff-TTA achieved an average PSNR of 29.63 dB, surpassing previous bests. More impressively, on unseen weather (VRDS), it reached 22.57 dB, a significant jump over the 21.57 dB achieved by the next best competitor.
  • Qualitative Quality: Visual results demonstrate that Diff-TTA is superior at preserving fine background details (like text on signs) while completely removing heavy streaks that leave "ghosting" artifacts in other models.
  • Efficiency: By adapting on small "tubelets" rather than full frames, the model avoids massive memory overhead. Diff-TTA processes a 5-frame clip in about 6 seconds, compared to over 9 minutes for the previous leading diffusion-based model, WeatherDiffusion.

Conclusion

Diff-TTA demonstrates that the iterative nature of diffusion models is a perfect match for Test-Time Adaptation. While it achieves a 90x speedup over predecessors, it is not yet "real-time" (taking roughly 1.2 seconds per frame). Future work will focus on further accelerating inference speed and exploring applications in other low-level vision tasks like low-light enhancement or video deblurring.

Summary updated

BibTeX
@inproceedings{yang2024genuine,
  author = {Yijun Yang and Hongtao Wu and Angelica I. Avilés-Rivero and Yulun Zhang and Jing Qin and Lei Zhu},
  title = {{Genuine Knowledge from Practice: Diffusion Test-Time Adaptation for Video Adverse Weather Removal}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure