Introduction
While 2D GAN inversion has revolutionized image editing by mapping real images into StyleGAN’s latent space, achieving the same for 3D-aware GANs presents significant challenges. The primary hurdles include the ill-posed nature of 3D reconstruction from a single 2D view, the scarcity of paired 2D-3D datasets, and the "detail gap" where global latent codes fail to preserve high-frequency features like wrinkles or complex hairstyles.
E3DGE (Encoder-based 3D GAN invErsion) addresses these issues by introducing a novel framework that reconstructs high-fidelity 3D face models in a fraction of a second. It achieves this through a self-supervised distillation scheme and a hybrid alignment module for view-consistent editing.
Methodology
Self-Supervised 3D Supervision
To overcome the lack of 3D ground truth, E3DGE utilizes a pretrained 3D GAN (StyleSDF) as a teacher. The framework generates synthetic "pseudo-pairs"—3D shapes and their corresponding 2D renders—to train the encoder. The encoder is optimized to predict both the latent code and the 3D Signed Distance Function (SDF) from these synthetic images, ensuring the predicted geometry remains physically plausible.
Local Feature Fusion and Hybrid Alignment
While global latent codes capture the general structure, E3DGE employs a local branch to extract pixel-aligned features from the residual difference between the input image and the coarse reconstruction. These features are projected into 3D space using FiLM (Feature-wise Linear Modulation).
For semantic editing (e.g., changing an expression), the model uses a Hybrid Alignment module. This module employs a 2D alignment network (EADA) to warp and inpaint local features, ensuring they remain anchored to the underlying 3D structure even as the geometry or camera angle changes. This prevents the "sliding texture" artifacts common in 3D editing.
Evaluation and Results
Reconstruction and Geometric Accuracy
E3DGE significantly outperforms standard encoders like pSp and e4e in reconstruction quality, as measured by MAE and LPIPS. On the NoW benchmark, which evaluates geometric accuracy against ground-truth 3D scans, E3DGE achieved a median error of 1.66mm. This performance rivals specialized model-based reconstruction methods while maintaining the flexibility of a GAN-based approach.
Efficiency and Consistency
The framework is highly efficient, performing texture inversion in 0.19 seconds and shape reconstruction in 0.81 seconds. Qualitative results demonstrate that semantic edits remain stable and high-quality across extreme rotation angles, maintaining strict view consistency.
Conclusion
E3DGE provides a robust solution for high-fidelity 3D GAN inversion by combining global structural priors with local identity-preserving features. By treating the pretrained GAN as a surrogate universe for supervision, it bypasses the need for expensive 3D datasets. Future work will focus on improving background handling and extending the framework to non-human categories like animals and vehicles.
Summary updated