PixelMatte: High-Fidelity Image Matting with Pixel-Space Diffusion Transformers

Baihan Yang1· Xin Lin1· Yufan Wei1· Baiang Li2· Yuheng Liu3· Juanxi Tian4· Xiaohui Xie3· Truong Nguyen1
1UC San Diego 2Princeton University 3UC Irvine 4Nanyang Technological University
Inputs with trimaps, PixelMatte alpha mattes and zoomed regions for four images, next to a radar chart of errors on four test sets
PixelMatte performs generative trimap matting in one step, directly in pixel space. Left: the inputs with the trimap inset, our predicted mattes, and zoomed regions. Right: SAD, Grad and Conn on four test sets against published methods; each axis is the lowest plotted error divided by the method's error, so outer is lower.

Abstract

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.

Method

Latent diffusion matting predicts the matte as a compressed code between a frozen VAE encoder and a frozen VAE decoder. PixelMatte removes both: a pretrained pixel-space diffusion transformer reads the image, the trimap and the noisy matte as pixel tokens and writes the alpha matte directly.

  • Spatially aligned conditioning. The image, the trimap and the noisy matte go through the backbone's own patch embedding and share one spatial grid, so no condition encoder or adapter is added.
  • One-step prediction. After fine-tuning on pixel-accurate synthetic composites and real photographs, the model predicts the matte in a single forward pass.
  • LayerShift. One learned vector per transformer layer, added to the tokens of the unknown region while the backbone stays frozen, calibrates regional opacity.
  • High-Pass Refiner. A small residual network whose output passes through a high-pass operator sharpens boundary transitions of the predicted matte.
Diagram comparing latent diffusion matting with a VAE encoder and decoder to PixelMatte, which embeds the noisy matte, image and trimap as aligned pixel tokens
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.

Results

We evaluate two backbones, PRX-7B and HiDream-O1-Image 8B, on P3M-500-NP, AM-2K, AIM-500 and RenderMatte-2K with their released trimaps. Inference is a single forward pass without test-time augmentation.

Method P3M-500-NP AM-2K AIM-500 RM-2K
SADGrad SADGrad SADGrad SADGrad
ViTMatte7.110.67.76.217.813.74.54.8
DiffMatte6.610.06.85.717.213.54.34.4
RenderMatte6.28.26.55.513.611.23.63.0
PixelMatte (PRX-7B)4.75.64.63.412.78.53.53.2
PixelMatte (HiDream-8B)4.34.64.43.112.67.73.32.8

SAD and Grad, lower is better; best in bold. Results of prior methods are the published numbers collected by RenderMatte. The paper reports all nine compared methods with MSE and Conn.

Rows of zoomed regions comparing the input, trimap, ViTMatte-B, RenderMatte, PixelMatte and the ground-truth alpha matte
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.

Opacity and Boundary Calibration

The two calibration modules act on different errors of the one-step prediction. LayerShift adjusts opacity over extended regions, and the High-Pass Refiner makes localized corrections along object contours.

Alpha mattes before and after each calibration module with error maps and correction maps
Each row compares the alpha mattes before and after a calibration module against the ground truth. Error maps show prediction minus ground truth, and correction maps show the matte after minus before, on a shared color scale. LayerShift adjusts regional opacity levels (top), whereas the High-Pass Refiner concentrates its corrections around fine boundaries (middle and bottom).

BibTeX

@misc{yang2026pixelmatte,
  title         = {High-Fidelity Image Matting with Pixel-Space Diffusion Transformers},
  author        = {Baihan Yang and Xin Lin and Yufan Wei and Baiang Li and Yuheng Liu and Juanxi Tian and Xiaohui Xie and Truong Nguyen},
  year          = {2026},
  eprint        = {2611.34929},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2611.34929}
}