Skip to main content
QUICK REVIEW

[Paper Review] Emergence of Object Segmentation in Perturbed Generative Models

Adam Bielski, Paolo Favaro|Bern Open Repository and Information System (University of Bern)|May 29, 2019
Generative Adversarial Networks and Image SynthesisComputer Science33 references16 citations
TL;DR

This paper proposes a fully unsupervised method for object segmentation using a perturbed generative model that forces the generator to learn disentangled foreground-background representations through random shifts. By training a GAN to generate layered scenes (background, foreground, mask) and then using an encoder to invert real images into this latent space, the method achieves state-of-the-art unsupervised segmentation without manual annotations or pre-trained detectors.

ABSTRACT

We introduce a novel framework to build a model that can learn how to segment objects from a collection of images without any human annotation. Our method builds on the observation that the location of object segments can be perturbed locally relative to a given background without affecting the realism of a scene. Our approach is to first train a generative model of a layered scene. The layered representation consists of a background image, a foreground image and the mask of the foreground. A composite image is then obtained by overlaying the masked foreground image onto the background. The generative model is trained in an adversarial fashion against a discriminator, which forces the generative model to produce realistic composite images. To force the generator to learn a representation where the foreground layer corresponds to an object, we perturb the output of the generative model by introducing a random shift of both the foreground image and mask relative to the background. Because the generator is unaware of the shift before computing its output, it must produce layered representations that are realistic for any such random perturbation. Finally, we learn to segment an image by defining an autoencoder consisting of an encoder, which we train, and the pre-trained generator as the decoder, which we freeze. The encoder maps an image to a feature vector, which is fed as input to the generator to give a composite image matching the original input image. Because the generator outputs an explicit layered representation of the scene, the encoder learns to detect and segment objects. We demonstrate this framework on real images of several object categories.

Motivation & Objective

  • To develop a fully unsupervised method for object segmentation that does not rely on manual annotations, bounding boxes, or pre-trained detectors.
  • To define object segmentation based on the principle that object segments can be locally shifted relative to the background without breaking realism.
  • To train a generative model that produces layered scene representations (background, foreground, mask) that remain realistic under random perturbations of the foreground position.
  • To train an encoder network that maps real images to the latent space of the pre-trained generator, enabling end-to-end unsupervised segmentation.
  • To demonstrate the method's effectiveness on real-world datasets such as LSUN Cars and CUB-200, achieving competitive mIoU scores without supervision.

Proposed method

  • Train a generative model (G) in an adversarial setup with a discriminator (D) to produce realistic composite images from a triplet: background (B), foreground (F), and mask (m).
  • Introduce random, input-agnostic shifts (p) to the foreground and mask during training, forcing G to generate realistic, disentangled object segments that remain valid after perturbation.
  • Use a pre-trained generator G as the decoder in an autoencoder setup, where an encoder E maps real images to the latent code z that reconstructs the input via G.
  • Train the encoder E using a perceptual loss based on features extracted from the pre-trained discriminator, and a reconstruction loss to minimize the difference between input and generated images.
  • Use a multi-scale latent code representation: 5 scales, 2 AdaIN codes per scale, and separate codes for background and foreground, totaling 20 latent codes of 512 dimensions.
  • Apply the trained encoder to real images to extract object masks without any ground-truth annotations, using the generator’s explicit layered output.

Experimental results

Research questions

  • RQ1Can object segmentation emerge from a generative model trained under random spatial perturbations of the foreground relative to the background?
  • RQ2Can an unsupervised autoencoder with a fixed, pre-trained generator learn to detect and segment objects in real images without any manual annotations?
  • RQ3How well does the method perform on real datasets with complex object shapes and backgrounds, especially when compared to supervised baselines?
  • RQ4Can the framework generalize to scenes with multiple object categories, even if current GANs limit performance on such data?
  • RQ5To what extent does the quality of the segmentation depend on the invertibility of the generator and the stability of the encoder training?

Key findings

  • The method achieves competitive mean Intersection over Union (mIoU) on the LSUN Car dataset, with results comparable to supervised methods like Mask R-CNN, despite using no manual annotations.
  • On the CUB-200 dataset, the method achieves a mIoU of 0.51 using ground-truth annotations as a benchmark, demonstrating strong performance on fine-grained bird segmentation.
  • The use of random perturbations during generator training successfully prevents trivial solutions (e.g., identical foreground and background or empty masks), forcing the model to learn meaningful object-level disentanglement.
  • Qualitative results show that the model generalizes well to diverse object categories, including cars and horses, even when trained on mixed datasets, though image quality is lower than on single-category data.
  • The encoder training is stabilized by processing images in small batches of 100, and the method remains robust to generator inversion ambiguities, though small objects remain a challenge.
  • The Fréchet Inception Distance (FID) of the generated composite images is comparable to a standard StyleGAN, indicating high realism despite the added constraints of the layered, perturbed training scheme.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.