GeoDiff: Geometry-Guided Diffusion for Metric Depth Estimation

Tuan Pham, Thanh-Tung Le, Xiaohui Xie, Stephan MandtarXiv 2025 · DOI

Abstract

Monocular diffusion-based depth models excel at scene understanding but lack absolute scale, while stereo methods provide metric depth but struggle with non-Lambertian surfaces. We present GeoDiff, a training-free framework that upgrades monocular diffusion models to produce accurate metric depth by using stereo image pairs as geometric anchors. By incorporating a reprojection loss as guidance during the diffusion denoising process, GeoDiff resolves scale ambiguity and handles challenging surfaces like glass and mirrors without retraining. Our approach achieves state-of-the-art metric accuracy on benchmarks like KITTI and Booster.

Introduction

Estimating the distance of objects in a scene is a cornerstone of computer vision, yet it faces a fundamental trade-off. Monocular Depth Estimation (MDE) models, particularly those leveraging stable diffusion priors, demonstrate a sophisticated understanding of scene layout and object shapes but typically predict only relative depth. This inherent scale ambiguity prevents their direct use in applications requiring absolute measurements. Conversely, Stereo Depth Estimation (StDE) utilizes triangulation from two viewpoints to calculate absolute distance. However, StDE relies heavily on pixel matching, which fails on non-Lambertian surfaces—such as transparent windows, reflective mirrors, or textureless walls—where appearance varies significantly with the viewing angle.

GeoDiff bridges this gap by utilizing the rich semantic priors of monocular diffusion models and "locking" their output into metric units using stereo geometry.

Methodology

GeoDiff treats metric depth estimation as an inverse problem. Rather than training a new architecture, it employs a pretrained monocular diffusion model (e.g., Marigold) and guides its output via geometric constraints during inference.

Overview of the GeoDiff framework, contrasting monocular relative depth estimation with the proposed stereo-guided metric depth estimation.

Key Components

  • Metric Parameterization: Metric depth ($\tilde{x}$) is modeled as a linear transformation of the relative depth ($x$) predicted by the diffusion model: $\tilde{x} = s \cdot x + t$. A softplus function ensures that scale ($s$) and shift ($t$) parameters remain positive.
  • Geometric Guidance: During the iterative denoising process, a reprojection loss is calculated. The model predicts depth, warps the right image of a stereo pair into the left image's perspective, and evaluates the consistency.
  • Inference-Time Optimization: GeoDiff performs a gradient update at each denoising step, optimizing both the depth latents and the scale/shift parameters to minimize reprojection error.
  • Training-Free Integration: Because the underlying diffusion weights are frozen, GeoDiff acts as a plug-and-play module for existing diffusion-based depth frameworks.

Experiments and Results

The framework was evaluated across diverse benchmarks, including KITTI-2015 (outdoor driving), Middlebury (indoor stereo), and Booster (reflective/transparent objects).

Qualitative comparison of GeoDiff (Ours) against state-of-the-art methods on challenging scenes involving transparency and complex geometry.

GeoDiff demonstrates superior accuracy and robustness. On the KITTI dataset, it achieved an Absolute Relative Error (AbsRel) of 0.07, significantly outperforming Marigold and other metric models like ZoeDepth (0.74) and DepthPro (0.16). Notably, in the Booster dataset, GeoDiff maintained high accuracy on surfaces where traditional stereo matchers like RAFT-Stereo failed. By starting with a monocular prior that understands surface structure, GeoDiff correctly identifies the depth of mirrors and glass rather than being misled by reflections.

Discussion

A key insight of this work is the role of diffusion as an implicit regularizer. While raw optimization of reprojection loss often leads to noisy artifacts, embedding this optimization within the diffusion process ensures the resulting depth maps remain smooth and structurally plausible. Furthermore, the method generalizes to arbitrary two-view pairs by leveraging foundation models to estimate camera poses on the fly, moving beyond the requirement for perfectly calibrated stereo rigs.

Conclusion

GeoDiff successfully combines the strengths of monocular diffusion priors and stereo geometry to achieve zero-shot metric accuracy. While the current inference time of approximately 7 seconds per image limits real-time applications, future work involving distilled architectures or lighter-weight diffusion models could mitigate this. Additionally, addressing illumination sensitivity in the reprojection loss remains an avenue for improving robustness in varying lighting conditions.

Summary updated

BibTeX
@misc{pham2025geodiff,
  author = {Tuan Pham and Thanh-Tung Le and Xiaohui Xie and Stephan Mandt},
  title = {{GeoDiff: Geometry-Guided Diffusion for Metric Depth Estimation}},
  year = {2025},
  eprint = {2510.18291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.18291},
}
Figure