TL;DR
A subtle bug in the DDIM inference scheduler has been masking a major truth: diffusion-based depth estimators don't need to be slow. By fixing this flaw, the authors achieve high-quality single-step inference—boosting speed by over 200$\times$—and demonstrate that simple, deterministic end-to-end fine-tuning outperforms complex iterative diffusion pipelines.
What Problem Does This Paper Address?
Monocular depth and surface normal estimation are foundational tasks in computer vision, essential for everything from robotics to 3D scene reconstruction. Recently, generative models like Marigold repurposed large text-to-image diffusion models (such as Stable Diffusion) for geometry estimation by treating depth prediction as an image-conditional generation task.
While these models achieved state-of-the-art visual quality, they suffered from a massive drawback: they were incredibly slow. Because they relied on iterative denoising, they required running a massive neural network 10 to 50 times (steps) just to output a single depth map. The consensus in the community was that this multi-step process was a necessary evil to leverage the rich geometric priors embedded within diffusion models. This paper challenges that consensus by asking: Why does few-step or single-step inference fail so poorly in these models, and can we fix it?
Methods
The authors tackle the problem through two key interventions:
-
Fixing the DDIM Scheduler (The "Bug Fix"): The authors discovered that Marigold and its derivative works (like GeoWizard) used a flawed implementation of the DDIM scheduler during inference. Specifically, the default "leading" timestep selection strategy excludes the final timestep $T$. This creates a critical mismatch: the model is given pure noise as an input, but the timestep embedding tells the network to expect a partially denoised input. By simply switching to a "trailing" timestep schedule, training and inference are properly aligned.
-
End-to-End Fine-Tuning (E2E FT): With single-step inference finally working, backpropagation through the model becomes computationally feasible (since you only pass through the network once instead of 50 times). The authors capitalize on this by fine-tuning the Stable Diffusion/Marigold UNet end-to-end into a completely deterministic feed-forward model. They fix the timestep to $t=T$, replace the input noise with its mean (zero), and optimize the model directly using task-specific downstream losses:
-
For Depth: A scale- and shift-invariant loss function.
- For Normals: An angular loss based on the vectors' degrees of separation.
Datasets
To ensure a fair comparison, the authors use the exact same synthetic datasets for training as Marigold:
- Hypersim: A photorealistic indoor scene dataset (~54K images).
- Virtual KITTI 2: A synthetic driving dataset (~20K images).
For zero-shot evaluation (testing on unseen datasets without any fine-tuning), they use a comprehensive suite of standard benchmarks:
- Depth Evaluation: NYUv2, ScanNet, KITTI, ETH3D, and DIODE.
- Surface Normal Evaluation: NYUv2, ScanNet, iBims-1, and Sintel.
Key Insights and Ideas
- Image-Conditioning is Unimodal: In text-to-image generation, a prompt like "a dog" can map to infinite valid images (multimodal). Therefore, diffusion models need multiple steps to navigate the noise and settle on a clean image. However, image-conditional geometry is largely unimodal—an RGB image typically maps to exactly one correct depth map. Consequently, the optimal single-step prediction at $T$ should already be highly accurate.
- Denoising Can Accumulate Errors: Surprisingly, the authors found that with the fixed scheduler, running more denoising steps actually made the depth maps worse, not better. Iterative denoising artificially over-sharpens the output and introduces noise-like artifacts because the model expects noised ground-truth latents rather than its own imperfect predictions.
- Skip the Diffusion Training: Perhaps the most surprising "aha moment" is that intermediate diffusion training (like Marigold's pipeline) isn't even necessary. Directly fine-tuning vanilla Stable Diffusion end-to-end with a task-specific loss yields performance equal to or better than fine-tuning a Marigold-pretrained model.
Key Results
- 200$\times$ Speedup: Fixing the DDIM scheduler reduces inference time from 24 seconds (50 steps with ensembling) down to just 121 milliseconds (single-step) on an NVIDIA RTX 4090 GPU.
- Superior Accuracy: On the NYUv2 dataset, vanilla Marigold scored a 6.0 AbsRel (lower is better) using 50 steps. Marigold with the DDIM fix achieves 5.7 AbsRel in a single step. Applying the E2E FT protocol pushes this even further to 5.2 AbsRel, outperforming all other diffusion-based depth estimators.
- State-of-the-Art Normals: For surface normal estimation, the E2E FT model established new state-of-the-art zero-shot results across almost all evaluated datasets (e.g., reducing Mean Angular Error on ScanNet from 17.7° to 14.7°).
Limitations and Future Work
While this method soundly beats other generative and diffusion-based baselines, it still trails behind top-tier discriminative models like Depth Anything v2 or Metric3D v2 on certain benchmarks. However, those discriminative models are trained on massive datasets containing 16M to 62M samples—two to three orders of magnitude larger than the 74K synthetic samples used here.
Now that inference is fast and single-step, the authors note that advanced discriminative training techniques, such as large-scale self-training with pseudo-labels, can finally be applied to diffusion backbones. Exploring this scaling behavior is a promising direction for future work.
Summary updated