VipDiff: Towards Coherent and Diverse Video Inpainting via Training-free Denoising Diffusion Models

Chaohao Xie, Kai Han, Kwan-Yee K. Wong · DOI

Abstract

Video inpainting requires a delicate balance between spatial fidelity and temporal coherence. While diffusion models excel at image synthesis, their independent application to video frames often results in significant temporal flickering. We introduce VipDiff, a training-free framework that adapts pre-trained image Latent Diffusion Models (LDMs) for video inpainting. By utilizing optical flow to propagate pixels and optimizing latent noise to match these constraints, VipDiff achieves high-quality, temporally stable, and diverse results without the need for expensive video-specific training.

Introduction

Video inpainting—filling missing or masked regions in a video—faces two primary challenges: spatial fidelity (realism of the patch) and temporal coherence (consistency across frames). Existing approaches typically fall into two categories: end-to-end synthesis models (e.g., 3D convolutions or Transformers) and flow-based propagation methods. While synthesis models are fast, they often suffer from limited temporal windows, leading to artifacts in long videos. Conversely, flow-based methods provide coherence but fail when source pixels are occluded, leaving blurry gaps.

Diffusion models offer superior generative capabilities but are difficult to apply to video due to the "hallucination" of different textures in each frame. VipDiff addresses this by using optical flow as a structural guide within a noise-optimization framework, bypassing the need for dedicated video diffusion training.

Methodology

VipDiff leverages a frozen Image LDM and a pre-trained RAFT model for optical flow estimation in a three-stage pipeline.

The VipDiff pipeline: Optical flow is used to propagate pixels from reference frames, which then guides the optimization of latent noise in a frozen diffusion model.
  1. Flow Completion & Pixel Propagation: Optical flow is estimated and completed in masked regions. Valid pixels from reference frames are warped into the target frame to create a "partially filled" temporal constraint.
  2. Noise Optimized Reverse Diffusion: This core innovation treats inpainting as an optimization problem. Instead of standard inference, VipDiff iteratively optimizes random Gaussian noise $z$ via backpropagation. The objective function minimizes the difference between generated pixels and the propagated constraints while a regularization term $R(z)$ ensures the noise remains within the model's natural image manifold.
  3. Sequential Processing: Frames are processed progressively, where newly inpainted pixels serve as source material for subsequent frames, ensuring long-term consistency.

Experimental Results

The authors evaluated VipDiff on the YouTube-VOS and DAVIS benchmarks. As a training-free method, these datasets were used exclusively for evaluation.

Visual comparison of VipDiff against baseline methods. VipDiff (Ours) produces multiple diverse and high-quality samples that maintain temporal consistency.

VipDiff demonstrated state-of-the-art performance, outperforming leading models like ProPainter and ECFVI in structural similarity (SSIM) and video fidelity (VFID). Notably, it achieved the lowest warping error ($E_{warp}$), indicating superior temporal stability. Qualitative analysis shows that VipDiff handles large masks more effectively than pure flow-based methods, which often produce "ghosting" or blurriness. Furthermore, unlike deterministic models, VipDiff can generate multiple diverse, valid inpainting samples by varying the initial noise seed.

Discussion and Conclusion

VipDiff proves that training-free adaptation of image models is a practical alternative to training massive video-native models. By using flow as a constraint rather than a sole source, the model fills gaps realistically using its internal generative knowledge. While the iterative optimization process (approx. 2.73s per frame) is slower than feed-forward Transformers, it remains efficient enough for consumer-grade hardware. Future work may involve accelerating the diffusion process using consistency models to reduce inference time.

Summary updated

BibTeX
@inproceedings{xie2025vipdiff,
  author = {Chaohao Xie and Kai Han and Kwan-Yee K. Wong},
  title = {{VipDiff: Towards Coherent and Diverse Video Inpainting via Training-free Denoising Diffusion Models}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00240},
}
Figure