Abstract
Instruct-NeRF2NeRF presents a novel method for editing 3D scenes using natural language instructions. By combining the 3D consistency of Neural Radiance Fields (NeRFs) with the generative capabilities of 2D image-conditioned diffusion models, the framework enables high-quality, localized, and globally consistent manipulations. The core of the approach is an "Iterative Dataset Update" (Iterative DU) process that leverages the NeRF's inherent structure to regularize 2D edits into a coherent 3D representation. This method allows users to perform complex edits, such as changing a subject's attire or altering environmental conditions, without the need for manual masks or specialized 3D modeling tools.
Introduction
Neural Radiance Fields (NeRFs) have revolutionized the field of computer vision by enabling photorealistic 3D reconstruction from a sparse set of 2D images. However, editing these scenes remains a significant challenge. Unlike traditional 3D representations like meshes or point clouds, NeRFs represent scenes as continuous volumetric functions. This lack of explicit surfaces or textures makes it difficult to apply localized changes or perform intuitive manipulations.
Existing approaches to NeRF editing generally fall into two categories: global style transfers and CLIP-based optimization. Global style transfers often lack the precision required for specific edits, while CLIP-based methods frequently struggle to produce realistic, localized results. The fundamental hurdle is maintaining 3D consistency: ensuring that an edit made from one viewpoint—such as adding a mustache to a face—remains spatially and visually accurate when viewed from any other angle in the 3D scene.
Methodology: Iterative Dataset Update
To address the consistency problem, the authors introduce a framework called Iterative Dataset Update (Iterative DU). This method treats the NeRF training process as a bridge between 2D generative power and 3D structural integrity. The process operates in a continuous loop:
- Rendering: A specific view is rendered from the current state of the NeRF model.
- 2D Editing: This rendered image is processed by InstructPix2Pix, a diffusion model trained to follow text-based instructions. To prevent "identity drift" and ensure the edit remains grounded in the original scene, the diffusion model is conditioned on the original captured image.
- Dataset Update: The newly edited 2D image replaces the corresponding original image in the training dataset.
- NeRF Training: The NeRF is retrained using this updated dataset, incorporating the new visual information into the 3D volume.
By cycling through various viewpoints and gradually updating the training data, the 3D scene "percolates" the edits. The NeRF acts as a powerful regularizer; because the underlying mathematics of a radiance field require a single, consistent 3D volume, the model effectively filters out 2D inconsistencies or "hallucinations" produced by the diffusion model. Any edit that does not align across multiple views is discarded in favor of a consensus 3D representation.
Experimental Setup and Datasets
The researchers evaluated Instruct-NeRF2NeRF on a diverse range of real-world captures, including 360° environments, objects, and portraits. The datasets typically consisted of 50 to 300 images per scene, captured using standard smartphones or mirrorless cameras. Camera poses were estimated using COLMAP or the PolyCam app.
The method was benchmarked against concurrent works such as NeRF-Art and various ablations of the Iterative DU pipeline, including versions using standard Stable Diffusion or one-time dataset updates rather than iterative refinement.
Key Insights
- The NeRF as a Consistency Filter: A major contribution of this work is the realization that a 3D-aware generative model is not strictly necessary if the NeRF itself is used to enforce consistency. The iterative training process allows the 3D model to "average out" the noise of 2D edits.
- Anchoring to Reality: By providing the original, unedited image as a conditioning signal to the diffusion model at every step, the authors ensure that the edits remain faithful to the base scene's geometry and identity, preventing the AI from drifting into entirely different subjects.
- Instruction-Based Interaction: Moving from descriptive prompts to instructional prompts (e.g., "Give him a cowboy hat") proves more intuitive for users and helps the generative model focus on specific, localized modifications rather than re-imagining the entire frame.
Results and Discussion
Qualitative results demonstrate that Instruct-NeRF2NeRF can successfully execute a wide array of edits, from changing a subject's hair color to transforming a sunny park into a snowy landscape. Quantitatively, the method outperforms naive 2D editing and one-time updates in terms of Directional Consistency, a CLIP-based metric that measures how well an edit is maintained across different viewing angles.
In terms of performance, the editing process is relatively efficient, requiring approximately one hour on a single NVIDIA Titan RTX (15GB). This makes the tool accessible for both research applications and creative hobbyists.
Limitations and Future Work
Despite its success, the model faces several challenges:
- Spatial Constraints: It struggles with large-scale spatial manipulations, such as moving an object from one side of a room to another.
- Binding Issues: The model occasionally fails to associate an instruction with the correct object (e.g., placing a hat on a nearby table instead of the person's head).
- Artifacts: Inconsistent 2D edits can sometimes lead to the "Janus face" problem, where multiple faces appear on a single head if the NeRF cannot resolve the conflicting views.
- Blurriness: The use of a VAE (autoencoder) in the diffusion process can introduce slight blurriness, resulting in a final 3D scene that is less sharp than the original reconstruction.
Future research will likely focus on integrating 3D-aware diffusion priors and improving autoencoder architectures to preserve high-frequency details and enhance spatial control.
Summary updated