# VideoMaMa++: Temporally Consistent Video Matting via Preserve-and-Refine Tokens

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148674) · [OpenReview](https://openreview.net/forum?id=vxJjCRu1Km) · [Open on the map](../papers.html#p148674)

Category: [Video Understanding & Generation](../pcat/3.md) › [Video Diffusion Generation](../pgroup/133.md) · Type: new method · Keywords: video matting, diffusion model, temporal consistency, preserve token, refine token

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Creation and Editing › Video Generation; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Video Generation › Long Video Generation; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Video Generation

## Summary
VideoMaMa++ introduces a mask-guided diffusion matting framework with preserve-and-refine tokens that enables temporally consistent video matting across long videos by propagating mattes across chunk boundaries.

## Explained to a 5-year-old
Some computers try to cut out people from videos, but they only look at a few frames at a time, so the edges jump. The new system remembers what it saw before and uses that memory to keep the edges smooth across the whole video. It also uses a special anchor to help the memory stay accurate. This makes the video look nicer and more realistic. The system can work on long videos without losing quality.

## Explained to a 5-year-old, longer
When we watch a video, we sometimes want to see only the person and not the background. Computers can do this by making a mask that shows where the person is and hides everything else. Some computer methods use a technique called diffusion, which works well but needs a lot of computer power. Because of the high power cost, they can only look at a short piece of the video at a time, like six to twenty-four frames. When you switch from one short piece to the next, the mask can change suddenly, making the edges look shaky or flickering. The new idea is to keep a memory of the mask from the previous piece and use it for the next piece. To do this, the system uses two special tokens that act like a reminder and a correction. The reminder token holds the previous mask, while the correction token refines it with the new video information. The system also keeps a shared anchor that helps the memory stay consistent over many pieces. By sliding a window across the video and passing the previous results forward, the edges stay smooth. This way, even very long videos can be processed without the mask jumping. The result is a cleaner, more realistic video where the person stays clearly separated from the background.

## For a technical reader
The paper addresses the problem that diffusion-based video matting models can only process short video chunks because of high computational cost, leading to inconsistent masks at chunk boundaries. They propose a mask-guided diffusion framework that treats RGB and mask information as separate token streams and lets them interact through full spatio-temporal self-attention. Two learnable embeddings, called preserve and refine tokens, act as a per-frame conditioning interface that enables a sliding-window inference scheme where previously generated mattes are propagated across chunks. A globally shared reference anchor is used in each chunk to prevent error accumulation over long sequences, all without requiring additional training. Experiments on standard benchmarks and in-the-wild long footage show that the approach improves both fine-detail accuracy and temporal consistency, especially maintaining smooth edges across chunk boundaries.

## Problem
Existing diffusion-based video matting methods process only short video chunks, leading to inconsistent results and flickering edges at chunk boundaries because each chunk is matted independently.

## Method
The approach uses separate RGB and mask token streams that interact via spatio-temporal self-attention, and introduces learnable preserve and refine tokens to propagate previously generated mattes across chunk boundaries while using a globally shared reference anchor to prevent error accumulation.

## Results
The approach achieves superior fine-detail accuracy and temporal consistency compared to prior diffusion-based methods and uniquely maintains consistency across chunk boundaries on long videos.

## Contributions
The paper proposes separate RGB and mask token streams with spatio-temporal attention, and introduces preserve and refine tokens for sliding-window inference that propagate mattes across chunk boundaries while using a shared reference anchor to prevent error accumulation.

## Limitations and assumptions
The approach relies on short chunk processing due to the computational cost of diffusion backbones, limiting inference to 6-24 frames per chunk.

## Research questions this paper is counted under

- [How can video processing methods ensure temporal consistency while preserving visual quality?](../q/485.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148674)
