15
$\begingroup$

In the paper Progressive growing of gans for improved quality, stability, and variation (ICLR, 2018) by Nvidia researchers, the authors write

Furthermore, we observe that mode collapses traditionally plaguing GANs tend to happen very quickly, over the course of a dozen minibatches. Commonly they start when the discriminator overshoots, leading to exaggerated gradients, and an unhealthy competition follows where the signal magnitudes escalate in both networks. We propose a mechanism to stop the generator from participating in such escalation, overcoming the issue (Section 4.2)

What do they mean by "the discriminator overshoots" and "the signal magnitudes escalate in both networks"?

My current intuition is that the discriminator gets too good too soon, which causes the generator to spike and try to play catch up. That would be the unhealthy competition that they are talking about. Model collapse is the side effect where the generator has trouble playing catch up and decides to play it safe by generating slightly varied images to increase its accuracy. Is this way of interpreting the above paragraph correct?

$\endgroup$
1
  • $\begingroup$ Note that it's not "Model collapse" (as you write) but "mode collapse". This refers to the mode of a distribution (if I remember correctly). $\endgroup$
    – nbro
    Commented Jun 26, 2022 at 9:00

4 Answers 4

1
$\begingroup$

Your intuition doesn't coincide with my interpretation. This is how I see it:

The generator might have some problem early on, for simplicity lets consider the example where the generator always outputs a black pixel in the top left corner. Then the discriminator learns to select on that particular feature, and the generator might take several update steps to resolve the issue, during which the discriminator might shift toward only selecting for the color of the first pixel instead of whether the whole image looks like a face.

Because there is this interplay between the generator and discriminator and because they are constantly lacking behind each other they might start to oscillate. The generator might overcompensate for some random pixel which gave him away to the discriminator and then the discriminator might overcompensate by selecting for a single different pixel which the generator wasn't focused on.

Of course this example is oversimplified by talking about the value of a single pixel, but you get the idea: the two networks are too focused on small problems.

It's not about the discriminator getting too good, but about it getting too focused on one of the mistakes the generator is currently making.

$\endgroup$
0
$\begingroup$

A discriminator overshooting may result in a dataset that has not been thoroughly clean and probably has too many identical feature, as a result there will be an early convergence from the discriminator as there is little variation. The drawback from this is that the model will not bee able to generalize well.

$\endgroup$
1
  • $\begingroup$ In other words, the generator can no longer effective learn how to fool the discriminator because everything fails. $\endgroup$ Commented Mar 5, 2020 at 14:40
0
$\begingroup$

Yes, your intuition is correct. The effect of this problem is that the generator can no longer improve its output to marginally fool the discriminator - the discriminator isn't buying any of the generated output. In this case, the generator gets stuck in a local minimum and typically produces nonsense results.

$\endgroup$
0
$\begingroup$

What do they mean by "the discriminator overshoots"?

Mode collapse happens when the generator outputs the same or a set of few images that always look the same regardless of different input noise values. This provides a very easy way for the discriminator to learn that the generated images are fake.

When this happens the discriminator loss is quite low (tending to zero) because it correctly classifies fake vs real images. The same occurs when training the generator instead as since it's trained by back-propagating the error of the discriminator, if the generated images are not able to fool the discriminator by reversing the class labels (due to images collapsed to few modes which are very easy to distinguish), its error is still low and so the generator's gradient tends to vanish, making impossible to let the generator improve and so to escape the local minimum. Indeed, when this happens it's useless to train further.

An ideal training is characterized, instead, by none of the two networks to overcome the other, meaning that for some epochs the discriminator is fooled (say $60\%$ of the times) and so the generator improves, then the discriminator gets better at classifying fakes (but still misses many) still giving the chance for the generator to improve in the meanwhile. If at any point during training one network (especially the discriminator) strongly overcomes the other, then the training ends to a poor solution: a mode collapse for example, that can even happen when the quality of the generated samples is satisfactory - instead, if such process continues and converges, the generator has reached the best possible quality (while also having a wide variety), while the discriminator is not able to distinguish true vs generated images: so its predictions are around $0.5$ probability, that is the Nash equilibrium (i.e. optimal solution) of the min-max game between the generator and discriminator.

What do they mean by "the signal magnitudes escalate in both networks"?

I'm not sure about this point but I guess it refers to a diverging training scenario, in which the gradient of both networks starts to explode because the learned features of the generator (corresponding to predicted pixels) are out of control. In fact, to overcome this issue the authors decide to normalize the generator's feature of each pixel to unit norm. They call this trick pixelwise normalization.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .