Abstract
Generative Adversarial Networks (GANs) often struggle to represent disconnected data categories, leading to low-quality "bridge" images. This paper introduces a lightweight auxiliary network that learns to reweight the latent space, allowing researchers to filter out poor samples or "nudge" them toward higher quality via gradient ascent—all with up to a 15x speedup over existing post-processing methods.
Introduction
Standard GANs map a simple, connected latent space (like a Gaussian distribution) to a complex data distribution. However, real-world data often lives on disconnected manifolds. Because the generator is a continuous function, it is forced to produce "bridge" samples in the gaps between these data modes. This results in the "No GAN’s Land" problem: the model inevitably generates unrealistic, low-quality images when trying to cover the entire dataset. While existing methods like Rejection Sampling can filter these out, they are computationally expensive because they require passing every candidate through the full generator and discriminator.
Methodology
The authors propose a post-training refinement strategy that operates almost entirely in the latent space. The core innovation is moving the "rejection" logic from the high-dimensional pixel space to the low-dimensional latent space, which is significantly faster.
Latent Importance Weights ($w_\phi$)
The method involves training a small Multi-Layer Perceptron (MLP) to predict an "importance weight" for any given latent vector $z$. This network is trained adversarially against a frozen discriminator to minimize the Wasserstein distance between the generated and real distributions.
LatentRS and LatentGA
The importance weights enable two primary techniques:
- LatentRS (Rejection Sampling): The model uses the importance weights to accept or reject the latent vector $z$ before it ever touches the heavy generator network.
- LatentGA (Gradient Ascent): Since the weight network is differentiable, they can perform gradient ascent on $z$ to move it toward regions of higher "importance" (higher quality) before generation.
A hybrid approach, LatentRS+GA, first filters out the worst latent vectors and then refines the survivors. By reweighting the latent space, the authors effectively "cut" the continuous latent distribution, allowing a continuous generator to behave as if it were modeling a disconnected distribution.
Experiments and Results
The method was evaluated on synthetic datasets and high-dimensional image datasets including MNIST, FashionMNIST, CelebA, and LSUN Church. The refinement was applied to pre-trained state-of-the-art architectures like ProGAN and StyleGAN2.
Key findings include:
- Quantitative Superiority: On LSUN Church with StyleGAN2, LatentRS+GA achieved the best Earth Mover's Distance (22.6) and FID score (6.27).
- Massive Speedup: LatentRS took only 16.2 ms to produce an image on LSUN Church, compared to 130 ms for SIR and 196.7 ms for DOT—a ~15x speedup over standard Discriminator Rejection Sampling (DRS).
- Precision Gains: On CelebA, the method improved Precision from 74.2% to 83.3%, significantly reducing the number of unrealistic face generations.
Limitations and Future Work
While providing an "almost free" performance boost, the method is a post-hoc "patch" for already-trained GANs. There is a risk of mode collapse if the weight network is too aggressive, though this is mitigated by "soft-clipping" weights to preserve diversity. Future work involves further tuning hyperparameters to balance image quality versus diversity across different datasets.
Summary updated