TL;DR
The authors present NeRF-3DE, a novel two-stage encoder designed to "invert" real-world 2D images into the latent space of 3D-aware generative models like StyleNeRF. By combining identity contrastive learning with a refined two-step encoding process, the system achieves high-fidelity image reconstruction while ensuring that the generated 3D head remains consistent and recognizable from any viewing angle.
Introduction: The Challenge of 3D Consistency
In generative AI, "inversion" is the process of taking a real image and finding the specific latent code that would cause a pre-trained generator to produce that exact image. While this is well-studied for 2D GANs, it remains a significant challenge for 3D-aware models like Neural Radiance Fields (NeRF).
Standard 2D encoders often fail to ensure that the latent code is view-invariant. Consequently, while a reconstruction may look accurate from the front, rotating the virtual camera can cause the identity to shift or the 3D structure to "melt." Additionally, the scarcity of multi-view datasets of the same individual makes training robust 3D encoders difficult.
Methods: The NeRF-3DE Framework
To address these challenges, the authors propose NeRF-3DE, which utilizes a two-stage approach to balance 3D structural integrity with fine-grained identity details.
Stage 1: Base Encoder ($W$ space)
The model first maps the input image to the constrained $W$ latent space. To enforce view-invariance, the authors employ Identity Contrastive Learning. Since real multi-view datasets are scarce, they use the pre-trained StyleNeRF generator to create synthetic multi-view training data. A triplet loss pushes the encoder to map different views of the same synthetic person to the same latent code, while separating different identities.
Stage 2: Refining Encoder ($W+$ space)
While the $W$ space ensures 3D consistency, it often misses fine details like unique eye shapes or wrinkles. The second stage learns a "residual" in the more flexible $W+$ space, adding back identity-defining details without disrupting the 3D foundation established in the first stage.
Key Results and Insights
NeRF-3DE significantly outperforms state-of-the-art 2D encoders (such as pSp and ReStyle) when applied to 3D models.
- Identity Preservation: On the CelebA-HQ test set, NeRF-3DE achieved an ID Score of 0.51 at extreme 35-degree yaw angles, nearly doubling the performance of ReStyle (0.27).
- Reconstruction Quality: The method achieved lower L2 and LPIPS scores, indicating higher fidelity to the original photo.
- Efficiency: NeRF-3DE is orders of magnitude faster than optimization-based methods like PTI, processing images in 0.315s compared to 194s.
Conclusion
By decoupling identity from camera pose and leveraging self-supervised multi-view training, NeRF-3DE provides a robust solution for 3D-aware image inversion. While the quality is ultimately capped by the underlying generator, this framework sets a new standard for fast, high-fidelity 3D head reconstruction.
Summary updated