Abstract
Adversarial training methods typically align distributions by solving two-player games. However, in most current formulations, even if the generator aligns perfectly with data, a sub-optimal discriminator can still drive the two apart. Absent additional regularization, the instability can manifest itself as a never-ending game. In this paper, we introduce a family of objectives by leveraging pairwise discriminators, and show that only the generator needs to converge. The alignment, if achieved, would be preserved with any discriminator. We provide sufficient conditions for local convergence; characterize the capacity balance that should guide the discriminator and generator choices; and construct examples of minimally sufficient discriminators. Empirically, we illustrate the theory and the effectiveness of our approach on synthetic examples. Moreover, we show that practical methods derived from our approach can better generate higher-resolution images.
Introduction: The Instability of the Unary Game
Generative Adversarial Networks (GANs) are traditionally framed as a zero-sum game between a generator and a discriminator. While the theoretical goal is to reach a Nash equilibrium where the generator perfectly replicates the data distribution, practical training often fails to converge.
A fundamental issue identified in this work is that in standard "unary" GANs—where the discriminator $D(x)$ evaluates samples in isolation—the generator's stability is tied to the discriminator's optimality. If the discriminator is sub-optimal, it can provide gradients that push a perfect generator away from the true distribution. This leads to persistent oscillations or "never-ending games," as visualized in toy examples like DiracGAN.
Methodology: From Unary to Pairwise Discriminators
To address this instability, we propose shifting from unary discriminators to pairwise discriminators $D(x, y)$. Instead of asking "Is this image real?", the discriminator is trained to classify pairs of samples. It must decide if a pair $(x, y)$ comes from the same distribution (both real or both fake) or different distributions (one real, one fake).
PairGAN Objectives
By leveraging pairwise comparisons, we can design generator loss functions where the gradient vanishes exactly when the model distribution matches the data distribution, regardless of the discriminator's current state. This decoupling ensures that once alignment is achieved, it is preserved. This acts similarly to a learned distance metric, like Maximum Mean Discrepancy (MMD), where the generator isn't "punished" once it reaches the target.
Computational Efficiency
A naive implementation of pairwise comparisons would result in $O(n^2)$ complexity. We employ an averaging technique, similar to those used in relativistic GANs, to reduce this complexity back to $O(n)$, ensuring the method remains scalable for modern deep learning architectures.
Theoretical Insights and Stability
The core advantage of PairGAN is the creation of a "manifold" of stationary points. In the pairwise formulation, the target distribution becomes a stable attractor. As shown in our vector field analysis, trajectories in PairGAN converge directly to these stationary points rather than orbiting them indefinitely.
Empirical Evaluation
We evaluated PairGAN across synthetic tasks and high-resolution image generation.
Toy Experiments
Using the DiracGAN setup, we demonstrated that while standard GANs oscillate, PairGAN achieves local convergence. This stability holds even when the discriminator has limited capacity, provided it meets "minimal sufficiency" conditions.
High-Resolution Image Generation (CAT Dataset)
We tested the approach on the CAT dataset at resolutions up to 256x256. High-resolution training is notoriously difficult due to the sparsity of data relative to the pixel space.
- Stability and Mode Collapse: Standard GANs frequently collapsed or oscillated at 256x256. In 64x64 tests, standard GANs suffered mode collapse in 33% of runs, while PairGAN avoided this entirely across all trials.
- Quality: PairGAN significantly outperformed standard and relativistic GANs in terms of Fréchet Inception Distance (FID). At 128x128, PairGAN reached an FID of 21.92 (vs. 40.17 for standard GAN). At 256x256, the gap widened further (45.21 vs. 208.99).
Conclusion
Pairwise discriminators offer a robust solution to the inherent instability of adversarial training. By decoupling the generator's convergence from the discriminator's optimality, PairGAN ensures that distribution alignment is a stable equilibrium. This theoretical shift translates to practical gains in stability and image quality, particularly for challenging high-resolution datasets.
Summary updated