Abstract
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. We validated our method on the MNIST, Fashion MNIST, CIFAR 10 and SVHN datasets, and it outperformed many state-of-the-art models. We conducted extensive experiments to study its usefulness, as well as showed how the proposed ADP framework can be used for transfer learning as well as multitask learning, where data from two domains are generated simultaneously using the framework along with the label information. Our future work will involve understanding the theoretical implications of this new framework from a game-theoretic perspective, as well as explore the performance of the method on more complex datasets.
Introduction
The "fuel" for modern deep learning is massive, hand-curated, labeled datasets. However, creating these datasets is a grueling, expensive process involving thousands of human hours. While Data Programming (DP) emerged as a way to use "labeling functions" (heuristics or rules-of-thumb) to label data quickly, it typically requires a large pool of existing unlabeled data and relies on computationally expensive sampling methods.
The authors identify a gap: Can we create a system that generates both the data and the labels from scratch using only these weak supervision signals? The challenge lies in the fact that these weak labels are often noisy or conflicting. A successful model must learn which heuristics to trust and how they relate to one another without having a "ground truth" to lean on during the generation process.
The Adversarial Data Programming (ADP) Framework
The authors introduce Adversarial Data Programming (ADP), which embeds the logic of labeling functions directly into a Generative Adversarial Network (GAN) architecture. The system consists of three primary modules:
- The Generator ($G$): Unlike a standard GAN that just spits out an image, this generator produces an image and a set of parameters ($\Theta$ and $\Phi$). These parameters represent the model's "belief" about the accuracy and dependencies of the labeling functions for that specific image.
- The Labeling Functions Block (LFB): This is the "brain" of the operation. It takes the generated image and applies a set of pre-defined weak labeling functions (e.g., "if there are many vertical lines, it might be a '1'"). It then uses the parameters from the generator to aggregate these weak signals into a single, high-fidelity label.
- The Discriminators ($D$): ADP uses a multi-pronged approach to "critique" the generator. One discriminator looks at the image-label pair to see if it looks "real," while a second discriminator ($D_{LFB}$) specifically checks the inter-function dependencies to prevent the model from "cheating" or falling into mode collapse.
By training these modules in a min-max game, the generator learns to produce images that not only look real but also perfectly match the labels synthesized by the LFB.
Experimental Evaluation
The framework was validated on four standard computer vision benchmarks: MNIST, Fashion MNIST, SVHN (Street View House Numbers), and CIFAR-10. The authors utilized a variety of labeling functions ranging from simple edge detectors and image histograms to more complex features like SIFT descriptors and kernels from pre-trained deep networks.
Key Results
- Human Turing Test: In a blind test, human evaluators rated ADP's image-label correspondence higher than or equal to state-of-the-art models like TripleGAN and InfoGAN across almost all datasets. For example, on MNIST, ADP achieved a label correspondence score of 9.92/10.
- Classification Boost: When a ResNet-56 was trained on synthetic data generated by ADP, it achieved significantly lower cross-entropy loss compared to models trained on data from other GANs.
- Efficiency: The authors found that using roughly 50-55 labeling functions provided the optimal balance for performance, showing that you don't need an infinite number of heuristics to get great results.
Discussion and Insights
A major contribution of this work is the treatment of inter-function dependencies. Without the specific adversarial check on how labeling functions correlate, the model suffers from mode collapse. Adding a dedicated discriminator for these dependencies was the key to high-fidelity labels. Furthermore, the paper suggests that labeling functions act as an implicit regularizer. By forcing the generator to satisfy these "rules," the model is less likely to produce nonsensical images, leading to better generalization.
ADP also demonstrates significant versatility beyond static dataset generation. The authors showed it can be effectively used for Transfer Learning (e.g., training on MNIST and fine-tuning for SVHN) and Multi-task Learning (generating data for two different domains simultaneously).
Limitations and Future Work
While ADP performs exceptionally well on standard benchmarks, the current labeling functions are somewhat "hand-crafted." Future work involves exploring how to make these functions even more generic and testing the framework on much more complex, high-resolution datasets. Additionally, the authors aim to explore the theoretical stability of this three-module adversarial game from a more rigorous game-theoretic perspective.
Summary updated