Abstract
Generative adversarial networks (GANs) learn a target probability distribution by optimizing a generator and a discriminator with minimax objectives. This paper addresses the question of whether such optimization actually provides the generator with gradients that make its distribution close to the target distribution. We derive metrizable conditions, sufficient conditions for the discriminator to serve as the distance between the distributions by connecting the GAN formulation with the concept of sliced optimal transport. Furthermore, by leveraging these theoretical results, we propose a novel GAN training scheme, called slicing adversarial network (SAN). With only simple modifications, a broad class of existing GANs can be converted to SANs. Experiments on synthetic and image datasets support our theoretical results and the SAN's effectiveness as compared to usual GANs. Furthermore, we also apply SAN to StyleGAN-XL, which leads to state-of-the-art FID score amongst GANs for class conditional generation on ImageNet 256$\times$256.
TL;DR
This paper introduces the Slicing Adversarial Network (SAN), a simple yet powerful modification to standard GAN training that ensures the discriminator acts as a true mathematical distance (metric) between distributions. By normalizing the discriminator's final layer and optimizing for "direction optimality," SAN significantly improves image quality and stability, achieving state-of-the-art FID scores on benchmarks like ImageNet $256 \times 256$.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) are famous for their ability to generate realistic data by pitting a generator against a discriminator. Theoretically, if the discriminator is "optimal," the generator should minimize a specific divergence (like the Jensen-Shannon divergence).
However, in the real world, discriminators are rarely optimal. This leads to a fundamental question: Does the discriminator actually provide gradients that move the generator closer to the target distribution?
The authors argue that for many popular GAN variants (like Hinge or Saturating GANs), the discriminator doesn't satisfy the conditions of a "metric"—it doesn't behave like a true distance function. When the discriminator fails this "metrizability," the generator receives noisy or unhelpful gradients, often resulting in training instability or "mode collapse," where the model only generates a few types of samples.
Methods
The authors bridge the gap between GANs and Sliced Optimal Transport (SOT). SOT works by projecting high-dimensional distributions onto one-dimensional lines (slices), where calculating distances is mathematically easy.
To turn a standard GAN into a Slicing Adversarial Network (SAN), they propose two simple modifications:
- Discriminative Normalized Linear Layer: They force the weights of the discriminator's final linear layer to lie on a hypersphere (a normalized vector $\omega$). This effectively turns the final layer into a 1D projection of the features extracted by the rest of the network.
- Direction Optimality Objective: They introduce a new maximization objective for the discriminator. Instead of just trying to tell real from fake, the discriminator is explicitly optimized to find the "best" direction $\omega$ that maximizes the distance between the real and generated distributions in feature space.
By combining these, they ensure the discriminator satisfies three key theoretical conditions: direction optimality, separability, and injectivity. Together, these induce "metrizability," meaning the training process is now explicitly minimizing a valid distance between distributions.
Key Insights and Ideas
- The Metrizability Gap: The paper identifies that while Wasserstein GANs have some metric properties, most other GAN losses do not naturally provide "direction optimality." SAN fixes this without needing the heavy computational cost of standard Optimal Transport.
- Plug-and-Play Improvement: One of the most elegant aspects of SAN is its simplicity. It doesn't require a new architecture; you can take existing state-of-the-art models (like BigGAN or StyleGAN-XL) and convert them to SANs by changing just a few lines of code in the final layer and the loss function.
- Mode Collapse Prevention: In the Mixture of Gaussians experiments, standard GANs often missed several "modes." SAN consistently covered all modes, proving that a metrizable discriminator provides a more holistic gradient to the generator.
- Connection to Slicing: By viewing the discriminator as a "slicer," the authors provide a new geometric intuition for how GANs learn.
Key Results
The results show that SAN consistently outperforms standard GAN training across various architectures:
- StyleGAN-XL + SAN: On ImageNet $256 \times 256$, the SAN-enhanced version achieved a state-of-the-art FID score of 2.14, improving upon the already impressive 2.30 of the baseline.
- BigGAN + SAN: On CIFAR-10, SAN improved the FID from 8.25 to 6.20.
- Robustness: SAN showed superior performance regardless of whether the underlying loss was Hinge, Saturating, or Non-saturating, suggesting the "metrizability" fix is universally beneficial.
Limitations and Future Work
- Separability Assumption: The proof for metrizability relies on a property called "separability" of the feature extractor. While the authors show empirically that this usually holds, a rigorous mathematical proof remains an open question.
- Incompatibility with some GANs: The current SAN formulation isn't a direct fit for every GAN type (e.g., Least-Squares GAN) because they don't satisfy the monotonic property required by the authors' main theorem.
- Hyperparameter $\lambda$: The SAN objective introduces a scaling factor $\lambda$. While $\lambda=1$ worked well for their tests, different architectures might require more tuning.
Summary updated