This is essentially the adversarial generator/discriminator set-up that GANs use.