MaGNET: Uniform Sampling from Deep Generative Network Manifolds Without Retraining
Ahmed Imtiaz Humayun, Randall Balestriero, Richard G. Baraniuk
Abstract
Deep Generative Networks (DGNs) are extensively employed in Generative Adversarial Networks (GANs), Variational Autoencoders (VAEs), and their variants to approximate the data manifold and distribution. However, training samples are often distributed in a non-uniform fashion on the manifold, due to costs or convenience of collection. For example, the CelebA dataset contains a large fraction of smiling faces. These inconsistencies will be reproduced when sampling from the trained DGN, which is not always preferred, e.g., for fairness or data augmentation. In response, we develop MaGNET, a novel and theoretically motivated latent space sampler for any pre-trained DGN, that produces samples uniformly distributed on the learned manifold. We perform a range of experiments on various datasets and DGNs, e.g., for the state-of-the-art StyleGAN2 trained on FFHQ dataset, uniform sampling via MaGNET increases distribution precision and recall by 4.1% & 3.0% and decreases gender bias by 41.2%, without requiring labels or retraining. As uniform distribution does not imply uniform semantic distribution, we also explore separately how semantic attributes of generated samples vary under MaGNET sampling. Figure 1: Random batches of StyleGAN2 (ψ = 0.5) samples with 1024 × 1024 resolution, generated using standard sampling (left), uniform sampling via MaGNET on the learned pixel-space manifold (middle), and uniform sampling on the style-space manifold (right) of the same model. MaGNET sampling yields a higher number of young faces, better gender balance, and greater background/accessory variation, without the need for labels or retraining. Images are sorted by gender-age and color coded red-green (female-male) according to Microsoft Cognitive API predictions. Larger batches of images and attribute distributions are furnished in Appendix E.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Generative Visual Prompt: Unifying Distributional Control of Pre-Trained Generative Models cites NVAE: A Deep Hierarchical Variational Autoencoder
- Generative Visual Prompt: Unifying Distributional Control of Pre-Trained Generative Models cites Analyzing and Improving the Image Quality of StyleGAN
- Fair Generative Models via Transfer Learning cites Analyzing and Improving the Image Quality of StyleGAN
- Balancing Act: Distribution-Guided Debiasing in Diffusion Models cites Fair Generative Models via Transfer Learning
- Balancing Act: Distribution-Guided Debiasing in Diffusion Models cites Analyzing and Improving the Image Quality of StyleGAN
- Your GAN is Secretly an Energy-based Model and You Should Use Discriminator Driven Latent Sampling cites Analyzing and Improving the Image Quality of StyleGAN
- Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values cites NVAE: A Deep Hierarchical Variational Autoencoder
- Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values cites Your GAN is Secretly an Energy-based Model and You Should Use Discriminator Driven Latent Sampling
- Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values cites Analyzing and Improving the Image Quality of StyleGAN
- The Role of ImageNet Classes in Fréchet Inception Distance cites Analyzing and Improving the Image Quality of StyleGAN
Cited by top-tier papers17
- The Role of ImageNet Classes in Fréchet Inception DistanceTuomas Kynkäänniemi, Tero Karras, Miika Aittala, Timo Aila et al.ICLR 2023 · 44 citations
- Generative Visual Prompt: Unifying Distributional Control of Pre-Trained Generative ModelsChen Henry Wu, Saman Motamed, Shaunak Srivastava, Fernando De la TorreNeurIPS 2022 · 43 citations
- Fair Generative Models via Transfer LearningChristopher T. H. Teo, Milad Abdollahzadeh, Ngai-Man CheungAAAI 2023 · 34 citations
- Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular ValuesAhmed Imtiaz Humayun, Randall Balestriero, Richard G. BaraniukCVPR 2022 · 18 citations
- Balancing Act: Distribution-Guided Debiasing in Diffusion ModelsRishubh Parihar, Abhijnya Bhat, Abhipsa Basu, Saswat Mallick et al.CVPR 2024 · 15 citations
Builds on5
- NVAE: A Deep Hierarchical Variational AutoencoderArash Vahdat, Jan KautzNeurIPS 2020 · 1,141 citations
- Your GAN is Secretly an Energy-based Model and You Should Use Discriminator Driven Latent SamplingTong Che, Ruixiang Zhang, Jascha Sohl-Dickstein, Hugo Larochelle et al.NeurIPS 2020 · 128 citations
- Approximate Query Processing for Data Exploration using Deep Generative ModelsSaravanan Thirumuruganathan, Shohedul Hasan, Nick Koudas, Gautam DasICDE 2020 · 54 citations
- Analytical Probability Distributions and Exact Expectation-Maximization for Deep Generative NetworksRandall Balestriero, Sébastien Paris, Richard G. BaraniukNeurIPS 2020 · 5 citations
- Analyzing and Improving the Image Quality of StyleGANTero Karras, Samuli Laine, Miika Aittala, Janne Hellsten et al.CVPR 2020
Related papers
- ContraFeat: Contrasting Deep Features for Semantic DiscoveryXinqi Zhu, Chang Xu, Dacheng TaoAAAI 2023 · 2 citations
- Debiasing Pretrained Generative Models by Uniformly Sampling Semantic AttributesWalter Gerych, Kevin Hickey, Luke Buquicchio, Kavin Chandrasekaran et al.NeurIPS 2023 · 4 citations
- Differentiable Augmentation for Data-Efficient GAN TrainingShengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu et al.NeurIPS 2020 · 707 citations
- Quality-Diversity Generative Sampling for Learning with Synthetic DataAllen Chang, Matthew C. Fontaine, Serena Booth, Maja J. Mataric et al.AAAI 2024 · 7 citations
- FEditNet: Few-Shot Editing of Latent Semantics in GAN SpacesMengfei Xia, Yezhi Shu, Yuji Wang, Yu-Kun Lai et al.AAAI 2023 · 4 citations
