Blended-NeRF: Zero-Shot Object Generation and Blending in Existing Neural Radiance Fields

Ori Gordon, Omri Avrahami, Dani Lischinski

Introduction

Neural Radiance Fields (NeRFs) have transformed the landscape of 3D scene reconstruction by providing high-fidelity implicit representations. However, editing these scenes remains a significant challenge. Unlike explicit representations like meshes or point clouds, NeRFs encode scene information within the weights of a multilayer perceptron (MLP), making it difficult to isolate and modify specific objects. Blended-NeRF addresses this by enabling local, text-driven edits within a 3D scene while maintaining multi-view consistency.

The Challenge of Local Editing

Existing NeRF editing techniques often suffer from limitations such as category specificity (e.g., only working on faces), the requirement for manual 2D masking across multiple viewpoints, or the tendency to apply changes globally. The core difficulty lies in performing local editing: inserting or modifying an object within a specific 3D Region of Interest (ROI) such that it integrates naturally with the existing background from any perspective.

The Blended-NeRF Framework

Blended-NeRF introduces a zero-shot approach to object generation and blending. The process begins with a user-defined 3D ROI box within an existing NeRF scene.

Overview of the Blended-NeRF pipeline: (a) training the generator with CLIP guidance and (b) volumetric blending in the edited scene.

Initialization and CLIP Guidance

The system utilizes a "generator" MLP, initialized with the weights of the original NeRF to inherit local lighting and contextual cues. This generator is then optimized using CLIP (Contrastive Language-Image Pre-training) guidance. By providing text prompts (e.g., "a photo of a pineapple"), CLIP "steers" the generator to produce renderings within the ROI that match the description.

Volumetric Blending

The "secret sauce" of this framework is its volumetric blending technique. Rather than blending 2D images, Blended-NeRF operates at the point level during ray casting. For every sample point along a ray, the system checks if it falls within the ROI. If it does, the density ($\sigma$) and color ($c$) from the original NeRF and the new generator are blended using a distance smoothing operator. This ensures a seamless transition at the boundaries of the edited region.

3D-Specific Priors

To ensure the generated objects possess realistic 3D geometry rather than appearing as flat "billboards," several priors are employed:

  • Transmittance Loss: Encourages the formation of solid, opaque objects.
  • Depth Loss: Forces the model to create geometry with actual 3D variance, preventing flat-plane "cheating."
  • Directional Prompts: Camera-angle-dependent text (e.g., "top-down view") is appended to the prompt, helping CLIP understand the object's full 3D structure.

Experimental Evaluation

The researchers evaluated Blended-NeRF across diverse datasets, including LLFF (real-world forward-facing), Blender (synthetic 360-degree), and real-world 360-degree captures.

Qualitative result showing object generation and blending in a synthetic scene.

Key Results

  • Quantitative Performance: Blended-NeRF outperformed the previous state-of-the-art in CLIP Direction Similarity (0.143 vs. 0.128) and demonstrated superior background preservation, achieving an LPIPS score of 0.024 compared to the baseline's 0.3.
  • Qualitative Versatility: The method successfully performed various "zero-shot" edits, such as re-texturing a pinecone into "pink wool" or inserting a "fire hydrant" into a garden scene, all while preserving the integrity of the surrounding environment.

Conclusion and Future Work

Blended-NeRF demonstrates that 2D vision-language models like CLIP can effectively guide 3D synthesis when combined with robust volumetric blending and 3D-specific priors. While highly effective, the method currently faces limitations in editing multiple distinct objects simultaneously and can occasionally produce "Janus-faced" artifacts. Future work may involve integrating more advanced 2D diffusion models to further enhance texture and geometric fidelity.

Summary updated

BibTeX
@inproceedings{gordon2023blended,
  author = {Ori Gordon and Omri Avrahami and Dani Lischinski},
  title = {{Blended-NeRF: Zero-Shot Object Generation and Blending in Existing Neural Radiance Fields}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
}
Figure