Learning Foreground-Background Segmentation from Improved Layered GANs

Yu Yang, Hakan Bilen, Qiran Zou, Wing Yin Cheung, Xiangyang Ji

Introduction

Deep learning's success in image segmentation is often bottlenecked by the high cost of pixel-level annotations. While unsupervised approaches using Generative Adversarial Networks (GANs) have attempted to decompose images into foreground and background layers, they frequently suffer from "trivial decompositions." In these scenarios, the model takes a shortcut by assigning the entire image to a single layer, failing to learn meaningful object boundaries.

Methodology: Improved Layered GANs

The authors propose a robust Layered GAN architecture designed to overcome these shortcuts through three primary innovations.

Mutual Information Maximization

The core contribution is the use of Mutual Information (MI) maximization. The generator is fed two types of latent codes: a "public code" shared across layers and a "private code" reserved for the foreground. By maximizing the MI between the private code and the generated foreground, the model is incentivized to ensure the foreground object is both meaningful and diverse. This prevents the "all-as-background" collapse, as an empty foreground would contain zero mutual information with the code.

The Layered GAN architecture decomposes images into foreground and background layers using latent codes and a generator G.

Layer Perturbation and Alternate Training

To further discourage shortcuts, the model employs "Layer Perturbation," where the foreground object's position is slightly shifted during training. This forces the discriminator to penalize unnatural edges that appear if the model tries to hide the background within the foreground layer. Additionally, the system uses an alternate training cycle: the GAN generates a synthetic dataset of image-mask pairs to train a segmentation network (e.g., U-Net), which in turn helps regularize the GAN's background generation.

Datasets and Evaluation

The model was rigorously tested on several single-object datasets, including the Caltech-UCSD Birds (CUB), Stanford Cars, Stanford Dogs, and the Amazon Picking Challenge (APC) dataset. These benchmarks evaluate the model's ability to handle fine-grained categories as well as diverse warehouse objects.

Key Results

The proposed method sets a new benchmark for unsupervised segmentation. On the CUB dataset, it achieved a 69.7% Intersection over Union (IoU), significantly outperforming previous unsupervised methods like PerturbGAN and even surpassing weakly supervised models like FineGAN (44.5% IoU).

Qualitative results showing generated bird images and their corresponding automatically learned segmentation masks.

Beyond accuracy, the model produced high-quality synthetic images with an FID score of 12.9 on CUB. The results on the APC dataset further demonstrate the model's robustness across varied object categories, proving it is not limited to specific biological domains.

Conclusion and Future Work

This research demonstrates that high-fidelity segmentation masks can be learned entirely without human supervision by leveraging information-theoretic constraints in layered generative models. While currently limited to single-instance scenes, future work aims to extend this framework to complex, multi-object environments by modeling inter-object relationships.

Summary updated

BibTeX
@inproceedings{yang2022learning,
  author = {Yu Yang and Hakan Bilen and Qiran Zou and Wing Yin Cheung and Xiangyang Ji},
  title = {{Learning Foreground-Background Segmentation from Improved Layered GANs}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  doi = {10.1109/wacv51458.2022.00044},
}
Figure