Training Generative Networks Using Random Discriminators

Babak Barazandeh, Meisam Razaviyayn, Maziar SanjabiDSW 2019

TL;DR

Training Generative Adversarial Networks (GANs) is notoriously unstable because it requires solving a complex, game-theoretic min-max problem. This paper introduces a novel alternative: replacing the adversarial discriminator with a sequence of randomly initialized networks. This simple twist transforms an unstable min-max game into a stable, fast-converging minimization problem that can rapidly learn data distributions.

What Problem Does This Paper Address?

Standard GANs are framed as a two-player zero-sum game: a generator tries to create realistic data, while a discriminator tries to distinguish real data from fake. Mathematically, this is a non-convex, non-concave min-max optimization problem.

Because both networks are updating simultaneously, the optimization landscape is chaotic. Training is highly unstable, prone to mode collapse, and incredibly sensitive to hyperparameter tuning. While recent variants like Wasserstein GAN (WGAN) improve stability by using optimal transport distances, they still rely on an adversarial training loop. The authors of this paper aim to bypass this adversarial bottleneck entirely to achieve stable and efficient generative modeling.

Methods

The authors propose the Generative Networks using Random Discriminator (GN-RD) algorithm. Instead of optimizing a discriminator to find the worst-case difference between real and fake data, they minimize the expected distance across a distribution of random feature mappings.

The training loop proceeds as follows:

  1. Random Projection: At each iteration, a fresh discriminator network ($D$) is created with random weights drawn from a standard normal distribution. This discriminator is never trained.
  2. Optimal Assignment: Real and generated data batches are passed through this random discriminator to extract features. The algorithm then solves a classical optimal assignment problem (Wasserstein distance) to pair the closest real and generated samples. This inner problem can be solved using the Hungarian method, the Auction algorithm, or a fast greedy heuristic.
  3. Generator Update: The generator's weights are updated via standard gradient descent to minimize the distance between the assigned pairs.

By eliminating the discriminator's optimization phase, the objective becomes a standard minimization problem rather than a competitive game.

Datasets

The method was evaluated on two benchmark datasets, each containing 50,000 training samples:

  • MNIST: The classic dataset of handwritten digits.
  • Fashion-MNIST: A dataset of fashion product images (clothing, shoes, bags).

Key Insights and Ideas

  • Adversaries Aren't Mandatory: A generator doesn't strictly need a smart opponent to learn. It can learn the underlying structure of a dataset simply by trying to match real data across a diverse sequence of random projections.
  • Game Over, Optimization On: Converting the min-max formulation into a standard minimization problem eliminates the oscillatory behavior and instability inherent to GANs.
  • An Ideal "Warm-Starter": Because random discriminators require zero training, the algorithm executes iterations incredibly fast. Even if it doesn't yield perfect final results, it serves as an excellent, low-cost "warm-start" mechanism to initialize a generator before fine-tuning it with a traditional adversarial GAN.

Key Results

  • Rapid Convergence: On the Fashion-MNIST dataset, GN-RD generated recognizable clothing items in just 600 iterations, taking roughly 10 minutes on a modest consumer GPU (NVIDIA GeForce GTX 1050 Ti).
  • Wall-Clock Speedups: When plotting the Inception Score against actual time (seconds), GN-RD's score climbed much faster in the early stages of training compared to WGAN, WGAN-GP, and Cramér GAN. This is because GN-RD completely skips the computationally expensive steps required to train a discriminator.

Limitations and Future Work

  • Image Sharpness: The authors acknowledge that the images generated by GN-RD are not as sharp as those produced by traditional adversarial training. Random projections capture the global distribution well but can miss fine-grained, high-frequency details.
  • Dataset Complexity: The approach was only validated on relatively simple, low-resolution datasets (28x28 pixels). Future work is needed to determine how well random discriminators scale to complex, high-resolution image datasets like CelebA or ImageNet.

Summary updated

BibTeX
@inproceedings{barazandeh2019training,
  author = {Babak Barazandeh and Meisam Razaviyayn and Maziar Sanjabi},
  title = {{Training Generative Networks Using Random Discriminators}},
  booktitle = {DSW},
  year = {2019},
  url = {https://openreview.net/forum?id=eS06ceQpTG},
}
Figure