Abstract Video inpainting aims to restore missing regions while preserving spatial and temporal coherence. While diffusion-based methods achieve strong per-frame reconstruction, their sampling implicitly generates temporally coupled latent trajectories whose long-horizon stability is not explicitly modeled. This often leads to a frustrating trade-off between temporal consistency and structural detail. A new approach rethinks this issue, viewing temporal inconsistency as instability along time-indexed denoising trajectories rather than an output-level error. By introducing an inference-time trajectory stabilization framework, this method selectively corrects unstable trajectories, yielding consistent improvements in both temporal coherence and structural fidelity.
1. The Challenge of Temporal Coherence
Video inpainting—the process of seamlessly filling in missing regions or removing objects from a video sequence—is a complex balancing act. Each frame must maintain high spatial fidelity (sharpness and detail), while the sequence as a whole must exhibit natural motion and temporal coherence.
Current diffusion-based video inpainting methods typically fall into two categories, both of which present significant drawbacks:
- Hard frame-to-frame constraints: These force the model to play it safe, often resulting in blurry outputs that lack fine detail.
- Weak or local constraints: These allow for high-quality spatial details but suffer from "structural drift," where the inpainted object gradually changes shape, texture, or color as the video progresses.
2. Rethinking Inconsistency: Trajectory Instability
The authors of this paper argue that the root cause of structural drift is treating temporal inconsistency merely as an output error (e.g., Frame A does not match Frame B). Instead, they propose viewing it as a trajectory instability problem within the model's latent space.
As a diffusion model denoises a video, minute errors in the latent space accumulate. Without a global anchor to guide the process, these errors compound over long sequences, leading to the flickering and warping commonly seen in AI-generated videos.
3. A Risk-Aware Stabilization Framework
To address this, the researchers introduce a lightweight, plug-and-play control layer that sits atop existing diffusion backbones (such as Stable Diffusion or BrushNet) during inference. The framework operates through four key mechanisms:
Drift-Aware Risk Accumulation
The system functions as an early warning mechanism. It continuously measures how much a frame's latent state deviates from its motion-aligned neighbors, accumulating this "risk" over time. The authors demonstrate that this latent risk state is a highly accurate predictor of future visual degradation (such as LPIPS or temporal flickering).
Risk-Gated Stabilization
Unlike previous methods that apply rigid constraints at every step, this framework intervenes only when the accumulated risk surpasses a specific threshold. If the denoising trajectory is stable, the model is left to generate freely, preserving fine textures. If it begins to drift, a correction term is triggered.
Anchor-Guided Correction
When stabilization is activated, the model utilizes "anchors"—sparsely sampled, high-quality frames—as stability references. It gently contracts the unstable latent trajectories toward a motion-consistent manifold defined by these anchors and local neighborhood propagation. By regulating the denoising trajectory in the latent space rather than smoothing final pixels, the method avoids common post-processing artifacts like ghosting.
Trajectory-Consistent Transition
To prevent abrupt visual "snapping" between anchor frames, the framework enforces a smooth transition prior. This ensures the path between stable points remains mathematically continuous.
4. Experimental Setup and Key Results
The researchers evaluated their method across three major benchmarks: DAVIS (the gold standard for video object segmentation and inpainting), HQVI (focusing on complex motion and occlusion), and VPBench-L (designed specifically for long-sequence evaluation).
By integrating this stabilization layer into state-of-the-art diffusion backbones like SDI and BrushNet, the authors observed significant improvements:
- Quantitative Gains: On the DAVIS dataset, adding stabilization to the SDI backbone improved the PSNR from 30.48 to 32.21. It also significantly lowered the Video Frechet Inception Distance (VFID), indicating superior overall video quality and consistency.
- Long-Video Robustness: In VPBench-L tests featuring sequences up to 256 frames, traditional propagation methods exhibited a steady decline in quality as drift accumulated. In contrast, the trajectory-stabilized approach maintained a remarkably flat, stable quality curve over extended horizons.
- Computational Efficiency: Because the lightweight control layer only triggers when necessary, it adds minimal computational overhead, often running faster than methods requiring heavy cross-frame attention at every step.
5. Limitations and Future Directions
While highly effective, the framework has a few acknowledged limitations. First, it relies on optical flow models (like RAFT) to align frames. If a video features extreme camera motion or sudden disocclusions, flow estimation can fail, leading to noisy stabilization. Second, in cases of extended occlusions where a region is hidden for a long time without any anchor frames to reference, the transition becomes under-constrained, forcing the model to rely purely on its generative prior.
Future work may involve integrating more robust motion priors that do not rely solely on traditional optical flow, potentially making the system even more resilient to complex, real-world video footage.
Summary updated