NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pixel-Perfect Depth with Semantics-Prompted Diffusion Transformers

Gangwei Xu, Haotong Lin, Hongcheng Luo, Xianqi Wang, Jingfeng Yao, Lianghui Zhu, Yuechuan Pu, Cheng Chi_, Haiyang Sun, Bing Wang, Guang Chen, Hangjun Ye, Sida Peng, Xin Yang

Abstract

Monocular Depth Estimation (MDE) is a critical task for 3D reconstruction and robotics, yet current generative models often suffer from "flying pixel" artifacts—erroneous depth values at object boundaries. These artifacts stem from the lossy compression inherent in latent-space Variational Autoencoders (VAEs). This paper introduces Pixel-Perfect Depth (PPD), a framework that performs diffusion directly in pixel space. By integrating high-level semantic prompts from vision foundation models into a cascaded transformer architecture, PPD achieves unprecedented edge sharpness and structural fidelity in zero-shot depth estimation.

Introduction

Predicting 3D depth from a single 2D image remains a cornerstone of computer vision. Historically, the field has been divided between discriminative models, which are fast but often produce blurred edges due to regression averaging, and generative models, which utilize diffusion to generate sharper results.

However, state-of-the-art generative models like Marigold rely on latent-space diffusion. While computationally efficient, the VAE used to compress images into latents inevitably discards fine-grained spatial details. When these depth maps are projected into 3D space, the resulting point clouds are plagued by "flying pixels"—floating debris at object boundaries that ruin the structural integrity of the reconstruction. To solve this, we propose a model that bypasses the VAE bottleneck entirely, operating directly in high-resolution pixel space.

Methodology

Performing diffusion in pixel space is traditionally computationally prohibitive and prone to global instability. Pixel-Perfect Depth addresses these challenges through three key innovations:

1. Semantics-Prompted Diffusion Transformers (SP-DiT)

Pixel-space generation often lacks global structural awareness. To provide a "structural map," we extract high-level semantic features from Vision Foundation Models (VFMs) such as DINOv2 or Depth Anything v2. These features are injected into the Diffusion Transformer (DiT) using a specialized L2 normalization technique. This ensures that the external semantic representations are aligned with the DiT’s internal features, providing the necessary global context to anchor the local pixel-level diffusion.

2. Cascade DiT Design (Cas-DiT)

To maintain efficiency at high resolutions (e.g., 1024×768), we employ a coarse-to-fine strategy. The early transformer blocks utilize large patch sizes to capture broad global context with a reduced token count. Subsequent blocks—the SP-DiT blocks—transition to smaller patch sizes to refine high-frequency details and sharpen edges. This specialization allows the model to reduce inference time by approximately 30% without sacrificing accuracy.

3. Flow Matching

Rather than standard Denoising Diffusion Probabilistic Models (DDPM), we utilize Flow Matching. This approach learns a straight-line probability path from noise to the data distribution, which typically results in faster convergence and more stable training trajectories in high-dimensional pixel spaces.

Experimental Setup

Training and Evaluation

The model was trained primarily on Hypersim (54K photorealistic synthetic images), with high-resolution variants leveraging datasets like UrbanSyn, UnrealStereo4K, VKITTI, and TartanAir. Evaluation was conducted across five major zero-shot benchmarks: NYUv2, KITTI, ETH3D, ScanNet, and DIODE.

Edge-Aware Metrics

To specifically quantify the "flying pixel" problem, we introduced a new edge-aware point cloud evaluation. By applying a Canny operator to mask object boundaries, we measure the Chamfer Distance between the predicted and ground-truth point clouds specifically at these high-frequency regions.

Key Insights

  • The VAE Bottleneck: Our analysis confirms that even with perfect ground truth, passing data through a VAE reconstruction introduces flying pixels. This establishes a fundamental performance ceiling for latent-space diffusion models in 3D tasks.
  • Semantic Anchoring: Without semantic prompting, pixel-space diffusion tends to produce inconsistent global structures. High-level VFM features act as a necessary guide for the diffusion process.
  • Block Specialization: We observed that transformer blocks naturally specialize; early blocks handle low-frequency information while later blocks focus on local details. Our Cascade design explicitly exploits this behavior for efficiency.

Results

Pixel-Perfect Depth achieves state-of-the-art zero-shot performance among all published generative models. On the NYUv2 AbsRel metric, PPD demonstrated a 78% improvement over a baseline pixel-space DiT without semantic prompting.

In terms of 3D reconstruction quality, PPD significantly outperformed competitors in the edge-aware Chamfer Distance metric, scoring 0.08 compared to Depth Pro (0.14) and Marigold (0.17). Furthermore, the "Small" variant (PPD-Small) achieves an inference speed of 40ms on an RTX 4090, making it a viable high-quality alternative to discriminative models.

Conclusion and Future Work

By moving diffusion back into pixel space and guiding it with semantic foundation models, we have eliminated the primary source of artifacts in generative depth estimation. While PPD sets a new standard for static image depth, future work will focus on temporal consistency for video applications and further acceleration through model distillation to enable real-time, pixel-perfect 3D reconstruction.

Summary updated

BibTeX
@inproceedings{xu2025pixel,
  author = {Gangwei Xu and Haotong Lin and Hongcheng Luo and Xianqi Wang and Jingfeng Yao and Lianghui Zhu and Yuechuan Pu and Cheng Chi\_ and Haiyang Sun and BING WANG and Guang Chen and Hangjun Ye and Sida Peng and Xin Yang},
  title = {{Pixel-Perfect Depth with Semantics-Prompted Diffusion Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rJiu7nvLxA},
}
Figure