Learning a Diffusion Prior for NeRFs

Guandao Yang, Abhijit Kundu, Leonidas J. Guibas, Jonathan T. Barron, Ben PoolearXiv 2023 · DOI

TL;DR

This paper introduces a novel approach to generating Neural Radiance Fields (NeRFs) using diffusion models. By first creating a dataset of "regularized" NeRFs and then training a diffusion model on these representations, the authors demonstrate the ability to generate realistic 3D scenes and use this generative prior to improve single-view reconstruction tasks.

What Problem Does This Paper Address?

Neural Radiance Fields (NeRFs) are powerful for representing 3D scenes, but generating them, especially from limited views, is challenging. When training with few views, the problem is under-constrained, leading to potential local minima where the rendered output matches the input views but the underlying 3D structure is incorrect. Existing generative models for NeRFs, like GANs, struggle with conditional generation, while VAEs often produce lower-fidelity results. The authors aim to create a generative model for NeRFs that can produce high-quality, realistic scenes and also act as a useful prior for downstream tasks like single-view reconstruction.

Methods

The core of the paper lies in two main stages:

  1. Regularized ReLU-Fields: The authors propose representing NeRFs using a grid of features (specifically, ReLU-fields) that are "regularized." This regularization involves adding two loss terms during the training of these grid-based NeRFs:
  2. Density Sparsity Regularization: Encourages the density field to be sparse, meaning it only assigns high density to regions that are relevant for rendering.
  3. Color Constancy Regularization: Encourages the color (albedo) to be as white as possible, simplifying the color prediction and making the representation more structured. This regularization makes the NeRF representations more structured and easier for diffusion models to learn from, while still maintaining high fidelity.

  4. Diffusion Model for NeRF Generation: A diffusion model (specifically, a DDPM) is then trained on these regularized ReLU-field representations. The diffusion model learns to gradually denoise a noisy grid representation to produce a realistic NeRF. The authors adapt a standard U-Net architecture by using 3D convolutions to handle the grid-based NeRF representations.

  5. Conditional Generation and Test-Time Optimization: A key advantage of diffusion models is their ability to perform conditional generation. The paper leverages this by incorporating guidance during the sampling process. For tasks like single-view reconstruction, they use the input image as a condition, guiding the diffusion model to generate a NeRF that is consistent with the observed view. This is achieved through a test-time optimization algorithm that iteratively refines the sampled NeRF using the guidance signal.

Datasets

The paper uses the ShapeNet dataset, specifically focusing on the car category. For each training scene, they sample 250 different camera poses and render RGB images. They then obtain a regularized ReLU-field for each shape.

Key Insights and Ideas

  • Regularization is Crucial for NeRF Diffusion: Simply training a diffusion model on raw NeRF representations (like non-regularized ReLU-fields) leads to poor results. Regularizing the NeRFs to have sparse densities and consistent colors is essential for the diffusion model to learn a meaningful distribution.
  • Grid-Based Representations are Key: Representing NeRFs as grids (like ReLU-fields) is more amenable to diffusion models than directly learning MLP weights or latent codes. This structured representation allows for efficient denoising.
  • Diffusion Models as Priors for Reconstruction: The learned diffusion prior can significantly improve tasks like single-view NeRF reconstruction by guiding the optimization process away from unrealistic local minima.
  • Conditional Sampling is Powerful: The diffusion model's ability to incorporate guidance allows it to generate NeRFs that satisfy specific conditions, such as matching an input image.

Key Results

  • Unconditional Generation: The proposed method, using regularized ReLU-fields, generates more diverse and visually correct car shapes and colors compared to a baseline trained on non-regularized fields.
  • Single-View Reconstruction: The diffusion prior helps in obtaining more 3D-consistent reconstructions from a single view. While successful cases show plausible and consistent results, the paper also highlights failure cases where the model might get stuck in a local minimum, explaining the input image well by changing colors but not the shape.

Limitations and Future Work

  • Local Minima in Conditional Tasks: While the diffusion prior helps, the model can still get stuck in local minima during conditional generation, leading to shape mismatches even if the input image is well-explained by color changes.
  • Future Work: The authors suggest finding better ways to leverage unconditional diffusion priors for conditional tasks without falling into shape mismatch issues. They also mention that view-direction can be incorporated for more complete NeRF representations.

Summary updated

BibTeX
@misc{yang2023learning,
  author = {Guandao Yang and Abhijit Kundu and Leonidas J. Guibas and Jonathan T. Barron and Ben Poole},
  title = {{Learning a Diffusion Prior for NeRFs}},
  year = {2023},
  eprint = {2304.14473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.14473},
}
Figure