NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VideoMaMa: Mask-Guided Video Matting via Generative Prior

Sangbeom Lim, Seoung Wug Oh, Jiahui Huang, Heeji Yoon, Seungryong Kim, Joon-Young Lee

TL;DR

VideoMaMa leverages the powerful generative priors of pretrained video diffusion models to convert coarse binary segmentation masks into pixel-accurate alpha mattes. By applying this model as a pseudo-labeler on a massive scale, the authors introduce MA-V, the first real-world video matting dataset containing over 50,000 videos, significantly advancing the robustness of downstream video matting models in the wild.

What Problem Does This Paper Address?

Video matting—the task of extracting foreground objects from a video with pixel-level opacity values (alpha mattes)—is essential for high-quality video editing, background replacement, and visual composition. However, training models to perform robustly on real-world footage is incredibly difficult due to a severe lack of data.

Acquiring ground-truth alpha mattes requires highly controlled environments like chroma-key (green screen) studios or specialized camera setups. Consequently, existing datasets are small and mostly limited to human portraits. To scale up, researchers typically resort to synthetic composition (pasting foregrounds onto random backgrounds), which introduces a glaring domain gap: artificial lighting, unrealistic motion blur, and poor temporal consistency.

This paper addresses this bottleneck by finding a way to turn easily accessible, real-world binary segmentation masks into high-quality, continuous alpha mattes.

Methods

The authors present the Video Mask-to-Matte Model (VideoMaMa), built on top of Stable Video Diffusion (SVD). Instead of running a traditional multi-step diffusion denoising process, VideoMaMa is formulated as a single-step generative model (using v-parameterization) that directly predicts clean alpha matte latents from a combination of video frames, input masks, and Gaussian noise.

Overview of VideoMaMa architecture

To make this architecture work effectively for matting, the authors introduced three key strategies:

  1. Two-Stage Training: To capture fine details without overwhelming computational resources, they first train only the spatial layers at high resolution ($1024 \times 1024$) on single frames. In the second stage, they freeze the spatial layers and train the temporal layers at a lower resolution ($704 \times 704$) on video sequences to ensure temporal consistency.
  2. Mask Augmentation: To prevent the model from simply copying the input binary mask, they apply Polygon Degradation (simplifying boundaries) and Downsampling Degradation during training. This forces the network to look at the actual RGB video frames to infer fine details like hair strands or motion blur.
  3. Semantic Knowledge Injection: They align intermediate features of the diffusion model with robust semantic representations from a frozen DINOv3 encoder, improving the model's understanding of object boundaries and complex structures.

Datasets

  • MA-V (Matting Anything in Videos): The landmark dataset introduced in this paper. By running VideoMaMa over the SA-V segmentation dataset, the authors generated 50,541 real-world videos with high-quality matting annotations. This is nearly 50× larger than existing real-video matting datasets and covers diverse, non-human object categories where foreground and background naturally co-occur.
  • Existing Datasets (for baseline training): Synthetic or composition-based datasets including VideoMatte240K, VideoMatting108, VM800, SynHairMan, and CRGNN.
  • Evaluation Benchmarks: V-HIM60 Hard, YouTubeMatte, and DAVIS.
Qualitative examples from the MA-V dataset

Key Insights and Ideas

  • Generative Priors as Perception Refiners: Pretrained video diffusion models already possess a deep understanding of natural lighting, motion blur, and video dynamics. Instead of learning matting from scratch, VideoMaMa successfully repurposes these generative priors for a dense perception task.
  • Decoupling Localization from Matting: By conditioning the model on a binary mask, the network doesn't have to waste capacity figuring out what object to segment. It can focus entirely on generating realistic, fine-grained boundary details.
  • The Power of Real-World Pseudo-Labels: Even though pseudo-labels aren't perfect "ground truth," training downstream models on a massive scale of real-world videos (MA-V) yields far better generalization to in-the-wild footage than training on perfectly clean but synthetically composited data.

Key Results

  • VideoMaMa Superiority: On all-frame mask-guided benchmarks (V-HIM60 and YouTubeMatte), VideoMaMa consistently outperformed existing mask-guided matting methods like MaGGIe and MGM, achieving significantly lower Mean Absolute Difference (MAD) and Gradient errors across various mask degradation types.
  • SAM2-Matte: To prove the utility of the MA-V dataset, the authors fine-tuned a standard SAM2 model on it (converting its mask logits to alpha values via a sigmoid function). This variant, SAM2-Matte, dramatically outperformed the base SAM2 and other state-of-the-art models like MatAnyone on real-world videos, demonstrating robust tracking and sharp boundary delineation.
Qualitative comparison on in-the-wild videos

Limitations and Future Work

  • Garbage In, Garbage Out: Because VideoMaMa is strictly mask-guided, it is highly sensitive to the semantic accuracy of the input mask. If the initial segmentation model tracks the completely wrong instance, VideoMaMa will propagate that error and matte the wrong object.
  • Downstream Architectural Bottlenecks: When fine-tuning SAM2 into SAM2-Matte, the model is constrained by SAM2's native mask decoder architecture, which generates internal masks at a low resolution ($64 \times 64$) before upsampling. This can lead to a loss of critical high-frequency details. The authors note that adapting more specialized high-resolution matting architectures for large-scale training is a promising future direction.

Summary updated

BibTeX
@inproceedings{lim2026videomama,
  author = {Sangbeom Lim and Seoung Wug Oh and Jiahui Huang and Heeji Yoon and Seungryong Kim and Joon-Young Lee},
  title = {{VideoMaMa: Mask-Guided Video Matting via Generative Prior}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=4Djq1AiqaU},
}
Figure