Generative Adversarial Data Programming

Arghya Pal, Vineeth N. BalasubramanianarXiv 2020

TL;DR

This paper introduces Adversarial Data Programming (ADP), a novel framework that leverages Generative Adversarial Networks (GANs) and "labeling functions" to automatically generate both realistic images and their corresponding labels. This approach addresses the critical bottleneck of scarce labeled data in machine learning, enabling applications like self-supervised learning and zero-shot generation.

What Problem Does This Paper Address?

The core challenge tackled here is the paucity of large, high-quality labeled datasets, which is a major hurdle for deploying state-of-the-art machine learning models, especially in computer vision. Manually annotating vast amounts of data is prohibitively expensive, time-consuming, and requires domain expertise. While "Data Programming" offers a way to use weak supervision signals (labeling functions) to generate labels, it doesn't directly address the generation of the data itself. ADP aims to bridge this gap by creating a unified framework that generates both the data and its labels, even from weak supervision.

Methods

The paper proposes Adversarial Data Programming (ADP), which integrates Generative Adversarial Networks (GANs) with a "Labeling Functions Block" (LFB).

  • GAN Framework: ADP uses a GAN architecture with a generator ($G$) and a discriminator ($D$). The generator is responsible for producing image-label pairs, while the discriminator tries to distinguish between real and generated data.
  • Labeling Functions Block (LFB): This is the novel component. Instead of relying solely on direct labels, ADP uses a set of "labeling functions" (LFs). These are weak, heuristic-based functions (e.g., "if an object is round, it might be a ball") that provide distant supervision. The LFB learns to combine these weak signals, along with learned parameters representing their "relative accuracies" and "inter-function dependencies," to produce a probabilistic label for a generated image.
  • Adversarial Training: The entire system is trained adversarially. The generator learns to produce realistic images and plausible labels that fool the discriminator, while the LFB learns to effectively aggregate the weak supervision signals. This adversarial process allows ADP to learn the joint distribution of images and labels.
  • Extensions: The framework is designed to be extensible, enabling applications like:
  • Self-Supervised Labeled Image Generation (SS-ADP): Generating labeled images from unlabeled data by using self-supervision signals (e.g., image rotation).
  • Generalized Zero-Shot Text to Labeled Image Synthesis (ZS-ADP): Generating labeled images from textual descriptions, even for classes not seen during training.
  • Transfer Learning and Multi-task Learning: Adapting the model to new domains or learning from multiple domains simultaneously.

Datasets

The paper evaluates ADP and its extensions on several standard datasets:

  • SVHN (Street View House Numbers)
  • CIFAR-10
  • LSUN (Large-scale Scene Understanding)
  • CHEST (Chest-Xray-14)
  • MNIST
  • Fashion MNIST (FMNIST)
  • LookBook (a cloth dataset, with classes grouped to match FMNIST)
  • CUB 200 (Caltech-UCSD Birds-200-2011)
  • Flower-102

No new benchmarks were introduced; the focus was on applying the ADP framework to existing datasets.

Key Insights and Ideas

  • Bridging Data Generation and Labeling: The most significant insight is the unification of image generation and label generation within a single adversarial framework. This tackles the data scarcity problem from both ends.
  • Leveraging Weak Supervision: ADP demonstrates that even noisy, heuristic-based "labeling functions" can be effectively combined to generate high-quality labels, significantly reducing the need for manual annotation.
  • Adversarial Learning for Dependencies: The paper shows that adversarial training can effectively learn complex dependencies between labeling functions, which is crucial for accurate label aggregation. This is presented as an advantage over traditional methods like factor graphs.
  • Generalizability: The framework's modularity allows it to be readily extended to various challenging tasks like zero-shot learning and transfer learning, highlighting its broad applicability.

Key Results

  • Image Quality: ADP and SS-ADP show significant improvements in image quality compared to baseline BigGAN, capturing both "style" (background, illumination) and "content" (object shape, orientation) more thoroughly.
  • Image-Label Correspondence: The proposed methods achieve good image-to-label correspondence, as evidenced by high CRT (classification accuracy on generated images) and HTT (Human Turing Test) scores, particularly for ZS-ADP.
  • Efficiency: ADP is shown to be significantly faster (up to 100X) than MLE-based Data Programming methods for estimating labeling function parameters.
  • Zero-Shot Performance: ZS-ADP is presented as the first generalized zero-shot text-to-labeled-image generator, outperforming existing methods in capturing zero-shot class correspondence.
  • Optimal Labeling Functions: Experiments suggest that 10-15 labeling functions provide the best performance for ADP.

Limitations and Future Work

  • Theoretical Implications: The authors suggest future work to explore the theoretical implications of the ADP framework from a game-theoretic perspective.
  • Complex Datasets: Investigating the performance of the method on more complex datasets is also proposed.
  • Hyperparameter Tuning: While the paper mentions fixing $\lambda$ for ZS-ADP, further exploration of hyperparameter sensitivity could be a future direction.
  • Labeling Function Design: The effectiveness of ADP relies on the quality and diversity of the labeling functions. Designing optimal labeling functions remains an area of interest.

Summary updated

Abstract

The paucity of large curated hand-labeled training data forms a major bottleneck in the deployment of machine learning models in computer vision and other fields. Recent work (Data Programming) has shown how distant supervision signals in the form of labeling functions can be used to obtain labels for given data in near-constant time. In this work, we present Adversarial Data Programming (ADP), which presents an adversarial methodology to generate data as well as a curated aggregated label, given a set of weak labeling functions. More interestingly, such labeling functions are often easily generalizable, thus allowing our framework to be extended to different setups, including self-supervised labeled image generation, zero-shot text to labeled image generation, transfer learning, and multi-task learning.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Oxford Flowers-102 · Flower 102ZS-ADPC_RT (Top-1 classification score)780-shot · backbone=ResNet-50
Source quote
L406: ZS-ADP\xspace │ (9.28/78) │ (9.11/76) │ (9.16/79)
CUB-200-2011 · CUB 200ZS-ADPC_RT (Top-1 classification score)760-shot · backbone=ResNet-50
Source quote
L406: ZS-ADP\xspace │ (9.28/78) │ (9.11/76) │ (9.16/79)
ChestX-ray · Chest XrayZS-ADPC_RT (Top-1 classification score)790-shot · backbone=ResNet-50
Source quote
L406: ZS-ADP\xspace │ (9.28/78) │ (9.11/76) │ (9.16/79)
Oxford Flowers-102 · Flower 102ZS-ADPFID3.280-shot
Source quote
L414: ZS-ADP\xspace │ 3.28 │ 3.11 │ 3.16
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
SVHNBig baselineMIS (Modified Inception Score)3.04Labeled image generation; higher is better.
Source quote
L387: Big │ 3.04 │ 8.01 │ 75 │ 67 │ 2.44 │ 13.47 │ 67 │ 49 │ 3.97 │ 7.72 │ 73 │ 63 │ 3.31 │ 6.17 │ 74 │ 63
BibTeX
@misc{pal2020generative,
  author = {Arghya Pal and Vineeth N. Balasubramanian},
  title = {{Generative Adversarial Data Programming}},
  year = {2020},
  eprint = {2005.00364},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.00364},
}
Figure