Diffusion models have shown strong potential for image matting by transferring generative priors learned from large-scale pretraining. However, existing approaches largely rely on latent diffusion models, whose compressed representations and VAE-based reconstruction introduce a mismatch with the high-frequency precision required for matting. We present PixelMatte, a framework that adapts pretrained pixel-space diffusion transformers for high-fidelity image matting. We show that strong image-conditioned matting capabilities can be acquired even from a pure text-to-image model without paired image-to-image pretraining. Our approach reuses the backbone's native patch embedding to jointly process the input image, trimap, and noisy alpha matte as spatially aligned tokens, enabling direct pixel-space prediction without additional condition encoders or adapters. With pixel-accurate synthetic supervision and real-image fine-tuning, PixelMatte predicts alpha mattes in a single forward pass. Two lightweight calibration modules, LayerShift and High-Pass Refiner, further improve regional opacity accuracy and boundary fidelity. Experiments across four benchmarks and two distinct pixel diffusion backbones demonstrate substantial improvements over existing methods, reducing SAD and gradient errors by 24-44% relative to RenderMatte on P3M-500-NP and AM-2K, while achieving competitive performance on AIM-500 and RenderMatte-2K. These results demonstrate the effectiveness of pixel-space generative priors for precision-sensitive image matting. Project page: https://white-yc.github.io/pixelmatte/.
Figures & tables
Figure 2: Overview of PixelMatte. (a) Latent diffusion matting predicts the matte as a latent code between a frozen VAE encoder and a frozen VAE decoder. (b) PixelMatte embeds the noisy matte, the image and the trimap as pixel tokens on a shared grid and predicts the matte in a single forward pass without a VAE. LayerShift acts inside the backbone, and the High-Pass Refiner refines the predicted matte.
Figure 3: Schematic illustration of regional alpha-level offsets and boundary smoothing in one-step matting. LayerShift adjusts the level offset β0 , and the High-Pass Refiner sharpens the over-wide transition βedge(d) . The profiles are illustrative, not measured.
P3M-500-NP
AM-2K
AIM-500
RM-2K
Method
SAD
MSE
Grad
Conn
SAD
MSE
Grad
Conn
SAD
MSE
Grad
Conn
SAD
MSE
Grad
Conn
DIM [ 44 ]
24.5
7.0
29.2
20.6
40.5
13.0
32.7
33.3
53.1
17.0
42.3
37.9
34.0
19.0
39.1
22.1
GCA [ 21 ]
6.2
1.0
9.8
4.5
6.3
0.9
5.5
4.8
23.4
7.6
15.9
12.1
8.4
4.0
12.1
5.0
IndexNet [ 29 ]
7.2
1.0
9.5
5.5
9.2
2.0
8.1
7.3
25.8
7.0
16.3
17.1
11.4
5.0
16.0
7.2
MatteFormer [ 31 ]
7.9
2.0
11.8
5.7
8.5
2.0
7.2
6.3
27.0
9.0
20.3
15.1
8.6
4.0
13.9
4.7
ViTMatte [ 46 ]
7.1
1.0
10.6
5.0
7.7
1.0
6.2
5.5
17.8
4.0
13.7
11.0
4.5
1.0
4.8
3.0
Table 1: Quantitative comparison on P3M-500-NP, AM-2K, AIM-500 and RenderMatte-2K (RM-2K). Lower is better for all metrics; MSE is reported in units of 10−3 ; the best results are in bold. † : native interaction format instead of a trimap.
Figure 4: Qualitative comparison on P3M-500-NP, AM-2K, AIM-500 and RM-2K. From left to right: input image, trimap, ViTMatte-B, RenderMatte, PixelMatte and the ground-truth alpha matte. Each row shows a zoomed region.
Configuration
SAD
MSE
Grad
Conn
HiDream-8B
one-step output, Eq. 4
3.74
0.84
2.94
3.42
+ High-Pass Refiner, Eq. 8
3.38
0.81
2.83
3.12
+ LayerShift, Eq. 6
3.66
0.82
2.90
3.33
+ LayerShift + High-Pass Refiner
3.31
0.80
2.81
3.04
PRX-7B
Table 2: Ablation of LayerShift and the High-Pass Refiner on RM-2K. Lower is better for all metrics; the best results per backbone are in bold.
Refiner input
P3M-500-NP
AM-2K
AIM-500
RM-2K
none (base)
4.52
4.68
12.39
3.67
true image
4.35
4.45
12.12
3.32
blur σ=4 px
4.40
4.54
12.24
3.32
another image
4.40
4.53
12.23
3.34
constant
4.44
4.57
12.26
3.33
retrained without image
4.40
4.50
12.21
3.29
Table 3: Dependence of the High-Pass Refiner on its RGB input (HiDream-8B with LayerShift, SAD, one noise seed). “Base”: no refinement. The image is replaced at inference; the last row retrains the refiner without RGB. Lower is better; best in bold.
Pixel subset
one-step
+ LayerShift
PixelMatte
all pixels
3.76
3.67
3.32
GT fractional ( 0<α<1 )
3.01
2.95
2.94
GT saturated ( α∈{0,1} )
0.75
0.72
0.38
within 3 px of contour
0.56
0.54
0.23
3–8 px from contour
0.09
0.09
0.06
beyond 8 px
0.10
0.10
0.08
Table 4: SAD on RM-2K by ground-truth alpha value and contour distance (HiDream-8B). Values are additive contributions to the total, up to rounding. Lower is better.
Figure 5: Visualization of opacity and boundary calibration. Each row compares the alpha mattes before and after a calibration module against the ground truth. Error maps show prediction minus ground truth, while correction maps show the matte after minus before, using a shared color scale. LayerShift adjusts regional opacity levels (top), whereas the High-Pass Refiner concentrates its corrections around fine boundaries (middle and bottom).
Model
P3M-500-NP
AM-2K
AIM-500
RM-2K
HiDream-8B, one-step
4.52
4.87
13.94
3.74
+ High-Pass Refiner
4.39
4.74
13.75
3.37
RenderMatte, one-step
5.87
5.94
13.21
3.33
+ High-Pass Refiner
5.72
5.80
12.85
3.28
Table 5: High-Pass Refiner on a pixel-space and a latent one-step model (SAD); each refiner is trained on its own backbone’s predictions with RenderMatte’s synthetic training set. Lower is better.
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×p×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× inference speedup. TokenMatte establishes a new auxiliary-free state of the art on VideoMatte, YouTubeMatte, and V-HIM60.
Pre-trained generative models offer rich visual priors for image matting, but their adaptation often relies on variational autoencoders (VAEs), whose spatial compression can degrade fine alpha details and introduce additional inference overhead. To address these limitations, we propose X-Matte, a VAE-free pixel-space flow matching framework for single-step image matting. By eliminating latent compression, X-Matte formulates the RGB-to-alpha transition as a continuous flow directly in pixel space. We adopt trajectory-wide x-prediction with transition-aware alpha supervision, enabling the model to learn from intermediate states while directly predicting the target alpha matte in a single forward pass. This design avoids both VAE encoding and decoding and iterative sampling. Extensive experiments demonstrate performance competitive with state-of-the-art trimap-free matting methods on P3M benchmarks, together with promising zero-shot generalization to RWP-636 and AIM-500. Moreover, X-Matte achieves up to a 9.4x inference speedup over a constructed single-step latent counterpart at high resolution, demonstrating the effectiveness of VAE-free pixel-space modeling for accurate and efficient image matting.
Zanyi Wang, Jiaang Li, Dengyang Jiang +6
UC San Diego · University of Copenhagen · HKUST +3
Image matting is an essential enabling technology for modern visual content production, where foreground extraction determines the realism and editability of downstream creation workflows. However, precise alpha estimation in open-world scenes remains challenging because real foregrounds exhibit highly diverse appearances and opacity patterns. This makes existing methods struggle with semantic ambiguity and fine-grained opacity variation, especially in sparse boundary regions that are fragile and difficult to supervise. To address this gap, we present RenderMatte, a trimap-guided matting framework that adapts FLUX.1 Kontext through full-parameter fine-tuning, leveraging image editing priors for structure-preserving alpha prediction. During supervised adaptation, an alpha-edge objective preserves the latent flow-matching signal while strengthening pixel-space boundary supervision. We further introduce group-relative alpha alignment for post-training. It compares multiple mattes sampled under the same trimap condition using matting-specific rewards for alpha accuracy, boundary fidelity, trimap compliance, and compositional consistency. To overcome the lack of precise edge annotations, we construct the RenderMatte dataset, a large-scale synthetic dataset combining 3D-rendered RGBA foregrounds with diverse multi-source assets. It features exact strand-level alpha annotations and diverse background composites. Experiments show state-of-the-art performance across all benchmarks, demonstrating a scalable path toward high-fidelity matting in open-world scenes.
Zecheng Ren, Yafei Hu, Jianing Zhao +3
Waseda University · Shanghai Jiao Tong University · National University of Singapore