TL;DR
This paper introduces Slicing Adversarial Networks (SAN), a simple yet powerful modification to GAN training that ensures the discriminator acts as a true distance metric between probability distributions. By enforcing "metrizable conditions"—specifically through a normalized final linear layer and a modified objective—SAN achieves new state-of-the-art FID scores on ImageNet and significantly improves training stability and mode coverage.
What Problem Does This Paper Address?
Generative Adversarial Networks (GANs) are designed to minimize the difference between a generated distribution and a real data distribution. Theoretically, if the discriminator is "optimal," this process minimizes a specific divergence (like the Jensen-Shannon divergence).
However, in the real world, discriminators are rarely optimal. This leads to a fundamental question: Does GAN optimization actually provide gradients that move the generator closer to the target distribution? Without the assumption of an optimal discriminator, standard GANs often fail to provide meaningful distance measures, leading to issues like training instability and "mode collapse," where the generator only learns a small subset of the data's variety.
Methods
The authors bridge the gap between GAN theory and practice by connecting GANs to the concept of Sliced Optimal Transport. They derive three "metrizable conditions" that, if satisfied, guarantee the discriminator serves as a proper distance metric:
- Direction Optimality: The discriminator's final projection direction must be the one that best distinguishes the two distributions.
- Separability: The cumulative density functions of the real and fake features must be ordered correctly.
- Injectivity: The feature extractor must not "collapse" different inputs into the same feature, preserving all necessary information.
To implement these theories, they propose the Slicing Adversarial Network (SAN). Converting a standard GAN to a SAN requires only two minor changes:
- Discriminative Normalized Linear Layer: The discriminator's final weight vector is constrained to lie on a hypersphere (unit norm).
- Modified Maximization Objective: A new term is added to the discriminator's loss to explicitly enforce direction optimality.
Datasets
The authors evaluated SAN across a wide range of benchmarks:
- Synthetic Data: A 2D Mixture of Gaussians (MoG) with 8 modes to test mode collapse.
- Standard Image Benchmarks: CIFAR-10, CIFAR-100, and CelebA (128×128).
- Large-Scale Generation: ImageNet (256×256) and FFHQ (up to 1024×1024) using the StyleGAN-XL architecture.
Key Insights and Ideas
- The Metrizability Gap: Most popular GAN variants (Hinge, Saturating, Non-saturating) inherently fail the "direction optimality" condition. This means their discriminators don't naturally provide a true distance metric during training.
- Injectivity Matters: The choice of activation function is critical. The authors found that using Leaky ReLU instead of standard ReLU helps maintain injectivity, which is vital for preventing mode collapse in complex datasets like MNIST.
- Simple is Better: Unlike many recent GAN improvements that add significant computational overhead, SAN is a "lightweight" fix. It achieves better results by simply making the existing optimization more theoretically sound.
Key Results
- State-of-the-Art Performance: When applied to StyleGAN-XL, SAN achieved a new SOTA FID score of 1.36 on CIFAR-10 and 2.14 on ImageNet 256×256.
- Solving Mode Collapse: In the Mixture of Gaussians experiment, standard GANs often missed several modes, while SAN consistently covered all eight (see Figure 5).
- Better Optimization: Empirical tests showed that SAN's trained projection direction is significantly closer to the theoretical optimal direction than standard GANs, confirming that the modifications work as intended (see Figure 6).
Limitations and Future Work
- Separability Theory: While the authors empirically demonstrated that their method induces "separability," a rigorous mathematical proof for this condition remains an open challenge for future research.
- Compatibility: SAN is not a universal "drop-in" for every possible GAN. For instance, it doesn't apply straightforwardly to Least-Squares GAN (LSGAN) because that model's loss function doesn't satisfy the necessary monotonicity requirements.
- Injectivity Control: While the paper suggests using Leaky ReLU and Gradient Penalties to promote injectivity, there is currently no way to directly "force" a deep neural network to be perfectly injective without significant architectural constraints.
Summary updated