Skip to content
AI.info

Research

Pixel-Perfect Depth with Semantics-Prompted Diffusion Transformers

Overview Research area: Computer vision, specifically monocular depth estimation and diffusion-based generative modeling. Technical level: Advanced. The paper assumes familiarity with diffusion models

arXiv
2510.07316
Published
2025-10-08
Authors
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

AI summary

Overview

  • Research area: Computer vision, specifically monocular depth estimation and diffusion-based generative modeling.
  • Technical level: Advanced. The paper assumes familiarity with diffusion models, Flow Matching, Diffusion Transformers (DiT), VAEs, and point cloud metrics.
  • Scope: The paper introduces Pixel-Perfect Depth, a pixel-space (VAE-free) diffusion transformer for monocular depth estimation that produces flying-pixel-free point clouds, evaluated across five zero-shot benchmarks plus a new edge-aware point cloud metric.

What This Paper Is About

Monocular depth estimation models have become accurate, but when their depth maps are converted into 3D point clouds, edges and fine details break down into stray "flying pixels." Discriminative models cause this by predicting averaged depth at boundaries, while existing generative models cause it because they fine-tune Stable Diffusion, which compresses depth into a latent space with a VAE and thereby loses edge sharpness. This paper's goal is to perform diffusion generation directly in pixel space — with no VAE — while keeping training tractable at high resolution.

Key Contributions

  1. Pixel-Perfect Depth: a monocular depth estimation model that performs diffusion generation directly in pixel space, producing flying-pixel-free point clouds from estimated depth maps.
  2. Semantics-Prompted DiT (SP-DiT): a design that integrates L2-normalized semantic representations from vision foundation models into the DiT to preserve global semantic consistency while enhancing fine-grained visual details. A regularization technique on those semantic representations is introduced to keep training stable.
  3. Cascade DiT Design (Cas-DiT): a coarse-to-fine architecture that progressively increases the number of tokens — a larger patch size in early blocks (patch size 16 in the first 12 of 24 blocks) and a smaller effective patch size in later blocks.
  4. An edge-aware point cloud evaluation metric: extracts edge masks from ground-truth depth maps using the Canny operator and computes Chamfer Distance between predicted and ground-truth point clouds near those edges.

Main Findings

  • Best among published generative models on five benchmarks: the 1024×768 model reports NYUv2 AbsRel 4.1 / δ1 97.7; KITTI 7.0 / 95.5; ETH3D 4.3 / 98.0; ScanNet 4.6 / 97.2; DIODE 6.8 / 95.9. The 512×512 model reports NYUv2 4.3 / 97.4; KITTI 8.0 / 93.1; ETH3D 4.5 / 97.7; ScanNet 4.5 / 97.3; DIODE 7.0 / 95.5.
  • No Stable Diffusion priors needed: unlike Marigold, GeoWizard, DepthFM, GenPercept, and Lotus, the diffusion model is trained from scratch rather than fine-tuned from pretrained Stable Diffusion, and still outperforms them.
  • SP-DiT drives the largest single gain: the vanilla DiT baseline degrades badly (NYUv2 AbsRel 22.5, δ1 72.8). Adding SP-DiT yields AbsRel 4.8 / δ1 96.7 — described in the paper as up to a 78% gain on the NYUv2 AbsRel metric.
  • Cas-DiT improves both speed and accuracy: SP-DiT + Cas-DiT reaches NYUv2 AbsRel 4.3 / δ1 97.4 and reduces inference time by 30% on an RTX 4090 GPU (0.14s versus 0.20s for SP-DiT alone and 0.19s for vanilla DiT in the ablation table).
  • All tested vision foundation models help: using MAE gives NYUv2 AbsRel 6.4 / δ1 95.0; DINOv2 4.8 / 96.4; VGGT 4.7 / 96.7; Depth Anything v2 4.3 / 97.4. Only the encoders are used (e.g., a 24-layer ViT-L/14 for DINOv2 and Depth Anything v2).
  • Best edge-aware point cloud result: Chamfer Distance (lower is better) — Ours 0.08, GT(VAE) 0.12, DepthPro 0.14, GeoWizard 0.16, Marigold 0.17, Depth Anything v2 0.18. The GT(VAE) row encodes and decodes ground-truth depth with a VAE and no generative process, isolating VAE compression as a source of artifacts.
  • Increasing VAE latent dimension does not fix flying pixels: reconstructions using VAE-d4 (SD2, latent dimension 4, as used in Marigold) and VAE-d16 (SD3.5, latent dimension 16) both show flying pixels at edges and details.
  • Outperforms REPA-style representation alignment: with the same pretrained vision encoder, DiT+REPA gives NYUv2 AbsRel 17.6 / δ1 78.0 versus DiT+Ours 4.3 / 97.4.
  • Runtime trade-off: on a 512×512 model with 4 denoising steps, Depth Anything v2 runs in 18 ms, PPD-Small 40 ms, PPD-Large 140 ms, and DepthPro 170 ms.
  • A lightweight variant exists: PPD-Small (DiT-Small backbone) reports NYUv2 AbsRel 4.5 / δ1 97.3, KITTI 8.3 / 92.8, ETH3D 4.6 / 97.4, ScanNet 4.7 / 97.2, DIODE 7.3 / 95.3, versus PPD-Large's 4.3 / 97.4, 8.0 / 93.1, 4.5 / 97.7, 4.5 / 97.3, 7.0 / 95.5.

Methodology in Plain English

The model starts from a noisy depth map and iteratively refines it into a clean one, entirely at pixel resolution (for example 1024×768) with no VAE compression step. The generative core is Flow Matching: a network learns a velocity field that points from clean depth toward Gaussian noise, and at inference the process is reversed by discretizing the time interval [0,1] into steps and solving the ODE.

Two design choices make this high-resolution pixel-space training workable. First, the input image is also passed through the encoder of a pretrained vision foundation model to extract high-level semantic features. These features are L2-normalized (so their magnitude matches the transformer tokens), spatially aligned by bilinear interpolation, and fused into the DiT tokens via an MLP. The paper notes the magnitude mismatch between semantic features and DiT tokens harms training stability, which is why normalization matters. Second, the transformer is split into a coarse stage and a fine stage: the first 12 of 24 blocks operate with patch size 16, then an MLP expands the hidden dimension by a factor of 4 and reshapes the tokens to (H/8)×(W/8), and the remaining 12 SP-DiT blocks process this denser token set. Hidden dimension is 1024 throughout, and the architecture uses no convolutional layers.

Depth is normalized by first taking log(d + ε) with ε = 1, then scaling between the 2% and 98% depth percentiles of each map and subtracting 0.5. Training uses MSE between predicted and true velocity plus a gradient matching loss adopted from Depth Anything v2, on 8 NVIDIA GPUs with per-GPU batch size 4, AdamW, and a constant learning rate of 1×10⁻⁴. Training data: Hypersim (~54K samples) for the 512×512 model; for the 1024×768 model, four extra datasets are added — UrbanSyn (7.5K), UnrealStereo4K (8K), VKITTI (25K), and TartanAir (30K), for 125K total. Edge-aware evaluation uses the official Hypersim test split, which is not used in training.

Why This Matters

  • Impact on research: It challenges the assumption that generative depth estimation must run in the latent space of a pretrained Stable Diffusion model, and shows that the VAE compression itself — not the diffusion process — is a measurable source of geometric artifacts (demonstrated by the GT(VAE) row in the Chamfer Distance table). It also gives the field a metric that targets edges, since AbsRel and δ1 are dominated by flat regions and existing benchmarks such as NYUv2 and KITTI generally lack edge annotations.
  • Real-world applications (drawn from the paper's stated downstream tasks):
    • 3D reconstruction
    • Novel view synthesis
    • Robotic manipulation
    • Free-viewpoint broadcast and immersive content creation
  • Industry relevance: The affiliations (Huazhong University of Science and Technology, Xiaomi EV, Zhejiang University) point to automotive and consumer-device interest, where clean point clouds from edges matter for perception and content pipelines. The reported runtime figures (PPD-Large at 140 ms, PPD-Small at 40 ms on an RTX 4090 GPU) frame the practical trade-off against discriminative models such as Depth Anything v2 at 18 ms.

Future Directions

  1. Temporal consistency for video: the paper states the model lacks temporal consistency when applied to video frames, causing a little flickering depth across frames, and suggests exploring video depth estimation methods as a remedy.
  2. Faster inference: the multi-step diffusion process is slower than discriminative models like Depth Anything v2; the authors suggest adopting DiT acceleration strategies, and have already offered the PPD-Small variant as a partial answer.
  3. Scaling and generalization beyond synthetic training data: the 1024×768 model is trained on Hypersim plus four synthetic datasets and evaluated zero-shot on real benchmarks, so how far synthetic-only training generalizes remains an open question.
  4. Rethinking latent compression in generative depth: given that both VAE-d4 (SD2) and VAE-d16 (SD3.5) reconstructions exhibit flying pixels, an open question is whether VAE-based generative depth can be made edge-preserving at all, or whether pixel-space generation is required.

Target Audience

Researchers and engineers working on monocular depth estimation, generative models for dense prediction, and 3D reconstruction pipelines. It is also relevant to practitioners building point-cloud or free-viewpoint applications who care about edge quality, and to readers interested in how diffusion transformers can be adapted to pixel-space generation more broadly. The paper is not beginner-friendly: it presupposes working knowledge of Flow Matching, DiT architectures, VAE latent compression, and standard depth evaluation metrics.

Authors’ abstract

This paper presents Pixel-Perfect Depth, a monocular depth estimation model based on pixel-space diffusion generation that produces high-quality, flying-pixel-free point clouds from estimated depth maps. Current generative depth estimation models fine-tune Stable Diffusion and achieve impressive performance. However, they require a VAE to compress depth maps into latent space, which inevitably introduces \textit{flying pixels} at edges and details. Our model addresses this challenge by directly performing diffusion generation in the pixel space, avoiding VAE-induced artifacts. To overcome the high complexity associated with pixel-space generation, we introduce two novel designs: 1) Semantics-Prompted Diffusion Transformers (SP-DiT), which incorporate semantic representations from vision foundation models into DiT to prompt the diffusion process, thereby preserving global semantic consistency while enhancing fine-grained visual details; and 2) Cascade DiT Design that progressively increases the number of tokens to further enhance efficiency and accuracy. Our model achieves the best performance among all published generative models across five benchmarks, and significantly outperforms all other models in edge-aware point cloud evaluation.

Read the original paper