Improved Input Reprogramming for GAN Conditioning
Tuan Dinh, Daewon Seo, Zhixu Du, Liang Shang, Kangwook Lee
TL;DR
This work defines GAN conditioning as transforming a pretrained unconditional GAN into a CGAN using labeled data, and shows that input reprogramming is most effective when labels are scarce. It introduces InRep+, an improved input reprogramming framework that uses a shared, invertible modifier and a PU-based discriminator loss with weight-sharing discriminators to scale to many classes. Theoretical analysis confirms optimal conditional distribution learning under ideal conditions, while comprehensive experiments demonstrate strong gains over baselines, particularly at very low supervision and under label noise or class imbalance. The approach offers practical gains in memory efficiency and robustness, enabling effective conditional generation without retraining or substantial labeling effort. The findings have potential implications for conditioning other unconditional generative models and connect concepts with prompt-tuning in downstream tasks.
Abstract
We study the GAN conditioning problem, whose goal is to convert a pretrained unconditional GAN into a conditional GAN using labeled data. We first identify and analyze three approaches to this problem -- conditional GAN training from scratch, fine-tuning, and input reprogramming. Our analysis reveals that when the amount of labeled data is small, input reprogramming performs the best. Motivated by real-world scenarios with scarce labeled data, we focus on the input reprogramming approach and carefully analyze the existing algorithm. After identifying a few critical issues of the previous input reprogramming approach, we propose a new algorithm called InRep+. Our algorithm InRep+ addresses the existing issues with the novel uses of invertible neural networks and Positive-Unlabeled (PU) learning. Via extensive experiments, we show that InRep+ outperforms all existing methods, particularly when label information is scarce, noisy, and/or imbalanced. For instance, for the task of conditioning a CIFAR10 GAN with 1% labeled data, InRep+ achieves an average Intra-FID of 76.24, whereas the second-best method achieves 114.51.
