Abstract
Generative Adversarial Networks (GANs) often produce images with artifacts despite reaching equilibrium. This paper introduces Discriminator Optimal Transport (DOT), a post-processing technique that leverages the trained discriminator to refine generated samples. By interpreting the discriminator as an approximation of an optimal transport map, DOT applies gradient-based updates in the latent space to improve image quality. Empirical results on CIFAR-10, STL-10, and ImageNet demonstrate significant improvements in FID and Inception Scores without retraining the underlying models.
Introduction
While GANs are state-of-the-art for image synthesis, the generator ($G$) frequently outputs images with blurred edges, strange artifacts, or unrealistic textures. Traditionally, the discriminator ($D$) is discarded after training. However, the discriminator contains rich information about the real data manifold. Discriminator Optimal Transport (DOT) addresses this inefficiency by using the discriminator's learned knowledge to "clean up" the generator's output.
Methodology
The DOT framework establishes a mathematical link between GAN discriminators and Optimal Transport (OT) theory.
Theoretical Foundation
The authors demonstrate that the optimization of a standard discriminator (using logistic, hinge, or Wasserstein loss) approximates a lower bound of the dual cost function for the Wasserstein distance. Consequently, a trained discriminator can serve as a guide, providing a vector field that points from the "fake" distribution toward the "real" one.
The DOT Scheme
Instead of a single forward pass $y = G(z)$, DOT introduces a refinement step. It performs gradient descent to find a sample that maximizes the discriminator's score while remaining close to the original sample, effectively moving the sample along the transport map toward the real data manifold.
Latent Space Refinement
While refinement can occur in pixel space (Target Space DOT), this often introduces adversarial noise. The authors propose Latent Space DOT, which updates the input noise vector $z$ before it passes through the generator. This constraint ensures that the refined image remains within the manifold of "natural-looking" images the generator is capable of producing, leading to more semantically meaningful improvements.
Experimental Results
The authors validated DOT across several benchmarks, including synthetic 2D data, CIFAR-10, STL-10, and ImageNet.
Quantitative Improvements
DOT consistently improved performance metrics across various GAN architectures (WGAN-GP, SNGAN, SAGAN):
- CIFAR-10: For an SNGAN, the FID (lower is better) dropped from 20.74 to 15.78.
- STL-10: Inception Scores (higher is better) rose from 8.67 to 9.45.
- ImageNet: On a pre-trained conditional GAN, the Inception Score improved from 36.40 to 37.61.
Qualitative Analysis
Qualitatively, DOT removes artifacts and sharpens features that the base generator struggled to render accurately. As shown in the comparison below, the refinement process clarifies textures and removes blurred artifacts.
Discussion and Limitations
The primary insight of DOT is that the discriminator is more than a classifier; it is a potential transport map. By adding a distance penalty to the discriminator maximization, DOT preserves sample diversity while enhancing quality, avoiding the "mode collapse" typical of naive maximization.
However, DOT introduces some trade-offs:
- Computational Overhead: The additional gradient steps increase inference time.
- Hyperparameter Sensitivity: Performance depends on the learning rate and the number of update steps.
- Local Optima: The gradient-based approach may settle in local minima rather than finding the global optimal transport map.
Future work may involve integrating DOT principles directly into the training loop to improve generators from the outset.
Summary updated