Worked example · Describe · AO1 · HL
[4 marks]
Describe how the generator in a GAN is trained.
How to approach it
Describe the steps in order. The point most students miss is that the gradient flows through the discriminator, and that the discriminator is frozen while the generator updates.
0 words
Marking points and model answer
A model answer
The generator is given random latent vectors and produces a batch of images. These are fed into the discriminator, which outputs how likely each is to be real. The generator's loss is low when the discriminator is fooled, so the error is backpropagated back through the discriminator into the generator, and only the generator's weights are updated while the discriminator's are held fixed. This step alternates with a step that trains the discriminator on real and generated images.
For each point, does your answer make it? Be strict: a marker would be.
Earns nothing
- Comparing generated images directly with real ones pixel by pixel.
Mark every point to see your total.