3D-GOI: 3D GAN Omni-Inversion for Multifaceted and Multi-object Editing

Haoran Li, Long Ma, Haolin Shi, Yanbin Hao, Yong Liao, Lechao Cheng, Pengyuan Zhou

TL;DR

3D-GOI is the first 3D GAN inversion framework that enables multifaceted, multi-object editing from a single image. By successfully disentangling and inverting a complex array of spatial and appearance attribute codes, it allows users to independently manipulate the scale, translation, rotation, shape, and appearance of individual objects within a multi-object scene.

What Problem Does This Paper Address?

Generative Adversarial Network (GAN) inversion works by taking an existing image and mapping it back into the latent space of a trained generative model. Once inverted, you can tweak the latent codes to edit the image seamlessly. However, most existing 2D and 3D GAN inversion methods are limited to single-object scenes (like isolated human faces) and typically only allow changes to appearance or viewpoint.

When applied to complex, multi-object scenes, traditional methods fall short. They fail to capture spatial geometric relationships—such as the scale, rotation, and translation of individual items—because a single latent code typically controls the entire image. Attempting to invert multiple independent codes simultaneously leads to highly entangled optimization paths that easily get stuck in poor local minima. 3D-GOI addresses this gap by providing a structured framework to invert and edit complex multi-object scenes.

Fig. 1: The first row shows the editing results of traditional 2D/3D GAN inversion methods on multi-object images. The second row showcases 3D-GOI, which can per- form multifaceted editing on complex images with multiple objects. ’bg’ stands for background. The red crosses in the upper right figures indicate features that cannot be edited with current 2D/3D GAN inversion methods.

Methods

The authors base their framework on GIRAFFE, a prominent compositional 3D GAN that represents scenes as a collection of individual feature fields (foreground objects and background) subjected to affine transformations. To invert the $(5n + 3)$ distinct codes required for a scene with $n$ objects, 3D-GOI introduces a three-stage pipeline:

  1. Scene Decomposition: The target image is segmented into distinct foreground objects and the background. This step isolates the feature fields, ensuring that the encoder can focus on object-specific attributes without interference from neighboring objects or the background.
  2. Coarse Estimation via Neural Inversion Encoder: The authors design a custom Neural Inversion Encoder whose architecture mirrors the inverse of GIRAFFE’s Neural Rendering Block. Instead of training on complex multi-object scenes, the encoders are trained on simpler, single-object scenes generated by GIRAFFE, which significantly reduces computational overhead while maintaining strong generalization capabilities.
  3. Round-Robin Optimization: To refine the coarse codes without falling into local minima, the authors reject simultaneous optimization. Instead, they propose a sequential round-robin optimization algorithm. This algorithm applies minor disturbances to each code, calculates a dynamic ranking based on the resulting loss variations, and optimizes the codes one by one in order of priority.
The overall 3D-GOI framework, illustrating scene decomposition, coarse estimation, and round-robin optimization.

Datasets

The framework was trained and evaluated using several datasets adapted for multi-object and 3D tasks:

  • G-CompCars: A multi-car dataset generated using a pre-trained GIRAFFE model trained on the original CompCars dataset.
  • Clevr: A multi-geometry benchmark dataset used to simulate multi-object scenes with fixed rotations and scales.
  • FFHQ & CelebA-HQ: Used respectively for training and testing the model's performance on human face novel-view synthesis tasks.

Key Insights and Ideas

  • Sequential > Simultaneous Optimization: The core "aha moment" of the paper is that optimizing all latent codes at once causes chaotic optimization paths. By dynamically ranking codes based on how much a minor perturbation affects the reconstruction loss, the round-robin strategy ensures stable convergence.
  • Single-Object Training Generalizes to Multi-Object Scenes: By leveraging scene decomposition (segmentation), the encoders can be trained entirely on single-object data. This drastically simplifies the training phase while still allowing the model to perform excellently on complex, multi-object test images.
  • Spatial Disentanglement: Unlike traditional 2D GANs where spatial attributes are deeply entangled with appearance, mapping images to a compositional 3D GAN structure allows explicit, independent control over physical properties like translation and rotation.

Key Results

3D-GOI demonstrates superior performance in both quantitative reconstruction quality and qualitative editing flexibility.

  • Quantitative Performance: When benchmarked against leading 2D inversion methods (like pSp, e4e, HyperStyle, HFGI) and 3D inversion methods (like TriplaneNet, E3DGE), 3D-GOI consistently achieved lower Mean Squared Error (MSE) and Perceptual Similarity Loss (LPIPS), alongside higher Identity Similarity (ID). For instance, on the GIRAFFE generator, 3D-GOI achieved an MSE of 0.024 and LPIPS of 0.262, outperforming all baselines.
  • Qualitative Editing: The framework successfully executes complex edits on multi-car scenes—such as changing the color of one car, rotating another, and shifting the camera pose—all while maintaining the structural integrity of the rest of the scene.

Limitations and Future Work

Despite its strengths, 3D-GOI faces a few limitations:

  • The "In-the-Wild" Gap: The framework relies heavily on the underlying distribution of the GIRAFFE generator. Because GIRAFFE struggles to model highly complex real-world distributions perfectly, inverting arbitrary "in-the-wild" real photographs remains challenging.
  • Code Entanglement: Residual interaction effects between different attribute codes in GIRAFFE occasionally cause minor unintended changes during editing (e.g., altering an object's scale might slightly shift its perceived translation).

Future work will focus on reducing the computational cost of the optimization phase, improving encoder prediction speeds, and exploring training methodologies on broader, real-world datasets to enhance out-of-distribution generalization.

Summary updated

BibTeX
@misc{li2023d,
  author = {Haoran Li and Long Ma and Haolin Shi and Yanbin Hao and Yong Liao and Lechao Cheng and Pengyuan Zhou},
  title = {{3D-GOI: 3D GAN Omni-Inversion for Multifaceted and Multi-object Editing}},
  year = {2023},
  eprint = {2311.12050},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.12050},
}
Figure