DiffIR2VR-Zero: Zero-Shot Video Restoration with Diffusion-based Image Restoration Models

Chang-Han Yeh, Chin-Yang Lin, Zhixiang Wang, Chi-Wei Hsiao, Ting-Hsuan Chen, Yu-Lun Liu · DOI

Introduction

Restoring low-quality video—encompassing tasks such as denoising, super-resolution, and deblurring—presents a significantly greater challenge than static image restoration. While modern diffusion-based image restoration (IR) models like Stable Diffusion or DiffBIR generate high-fidelity details for single images, applying them frame-by-frame to video typically results in severe temporal inconsistency, or "flickering." This occurs because the stochastic nature of diffusion models generates fine textures independently for each frame, leading to jarring visual shifts across time.

Existing solutions often involve fine-tuning massive models on video datasets by adding 3D convolutions or temporal attention layers. However, this approach is computationally expensive, requiring significant GPU resources, and often fails to generalize across different types of video degradation. DiffIR2VR-Zero addresses this by introducing a training-free, "zero-shot" framework that allows any pre-trained image restoration diffusion model to perform high-quality video restoration with state-of-the-art temporal consistency.

Methodology

DiffIR2VR-Zero is a "plug-and-play" framework that intervenes during the diffusion denoising process to enforce inter-frame consistency without modifying the underlying model weights. The framework relies on two primary technical innovations: Hierarchical Latent Warping and Hybrid Flow-guided Spatial-aware Token Merging (HS-ToMe).

The DiffIR2VR-Zero pipeline integrates hierarchical latent warping and hybrid token merging within a frozen diffusion model to ensure temporal consistency.

Hierarchical Latent Warping

To maintain structural consistency, the method employs warping at two distinct levels. First, it establishes global consistency by warping features between distant keyframes. Second, it ensures local consistency by propagating these warped features to neighboring frames within a processing batch. This hierarchical approach provides a "rough sketch" that guides the diffusion model to keep objects and textures spatially aligned across the sequence, preventing the "drift" common in linear frame-to-frame propagation.

Hybrid Flow-guided Spatial-aware Token Merging (HS-ToMe)

Inside the neural network (UNet), the model processes information as "tokens." DiffIR2VR-Zero merges similar tokens across different frames to enforce visual uniformity. The strategy is stage-dependent:

  • Early Stages (Noisy): The framework uses optical flow (calculated from the low-quality input) to match tokens, as noisy features are initially too chaotic for standard similarity measures.
  • Later Stages (Clean): Once the image features are cleaner, the system switches to cosine similarity to match tokens based on their semantic content.
  • Spatial Awareness: A weighting factor based on physical proximity is added to prevent the model from incorrectly merging look-alike patches in different parts of the frame (e.g., separate patches of grass).

To allow for the generation of fine, high-frequency details, the authors implement a merging ratio annealing strategy, starting with aggressive merging to lock in structure and gradually reducing it as denoising progresses.

Experimental Results

The researchers evaluated DiffIR2VR-Zero across several standard benchmarks, including REDS4, Vid4, and DAVIS for super-resolution, and REDS30 and Set8 for denoising. The framework was also integrated with Marigold, a depth estimation model, to demonstrate its versatility beyond traditional restoration tasks.

Qualitative results across video denoising, super-resolution, and depth estimation tasks demonstrate the framework's ability to maintain high temporal consistency.

Key Findings

  • Performance: DiffIR2VR-Zero consistently outperformed traditional regression-based models (like FMA-Net) and standard per-frame diffusion applications. In 4x and 8x super-resolution tasks, it achieved significantly lower LPIPS scores (indicating higher perceptual quality) and improved temporal consistency metrics ($E_{warp}$).
  • Efficiency: The method requires zero training time and introduces zero extra parameters. While it adds approximately 6 seconds of overhead per frame during inference compared to a standard image model, this is a negligible trade-off compared to the cost of training video-specific models.
  • Versatility: The framework excels in extreme restoration scenarios, such as 8x upscaling, where traditional methods often produce overly blurry results.

Limitations and Future Work

Despite its success, DiffIR2VR-Zero faces challenges at extreme upscaling factors (e.g., 32x), where input degradation is too severe for optical flow to provide a reliable anchor. Additionally, some minor flickering persists due to the sensitivity of the Latent Diffusion Model (LDM) decoder. Future research may focus on stabilizing the LDM decoder and developing more robust keyframe selection algorithms to further eliminate micro-flickers in highly dynamic scenes.

Summary updated

BibTeX
@misc{yeh2024diffir,
  author = {Chang-Han Yeh and Chin-Yang Lin and Zhixiang Wang and Chi-Wei Hsiao and Ting-Hsuan Chen and Yu-Lun Liu},
  title = {{DiffIR2VR-Zero: Zero-Shot Video Restoration with Diffusion-based Image Restoration Models}},
  year = {2024},
  eprint = {2407.01519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.01519},
}
Figure