Improved Input Reprogramming for GAN Conditioning

Tuan Dinh, Daewon Seo, Zhixu Du, Liang Shang, Kangwook LeearXiv 2022

Abstract

Generative Adversarial Networks (GANs) excel at modeling complex data distributions but typically require vast amounts of labeled data to achieve high-quality conditional generation. This paper presents INREP+, a framework for GAN conditioning that repurposes a pretrained, unconditional generator (UGAN) using limited labeled data. By integrating invertible neural networks with Positive-Unlabeled (PU) learning, INREP+ achieves state-of-the-art performance in low-data and noisy-label scenarios, outperforming traditional fine-tuning and standard input reprogramming methods.

Introduction

While unconditional GANs can be trained on massive unlabeled datasets, creating conditional models (e.g., generating specific classes like "cat" or "dog") remains data-intensive. In many practical applications, labeled data is scarce or noisy. Existing approaches like training from scratch often lead to mode collapse, while fine-tuning can cause "catastrophic forgetting" of the original model's quality.

The GAN conditioning task: converting an unconditional generator G into a conditional generator G' using labeled data.

The authors address this by focusing on Input Reprogramming, where the generator remains frozen, and only the input latent space is manipulated to steer the output toward specific classes.

Methodology: The INREP+ Framework

The core of INREP+ is a lightweight modifier network $M$ that transforms standard random noise $z$ into class-specific noise $z_y$. The pretrained generator $G$ is kept entirely fixed during training.

The INREP+ training framework: a trainable modifier M transforms noise z for a fixed generator G, guided by a discriminator D.

Invertible Modifier

A key innovation is the use of an invertible architecture (based on i-ResNet) for the modifier. This ensures a bijective mapping between the original noise space and the class-conditioned latent space. Invertibility prevents "class bleeding"—where different classes overlap in the latent space—and mathematically guarantees that the diversity of the original UGAN is preserved, preventing mode collapse.

Positive-Unlabeled (PU) Learning

Standard GAN training often suffers from "false rejection," where the discriminator penalizes high-quality samples simply because they do not yet perfectly align with the target class. INREP+ reformulates the objective using PU-learning. By treating generated samples as "unlabeled" rather than strictly "fake," the training process becomes more stable and allows the model to explore the latent space more effectively.

Parameter Efficiency

To scale to multiple classes, INREP+ utilizes a weight-sharing architecture. The modifier and discriminator share a common backbone, with only small class-specific "heads" added, minimizing the memory footprint and training time.

Experimental Results

INREP+ was evaluated on MNIST, CIFAR10/100, and CelebA datasets.

  • Low-Data Performance: In a 1% labeled data regime on CIFAR10, INREP+ achieved an Intra-FID of 76.24, significantly better than the 114.51 achieved by previous reprogramming methods.
  • Robustness: The model maintained performance even with a 40% label error rate, demonstrating high resilience to noisy supervision.
  • Efficiency: Due to the frozen generator, training is exceptionally fast; CIFAR10 models reach peak performance in approximately 30 minutes.

Conclusion

INREP+ provides a robust and efficient solution for conditioning pretrained GANs under data constraints. By leveraging invertibility and PU-learning, it overcomes the stability and quality issues of previous reprogramming techniques. Future work may explore applying these principles to other generative architectures, such as Diffusion Models.

Summary updated

BibTeX
@misc{dinh2022improved,
  author = {Tuan Dinh and Daewon Seo and Zhixu Du and Liang Shang and Kangwook Lee},
  title = {{Improved Input Reprogramming for GAN Conditioning}},
  year = {2022},
  eprint = {2201.02692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.02692},
}
Figure