Depth-guided NeRF Training via Earth Mover's Distance

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

Abstract

Neural Radiance Fields (NeRFs) are trained to minimize the rendering loss of predicted viewpoints. However, the photometric loss often does not provide enough information to disambiguate between different possible geometries yielding the same image. Previous work has thus incorporated depth supervision during NeRF training, leveraging dense predictions from pre-trained depth networks as pseudo-ground truth. While these depth priors are assumed to be perfect once filtered for noise, in practice, their accuracy is more challenging to capture. This work proposes a novel approach to uncertainty in depth priors for NeRF supervision. Instead of using custom-trained depth or uncertainty priors, we use off-the-shelf pretrained diffusion models to predict depth and capture uncertainty during the denoising process. Because we know that depth priors are prone to errors, we propose to supervise the ray termination distance distribution with Earth Mover's Distance instead of enforcing the rendered depth to replicate the depth prior exactly through L2-loss. Our depth-guided NeRF outperforms all baselines on standard depth metrics by a large margin while maintaining performance on photometric measures.

Introduction: The Geometric Ambiguity Problem

Neural Radiance Fields (NeRFs) have revolutionized novel view synthesis, yet they harbor a significant flaw: geometric ambiguity. Especially in sparse-view indoor settings, multiple 3D configurations can produce the same 2D projection. This often results in "floaters" or incorrect geometry that looks plausible from training views but fails from new perspectives.

To mitigate this, researchers typically employ "depth priors"—depth maps from pre-trained models—as pseudo-ground truth. The conventional method uses an $L_2$ loss to force the NeRF's rendered depth to match these priors. However, these priors are frequently inaccurate, missing fine details like window blinds or misinterpreting complex surfaces. Rigidly enforcing a flawed prior via $L_2$ loss degrades the final reconstruction.

Comparison of L2 loss versus the proposed approach. Standard L2 loss fails to capture complex geometry, while the proposed method achieves significantly lower RMSE.

Methodology

The proposed framework, EMD-NeRF, shifts the paradigm from treating depth as an absolute truth to treating it as a probabilistic suggestion. The pipeline consists of three main components:

1. Diffusion-based Priors and Uncertainty

The system utilizes DiffDP, a generative diffusion model, to produce depth maps. A key advantage of diffusion models is their iterative denoising process. By measuring the variance or change in pixel values across denoising steps, the authors derive a pixel-wise uncertainty map. High variance indicates areas where the model is less confident in its depth prediction, providing a natural weighting mechanism for supervision.

2. EMD-Guided Sampling

Rather than collapsing the NeRF's ray termination distribution into a single mean depth value for $L_2$ comparison, this method supervises the entire distribution. By using Earth Mover’s Distance (EMD), the loss function compares the probability mass of the NeRF's predicted ray termination against the distribution suggested by the depth prior. EMD is more robust to noise and allows the NeRF to deviate from the prior when photometric evidence is strong.

3. Focal-Loss Inspired Weighting

The final loss function dynamically balances photometric (RGB) and depth supervision. Using the uncertainty map from the diffusion process, the model down-weights the depth loss in regions of high uncertainty, allowing the RGB data to take precedence.

The three-part pipeline: (i) Depth and uncertainty generation via DiffDP, (ii) EMD-guided distribution supervision, and (iii) uncertainty-aware loss weighting.

Experimental Results

EMD-NeRF was evaluated on challenging indoor benchmarks including ScanNet and ScanNet+.

  • Geometric Accuracy: On ScanNet, the method reduced depth error metrics by over 11%. When compared to DäRF, a leading baseline, it achieved a 54% reduction in relative error.
  • Visual Fidelity: Unlike many depth-supervised methods that sacrifice image sharpness for geometry, EMD-NeRF maintained high PSNR and SSIM scores, ensuring that the improved 3D structure did not come at the cost of rendering quality.
  • Generalization: Testing on the Tanks and Temples (TnT) dataset demonstrated the model's ability to handle out-of-distribution scenes, such as large indoor halls and outdoor structures.

Conclusion and Future Directions

By treating depth priors as flexible distributions rather than fixed targets, EMD-NeRF achieves state-of-the-art geometric reconstruction. While currently dependent on diffusion-based uncertainty, future work could explore model-agnostic uncertainty measures to broaden the framework's applicability. Additionally, scaling these techniques to large-scale, unbounded outdoor environments remains a key area for exploration.

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