Abstract
Reference-based 3D-aware image editing aims to transfer specific attributes—such as hairstyle, eyewear, or clothing—from a reference image to a source image while maintaining strict 3D consistency. Current 2D methods often fail at pose alignment, while existing 3D models lack the precision for granular attribute transfer. This paper introduces a novel framework that leverages triplane representations to localize and fuse features directly within a 3D-aware latent space. By combining differentiable rendering for 3D masking with implicit GAN-based fusion, the proposed method achieves state-of-the-art results in visual quality and identity preservation across diverse datasets, including human faces and full-body fashion.
Introduction
Image editing has advanced significantly through GANs and Diffusion models, yet "copy-pasting" features between images remains a challenge in 3D contexts. Traditional 2D methods struggle when source and reference subjects are in different poses, often resulting in misaligned or flat edits. Conversely, 3D-aware models like EG3D typically rely on text prompts or global latent directions, which lack the specificity required to replicate a particular reference feature exactly. This work bridges the gap by enabling precise, reference-based editing that is inherently view-consistent.
Methodology
The framework utilizes a Triplane representation, which models a 3D volume using three orthogonal 2D planes ($XY, XZ, YZ$). This structure allows for efficient 2D convolutional processing while ensuring 3D-consistent rendering. The pipeline involves three critical stages:
- 3D Localization: To isolate a feature, the model uses a differentiable renderer to project the triplane into 2D. A standard 2D segmentation mask is applied, and its gradients are backpropagated into the triplane to identify the specific 3D coordinates corresponding to the target attribute (e.g., hair).
- Implicit Fusion: To avoid visible seams when merging triplanes, the authors employ Implicit Fusion. A GAN encoder ($E_{W+}$) and generator ($G$) process the stitched triplane, "hallucinating" natural transitions that smooth geometry and color inconsistencies.
- Encoder Fine-tuning: To preserve the source subject's identity (such as skin texture and eye shape), the image encoder is fine-tuned using masked losses, ensuring the final output retains the source's unique characteristics while adopting the reference attribute.
Experiments and Results
The method was evaluated against 12 state-of-the-art baselines, including Barbershop and StyleCLIP. On the CelebA dataset, it achieved the lowest FID and highest SSIM for eyeglasses and hair edits, demonstrating superior realism and identity preservation.
Beyond performance, the method is highly efficient. An edit takes approximately 6 seconds on a Tesla T4, significantly faster than optimization-heavy alternatives like Barbershop (125s) or HairCLIPv2 (180s).
Dataset Versatility
The framework's robustness was tested across several domains:
- Human Faces (CelebA, FFHQ, PanoHead): Editing hair, eyes, and accessories.
- Animals (AFHQ): Transferring features between different animal subjects.
- Fashion (DeepFashion): Performing full-body clothing edits, such as swapping tops or pants while maintaining body pose.
Discussion and Conclusion
The core insight of this work is that triplanes can serve as an effective "editing canvas" for 3D volumes. By treating triplanes as manipulatable 2D structures that represent 3D space, the method achieves automatic view consistency. While the approach is currently tied to the quality of the underlying 3D generator, it sets a new standard for reference-based editing. Future work may involve transitioning to Diffusion Transformer (DiT) architectures to further improve alignment and eliminate the need for canonical spaces.
Summary updated