Diffusion models have demonstrated strong potential for image matting by transferring generative priors from large-scale pretraining. However, existing approaches largely depend on latent diffusion models, whose compressed representations and VAE-based reconstruction create a mismatch with the high-frequency precision required for accurate matting. This mismatch limits the fidelity of predicted alpha mattes, particularly at fine details and boundaries.

From latent representations to pixel-space processing

Latent diffusion models operate in a compressed latent space, requiring a variational autoencoder to map images to latents and back. The encoding and decoding stages introduce approximations that blur high-frequency details—precisely the information needed for successful image matting, where accurate transparency matte prediction demands pixel-level precision. Prior work has addressed this by adding specialized condition encoders or adapters, but these increase complexity and introduce additional training overhead.

PixelMatte: a pixel-space diffusion transformer approach

PixelMatte adapts pretrained pixel-space diffusion transformers for high-fidelity image matting. The framework reuses the backbone's native patch embedding to jointly process the input image, trimap, and noisy alpha matte as spatially aligned tokens. This design eliminates the need for additional condition encoders or adapters, since the patch embedding itself serves as the shared representation space for all three inputs.

The jointly tokenized inputs flow through the diffusion transformer, which predicts the alpha matte directly in pixel space. Synthetic supervision at pixel-accurate quality trains the model on carefully generated ground-truth mattes, while real-image fine-tuning ensures robustness to natural image statistics. The entire prediction occurs in a single forward pass, making the approach both efficient and effective.

Lightweight calibration modules

Two lightweight calibration modules further refine the predicted matte. LayerShift adjusts regional opacity accuracy by shifting activation patterns across layers, while High-Pass Refiner enhances boundary fidelity by emphasizing high-frequency detail preservation. Both modules operate with minimal parameter overhead and integrate seamlessly into the existing transformer pipeline.

Experimental results across benchmarks

Experiments across four benchmarks and two distinct pixel diffusion backbones demonstrate substantial improvements over existing methods. On P3M-500-NP and AM-2K, PixelMatte reduces SAD and gradient errors by 24 to 44 percent relative to RenderMatte. On AIM-500 and RenderMatte-2K, the approach achieves competitive performance, matching or surpassing prior methods without the latent space approximation gap.

These results validate the effectiveness of pixel-space generative priors for precision-sensitive image matting tasks, showing that adapting existing diffusion transformers can yield state-of-the-art matting results while simplifying the pipeline.

Read the paper on arXiv