NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarially Slicing Generative Networks: Discriminator Slices Feature for One-Dimensional Optimal Transport

Yuhta Takida, Masaaki Imaizumi, Chieh-Hsin Lai, Toshimitsu Uesaka, Naoki Murata, Yuki Mitsufuji · OpenReview

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.

Introduction: The Metrizability Problem in GANs

In generative modeling, the goal is to train a generator to replicate a target distribution, typically real-world images. This is traditionally achieved through a minimax game where a discriminator attempts to distinguish real samples from fake ones. Ideally, the discriminator should function as a mathematical "ruler," measuring the distance between the generated and target distributions and providing gradients that guide the generator toward convergence.

However, a fundamental issue persists: in many standard GAN implementations, the discriminator is not a proper distance metric, or "metrizable." Without metrizability, the gradients provided to the generator can be noisy or misleading, resulting in training instability and "mode collapse," where the generator fails to capture the full diversity of the target distribution. This research investigates how to guarantee that a trained discriminator provides gradients that effectively reduce the true dissimilarity between distributions.

Methods: Slicing Adversarial Networks (SAN)

The authors bridge the gap between GANs and Sliced Optimal Transport (SOT). They identify three "metrizable conditions" required for a discriminator to serve as a valid distance:

  1. Direction Optimality: The discriminator must project data onto the direction that most distinguishes the two distributions.
  2. Separability: The feature space must allow for a clear, monotonic separation of the distributions.
  3. Injectivity: The feature extractor must preserve information from the original input samples.

To enforce these conditions, the paper introduces the Slicing Adversarial Network (SAN). The implementation involves two primary modifications that can be integrated into existing architectures like StyleGAN-XL or BigGAN:

  • Normalized Linear Layer: The final weights of the discriminator are constrained to a hypersphere (unit length).
  • Slicing Objective: A modified maximization objective for the discriminator includes a term that explicitly optimizes the projection direction ($\omega$) to maximize the distance between real and fake features. This effectively turns the discriminator into a "slicer" that identifies the most informative one-dimensional view of the data.
The SAN framework projects high-dimensional features onto a one-dimensional line defined by $\omega$, allowing for the comparison of probability density functions in a simplified space.

Theoretical Framework: Ensuring a Valid Distance

A key insight of the paper is that most common GAN losses (e.g., Hinge or Saturating losses) do not naturally satisfy direction optimality, explaining the need for heuristic tuning in standard GANs. By framing the discriminator as a "slicer," the authors provide a theoretical bridge to the Sliced Wasserstein distance, known for robust convergence in high dimensions.

Crucially, the discriminator does not need to be perfectly optimal to be effective. As long as it satisfies the metrizable conditions, it provides "good" gradients. The paper proves that mode collapse is often a metric problem; once metrizability is induced via SAN, generators successfully cover all modes in synthetic experiments.

The theoretical framework establishes the relationship between function spaces and the conditions under which the discriminator acts as a metrizable distance.

Experimental Results

The SAN framework was validated across several benchmarks:

  • Synthetic Data: A 2D "Mixture of Gaussians" demonstrated improved mode coverage.
  • Standard Benchmarks: Improvements were noted on MNIST, CIFAR-10/100, and CelebA.
  • Large-Scale Generation: SAN achieved state-of-the-art results on ImageNet (256x256) and high-resolution FFHQ (1024x1024).

When applied to StyleGAN-XL, SAN achieved a record-breaking FID score of 1.36 on CIFAR-10 and 2.14 on ImageNet 256x256. Furthermore, SAN consistently improved FID scores across various architectures (DCGAN, BigGAN) and loss functions, demonstrating its versatility. Unlike some Sliced Wasserstein methods, SAN remains effective with standard batch sizes.

Conclusion and Future Directions

While SAN provides a robust framework for improving GAN training, some challenges remain. Guaranteeing "separability" in deep networks is complex and requires further mathematical analysis. Additionally, "injectivity" is currently encouraged through soft constraints like Leaky ReLU and Gradient Penalty (GP) rather than hard guarantees. Future work may involve expanding the framework to a wider variety of loss functions, such as Least-Squares GAN, which currently do not satisfy the required monotonic properties.

Summary updated

BibTeX
@inproceedings{takida2024adversarially,
  author = {Yuhta Takida and Masaaki Imaizumi and Chieh-Hsin Lai and Toshimitsu Uesaka and Naoki Murata and Yuki Mitsufuji},
  title = {{Adversarially Slicing Generative Networks: Discriminator Slices Feature for One-Dimensional Optimal Transport}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=eiF7TU1E8E},
}
Figure