HyP-NeRF: Learning Improved NeRF Priors using a HyperNetwork

Bipasha Sen, Gaurav Singh, Aditya Agarwal, Rohith Agaram, K Madhava Krishna, Srinath Sridhar

TL;DR

HyP-NeRF introduces a hypernetwork-based prior that predicts both neural weights and multi-resolution hash encodings to generate high-quality, category-level Neural Radiance Fields (NeRFs). By combining this dual-prediction approach with a novel "denoise and finetune" strategy, the method achieves state-of-the-art results in generalizable 3D reconstruction from sparse, noisy, or even text-based inputs.

What Problem Does This Paper Address?

While NeRFs excel at representing specific 3D scenes, they struggle to generalize across categories of objects. Learning a "prior"—a general understanding of what, for example, a "chair" looks like in 3D—is difficult because the parameter space of a neural network is massive.

Existing approaches typically fall into two camps: image-based priors that often lack 3D consistency, and latent conditioning methods that struggle to capture fine geometric details. Furthermore, high-performance NeRF variants like InstantNGP use multi-resolution hash encodings (MRHE) to achieve speed and detail, but these encodings are traditionally instance-specific and don't generalize to new, unseen objects within a category. HyP-NeRF aims to bridge this gap by learning to generate these high-performance components (both weights and hash encodings) for entire object categories.

Methods

The core of HyP-NeRF is a two-step pipeline designed to maximize both generalization and visual fidelity:

  1. Hypernetwork for Dual Prediction: The authors employ a hypernetwork ($M$) that takes a latent code ($z_n$) representing a specific object instance. Unlike previous works that only predict the weights of the NeRF's Multi-Layer Perceptron (MLP), HyP-NeRF predicts both the MLP weights ($\phi_n$) and the parameters for the Multi-Resolution Hash Encodings ($h_n$). This allows the model to leverage the high-frequency detail-capturing capabilities of hash encodings in a generalizable framework.
  2. Denoise and Finetune Strategy: To further sharpen results, the authors introduce a refinement step. They render initial views from the hypernetwork-generated NeRF and pass them through a pre-trained image denoiser (VQVAE2). The NeRF is then finetuned on these denoised images. This process injects fine-grained texture and edge details while maintaining the multi-view consistency inherent in the NeRF representation.
Figure 1: We propose HyP-NeRF, a latent conditioning method that learns improved quality NeRF priors using a hypernetwork to generate instance-specific multi-resolution hash encodings along with neural network weights. The figure showcases the fine details preserved in the NeRF generated by HyP-NeRF (green box) as opposed to the NeRF generated by naive conditioning (red box) in which, a hypernetwork predicts only the neural weights while relying on the standard positional encodings.

To enable diverse applications, they also train a Query Network ($\Delta$) that maps CLIP embeddings (from text or images) into the learned latent space, allowing the model to generate 3D objects from simple text prompts or "in-the-wild" photos.

Datasets

The authors evaluated HyP-NeRF on two primary datasets:

  • ABO (Amazon-Berkeley Objects): A dataset of diverse, high-resolution (512x512) real-world objects. This was the primary benchmark for showcasing high-quality generalization and compression.
  • SRN (ShapeNet): A standard benchmark (128x128) used to compare HyP-NeRF against established baselines like PixelNeRF and VisionNeRF.

Key Insights and Ideas

  • The Power of Hash Encodings in Priors: The most significant "aha" moment is that predicting hash encodings is the key to high-quality priors. Standard MLPs struggle to represent high-frequency details when conditioned globally; by predicting the hash tables themselves, the hypernetwork gives the NeRF the "vocabulary" it needs for fine textures.
  • Decoupling Consistency and Detail: The "denoise and finetune" step effectively decouples the task of maintaining 3D structure (handled by the hypernetwork and NeRF architecture) from the task of generating photorealistic 2D textures (handled by the image-level denoiser).
  • Efficient Compression: Because the hypernetwork learns the underlying structure of a category, it acts as a powerful compression engine. Storing a category-level prior and small latent codes is far more efficient than storing individual high-res NeRFs for every object.

Key Results

HyP-NeRF demonstrates substantial improvements over existing state-of-the-art methods:

  • Generalization: On the ABO-512 dataset, HyP-NeRF achieved a PSNR of 24.23, significantly outperforming PixelNeRF (18.30) and CodeNeRF (19.86).
  • Compression: The method achieves a 60x compression gain compared to storing individual InstantNGP models, requiring only ~163MB to represent over 1,000 chair instances.
  • Versatility: The model successfully performs NeRF reconstruction from single unposed views, cluttered scenes (using masks), and text prompts.
Figure 2: Once trained, HyP-NeRF acts as a prior to support multiple downstream applications, including NeRF reconstruction from single or multi-view images and cluttered scene images, and text-to-NeRF. We fur- ther improve quality using our denoising network.

Limitations and Future Work

The authors identify two main limitations:

  1. Pose Dependency: Test-time optimization currently requires known camera poses. While the query network helps with unposed views, the results may lose some detail. Future work could involve iterative pose refinement.
  2. Non-Standard Prior: The learned latent space ($\Phi$) is not a standard distribution (like a Gaussian), which makes unconditional random sampling (generating a "random" chair) difficult. The authors suggest that incorporating latent diffusion models could solve this by mapping a standard distribution to the HyP-NeRF prior space.

Summary updated

BibTeX
@inproceedings{sen2023hyp,
  author = {Bipasha Sen and Gaurav Singh and Aditya Agarwal and Rohith Agaram and K Madhava Krishna and Srinath Sridhar},
  title = {{HyP-NeRF: Learning Improved NeRF Priors using a HyperNetwork}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=BExDjNDYkN},
}
Figure