HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values

Ahmed Imtiaz Humayun Randall Balestriero Richard Baraniuk

Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values

Abstract

We present Polarity Sampling, a theoretically justified plug-and-play method for controlling the generation quality and diversity of pre-trained deep generative networks DGNs). Leveraging the fact that DGNs are, or can be approximated by, continuous piecewise affine splines, we derive the analytical DGN output space distribution as a function of the product of the DGN's Jacobian singular values raised to a power $ρ$. We dub $ρ$ the $\textbf{polarity}$ parameter and prove that $ρ$ focuses the DGN sampling on the modes ($ρ< 0$) or anti-modes ($ρ> 0$) of the DGN output-space distribution. We demonstrate that nonzero polarity values achieve a better precision-recall (quality-diversity) Pareto frontier than standard methods, such as truncation, for a number of state-of-the-art DGNs. We also present quantitative and qualitative results on the improvement of overall generation quality (e.g., in terms of the Frechet Inception Distance) for a number of state-of-the-art DGNs, including StyleGAN3, BigGAN-deep, NVAE, for different conditional and unconditional image generation tasks. In particular, Polarity Sampling redefines the state-of-the-art for StyleGAN2 on the FFHQ Dataset to FID 2.57, StyleGAN2 on the LSUN Car Dataset to FID 2.27 and StyleGAN3 on the AFHQv2 Dataset to FID 3.95. Demo: bit.ly/polarity-samp

Code Repositories

AhmedImtiazPrio/magnet-polarity
Official
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-generation-on-afhqv2Polarity-StyleGAN3
FID: 3.95
image-generation-on-celeba-hq-1024x1024Polarity-ProGAN
FID: 7.28
image-generation-on-ffhq-1024-x-1024Polarity-StyleGAN2
FID: 2.57
image-generation-on-imagenet-256x256Polarity-BigGAN
FID: 6.82
image-generation-on-lsun-car-512-x-384Polarity-StyleGAN2
FID: 2.27
image-generation-on-lsun-cat-256-x-256Polarity-StyleGAN2
FID: 6.34
image-generation-on-lsun-churches-256-x-256Polarity-StyleGAN2
FID: 3.92

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Polarity Sampling: Quality and Diversity Control of Pre-Trained Generative Networks via Singular Values | Papers | HyperAI