NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Object Segmentation Without Labels with Large-Scale Generative Models

Andrey Voynov, Stanislav Morozov, Artem Babenko

Introduction

Object segmentation—the task of identifying which pixels in an image belong to a specific object—traditionally requires massive amounts of human-annotated data. Creating these pixel-level "masks" is incredibly labor-intensive and expensive. While researchers have explored "unsupervised" approaches (learning without labels), these often involve training a new Generative Adversarial Network (GAN) from scratch for every specific task. This process is notoriously unstable, sensitive to hyperparameters, and time-consuming.

This paper asks a fundamental question: Can we take a massive, general-purpose GAN that has already been trained on a huge dataset (like ImageNet) and "extract" its internal knowledge to perform segmentation on new datasets without any human labels?

The authors demonstrate that large-scale GANs trained without any labels already implicitly "know" how to distinguish objects from backgrounds. By automatically identifying specific "segmenting directions" in a GAN's latent space, they generate high-quality synthetic training data to train a standard segmentation model (U-Net), achieving new state-of-the-art results in unsupervised object segmentation.

Methodology: Extracting Knowledge from GANs

The authors propose a pipeline that turns a pre-trained generative model into a "teacher" for a discriminative segmentation model.

  1. Finding the "Segmenting" Direction: The core idea is that in a GAN's latent space (the mathematical space of variables used to generate images), there are specific directions that affect the foreground and background differently. They define a "segmenting direction" as one where the change in the image can be approximated by two different pixel-wise transformations (affine operators): one for the object and one for the background.
  2. Automatic Discovery: They developed an optimization procedure to find these directions automatically. They look for a direction $h$ where the generated image $G(z)$ and its shifted version $G(z+h)$ can be reconciled by assigning each pixel to one of two simple mathematical maps.
Visualizing the segmenting direction and resulting mask generation.
  1. Synthetic Data Generation: Once the direction is found, they generate thousands of image-mask pairs. To make this data relevant to a specific target dataset (like birds or flowers), they use the GAN's encoder to find latent codes $z$ that "look like" the target data.
  2. Refining Masks: Simple heuristics are applied to filter out "bad" synthetic data, such as removing masks that are too large or images that lack contrast.
  3. Training the "Student": Finally, they train a standard U-Net architecture on this synthetic data. Because the U-Net is a discriminative model, it learns to generalize from the GAN's "hallucinations" to real-world images.

Key Insights: The Structure of Latent Space

  • GANs as Implicit Segmenters: The most striking finding is that a GAN trained only to generate images naturally learns the concept of "objectness" and "background" as a byproduct of learning the data distribution.
  • Latent Space Simplicity: Complex semantic changes, like removing a background or altering lighting, can often be represented by a simple linear shift in the latent space.
Various interpretable directions discovered in the GAN's latent space, such as lighting, zoom, and deformation.
  • Synthetic Supervision is Robust: Even though the GAN's synthetic images and masks aren't perfect (they can be noisy or "uncanny"), they provide enough signal for a U-Net to learn a robust segmentation boundary that works on real, high-quality photos.
  • No Adversarial Training Required: Unlike previous unsupervised methods that require complex "min-max" GAN training for each new task, this method uses a frozen, pre-trained GAN, making it much more stable and easier to reproduce.

Experimental Results

The authors evaluated their method on two primary tasks using the publicly available BigBiGAN model (pre-trained on ImageNet in a completely unsupervised fashion):

  • Object Segmentation: On the CUB-200-2011 (Birds) dataset, the proposed method (E-BigBiGAN) achieved an IoU (Intersection over Union) of 0.710, significantly outperforming previous unsupervised methods like ReDO (0.426) and OneGAN (0.555).
  • Saliency Detection: On the DUTS dataset (a standard benchmark for identifying the most "noticeable" object in an image), it achieved a max F-measure of 0.624, setting a new state-of-the-art for unsupervised saliency detection.
  • Efficiency: Training the final model on synthetic data takes about seven hours on standard consumer GPUs, which is significantly faster than training specialized unsupervised GANs from scratch.

Limitations and Future Directions

While highly effective, the approach has a few limitations. The primary bottleneck is the quality of the generative model itself; if the GAN cannot generate a certain type of object convincingly, it cannot produce good training data for it. Additionally, while the direction discovery is automatic, the "mask improvement" step still relies on some hand-crafted heuristics to clean up the synthetic data. Finally, segmenting complex scenes with many overlapping objects remains a challenge for this specific latent-shift approach.

Future work could involve applying this technique to even larger models, such as StyleGAN or Diffusion models, to see if the "segmenting directions" become even more precise and capable of handling complex, multi-object scenes.

Summary updated

BibTeX
@inproceedings{voynov2021object,
  author = {Andrey Voynov and Stanislav Morozov and Artem Babenko},
  title = {{Object Segmentation Without Labels with Large-Scale Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure