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.
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.
This happens in three novel steps:
- 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.
- 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.
- 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.
- 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+S2Dslashes 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+S2Ddrops 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