Abstract
Video inpainting is the task of filling a region in a video in a visually convincing manner. It is very challenging due to the high dimensionality of the data and the temporal consistency required for obtaining convincing results. Recently, diffusion models have shown impressive results in modeling complex data distributions, including images and videos. Such models remain nonetheless very expensive to train and to perform inference with, which strongly reduce their applicability to videos, and yields unreasonable computational loads. We show that in the case of video inpainting, thanks to the highly auto-similar nature of videos, the training data of a diffusion model can be restricted to the input video and still produce very satisfying results. With this internal learning approach, where the training data is limited to a single video, our lightweight models perform very well with only half a million parameters, in contrast to the very large networks with billions of parameters typically found in the literature. We also introduce a new method for efficient training and inference of diffusion models in the context of internal learning, by splitting the diffusion process into different learning intervals corresponding to different noise levels of the diffusion process. We show qualitative and quantitative results, demonstrating that our method reaches or exceeds state of the art performance in the case of dynamic textures and complex dynamic backgrounds.
Introduction
Video inpainting—the art of filling missing regions in a video—is notoriously difficult. Most current state-of-the-art methods rely on optical flow, which tracks pixel movement between frames. While effective for rigid objects, flow-based methods often fail on dynamic textures (stochastic motions like waves or flickering flames) because these textures do not follow predictable paths.
Furthermore, modern generative models are typically gargantuan, requiring billions of parameters and massive compute clusters. This makes them impractical for specific, high-resolution video tasks and often leads to "hallucinations" that don't match the specific style or grain of the original footage. Infusion addresses these challenges by ditching massive datasets in favor of "internal learning."
Methodology
The authors propose a "divide and conquer" approach called Infusion, characterized by three core components:
- Internal Learning: Instead of training on millions of random videos, the model trains only on the video it is trying to fix. This exploits the "auto-similarity" of video—the fact that the information needed to fill a hole in one frame is often present elsewhere in the sequence.
- Lightweight 3D UNet: Because the model only needs to learn one video's distribution, it can be tiny. The authors use a network with only 500,000 parameters—roughly 1,000x smaller than standard image inpainting models like Palette. It uses 3D convolutions to maintain temporal consistency across frames.
- Interval Training: Standard diffusion models try to learn the entire process of turning pure noise into a clean image with a single network. Infusion splits the 1,000-step diffusion process into smaller intervals (e.g., 20 intervals of 50 steps each). The network is trained on the most noisy interval first, performs the inpainting for those steps, and then moves to the next, less-noisy interval. This allows the tiny network to specialize its weights for specific noise levels, acting as a generative model at high noise and a refiner/denoiser at low noise.
Evaluation and Results
The researchers evaluated Infusion on several benchmarks focused on complex motion, including the Tesfaldet & DTDB datasets (fire, smoke, water, grass) and DAVIS (object removal and static background reconstruction).
Key Findings
- Perceptual Quality: Infusion significantly outperformed leading models like ProPainter and E2FGVI on LPIPS (perceptual similarity) and SVFID (video-specific Fréchet distance) metrics for dynamic textures.
- Visual Fidelity: Qualitatively, the method preserves sharp details in water reflections and fire that other methods blur or distort. Unlike flow-based methods which are deterministic, Infusion can generate multiple different (but equally plausible) versions of the missing texture.
- Efficiency: Training takes between 3 and 15 hours on a single NVIDIA V100 GPU. While not instant, it is a feasible process for high-end video editing compared to the weeks of training required for foundation models.
Discussion and Limitations
While Infusion excels at chaos, it has specific limitations. The model has a limited "temporal receptive field," meaning it can struggle to keep perfectly static backgrounds stable over very long durations compared to flow-based methods. Additionally, because it only learns from the input video, it cannot "invent" semantic content it hasn't seen (e.g., it cannot reconstruct a specific object if that object never appears unmasked elsewhere in the video).
Future work may explore Latent Diffusion to speed up inference—which currently sits at roughly 5 seconds per frame—and improving long-term consistency for static scenes.
Summary updated