** Published:**

This post is about an interesting paper by Arora et al. 2017. They explains a reasoning for not achieving correct equilibrium in GANs generators and discriminators. The paper points out that the choice of distance metrics to model objective may not be suitable for practical case. Also, the theoretical assumptions for computing objective may not be valid while training in practical domains. Finally, they present an new distance metric based solution from the perspective of psuedorandomness to solve this issue.

paper: Arora et al. video: Arora et al. Talk —

A number of variations of GANs been proposed in past few years. There are still several challenges associated with them such as training without collapsing, generalization etc.

## GAN Introduction

A general GAN framework consists of two parts.

Generator which tries to sample from a distribution when a standard gaussian is given as an input.

Discriminator tries to distinguish if the generated sample from generator is from real data distribution or not.

Both of these are represented using a neural net.

The overall aim of GAN is to make generator outputs samples as near as real data distribution while discriminator tries to be a strong distinguisher of real or fake samples.

During training, Discriminator parameters are updated first using backprop and in next step, assuming a fixed discriminator, Generator parameters are updated. Thus solving a min-max game between 2 agents.

## GAN Objectives

Goodfellow et al. proposed objective for a generic GAN

However, optimally if we have infinite data the discriminator should approach to naive bayes for generic GAN.

In case of generic GAN, overall objective convergence is similar to minimizing Jensen-Shannon(JS) divergence which, for 2 distributions( and ), is defined as

In Wasserstein Gan by Arjovsky et al. 2017 , Earth-mover distance as objective is proposed , with

## Limitations

There are severall assumption for the above objectives

- Neural Net choosen for is large enough to approximate to optimal discriminator.
- Enough data samples to estimate expectations in objective.

However, in practice, training of a GAN occurs in batches of data samples and hence it is argued that the behavior of is different from what is assumed for the objective.

Key proposition by Arora et al. : “** a bounded capacity discriminator is unable to force the generator to produce a distribution with very high diversity**”

This key proposition is motivated from previous studies on psuedorandomness.

## Generalization

A generalized concept over all different distance metrics in GANs is presented in the paper.

The generator, during overfiitting, memorizes all of the training examples and if the number of samples are much larger than the dimension of a sample then it is better to memorize all data rather than learning real distribution.

The generalization argument : after training GAN, the empirical distance in assumed metric (JS divergence, Earth Mover distance or others) is well approximated. However, even if the GAN objective is minimized this may not result into generalized distribution.

Assume distributions for real and fake ( and respectively) as uniform Gaussian distribution. While training on a sufficiently large dataset, empirical distribution. are sampled from data(batch) given as and respectively. If the size of batch is much less than over all dimension of data, then JS divergence between empirical distribution is approximately and Earth-Mover(Wasserstein) distance is . While the initial assumptions for each of them to be 0 after training. The proof for this is presented in the paper.

Hence, interpreting that a GAN objective is minimizing the distance is wrong because even if the generator finds distribution of samples and the discriminator is optimal, distance between the empirical distributions (per batch sample dist.) is large. This results in generator skipping this distribution and minimizing distance between empirical distributions.

In summary, a minimized has , but it does not know.

### Can there be a correct way to represent the Distance?

In the paper, a new distance metric is proposed named as Neural Network divergence between NNs and , given as

where is a class of discriminators and is measuring function.

This proposed NN divergence is psuedosymmetric because even if then the neural nets may not be same, however it satisfies triangular inequality for three NNs () as and hence symmetric.

The paper also shows that for the batch size and constant , if

then it is higly propable that NN distance between empirical distribution and real distribution is bounded by .

This is true for all training steps given correct assumptions.

#### Limitations of using NN distance

In case of nn distance, even if the distance is small , the distributions may not be very close. When the samples then with high probability on the other hand if is small, then the discriminator is incapable of detecting lack of diversity in the sample.

### MIX GANS

Arora et al. provides proof that there exists an equilibrium with a finite mixture of generators and discriminators and using them leads to more stable training. It is impractical to use large mixture, however the best solution should be an infinite mixture of generators and discriminators. This comes from the fact that an infinite mixture of gaussians are able to represent any distribution.

Using a mixture of generators and discriminators, which in practice with same network but different parameters, is proposed in the paper. The weights are obtained by soft-max averaging across the mixture for each layer. This is different from boosting where averaging is done across sample.

From game theory perspective the pay-off between generator and discriminator is given by

So the objective for MIX GANS is given by

To regularize, an entropy term is added to training objective.

## Leave a Comment