TokenMatte: Unlocking T2V Diffusion Priors for Pixel-Native Video Matting

Zanyi Wang, Dengyang Jiang, Fengfei Yu, Shilong LiuarXiv 2026

TL;DR

Video matting—predicting the exact fractional transparency of flying hair and motion blur—usually hits a painful wall when borrowing power from video diffusion models, because their latent image compressors chew up fine details. TokenMatte sidesteps this completely by replacing the heavy, lossy decoder with a single linear equation that reads crisp alpha pixels directly off the diffusion transformer’s tokens. The result is a $1.51\times$ faster, prompt-free matting system that sets a new state of the art using only existing public data.

What Problem Does This Paper Address?

Imagine trying to cut an actor with frizzy hair out of a windy scene, without a green screen, and without clicking on them first to give the AI a hint. Unlike binary segmentation (is this pixel foreground or background?), video matting estimates alpha: a continuous, per-pixel opacity value between 0 and 1 that captures semi-transparent wisps, glass, and motion blur smoothly across time.

The catch? Annotating continuous alpha for real video is brutally expensive, leaving public datasets small and synthetic. Recently, researchers realized they could bridge this data gap using pretrained text-to-video (T2V) models, which already understand real-world objects and motion. However, generative video models operate in a compressed "latent space" managed by a Variational Autoencoder (VAE) trained for natural RGB images. Forcing delicate alpha mattes through an $8\times$-compressed RGB VAE blurs out sub-pixel hair before learning even begins, while decoding back to high-res pixels adds massive latency at test time.

Figure 1. Latent-based vs. our native pixel-based training. (a) Latent supervision encodes the GT matte through a frozen VAE and supervises in latent space; the alpha target must survive a VAE round-trip, and the pixel objective only reaches the model through the decoder. (b) We never encode the alpha target: a readout module unfolds each token directly into pixels, supervised in pixel space. (c) Quality bottleneck—the GT matte incurs reconstruction error after a VAE round-trip, revealing an empirical ceiling for alpha reconstruc- tion, especially on detail-heavy data (VideoMatte 3.50, V-HIM60 1.22, YouTubeMatte 0.54, MAD). (d) Speed bottleneck—removing the VAE-decode stage cuts per-clip latency from 576 ms to 382 ms, a 1.51× saving at equal depth.

Methods

TokenMatte adapts a pretrained 1.3B-parameter video Diffusion Transformer (DiT), specifically Wan2.1, into a direct RGB-to-alpha translator—requiring zero masks, trimaps, or prompts at inference.

  • What stays standard: Input RGB video still enters through the frozen, pretrained VAE encoder so the DiT receives visual representations in the format it expects.
  • Single-pass deterministic backbone: Instead of running dozens of iterative denoising steps, the authors fix the diffusion timestep ($\tau = \tau_0$) and inject zero noise ($\epsilon = 0$). They fine-tune the full DiT backbone to deterministically transform RGB tokens into alpha-ready tokens in a single forward pass.
  • The novel twist—Pixel-Native Linear Readout: Because a DiT arranges video into a strict grid of spatio-temporal patches, each token already corresponds to a specific $(t \times p \times p)$ block of pixels. Rather than feeding tokens into a VAE decoder, TokenMatte applies one shared linear projection ($\mathbf{W}\mathbf{z}_{ijk} + \mathbf{b}$) to each token and reshapes the output directly into its local block of alpha pixels. Tiling these blocks yields the full-resolution matte, supervised purely in pixel space with a simple $\ell_1$ loss.
Figure 2. Method Overview. From an RGB video, a frozen VAE encoder produces latent tokens and a pretrained T2V backbone runs one deterministic pass (τ = τ0, ϵ = 0) to yield a spatio-temporal token field (Sec. 3.1). A shared linear head unfolds each token into its local block of alpha pixels (Sec. 3.2), supervised in pixel space with no alpha encoding or VAE decoding (Sec. 3.3).

Datasets

Unlike recent competitors that curate massive, proprietary pseudo-labeled datasets, TokenMatte introduces no new datasets, relying strictly on existing public supervision:

  • Training: VideoMatte240K (479 green-screen clips), P3M-10K (9,421 portrait images), and V-HIM2K5 (2,461 multi-instance clips).
  • Evaluation: Evaluated zero-shot (auxiliary-free) on VideoMatte (1080p composited clips), YouTubeMatte (1080p harmonized real-world footage), and V-HIM60 (challenging multi-person scenes split into Easy, Medium, and Hard).

Key Insights and Ideas

  • The VAE sets a hard ceiling on quality: If you take a perfect ground-truth alpha matte and simply compress and decompress it through a frozen video VAE (an "oracle round-trip"), you immediately suffer severe error—up to 3.50 Mean Absolute Difference (MAD) on detail-heavy VideoMatte. Skipping target-side VAEs removes this artificial ceiling at the root.
  • A single matrix beats a convolutional decoder: You might expect raw linear patch unfolding to leave blocky seams, requiring a convolutional network to smooth things out. Surprisingly, swapping the linear head for a local convolutional decoder gave no meaningful gain (5.09 vs. 5.11 MAD, and slightly worse boundary gradients). The DiT's self-attention already handles cross-patch continuity.
  • Train short, infer long: Although trained solely on 21-frame clips, running full 100-frame sequences in a single unwindowed pass at test time actually improves spatial accuracy (dropping MAD from 6.04 to 5.11) while keeping temporal stability rock-solid.

Key Results

TokenMatte establishes a new state of the art among auxiliary-free methods across all three benchmarks:

  • Accuracy: On VideoMatte, it cuts gradient error (which measures boundary sharpness) nearly in half compared to the generative baseline GVM (4.34 vs. 8.04). On YouTubeMatte, its 1.21 MAD not only beats auxiliary-free GVM (2.68) by more than $2\times$, it even outperforms mask-guided VideoMaMa (1.36), which gets to cheat using first-frame SAM2 masks! On V-HIM60 (Hard), it slashes MAD from 11.04 (GVM) down to 6.09.
  • Speed: Bypassing the high-resolution VAE decode pass drops latency on a 100-frame 1080p clip from 576 ms to 382 ms on a single A100 GPU—a $1.51\times$ speedup over an identical latent-output baseline.
  • Zero-shot generalization: Despite training mostly on human portraits, the inherited T2V prior lets TokenMatte cleanly extract animal whiskers, translucent jellyfish tentacles, soap bubbles, and fast water spray.
Figure 3. Qualitative comparison with auxiliary-free methods. We compare TokenMatte with RVM and latent-based GVM across three video frames. The blue and orange boxes indicate regions magnified on the right. RVM produces diffuse alpha boundaries, while GVM exhibits over-smoothed predictions that blur fine structures and merge neighboring details. In contrast, TokenMatte preserves sharper boundaries and finer, more separated alpha structures without auxiliary inputs.

Limitations and Future Work

Not explicitly given a dedicated section by the authors, though a few practical constraints surface in their experiments:

  • Full fine-tuning is required for generalization: When the authors tried parameter-efficient LoRA instead of full-backbone fine-tuning, cross-dataset performance collapsed on YouTubeMatte (16.4 vs. 1.21 MAD), meaning you have to pay the memory cost of tuning the whole 1.3B DiT.
  • Boundary metrics in heavy crowds: On the hardest multi-human split (V-HIM60 Hard), while TokenMatte wins handily on overall error (MAD) and connectivity, GVM still edges it out slightly on spatial gradient (13.52 vs. 15.87) and temporal flicker (dtSSD 4.11 vs. 4.40).
  • Richer local readouts: The authors note they intentionally picked the simplest linear readout to prove a point, leaving open the question of whether more sophisticated pixel-space heads could squeeze out even finer detail.

Summary updated

Abstract

High-resolution video matting requires accurate recovery of continuous alpha values, including fine hair, soft boundaries, and motion blur, yet dense alpha supervision remains scarce. Pretrained text-to-video diffusion transformers (DiTs) offer rich spatio-temporal priors, whereas existing generative video matting approaches typically route alpha predictions through RGB-trained VAE latents, which can attenuate fine details and introduce additional decoding overhead. We present TokenMatte, which adapts a pretrained video DiT into a single-pass, auxiliary-free RGB-to-alpha predictor with a pixel-native output interface. At its core is a single shared linear readout that maps each spatio-temporal token directly to its corresponding ($t \times p \times p$) block of alpha pixels, predicting spatial details and temporal variations within the same local video block. Tiling these blocks produces the full-resolution alpha sequence without a convolutional decoder or learned upsampling. The predicted alpha is supervised directly in pixel space, while the ground-truth alpha never enters the VAE, eliminating target-side alpha encoding and output-side VAE decoding. Leveraging the pretrained video prior, TokenMatte is trained using only existing public matting datasets, without additional data curation or auxiliary inputs at inference. Compared with a matched latent-output baseline, our pixel-native interface improves matting accuracy while achieving a 1.51$\times$ inference speedup. TokenMatte establishes a new auxiliary-free state of the art on VideoMatte, YouTubeMatte, and V-HIM60.
BibTeX
@misc{wang2026tokenmatte,
  author = {Zanyi Wang and Dengyang Jiang and Fengfei Yu and Shilong Liu},
  title = {{TokenMatte: Unlocking T2V Diffusion Priors for Pixel-Native Video Matting}},
  year = {2026},
  eprint = {2611.32675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32675},
}
Figure