Depth-guided NeRF Training via Earth Mover's Distance

Anita Rau, Josiah Aklilu, F. Christopher Holsinger, Serena Yeung-Levy

TL;DR

This paper introduces a novel way to train Neural Radiance Fields (NeRFs) by supervising them with depth priors from diffusion models. Instead of forcing the NeRF to match noisy depth predictions exactly, the authors use the Earth Mover’s Distance (EMD) to guide the ray termination distribution and leverage the diffusion process itself to estimate pixel-wise uncertainty, leading to significantly more accurate 3D geometry.

What Problem Does This Paper Address?

While NeRFs are famous for rendering stunning novel views, they often struggle with the underlying 3D geometry, especially in "sparse-view" scenarios where only a few images are available. In these cases, the photometric loss (comparing pixels) is ambiguous—many different 3D shapes can result in the same 2D image.

To fix this, researchers often use "depth priors"—depth maps generated by other pre-trained AI models—to supervise the NeRF. However, these priors are rarely perfect. Standard training methods use an $L_2$ loss, which "blindly" forces the NeRF to replicate the prior. If the prior is wrong (e.g., missing a window blind or misjudging a flat wall), the NeRF learns a broken geometry.

Fig. 1: Left: Predicted monocular depth priors are not perfect and false interpretations of a scene’s geometry are unavoidable. Blindly forcing a NeRF to replicate such priors (e.g. through L2-loss) leads to high geometric losses. Right: Overview of our method. We use depth priors to guide NeRF training via Earth Mover’s Distance (EMD).

Methods

The authors propose three key innovations to make depth supervision more robust:

  1. Diffusion-Based Priors and Uncertainty: They use DiffDP, a pre-trained diffusion model, to generate depth maps. Crucially, they don't just take the final depth; they look at how much the depth values change during the iterative denoising process. Pixels that fluctuate wildly are marked as "uncertain."
  2. EMD-Guided Sampling: Instead of supervising the expected depth value (a single number), they supervise the entire distribution of where a ray might stop (ray termination distance). They use the Earth Mover’s Distance (EMD)—specifically the differentiable Sinkhorn Divergence—to compare the NeRF’s predicted distribution to the depth prior. This treats the prior as a "suggestion" rather than an absolute truth, allowing the NeRF to maintain multi-modal distributions (e.g., seeing through a semi-transparent object).
  3. Uncertainty-Aware Loss Weighting: Inspired by Focal Loss, they weight the depth and photometric losses based on the diffusion-derived uncertainty. If the depth model is unsure about a pixel, the system relies more on the original image data (RGB loss) and less on the depth prior.
A detailed schematic of the depth-guided NeRF optimization pipeline.

Datasets

The method was evaluated on:

  • ScanNet: A standard benchmark for indoor scene reconstruction. The authors used the three scenes typically chosen by previous baselines.
  • ScanNet+: A set of additional ScanNet scenes to test the framework's generalization capability.
  • Tanks and Temples (TnT): Used to test performance on both indoor and outdoor environments.

Key Insights and Ideas

  • Priors are Suggestions, Not Commands: The shift from $L_2$ loss to EMD is philosophical as much as mathematical. $L_2$ collapses the probability distribution into a single point, losing valuable information. EMD allows the NeRF to stay "near" the prior without being shackled to its errors.
  • Uncertainty is "Free" in Diffusion: One of the most elegant findings is that the denoising process in diffusion models naturally highlights areas of geometric ambiguity. You don't need a separate uncertainty-estimation network; you just need to watch the model "think" as it denoises.
  • Geometry vs. Photometry: The paper highlights that a model can have a high PSNR (looks good) while having a terrible RMSE (wrong shape). This is a critical distinction for applications like robotics or AR, where knowing the actual distance to an object matters more than just having a pretty picture.
Fig. 3: Example of DiffDP depth prediction that misinterprets the depicted geometry. Although the predicted depth has errors, the uncertainty map is able to highlight areas of large errors. This allows us to tune down the depth loss in unreliable areas.

Key Results

The proposed method significantly outperformed existing state-of-the-art baselines like DäRF and SCADE:

  • Depth Accuracy: On the ScanNet dataset, the method reduced depth errors (RMSE) by at least 11% compared to all baselines.
  • Relative Error: It outperformed the most closely related baseline (DäRF) by up to 54% in relative depth error.
  • Robustness: Even when the depth prior itself was inaccurate, the EMD guidance and uncertainty weighting allowed the NeRF to recover a more accurate geometry than the prior it was learning from.

Limitations and Future Work

  • Diffusion Dependency: Currently, the uncertainty measure is specific to diffusion-based depth networks. The authors suggest that future work should explore "model-agnostic" uncertainty measures that could work with any depth estimator.
  • Hyperparameter Sensitivity: The construction of the uncertainty map depends on specific thresholds and parameters (like the $\tau$ used to count updates during denoising), which might need tuning for different types of scenes.
  • Dynamic Learning: The authors propose that future versions could dynamically learn the uncertainty threshold during the training process rather than setting it manually.

Summary updated

BibTeX
@inproceedings{rau2024depth,
  author = {Anita Rau and Josiah Aklilu and F. Christopher Holsinger and Serena Yeung-Levy},
  title = {{Depth-guided NeRF Training via Earth Mover's Distance}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73039-9\_1},
}
Figure