TL;DR
WSGAN (Weakly-Supervised GAN) is a novel framework that fuses programmatic weak supervision with generative adversarial networks to overcome the labeled data bottleneck. By aligning a GAN’s latent structure with noisy labels from weak supervision, the model simultaneously improves pseudolabel accuracy, image generation quality, and enables effective data augmentation using synthetic, labeled samples.
What Problem Does This Paper Address?
Deep learning thrives on massive, high-quality labeled datasets, but acquiring them is often an expensive and slow manual process. Two popular workarounds exist: Programmatic Weak Supervision (PWS), which uses noisy "labeling functions" (LFs) like heuristics or pre-trained models to generate labels, and Generative Modeling, which learns the underlying distribution of unlabeled data.
However, these two paradigms have largely operated in isolation. PWS models often ignore the rich structural information within the data itself, while unsupervised generative models (like GANs) struggle to learn class-conditional distributions without ground truth. This paper addresses the lack of a formal "interface" to let these two techniques improve one another.
Methods
The authors introduce WSGAN, which builds upon the InfoGAN architecture. InfoGAN is designed to learn disentangled latent representations by maximizing the mutual information between a small set of latent codes ($b$) and the generated data.
The key components of WSGAN include:
- A Generative Component: A standard GAN (Generator $G$ and Discriminator $D$) plus an auxiliary network ($Q$) that predicts the latent code $b$ from an image.
- A Label Model (LM): Instead of using a static model to aggregate noisy LF votes, WSGAN uses an Accuracy Parameter Encoder ($A$). This encoder looks at a specific image $x$ and predicts sample-dependent weights for each LF, allowing the model to learn which weak sources are most trustworthy for specific types of data.
- The Alignment Interface: This is the "secret sauce." The authors introduce interface models ($F_1, F_2$) that map the GAN’s latent codes to the label model’s predictions. A new alignment loss forces the discrete structure discovered by the GAN to match the class structure suggested by the weak labels.
Datasets
The researchers evaluated WSGAN across a diverse range of image datasets:
- Standard Benchmarks: MNIST, FashionMNIST, and CIFAR10.
- Complex/Real-world: Animals with Attributes 2 (AwA2), DomainNet (using domain transfer as weak supervision), and the German Traffic Sign Recognition Benchmark (GTSRB).
- High-Resolution: LSUN scene categories (256x256 pixels).
They employed various labeling functions, including domain transfer classifiers, attribute-based heuristics, and classifiers fine-tuned on small subsets of data using SimCLR features.
Key Insights and Ideas
- Mutual Reinforcement: The GAN acts as a structural prior for the label model—if two images look similar in the GAN's latent space, they should likely share a label. Conversely, the weak labels provide the GAN with the "hints" it needs to perform class-conditional generation without ground truth.
- Sample-Dependent Trust: By using an encoder ($A(x)$) for LF weights, the model recognizes that a specific heuristic might be highly accurate for "dogs" but useless for "cats." This is a significant step up from traditional label models that assume constant LF accuracy across the whole dataset.
- Theoretical Justification: The paper provides formal proofs showing that generative models provide a generalization bound for weak supervision, and that weak supervision improves the multiplicative approximation bounds for conditional GANs.
Key Results
- Superior Labeling: WSGAN-Encoder consistently outperformed established weak supervision baselines like Snorkel and FlyingSquid. In some cases, it improved pseudolabel accuracy by up to 6%.
- Better Images: The fusion improved image quality significantly. On the AwA2 dataset, WSGAN achieved an FID (Fréchet Inception Distance) of 34.71, compared to 41.62 for a standard InfoGAN.
- Effective Augmentation: The model can generate synthetic images and their corresponding labels. Adding just 1,000 of these synthetic samples to a training set improved the accuracy of a downstream ResNet-18 classifier by up to 3.9%.
- Faster Disentanglement: As shown in Figure 3, WSGAN uncovers the latent class structure much more effectively and rapidly than an unsupervised InfoGAN.
Limitations and Future Work
- GAN Stability: While the authors found WSGAN more stable than InfoGAN, it is still subject to common GAN pitfalls like mode collapse.
- LF Quality: The system still requires labeling functions that are "better than random." If the weak sources are too noisy, the alignment may fail.
- Modality: The current work focuses exclusively on images. The authors suggest that extending this interface to other data types, such as graphs or time-series data, is a promising next step.
- Computational Cost: The addition of the encoder and alignment loss adds a modest increase in training time (roughly 40-50% slower than a basic InfoGAN in their experiments).
Summary updated