NeRF-Insert: Local 3D Editing with Multimodal Control Signals

Benet Oriol Sabat, Alessandro Achille, Matthew Trager, Stefano Soatto

TL;DR

NeRF-Insert is a new framework for high-quality, local 3D scene editing that treats modifications as an inpainting problem rather than a global image-to-image translation. By utilizing multimodal signals—including text, reference images, and CAD models—it allows users to precisely define where and what to edit, ensuring the rest of the 3D scene remains perfectly preserved.

What Problem Does This Paper Address?

Neural Radiance Fields (NeRFs) have revolutionized 3D scene representation, but editing them remains a significant challenge. Current state-of-the-art methods, such as Instruct-NeRF2NeRF, typically rely on image-to-image diffusion models guided by text prompts.

This approach has two major flaws:

  1. Global Leakage: Because image-to-image models operate on the entire frame, a request to "add sunglasses" often inadvertently changes the subject's clothing, hair, or the background.
  2. Limited Control: Text prompts are notoriously poor at describing precise 3D coordinates, orientations, or complex visual textures.

NeRF-Insert addresses these by shifting the paradigm from global translation to local inpainting, providing a "surgical" approach to 3D editing.

NeRF-Insert allows for precise local edits using various control signals, compared to the global changes seen in Instruct-NeRF2NeRF.

Methods

The authors build upon the Iterative Dataset Update (IDU) pipeline but introduce several novel components to enforce locality and multimodal control:

  • Visual Hull Field: To define the 3D region for editing, the user provides a few (usually 2-3) manual 2D masks or positions a 3D CAD model in the scene. The system then computes a "visual hull"—the intersection of the volumes projected from these masks—to define a precise 3D edit zone.
  • Consistent Mask Reprojection: This 3D visual hull is projected back into every training viewpoint. This ensures that the inpainting masks used across different views are 3D-consistent, preventing the "flickering" or misalignment common in 2D-to-3D lifting.
  • Multimodal Inpainting: The framework supports Stable Diffusion Inpainting for text-based edits and Paint-by-Example for image-based edits. This allows a user to provide a reference photo of an object (like a specific pair of boots) to guide the appearance of the 3D insertion.
  • Spatially Constrained Loss: A critical technical contribution is a new loss term that enforces a "freeze" on the scene outside the 3D edit region. It penalizes any changes to the density or color of the NeRF in areas not covered by the 3D mask, effectively eliminating "floaters" and background shifts.
The NeRF-Insert pipeline: from 3D region definition to 2D inpainting and 3D-consistent optimization.

Datasets

The researchers evaluated NeRF-Insert using real-world scenes from the publicly available Instruct-NeRF2NeRF dataset, which includes various challenging scenarios like human faces, outdoor objects (a stone bear), and indoor items (shoes). They tested a variety of prompts ranging from adding accessories to changing environmental features.

Key Insights and Ideas

  • Inpainting as a Regularizer: By restricting the generative model's "canvas" to a specific mask, the global structure of the scene is preserved by design, not just by optimization.
  • Geometry as Control: Using a CAD model isn't just about the final shape; it's a highly efficient way to define the 3D spatial constraints of an edit without needing to draw dozens of manual masks.
  • The Power of Reference Images: The authors found that image-guided inpainting (Paint-by-Example) often outperforms text in complex scenarios because it removes the visual ambiguity inherent in language.

Key Results

  • Quantitative Superiority: NeRF-Insert achieved a 110% improvement in CLIP Text-Image Direction Similarity compared to Instruct-NeRF2NeRF. This means the edits were significantly more aligned with the user's prompts.
  • Better Consistency: While global methods often change the "vibe" or lighting of the entire scene, NeRF-Insert maintains the original NeRF's integrity outside the edit zone.
  • Artifact Reduction: The spatially constrained loss successfully removed "floaters"—noisy artifacts that often appear in the empty space between the camera and the edited object in other methods.
Qualitative comparison showing how NeRF-Insert preserves the scene structure while Instruct-NeRF2NeRF modifies the entire image.

Limitations and Future Work

Despite its strengths, NeRF-Insert inherits some limitations from its underlying 2D diffusion models, such as the "Janus problem" (where an object might end up with multiple faces when viewed from different angles). Additionally, while drawing 2-3 masks is better than drawing 100, it still requires manual effort.

The authors suggest that future work could integrate automated segmentation tools like Segment Anything (SAM) to define the 3D edit regions automatically, further streamlining the workflow for non-expert users.

Summary updated

BibTeX
@misc{sabat2024nerf,
  author = {Benet Oriol Sabat and Alessandro Achille and Matthew Trager and Stefano Soatto},
  title = {{NeRF-Insert: Local 3D Editing with Multimodal Control Signals}},
  year = {2024},
  eprint = {2404.19204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.19204},
}
Figure