AE-NeRF: Auto-Encoding Neural Radiance Fields for 3D-Aware Object Manipulation

Mira Kim, Jaehoon Ko, Kyusun Cho, Junmyeong Choi, Daewon Choi, Seungryong KimarXiv 2022

Abstract

Manipulating 2D images with 3D awareness—such as changing an object's viewpoint or texture while maintaining structural integrity—remains a significant challenge in computer vision. We present AE-NeRF, the first auto-encoder framework that utilizes Neural Radiance Fields (NeRF) as a decoder for 3D-aware object manipulation. AE-NeRF maps a single 2D image into disentangled latent codes for shape, appearance, and camera pose. This enables high-quality 3D editing in a fast, feed-forward manner, bypassing the slow test-time optimization required by previous inversion-based methods. Our approach achieves state-of-the-art results in reconstruction quality and attribute disentanglement on synthetic benchmarks.

Introduction

Standard 2D image manipulation techniques, such as those based on Generative Adversarial Networks (GANs), often struggle to maintain 3D consistency when the viewpoint changes. While 3D-aware generative models can synthesize high-quality objects from noise, they cannot easily encode specific real-world images for editing. Existing "inversion" methods like CodeNeRF attempt to match real images through expensive test-time optimization, which is slow and often yields sub-optimal results. AE-NeRF addresses these limitations by providing an efficient, feed-forward pipeline for extracting and rendering 3D attributes instantly.

Methodology

The AE-NeRF architecture consists of a ResNet-based Encoder ($\mathcal{E}$) and a conditional NeRF Decoder ($\mathcal{F}$). The encoder predicts three disentangled components from a single input image: a shape code ($z_s$), an appearance code ($z_a$), and a camera pose ($\pi$).

The AE-NeRF architecture and training pipeline, highlighting the novel SwAC and GLAC losses for attribute disentanglement.

Disentanglement Losses

To ensure strict separation between shape and appearance, we introduce two novel loss functions:

  • Swapped-Attribute Classification (SwAC): Attributes are swapped between two different images (e.g., Car A's shape with Car B's appearance). A classifier $\mathcal{M}$ is trained to identify the swapped attributes, forcing the encoder to isolate these features.
  • Global-Local Attribute Consistency (GLAC): This loss ensures that attributes extracted from a small rendered patch are consistent with the global attributes used for the entire scene, enforcing scale-invariant feature extraction.

Stage-wise Training

Training is conducted in three stages to ensure stability:

  1. Generative Pre-training: The decoder is trained as a standalone generative model sampling random latent codes.
  2. Encoder Pre-training: The encoder is trained on "pseudo-pairs" (images and known latent codes) generated by the decoder to provide a stable foundation.
  3. End-to-End Fine-tuning: The entire system is optimized jointly using all reconstruction and disentanglement losses.

Experimental Results

We evaluated AE-NeRF on the CARLA (cars) and Photoshapes (chairs) datasets. AE-NeRF significantly outperforms previous state-of-the-art methods in both quantitative metrics and qualitative fidelity.

Qualitative comparison of AE-NeRF against CodeNeRF and EditNeRF on the CARLA dataset. AE-NeRF demonstrates superior reconstruction and sharper details.

On the CARLA dataset, AE-NeRF achieved a Fréchet Inception Distance (FID) of 42.92, a substantial improvement over CodeNeRF (128.82) and EditNeRF (76.63). Quantitative tests for attribute swapping further confirmed that AE-NeRF achieves better disentanglement with lower perceptual errors. A user study involving 300 participants also favored AE-NeRF for its reconstruction quality and smooth attribute interpolation.

Conclusion

AE-NeRF provides a powerful and efficient framework for 3D-aware image editing. By leveraging the implicit representation of NeRF within an auto-encoding structure, it enables instant manipulation of object attributes without the need for slow optimization. Future work will focus on extending this approach to complex, multi-object real-world scenes and reducing the computational overhead associated with volumetric rendering.

Summary updated

BibTeX
@misc{kim2022ae,
  author = {Mira Kim and Jaehoon Ko and Kyusun Cho and Junmyeong Choi and Daewon Choi and Seungryong Kim},
  title = {{AE-NeRF: Auto-Encoding Neural Radiance Fields for 3D-Aware Object Manipulation}},
  year = {2022},
  eprint = {2204.13426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.13426},
}
Figure