Video Diffusion Models Are Strong Video Inpainter

Minhyeok Lee, Suhwan Cho, Chajin Shin, Jungho Lee, Sunghun Yang, Sangyoun Lee

Abstract: Video inpainting requires a delicate balance between generative detail and temporal consistency. Traditional flow-based methods often suffer from warping artifacts, while diffusion models can struggle with background stability. This paper introduces FFF-VDI (First Frame Filling Video Diffusion Inpainting), a novel approach that leverages pre-trained image-to-video diffusion models. The core innovation lies in the First Frame Filling strategy, which reconstructs the first frame's latent representation using information propagated from future frames. This, combined with a Deformable Noise Alignment (DNA) module and DDIM inversion, allows the model to produce high-fidelity, consistent results even with imprecise bounding box masks.

Introduction

Video inpainting (VI)—the process of filling missing or removed regions in a video—is significantly more challenging than image inpainting due to the requirement of temporal consistency. Existing solutions typically fall into two categories: flow-based propagation, which is accurate but brittle to flow estimation errors, and diffusion-based models, which offer high generative power but often suffer from temporal instability or "hallucinations."

FFF-VDI aims to combine the strengths of both approaches: the hallucination-free accuracy of propagation and the high-fidelity generation of diffusion models.

Methodology

The central innovation of FFF-VDI is its First Frame Filling (FFF) strategy. Rather than propagating pixels across every frame, the model focuses on perfecting the "latent code" of the first frame.

Key Components:

  • FFF Module: This module uses optical flow to warp noise latent information from future frames back to the first frame. By completing the first frame's latents first, the model establishes a consistent anchor for the rest of the sequence.
  • Deformable Noise Alignment (DNA) Module: To handle subsequent frames, the DNA module uses deformable convolutions to learn offsets directly from noisy latents. This allows the model to refine alignments and maintain consistency without being strictly limited by potentially inaccurate optical flow maps.
  • DDIM Inversion for Inference: To prevent the model from hallucinating random objects, the researchers employ DDIM inversion. This process reverses the masked video into "controlled noise," ensuring the generated content matches the existing context.

Key Insights: Robustness to Rough Masks

A significant advantage of FFF-VDI is its resilience to imprecise masks. Traditional models often require tight, frame-by-frame rotoscoping to avoid artifacts. Because FFF-VDI propagates information at the latent level and uses a generative foundation, it can handle large, loose bounding boxes effectively.

FFF-VDI demonstrates superior handling of rough bounding box masks compared to baseline methods, avoiding the blurring seen in the blue-boxed crop.

Experimental Results

The model was evaluated on industry-standard benchmarks, including YouTube-VOS and DAVIS. FFF-VDI outperformed state-of-the-art models like ProPainter and E2FGVI across several key metrics:

  • Perceptual Quality: It achieved a VFID (Video Frechet Inception Distance) of 0.031 on YouTube-VOS, outperforming ProPainter (0.042).
  • Accuracy: The model led in traditional metrics with a PSNR of 35.06 and SSIM of 0.9812.
  • Qualitative Performance: FFF-VDI avoids common pitfalls such as texture blurring and hallucinated artifacts, maintaining sharp details in complex scenes.
Qualitative comparison showing FFF-VDI (orange) maintaining sharp, consistent textures where other methods (blue) produce blurry or warped results.

Conclusion

FFF-VDI represents a major step forward in video editing by treating the first frame as a temporal anchor and utilizing latent-level propagation. While diffusion models remain computationally intensive, the ability to handle rough masks and maintain high perceptual quality makes FFF-VDI a powerful tool for practical video inpainting tasks.

Summary updated

BibTeX
@inproceedings{lee2025video,
  author = {Minhyeok Lee and Suhwan Cho and Chajin Shin and Jungho Lee and Sunghun Yang and Sangyoun Lee},
  title = {{Video Diffusion Models Are Strong Video Inpainter}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i4.32477},
}
Figure