Generative Models as a Data Source for Multiview Representation Learning
Ali Jahanian, Xavier Puig, Yonglong Tian, Phillip Isola
TL;DR
This work investigates learning visual representations using only samples from a pre-trained, black-box generative model, without access to its training data. It adapts contrastive learning to generate multiple views via latent-space perturbations in addition to standard pixel-space augmentations, and compares with non-contrastive baselines. The findings show that latent views, particularly Gaussian perturbations, can significantly boost transfer performance and, with high-quality generators like StyleGAN2, even rival representations learned from real data; results also reveal an inverse-U effect for latent perturbation magnitude and sub-logarithmic gains with more synthetic samples. The study suggests that generative models can serve as compressed, privacy-friendly data sources for representation learning and outlines practical guidelines for sampling strategies and method choices in such futures.
Abstract
Generative models are now capable of producing highly realistic images that look nearly indistinguishable from the data on which they are trained. This raises the question: if we have good enough generative models, do we still need datasets? We investigate this question in the setting of learning general-purpose visual representations from a black-box generative model rather than directly from data. Given an off-the-shelf image generator without any access to its training data, we train representations from the samples output by this generator. We compare several representation learning methods that can be applied to this setting, using the latent space of the generator to generate multiple "views" of the same semantic content. We show that for contrastive methods, this multiview data can naturally be used to identify positive pairs (nearby in latent space) and negative pairs (far apart in latent space). We find that the resulting representations rival or even outperform those learned directly from real data, but that good performance requires care in the sampling strategy applied and the training method. Generative models can be viewed as a compressed and organized copy of a dataset, and we envision a future where more and more "model zoos" proliferate while datasets become increasingly unwieldy, missing, or private. This paper suggests several techniques for dealing with visual representation learning in such a future. Code is available on our project page https://ali-design.github.io/GenRep/.
