Generative Modeling Helps Weak Supervision (and Vice Versa)

Benedikt Boecking, Nicholas Roberts, Willie Neiswanger, Stefano Ermon, Frederic Sala, Artur Dubrawski

Abstract

The authors introduce WSGAN, a framework that fuses programmatic weak supervision with generative adversarial networks (GANs). By aligning the discrete latent structures discovered by a GAN with the noisy labels provided by weak supervision, the model improves both the accuracy of label estimates and the quality of generated images. Ultimately, this enables effective data augmentation without relying on any ground-truth labels.

Introduction: The Data Bottleneck

Supervised machine learning is notoriously "data-hungry," often requiring thousands of hand-labeled examples. To bypass this bottleneck, researchers typically use two main strategies:

  1. Weak Supervision (WS): Using "labeling functions" (heuristics, pre-trained models, or rules of thumb) to create noisy "pseudolabels" for unlabeled data.
  2. Generative Modeling: Using GANs to learn the underlying distribution of data to generate new, synthetic samples.

While both techniques extract structure from unlabeled data, they have historically lived in silos. Weak supervision often ignores the rich spatial features of images, while GANs are typically unsupervised and struggle to map their internal "latent codes" to meaningful semantic classes. The primary challenge addressed in this paper is building a functional interface where these two paradigms can mutually benefit each other.

Methodology: The WSGAN Architecture

The core of the paper is the Weakly-Supervised GAN (WSGAN). It builds on the architecture of an InfoGAN, which uses an auxiliary network to predict a discrete latent code for every image.

WSGAN Architecture

The authors introduce three key components to create a "virtuous cycle" between the GAN and the weak supervision model:

  • Sample-Dependent Label Model: Unlike traditional models that assume a labeling function has a fixed accuracy, WSGAN uses an encoder to estimate how much to trust a specific labeling function based on the features of the specific image.
  • Alignment Interface: Two small interface models map the GAN’s latent codes to the label model’s predictions.
  • Joint Objective: A new loss term forces the GAN’s discovered structure to align with the weak supervision signal. Essentially, the GAN helps the label model "see" the data better, while the weak labels provide the GAN with the semantic "names" for the clusters it finds.

Datasets and Evaluation

The researchers evaluated WSGAN across a diverse set of image datasets with varying types of weak labels, including standard benchmarks (MNIST, FashionMNIST, CIFAR-10), domain-specific sets (AwA2, GTSRB), and complex scenes (DomainNet, LSUN). They utilized a mix of labeling functions, such as attribute heuristics, domain transfer models, and SSL-based classifiers.

Key Insights

  • Mutual Teaching: The most profound insight is the synergy between the two systems. The GAN is excellent at finding clusters in data but lacks semantic understanding. Weak supervision provides the "meaning" but is often noisy. By forcing them to agree, the GAN acts as a regularizer that cleans up the noisy labels, and the labels guide the GAN toward better class-conditional generation.
  • The "Teacher" Phase: Initializing the label model to treat all labeling functions equally at the start (via a "decaying penalty") allows it to act as a stable teacher for the GAN in early training epochs.
  • Synthetic Data as a Bridge: WSGAN is the first approach to enable data augmentation using synthetic images paired with weakly supervised labels. This allows a downstream model to learn from "fake" data that is semantically labeled by the GAN-WS interface.

Key Results

WSGAN demonstrates significant improvements across multiple fronts:

  • Better Labels: WSGAN’s label model outperformed established baselines like Snorkel, improving pseudolabel accuracy by up to 6%.
  • Higher Quality Images: Across six datasets, WSGAN improved image generation quality by an average of 5.8 FID points (a standard metric for GAN realism) compared to the unsupervised InfoGAN.
  • Downstream Gains: Using synthetic images generated by WSGAN to augment training sets improved the accuracy of downstream classifiers by up to 3.9%.
  • State-of-the-Art Integration: The method scales effectively; the authors successfully integrated it with StyleGAN2-ADA, achieving high-resolution, class-conditional image generation without ground-truth labels.
Generated Samples

Limitations and Future Work

The authors acknowledge that WSGAN still inherits standard GAN training challenges, such as the risk of mode collapse. Additionally, performance remains tied to the quality of the initial labeling functions; if the weak sources are extremely poor, the alignment might fail.

For future work, the authors suggest extending this interface to other data modalities, such as graphs and time series, and exploring how this joint learning could be applied to more complex structured prediction tasks where labels are more than simple categories.

Summary updated

BibTeX
@inproceedings{boecking2023generative,
  author = {Benedikt Boecking and Nicholas Roberts and Willie Neiswanger and Stefano Ermon and Frederic Sala and Artur Dubrawski},
  title = {{Generative Modeling Helps Weak Supervision (and Vice Versa)}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=3OaBBATwsvP},
}
Figure