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

BetterDepth: Plug-and-Play Diffusion Refiner for Zero-Shot Monocular Depth Estimation

Xiang Zhang, Bingxin Ke, Hayko Riemenschneider, Nando Metzger, Anton Obukhov, Markus Gross, Konrad Schindler, Christopher Schroers

The Trade-Off in Monocular Depth Estimation

Monocular Depth Estimation (MDE)—the task of predicting 3D depth from a single 2D image—is a classic, inherently ill-posed problem in computer vision. Currently, the field is largely split into two competing paradigms, each with its own distinct strengths and weaknesses:

  1. Feed-forward (Discriminative) Models: Models like Depth Anything are trained on massive, diverse datasets. They are incredibly robust in "zero-shot" scenarios, easily handling images they have never seen before. However, they tend to produce "over-smoothed" results, frequently losing thin, high-frequency structures like chair legs, whiskers, or hair.
  2. Diffusion-based (Generative) Models: Models like Marigold leverage the iterative power of diffusion to generate crisp, highly detailed depth maps. Unfortunately, because high-quality 3D ground truth is scarce compared to 2D images, these models often struggle to grasp the global geometric layout of complex scenes.
Visual comparison of depth estimation models.

The authors of BetterDepth ask a simple question: Why choose? BetterDepth is designed as a "plug-and-play" diffusion-based refiner that fixes this exact weakness. By combining the robust "geometric prior" of feed-forward models with the "detail-extraction" power of diffusion, it achieves state-of-the-art zero-shot performance.

How BetterDepth Works

BetterDepth operates as a conditional latent diffusion refiner. Instead of generating a depth map from scratch, it takes two inputs: the original RGB image and a "coarse" depth map from a pre-trained MDE model (like Depth Anything).

To ensure the diffusion model actually refines details rather than becoming "lazy" or overfitting to synthetic training data, the authors introduced two clever training strategies:

  • Global Pre-Alignment: Most zero-shot models predict "affine-invariant" depth, meaning the relative depth is correct, but the absolute scale and shift are unknown. During training, BetterDepth aligns the coarse input to the ground truth using least squares. This ensures the diffusion model focuses its capacity on refining fine details rather than wasting effort trying to guess the global scaling.
  • Local Patch Masking: Sometimes the coarse model's prediction is fundamentally wrong in a specific area. If the refiner is forced to "fix" a completely incorrect patch, it learns bad habits. BetterDepth calculates the similarity between the coarse input and the ground truth; if a patch is too divergent, it is masked out during training. This forces the model to rely heavily on the RGB image to "fill in" fine details where the coarse model failed.
BetterDepth training pipeline.

Because BetterDepth functions purely as a refiner, it is entirely plug-and-play. At inference time, you can swap the base coarse model (e.g., changing Depth Anything to MiDaS or DPT) without any need for retraining.

Training Efficiency and Datasets

The model is trained on synthetic datasets—Hypersim and Virtual KITTI 2—which provide perfect, high-resolution depth labels. Remarkably, because the model relies on the "knowledge reservoir" of the pre-trained coarse model, BetterDepth achieves competitive results with as few as 400 training samples.

To prove its "zero-shot" capabilities, BetterDepth was evaluated across five diverse real-world datasets: NYUv2 (indoor), KITTI (outdoor), ETH3D, ScanNet, and DIODE. Furthermore, the high-resolution Middlebury 2014 dataset was used to specifically benchmark how well the model captures edges and thin structures.

Key Results and Performance

BetterDepth successfully pushes the output toward the intersection of "geometrically plausible" and "highly detailed" distributions.

  • State-of-the-Art (SOTA): BetterDepth achieved the #1 rank across major zero-shot benchmarks, outperforming both pure feed-forward models and previous diffusion efforts.
  • Unprecedented Detail: On the Middlebury dataset, BetterDepth demonstrated a massive leap in Edge Recall (ER), reaching 50.35%. For context, Marigold achieved 23.75% and Depth Anything reached just 16.12%. This confirms BetterDepth is vastly superior at identifying and preserving thin structures.
  • Inference Speedup: Diffusion models are notoriously slow, but because BetterDepth starts with a strong "hint" (the coarse map), it requires far fewer denoising steps. A 2-step BetterDepth pass outperforms a 50-step Marigold pass in accuracy. In inference tests on an NVIDIA RTX 4000, BetterDepth achieved 92.5% accuracy in just 0.4 seconds per sample, compared to the 30+ seconds often required by standard diffusion approaches.

Limitations and Future Directions

While highly effective, BetterDepth is a two-stage pipeline. Running both the coarse MDE model and the diffusion U-Net results in a high total parameter count, which may be prohibitive for edge devices. Additionally, while it is much faster than traditional diffusion models, it still carries higher latency than a single-pass feed-forward model.

Currently, the model focuses on affine-invariant (relative) depth. Extending this framework to predict "metric" depth (actual physical distances in meters) remains a compelling challenge for future iterations, particularly for "in-the-wild" scenes where camera intrinsics are unknown.

Summary updated

BibTeX
@inproceedings{zhang2024betterdepth,
  author = {Xiang Zhang and Bingxin Ke and Hayko Riemenschneider and Nando Metzger and Anton Obukhov and Markus Gross and Konrad Schindler and Christopher Schroers},
  title = {{BetterDepth: Plug-and-Play Diffusion Refiner for Zero-Shot Monocular Depth Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=35WwZhkush},
}
Figure