GIRAFFE: Representing Scenes As Compositional Generative Neural Feature Fields

Michael Niemeyer, Andreas Geiger · DOI

Abstract

GIRAFFE is a novel generative model that represents scenes as compositional 3D neural feature fields, enabling highly controllable image synthesis. By integrating low-resolution 3D volume rendering with a 2D neural rendering upsampler, the model learns to disentangle objects, backgrounds, shapes, and appearances from unstructured 2D image collections without any 3D supervision. This approach allows for independent manipulation of scene elements while maintaining high image quality and computational efficiency.

Introduction

While modern Generative Adversarial Networks (GANs) like StyleGAN can synthesize photorealistic high-resolution images, they often lack the fine-grained control necessary for practical content creation. Most existing GANs operate purely in 2D, ignoring the 3D, compositional nature of the real world. Consequently, their latent spaces entangle features; attempting to move an object often results in background warping or identity shifts.

GIRAFFE addresses these challenges by building a 3D-aware, compositional generative model. Unlike previous 3D-aware GANs that require expensive 3D supervision or struggle with multi-object scenes, GIRAFFE is trained entirely on raw, unposed, and unstructured 2D image collections.

Methods

GIRAFFE introduces two major architectural innovations to the concept of Neural Radiance Fields (NeRFs):

1. Compositional Generative Neural Feature Fields

Instead of representing an entire scene with a single neural network, GIRAFFE utilizes separate Multi-Layer Perceptrons (MLPs) for individual objects and the background. These fields output higher-dimensional features rather than simple RGB colors. Objects are placed into a scene using affine transformations (scale, translation, rotation) and composited together using a density-weighted mean.

The GIRAFFE pipeline: Individual feature fields are sampled, posed, and composited before being rendered into a feature image and upsampled by a 2D CNN.

2. Hybrid Rendering Pipeline

Standard 3D volume rendering is computationally expensive at high resolutions. GIRAFFE bypasses this by volume-rendering the 3D scene at a low resolution (16x16 pixels) to create a "feature image." This image is then processed by a 2D Convolutional Neural Network (the "Neural Renderer"), which upsamples it to a high-resolution RGB output (e.g., 256x256). This hybrid approach allows the 3D component to focus on spatial arrangement while the 2D component handles fine textures and lighting.

Key Insights and Results

Unsupervised Disentanglement

By explicitly structuring the generator to composite 3D objects, the model naturally learns to separate objects from the background without masks or labels. It even learns to generate plausible backgrounds behind objects, implicitly solving an inpainting task.

Performance and Quality

  • Efficiency: The hybrid rendering approach is significantly faster than pure volume rendering. GIRAFFE reduces the rendering time of a 256x256 image from 1595.0 ms to just 5.9 ms compared to baselines like GRAF.
  • Image Quality: GIRAFFE achieves state-of-the-art Frechet Inception Distance (FID) scores. On CelebA-HQ at 256x256, it achieved an FID of 21, a substantial improvement over GRAF's 49.

Controllability

Qualitatively, the model allows users to independently rotate objects, translate them in 3D space, and swap object appearances without affecting the rest of the scene.

Comparison of object translation: 2D-based methods (top) exhibit identity changes and background warping, whereas GIRAFFE (bottom) maintains object consistency.

Limitations and Future Work

The model's performance can be affected by dataset biases; for instance, if a dataset lacks diverse head rotations, the model may struggle to disentangle facial features during 3D rotation. Future work aims to learn the distributions of camera poses and object transformations directly from data and incorporate light supervision, such as 2D bounding boxes, to scale to even more complex real-world scenes.

Summary updated

BibTeX
@inproceedings{niemeyer2020giraffe,
  author = {Michael Niemeyer and Andreas Geiger},
  title = {{GIRAFFE: Representing Scenes As Compositional Generative Neural Feature Fields}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr46437.2021.01129},
}
Figure