TL;DR
VidSplice tackles the problem of video inpainting and editing by decoupling the task into two stages: multi-frame consistent image inpainting and masked-area motion propagation. By generating identity-aligned anchor keyframes using a novel splicing mechanism and injecting contextual motion cues into early video diffusion layers, VidSplice prevents content drift and maintains temporal stability across long, dynamic sequences.
What Problem Does This Paper Address?
Video inpainting—removing unwanted objects or inserting new elements into masked video regions—requires both per-frame spatial realism and smooth cross-frame temporal continuity. Recent methods attempt to solve this using pretrained image-to-video (I2V) diffusion models: they inpaint only the first frame and delegate all remaining motion and appearance synthesis to the I2V backbone.
However, relying entirely on a single frame causes severe issues in dynamic scenes with camera movement or occlusions. Over time, the model loses track of identity and fine-grained texture, leading to drifting object appearances, flickering, and blurry artifacts in later frames.
Methods
To overcome single-frame degradation, VidSplice introduces explicit guidance from sparsely sampled anchor frames. The architecture builds on FLUX.Fill for image generation and Wan2.1 (14B) for video diffusion, structured around two core components:
[Masked Video]
│
├─► Temporal Sampling & ProPainter Flow Completion
│
▼
[CoSplice Module] ──► First frame concatenated with keyframes (Splicing)
│ + Multi-view LoRA ID-Adapter (FLUX.Fill)
├───────────────────────────────┬──────────────────────────────┐
▼ ▼ ▼
[Anchor Keyframes] [Context Video] [I2V-Masked Video]
(Duplicated Keyframes) (Anchors placed in-situ)
│ │
▼ ▼
[Context Controller] [3D VAE Latents]
(Injects into early DiT layers) │
│ │
└──────────────┬───────────────┘
▼
[Frozen Wan2.1 Video DiT]
│
▼
[Coherent Final Video]
- CoSplice Module (Multi-Frame Inpainting):
- Sampled Video Formation: Selects keyframes at uniform temporal strides ($K=10$) and runs lightweight optical flow completion (via ProPainter) to pre-fill simple disoccluded regions.
- Reference-Guided Inpainting: The inpainted first frame is horizontally concatenated (spliced) alongside each sampled frame. A low-rank ID adapter ($\text{LoRA rank } 128$) trained on multi-view imagery allows the 2D inpainting model to borrow features from the first frame, synthesizing novel viewpoints while preserving object identity.
- Spliced Video Streams: Produces two parallel video streams: an I2V-masked video (anchor frames re-inserted into their temporal positions) and a context video (anchor frames repeated across frame intervals to match video length).
- Context Guidance via Controller Injection: A dedicated context controller processes latents from the context video and injects motion/camera control signals strictly into the first 10 layers of the video Diffusion Transformer (DiT). These early layers capture coarse spatiotemporal motion without constraining high-level generative detail.
- Masked Area Motion Propagation: The DiT backbone remains frozen and is trained using a flow matching objective to synthesize fluid motion connecting the anchor frames.
Datasets
- Adapter Training: Curated dataset of 820,000 masked multi-view image pairs from MegaDepth, paired with random and semantic object masks (40%–70% masking ratio) from COCO.
- Context Controller Training: VPData, containing ~450,000 diverse indoor and outdoor internet video clips.
- Evaluation Benchmarks: Evaluated on the standard DAVIS benchmark (90 videos) and VideoPainter’s VPBench (split into short-video
VPBench-Sand long-videoVPBench-L).
Key Insights and Ideas
- Decoupling appearance synthesis from motion propagation: Video diffusion models struggle when forced to simultaneously hallucinate unseen object views and handle smooth temporal dynamics. Pre-generating sparse, identity-locked 2D anchor frames frees the video model to focus primarily on short-range motion synthesis.
- Early-layer feature injection is sufficient: Context information does not need to permeate the entire 3D diffusion network. Injecting context features into only the first 10 DiT layers successfully anchors camera motion and scene structure while preserving the model’s native generative flexibility.
- Side-by-side splicing provides zero-pose 3D awareness: Concatenating the reference frame directly along the image width enables the 2D inpainting network to perform novel-view synthesis across camera pans without requiring explicit 3D camera pose parameters or depth estimation.
Key Results
- Quantitative Video Inpainting (DAVIS): VidSplice achieves 27.34 dB PSNR and 0.25 MSE ($\times 100$), substantially outperforming ProPainter (26.05 dB / 1.21 MSE) and VideoPainter (25.27 dB / 0.45 MSE), while achieving a 20.54 CLIP similarity score.
- Long Video Inpainting (VPBench-L): VidSplice reaches 28.11 dB PSNR and an LPIPS ($\times 100$) of 5.31, compared to VideoPainter’s 22.19 dB PSNR and 9.14 LPIPS.
- Overall Video Quality: On VPBench, VidSplice records an FVID score of 0.16, outperforming VACE (0.20) and VideoPainter (0.18).
- Human Evaluation: A user study on 90 DAVIS sequences showed a 48.9% preference for VidSplice, compared to 27.8% for VideoPainter and 23.3% ties.
- Inference Speed: Despite generating intermediate reference anchors, VidSplice processes up to 81 frames in a single pass at ~2.59 seconds per frame on 4$\times$ NVIDIA H100 GPUs, matching VideoPainter’s ~2.55 s/frame (which is capped at 49 frames).
Limitations and Future Work
- Lack of explicit geometry guidance: The current pipeline relies on the 2D ID-adapter to infer viewpoint shifts implicitly. The authors note that integrating explicit camera poses or 3D warping could improve stability in extreme perspective transformations.
- Step-transition artifacts: The context video relies on naive temporal keyframe duplication, which the context controller must smooth out during diffusion.
- Hardware requirements: Employing a 14B parameter generative video backbone (Wan2.1) paired with FLUX.Fill introduces substantial compute and GPU memory requirements during training and inference.
Summary updated