TL;DR
VideoMaMa leverages the powerful generative priors of pretrained video diffusion models to convert coarse binary segmentation masks into pixel-accurate video alpha mattes. By using this model as a scalable pseudo-labeler, the authors introduced MA-V, the first massive real-world video matting dataset containing over 50,000 videos, significantly advancing the robustness of downstream video matting models.
What Problem Does This Paper Address?
While video segmentation draws a hard line between an object and its background (binary 0 or 1), video matting calculates pixel-level opacity (an alpha matte between 0 and 1). This is crucial for realistic video editing, capturing fine details like flying hair strands, motion blur, and semi-transparent reflections.
The core bottleneck in video matting is data scarcity. Obtaining ground-truth alpha mattes requires highly controlled environments like green screens or specialized camera rigs, making large-scale data collection incredibly difficult. Consequently, existing datasets are small and mostly synthetic—created by pasting foregrounds onto random backgrounds. This introduces a severe domain gap, as models trained on synthetic data struggle with the complex lighting and natural interactions found in real-world footage.
Methods
The authors introduce the Video Mask-to-Matte Model (VideoMaMa), which decouples the problem into two parts: letting existing segmentation models handle where the object is, and using a generative model to determine how the fine-grained edges look.
Key technical components include:
- Diffusion-Based Latent Formulation: Built on top of Stable Video Diffusion (SVD), VideoMaMa operates in a compressed latent space. It takes frame latents, mask latents, and Gaussian noise as inputs to directly predict clean alpha matte latents in a single forward pass (using $v$-parameterization), making it highly efficient.
- Semantic Knowledge Injection: To prevent the model from losing track of complex or overlapping objects, the authors inject robust semantic features from a frozen DINOv3 encoder into the SVD U-Net layers during training.
- Mask Augmentation Strategy: If the input mask is too perfect, a diffusion model might simply copy it. To force VideoMaMa to look at the actual RGB video frames for details, the authors apply polygonization (simplifying boundaries) and downsample degradation to the input masks during training.
- Two-Stage Training: To handle high-resolution processing without melting GPUs, the model first trains its spatial layers on high-resolution single frames (1024×1024) to capture fine details. In the second stage, the spatial layers are frozen, and the temporal layers are fine-tuned on lower-resolution video clips (704×704) to ensure temporal consistency.
Datasets
VideoMaMa was evaluated against standard benchmarks and used to construct a massive new dataset:
- Existing Benchmarks: Evaluated on V-HIM60 and YouTubeMatte to test performance against degraded and model-generated masks.
- Matting Anything in Videos (MA-V) Dataset: The primary data contribution of this paper. By running VideoMaMa over the binary masks of the SA-V dataset, the authors generated 50,541 high-quality real-world video matting annotations. This is nearly 50× larger than any existing real-video matting dataset and features diverse, naturally occurring foreground-background interactions.
Key Insights and Ideas
- Generative Models as Labelers: Instead of using diffusion models to generate entirely new imagery, this paper highlights their utility as refiners. Pretrained video diffusion models already understand how light, motion blur, and textures behave in the real world; VideoMaMa successfully channels this prior knowledge into the task of edge refinement.
- Breaking the Copy-Paste Habit: The inclusion of mask augmentation (shown below) is a clever fix for a common failure mode in conditional generation, forcing the network to actively synthesize details from the RGB context rather than lazily tracing the conditioning input.
Key Results
VideoMaMa demonstrates remarkable zero-shot generalization to real-world footage despite being trained purely on synthetic data.
Quantitative Performance
- All-Frame Mask Guidance: On the V-HIM60 (Hard) benchmark using SAM2-generated masks, VideoMaMa achieved a MAD (Misalignment Displacement) score of 2.435, significantly outperforming competing mask-guided methods like MaGGIe (3.156) and MGM (66.522).
- Downstream Boosting (SAM2-Matte): To prove the worth of the new MA-V dataset, the authors fine-tuned a standard SAM2 architecture on it without any structural modifications. This model (SAM2-Matte) achieved state-of-the-art performance on the YouTubeMatte benchmark, outperforming specialized architectures like MatAnyone.
Qualitative Performance
As seen in the comparisons, VideoMaMa excels at extracting fine details like wispy hair and complex silhouettes from real-world, in-the-wild videos where previous methods suffer from severe artifacts or boundary degradation.
Limitations and Future Work
While VideoMaMa represents a massive leap forward for scalable video matting, a few limitations remain:
- Dependence on Mask Quality: Although robust to degraded masks, the model still relies on an initial segmentation cue. If the underlying tracker completely misses an object or groups it incorrectly, VideoMaMa cannot recover the correct topology.
- Single-Step Inference Trade-offs: Utilizing a single-step generation process ensures the pipeline is fast enough to pseudo-label 50K videos, but it may occasionally miss ultra-fine, sub-pixel structures that iterative, multi-step denoising could capture.
Summary updated