[Paper Review] Discriminator Rejection Sampling
This paper introduces Discriminator Rejection Sampling (DRS), a post-processing method that uses the trained GAN discriminator as a rejection sampler to improve generated samples. By leveraging the discriminator’s confidence scores, DRS significantly improves FID and Inception Score on ImageNet, achieving an Inception Score of 76.08 and FID of 13.75 on an improved SAGAN baseline.
We propose a rejection sampling scheme using the discriminator of a GAN to approximately correct errors in the GAN generator distribution. We show that under quite strict assumptions, this will allow us to recover the data distribution exactly. We then examine where those strict assumptions break down and design a practical algorithm - called Discriminator Rejection Sampling (DRS) - that can be used on real data-sets. Finally, we demonstrate the efficacy of DRS on a mixture of Gaussians and on the SAGAN model, state-of-the-art in the image generation task at the time of developing this work. On ImageNet, we train an improved baseline that increases the Inception Score from 52.52 to 62.36 and reduces the Frechet Inception Distance from 18.65 to 14.79. We then use DRS to further improve on this baseline, improving the Inception Score to 76.08 and the FID to 13.75.
Motivation & Objective
- To address the persistent issue of GAN generators failing to perfectly match the true data distribution despite adversarial training.
- To explore whether useful information remains in the trained discriminator that could correct generator distribution errors.
- To develop a practical, post-training method that improves sample quality without retraining the generator.
- To empirically validate the method on both synthetic mixtures of Gaussians and real-world ImageNet data with state-of-the-art GANs.
Proposed method
- The method uses the trained discriminator’s output as a score function for rejection sampling, accepting or rejecting generated samples based on their confidence.
- It applies a dynamic thresholding strategy, setting the acceptance threshold to the 80th percentile of discriminator scores in each batch.
- The approach is theoretically justified under strict assumptions, where exact data distribution recovery is possible if the discriminator is optimal.
- For practical use, the method accounts for breakdowns in theoretical assumptions, such as finite model capacity and non-ideal optimization.
- A sigmoid output layer is added on top of the discriminator to ensure compatibility with rejection sampling, especially when using hinge loss.
- The method is applied post-training, requiring no changes to the generator or training process.
Experimental results
Research questions
- RQ1Can the trained discriminator be used to correct distributional errors in the GAN generator without retraining?
- RQ2Under what theoretical conditions can the discriminator enable exact recovery of the true data distribution?
- RQ3How do violations of theoretical assumptions affect the performance of such a rejection sampling scheme in practice?
- RQ4To what extent can DRS improve sample quality on real-world datasets like ImageNet?
Key findings
- On ImageNet, DRS improved the Inception Score from 62.36 (improved SAGAN baseline) to 76.08 and reduced FID from 14.79 to 13.75.
- The method achieved a 23.5% relative improvement in Inception Score and a 12.5% relative reduction in FID over the baseline.
- Samples with high acceptance probability were consistently more visually coherent and recognizable as distinct object classes.
- The rejection sampling process showed a monotonic decrease in acceptance probability along latent space interpolations, indicating the discriminator encodes meaningful quality signals.
- Qualitative analysis confirmed that high-acceptance samples were more realistic and less noisy than low-acceptance ones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.