Introduction
Video restoration is a complex, multi-faceted challenge. Real-world footage often suffers from a combination of degradations, including sensor noise, motion blur, compression artifacts, and adverse weather conditions like rain or fog. Traditionally, the field has relied on specialized models tailored to specific tasks. While "all-in-one" models have recently emerged for image restoration, extending these to the video domain typically introduces significant temporal flickering, as independent frame processing fails to maintain consistency across time.
To address these challenges, we present the Temporally-Consistent Diffusion Model (TDM). TDM is a unified framework designed to perform multiple video restoration tasks—such as dehazing, deraining, and super-resolution—within a single model. By integrating natural language task prompts with a novel attention mechanism, TDM achieves high-quality, flicker-free restoration without the prohibitive computational costs associated with large-scale video-based training.
Methodology
TDM transforms a pre-trained image diffusion model into a robust video restorer through a three-pronged approach focusing on versatility, efficiency, and stability.
Task Prompt Guidance (TPG)
Rather than employing complex architectural plugins for different restoration tasks, TDM leverages the zero-shot capabilities of Stable Diffusion. During the fine-tuning phase, the model utilizes a ControlNet architecture guided by specific natural language prompts (e.g., "remove the fog" or "recover high-resolution details"). This allows the model to act as a versatile "translator," switching its restoration behavior based on the intent expressed in the text prompt.
Efficient Training and Deterministic Inference
To maintain training efficiency, TDM is trained exclusively on pairs of degraded and clean images rather than full video sequences. Temporal logic is handled entirely during the inference phase through training-free modifications:
- DDIM Inversion: To mitigate the inherent randomness of the diffusion process—which can lead to inconsistent details across frames—TDM employs DDIM inversion. This process maps the degraded input back into the noise space, providing a deterministic starting point that preserves the underlying structure of the original video.
- Sliding Window Cross-Frame Attention (SW-CFA): This is the core innovation for temporal stability. While standard attention mechanisms in diffusion models operate on a single frame, SW-CFA considers a local window of neighboring frames. By averaging the "Keys" and "Values" (K and V matrices) within this window, the model applies a temporal low-pass filter. This effectively smooths out variations and ensures that features and textures remain consistent across the temporal dimension.
Experimental Setup
The model was trained on a multi-task suite of approximately 27,843 images compiled from several representative datasets:
- Dehazing: REVIDE (Real-world haze)
- Deraining: NTURain-syn
- Denoising: DAVIS
- Compression Artifact Removal: MFQEv2
- Super-Resolution: REDS
Evaluation was conducted on real-world benchmarks, including REVIDE, CRVD (denoising), and NTURain-real, to assess the model's ability to generalize beyond synthetic training data.
Results and Discussion
TDM was benchmarked against state-of-the-art (SOTA) regression models (such as VRT and AirNet) and existing diffusion-based methods (such as InstructP2P).
Quantitative Performance
TDM achieved superior results in visual quality metrics, obtaining the best average Fréchet Inception Distance (FID) and Kernel Inception Distance (KID) across all five restoration tasks. In terms of temporal metrics, TDM significantly outperformed other diffusion-based methods in Warping Error (WE) and Frame Consistency (FC), demonstrating the effectiveness of the SW-CFA mechanism in taming diffusion randomness.
Qualitative Impact
Qualitatively, TDM excels in challenging scenarios involving heavy rain and fog, where traditional regression-based models often produce blurry artifacts or fail to remove degradations entirely. TDM provides sharper, more realistic textures while maintaining the identity of objects across frames.
Computational Efficiency
Despite its generative power, TDM remains practical for real-world use. It can process a 15-frame video at 512x896 resolution in under 30 seconds on a single consumer-grade GPU (RTX 4090).
Conclusion and Future Work
TDM establishes a new standard for diffusion-based video restoration by combining the descriptive power of language prompts with temporal stabilization techniques. While it currently leads in visual detail, the authors note that it still lags slightly behind the smoothest regression-based models in pure temporal consistency metrics (WE/FC). Future research will focus on bridging this gap, aiming to combine the high-frequency detail of diffusion models with the absolute stability of regression-based approaches.
Summary updated