TL;DR
GenN2N is a unified framework that transforms 3D Neural Radiance Fields (NeRFs) by leveraging off-the-shelf 2D image-to-image translators. By modeling edited NeRFs as a generative distribution rather than a single fixed outcome, it achieves high-quality, multi-view consistent results across diverse tasks like inpainting, colorization, and text-driven editing.
What Problem Does This Paper Address?
Editing a 3D scene represented as a NeRF is notoriously difficult. Most existing methods are "specialists"—designed for a single task like super-resolution or colorization—requiring significant domain knowledge for each.
General-purpose methods often use a "render-edit-aggregate" pipeline: they render a view, edit it with a 2D tool (like Stable Diffusion), and try to update the 3D volume. However, 2D editors are stochastic and inconsistent; an editor might add an elf hat to a person in one view but forget it in another. This inconsistency leads to blurry 3D results or complex, fragile optimization loops. GenN2N aims to bridge this gap by creating a "universal" translator that can lift any 2D edit into a consistent 3D space while embracing the inherent diversity of generative models.
Methods
The core of GenN2N is a 3D VAE-GAN framework that treats NeRF editing as a distribution modeling problem.
- 2D Translation: The process starts by using a "plug-and-play" 2D translator (e.g., InstructPix2Pix for text edits, DDColor for colorization) to generate multiple edited versions ($M$) of the original $N$ multi-view images.
- Latent Distillation: A VAE-style encoder maps these inconsistent 2D edits into a 64D latent "edit code" ($z$). This code is constrained to a Gaussian distribution using a KL-divergence loss.
- Conditional Translated NeRF: The framework modifies a pre-trained NeRF by discarding its final layers and adding new MLP heads conditioned on the edit code $z$. This allows the model to render different 3D versions of the scene by simply sampling different latent codes.
- Contrastive Learning: To ensure the edit code $z$ truly reflects 3D content and not just the 2D camera viewpoint, the authors introduce a contrastive loss. It encourages $z$ to be similar for different views of the same edit style but distinct for different edit styles of the same view.
- Adversarial Supervision: A conditional discriminator is used to distinguish between rendered views and the 2D edited targets. This GAN loss is crucial for resolving multi-view inconsistencies, preventing the model from simply "averaging" inconsistent edits into a blurry mess.
Datasets
The authors evaluated GenN2N across a wide variety of benchmarks:
- Text-driven Editing: The Face dataset, Fangzhou self-portrait dataset, and the Farm/Campsite datasets.
- Colorization: The LLFF dataset (outdoor/indoor scenes) and parts of the BlendedMVS dataset.
- Super-resolution: LLFF and the Realistic Synthetic 360° dataset.
- Inpainting: A customized outdoor scene dataset and a statue dataset.
Key Insights and Ideas
- Modeling the Distribution: Instead of trying to force inconsistent 2D edits into one "perfect" 3D model, GenN2N learns the distribution of all possible 3D edits. This allows for diverse outputs (e.g., different beard styles for the same text prompt) while maintaining 3D consistency for any single sample.
- Disentangling Style and Pose: The contrastive loss (illustrated in Figure 3) is a clever solution to the "representation gap." By forcing the latent code to be viewpoint-invariant, the model ensures that "style" stays in the latent code and "geometry/pose" stays in the NeRF coordinate system.
- Plug-and-Play Universality: Because the framework is agnostic to the 2D translator used, it can easily adapt to future improvements in 2D generative AI.
Key Results
GenN2N consistently matches or outperforms task-specific state-of-the-art (SOTA) methods:
- Text-driven Editing: Outperforms Instruct-NeRF2NeRF in CLIP similarity and FID, providing much higher diversity in results (see Figure 5).
- Colorization: Achieves a colorfulness score (CF) of 65.1, significantly higher than PaletteNeRF's 39.6.
- Super-resolution: Beats NeRF-SR in PSNR (28.5 vs 27.9) and SSIM (0.91 vs 0.89).
- Efficiency: While training takes 3-8 hours, inference is a fast feed-forward process (~250ms per frame), whereas competitors often require expensive per-edit optimization.
Limitations and Future Work
- Training Time: The 3-8 hour training time per scene remains a bottleneck for real-time applications.
- Dependency on 2D Tools: The quality of the 3D output is strictly bounded by the performance of the chosen 2D translator. If the 2D tool produces artifacts, they may be lifted into 3D.
- Future Directions: The authors suggest exploring zero-shot generalization, where a model could edit new, unseen NeRF scenes without needing per-scene training.
Summary updated