Subsampling Generative Adversarial Networks: Density Ratio Estimation in Feature Space With Softplus Loss

Xin Ding, Z. Jane Wang, William J. Welch

Abstract

Generative Adversarial Networks (GANs) often produce unrealistic samples due to training instabilities or non-optimal discriminators. This paper introduces DRE-F-SP, a robust post-processing framework designed to "clean up" GAN outputs by filtering out low-quality images. The method estimates the density ratio between real and fake data in a high-level feature space using a novel, stable Softplus loss function. Unlike previous methods, DRE-F-SP is compatible with any GAN architecture and does not rely on the original discriminator's quality. Experimental results on CIFAR-10 and CelebA show significant improvements in Inception Score and FID, demonstrating the effectiveness of independent feature-space filtering.

Introduction

Generative Adversarial Networks (GANs) are powerful generative models but frequently produce artifacts or suffer from mode collapse. To address this, subsampling methods like Discriminator Rejection Sampling (DRS) and Metropolis-Hastings GAN (MH-GAN) have been developed. However, these methods assume discriminator optimality and are often incompatible with GAN variants like WGAN or MMD-GAN because their critics do not output the necessary probability scores. This paper proposes a universal, "plug-and-play" filtering method that operates independently of the generator's training process.

Methods

The proposed framework, DRE-F-SP (Density Ratio Estimation in Feature Space with Softplus Loss), utilizes three key innovations to improve sample quality:

  1. Feature Space Estimation: Instead of raw pixels, images are processed through a pre-trained ResNet-34 to extract high-level features. This reduces dimensionality and focuses on semantic content.
  2. Softplus (SP) Loss: Traditional losses for density ratio estimation (e.g., uLSIF) can be unstable due to being unbounded from below. The authors derive a bounded loss based on the Softplus function ($> - \ln 2 - 1$), which prevents overfitting and ensures training stability.
  3. Flexible Sampling: The estimated ratios are used within sampling schemes such as Rejection Sampling (RS), Metropolis-Hastings (MH), and Sampling-Importance Resampling (SIR) to filter the GAN's output.
Overview of the DRE-based subsampling framework, showing the pipeline from GAN samples to filtered outputs.

The architecture of the density ratio model is designed to map input images $x$ to a feature space $y$ before estimating the ratio $r$ via a multi-layer perceptron (MLP).

Architecture of the DRE model, illustrating the transition from pixel space to feature space and the subsequent MLP for density ratio estimation.

Results

The method was evaluated on benchmarks including CIFAR-10, MNIST, and CelebA. On CIFAR-10, the Inception Score (IS) for a standard DCGAN improved from 6.26 to 8.59 using DRE-F-SP+RS. The Frechet Inception Distance (FID) dropped from 3.00 to 1.66, indicating much higher distributional similarity to real data. Qualitatively, the method successfully filters out distorted faces in the CelebA dataset and eliminates "between-mode" noise in synthetic 2D Gaussian mixtures that previous methods failed to remove.

Discussion and Limitations

While DRE-F-SP offers significant quality gains, it relies on a pre-trained model (like ResNet-34) to define the feature space. In domains where pre-trained models are unavailable, the effectiveness may decrease. Additionally, the process involves computational overhead from generating a large pool of samples and passing them through a deep network. Future work may explore different architectures for the density ratio model or applications to higher-resolution GANs like StyleGAN.

Conclusion

DRE-F-SP provides a stable and universal post-processing step for improving GAN outputs. By leveraging independent feature-space estimation and a bounded loss function, it overcomes the limitations of previous discriminator-dependent subsampling methods, offering a robust tool for enhancing generative model performance.

Summary updated

BibTeX
@article{ding2020subsampling,
  author = {Xin Ding and Z. Jane Wang and William J. Welch},
  title = {{Subsampling Generative Adversarial Networks: Density Ratio Estimation in Feature Space With Softplus Loss}},
  journal = {IEEE Trans. Signal Process.},
  year = {2020},
  doi = {10.1109/tsp.2020.2979601},
}
Figure