Static-to-Dynamic: Animating Still Mattes via Generative Motion for Video Matting

Suqi Song, Jiaqi Xu, Jialuo He, Renjing Pei, Lei Chen, Lei ZhuNeurIPS 2026

TL;DR

Training models to cleanly cut moving people out of videos—down to individual strands of flying hair—is bottlenecked by a severe lack of realistic video training data. This paper introduces Static-to-Dynamic (S2D), a clever pipeline that hijacks an image-to-video diffusion model to animate thousands of annotated still photos into realistic video clips, simultaneously pulling high-precision transparency masks straight out of the generator's internal brainwaves.

Figure 1: Overview of S2D paradigm. S2D transforms a labeled static image into a dynamic video clip and its corresponding matte sequence. The image-to-video branch introduces motion and temporal variation, while the prior-guided matte synthesis branch transfers the static annotation to generated frames, enabling scalable construction of video-matte pairs from image matting data.

What Problem Does This Paper Address?

Unlike standard object segmentation (which outputs binary, blocky masks), video matting estimates continuous "alpha mattes"—pixel-by-pixel transparency values between 0 and 1 needed to capture wisps of hair, semi-transparent fabrics, and motion blur.

Getting ground-truth alpha mattes for video is notoriously painful. You usually have to film actors in green-screen studios and paste them onto random background videos. The resulting "Frankenstein" composites lack realistic lighting interactions, natural edge blending, and camera motion blur, causing models trained on them to stumble on real-world footage. Meanwhile, we already have plenty of high-quality annotated still images. The authors ask: can we use modern video generative models to breathe motion into those static image-matte pairs, automatically generating matching, realistic video-matte datasets at scale?

Methods

The S2D framework uses an existing image-to-video Diffusion Transformer (Wan2.2) alongside a vision-language model (Qwen-VL) that writes motion prompts to animate a static image. Because the generator knows how it is moving the person, S2D taps into its internal features to drag the first frame's ground-truth matte along for the ride.

Figure 2: Architecture of S2D framework for video-matte generation. S2D establishes a text-image to video pipeline to animate a static image-matte pair based on motion prompts. The video label generation process consists of two core components: (a) Latent Matte Propagation (LMP), which extracts attention-based affinities from the DiT backbone to facilitate accurate matte transfer across frames in the latent space; and (b) a Coarse-to-Fine Matte Decoder, which fuses the propagated latent matte with multi-scale VAE decoder features to recover high-resolution alpha mattes.

This happens in three novel steps:

  1. Latent Matte Propagation (LMP): Inside the Diffusion Transformer, self-attention layers naturally track how parts of the anchor image move across generated frames. LMP averages these attention maps to propagate the downsampled first-frame matte through time in compressed latent space. Crucially, the authors strip out Rotary Positional Embeddings (RoPE) when matching across frames to avoid spatial bias, then multiply by a RoPE-conditioned within-frame self-attention map to keep object shapes tidy.
  2. Coarse-to-Fine Matte Decoder: Because video latents are heavily squashed (16× spatially, 4× temporally), propagated mattes are blurry blobs. A lightweight, trained decoder takes these coarse mattes and fuses them with multi-scale features extracted from the generator's VAE decoder, reconstructing crisp, pixel-level hair and edge details.
  3. Self-Corrected Progressive Training (SC-PT): Synthetic labels inevitably contain some noise. When training downstream matting models, they first train at low resolution on clean + synthetic data. Before moving to high-resolution, long-sequence refinement, this stage-one model re-evaluates the synthetic dataset—checking frame-0 predictions against the true static matte and verifying temporal smoothness—to repair noisy pseudo-labels.

Datasets

  • Source Image Datasets: Static portraits and mattes are filtered from HHM50K, RWP-636, and PPM-100 (with VM240K and HHM50K used to train the Matte Decoder).
  • S2D-VM (New): Built via S2D, this synthetic dataset contains 14,000 paired video clips (1M frames) featuring diverse aspect ratios, lighting changes, and camera movements (pans, zooms, shakes). For context, standard synthetic datasets like VideoMatte240K (VM240K) and VM800 contain only 484 and 826 green-screen composite videos, respectively.
  • Evaluation Benchmarks: Downstream models are tested on two synthetic benchmarks (VideoMatte, YoutubeMatte) and one real-world benchmark (CRGNN).

Key Insights and Ideas

  • Positional encodings cause "ghosting" when objects move: Standard transformer attention uses RoPE, which encourages tokens to attend to tokens at the same (x, y) coordinates. If a person's hand moves away, RoPE-based cross-frame attention stubbornly keeps looking at where the hand used to be, leaking foreground alpha into the newly revealed background! Stripping RoPE for cross-frame matching forces pure semantic tracking, cleanly eliminating ghosts.
Eliminating ghosting artifacts by removing RoPE
  • VAE decoders are secret treasure troves for fine edges: Diffusion cross-attention maps are famously blobby—fine for coarse segmentation, terrible for hair strands. By tapping into the VAE decoder's multi-scale features during pixel reconstruction, S2D recovers sub-pixel alpha transitions without asking the diffusion bottleneck to do all the heavy lifting.
  • Synthetic motion beats green-screen pasting: Training a matting model solely on S2D-VM outperforms training on clean green-screen composites (VM240K) plus segmentation data in overall accuracy, proving that realistic generative motion and lighting narrow the real-world domain gap.

Key Results

The authors plug S2D-VM and their progressive training into two established architectures—RVM-Large (auxiliary-free) and MatAnyone (mask-guided)—keeping the models themselves unchanged:

  • Consistent SOTA: Both models improve across virtually every metric and benchmark. On HD YoutubeMatte ($1920 \times 1080$), MatAnyone+S2D slashes Mean Absolute Difference (MAD) from 1.99 to 1.54, Gradient error (detail fidelity) from 8.91 to 5.54, and temporal flicker (dtSSD) from 1.65 to 1.42.
  • Real-World Gains: On the real-world CRGNN benchmark, MatAnyone+S2D drops MAD from 5.76 to 4.87 and MSE from 3.04 to 2.38.
  • Scaling Law: Testing subsets from 2K up to 14K clips shows monotonic improvements across all error metrics. Qualitatively, S2D-trained models track fast, motion-blurred hands without dropping limbs and preserve delicate flyaway hair in tricky lighting.

Limitations and Future Work

While there is no dedicated limitations section, the authors explicitly note two practical constraints in their pipeline:

  • Unavoidable pseudo-label noise: Generated mattes aren't ground-truth perfect—especially regarding boundary noise and temporal jitter during high-resolution, long-sequence training—which necessitated inventing the Self-Corrected Progressive Training workaround.
  • Offline training approximation: Because ground-truth videos aren't produced by Wan2.2, training the Coarse-to-Fine Matte Decoder requires approximating inference artifacts offline (e.g., adding random morphological dilation, erosion, and Gaussian noise to clean mattes).

Future directions are not explicitly discussed in the paper.

Summary updated

Abstract

Video matting is essential for high-precision foreground extraction, yet its development is constrained by the scarcity of diverse annotated training data. To address this, we propose Static-to-Dynamic (S2D), a novel generative paradigm that scales video matting data by animating still labeled images into high-fidelity video-matte pairs. Starting from a static image-matte pair, S2D leverages an image-to-video generative model to synthesize realistic motion and scene dynamics, while simultaneously producing pseudo alpha labels from generative priors. Specifically, we introduce Latent Matte Propagation (LMP), which propagates the first-frame matte to subsequent generated frames via the attention mechanisms in the diffusion transformer. We further design a Coarse-to-Fine Matte Decoder to recover pixel-level alpha details from compressed latent representations using multi-scale generative features. Based on this paradigm, we build S2D-VM, a large-scale dataset containing 14K high-fidelity paired video clips. We also propose a Self-Corrected Progressive Training strategy to mitigate pseudo-label noise during optimization. Experiments show that S2D effectively scales video matting data and consistently improves the performance of existing models across multiple benchmarks.
BibTeX
@inproceedings{song2026static,
  author = {Suqi Song and Jiaqi Xu and Jialuo He and Renjing Pei and Lei Chen and Lei Zhu},
  title = {{Static-to-Dynamic: Animating Still Mattes via Generative Motion for Video Matting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QGTLErB1Eo},
}
Figure